  
 $(function() {
	 $(".lcnzbox5 li").each(function(index){
		   $(this).hover(function(){
				 $(this).addClass("hover");
				 $(this).find("img").attr("src","/templets/temp1/images/lcnzbox5btn"+index+index+".jpg");				  
			},function(){
				 $(this).removeClass("hover");
				 $(this).find("img").attr("src","/templets/temp1/images/lcnzbox5btn"+index+".jpg");	
		    })						  
	  })
	   $(".lcnzbox7 dd a").each(function(index){
		  $(this).mouseover(function(){
			  $("#demoB1 ul").each(function(){
				  if($(this).hasClass("Cont_0"+(index+1))){
					   $(this).show().siblings().hide();
				  }					   
			  })
			  $("#demoB2 ul").each(function(){
				  if($(this).hasClass("Cont_0"+(index+1))){
					   $(this).show().siblings().hide();
				  }					   
			  })
		  })					 
	  }) 
	  $(".zgjlbox2_2 li").each(function(index){
		   $(this).hover(function(){
				 $(this).find("img").attr("src","/templets/temp1/images/zgjlbox2btn"+index+".jpg");				  
			},function(){
				 $(this).find("img").attr("src","/templets/temp1/images/zgjlbox2btn"+index+index+".jpg");	
		    })						  
	  }) 	
	  var urls = window.location.href;
	  url=urls.split("/");
	  $(".articlebox2 p").each(function(index){
           if(url[3]=="about"||url[3]=="news"||url[3]=="doctor"||url[3]=="tech"||url[3]=="equip"||url[3]=="media"||url[3]=="guide"||url[3]=="case"||url[3]=="research"||url[3]=="info"||url[3]=="video"){}										
		   else{if(index==0){$(this).append('<a href="http://lut.zoosnet.net/LR/Chatpre.aspx?id=LUT33816963"><img width="145" height="30" border="0" src="http://www.81fck.com/uploads/allimg/111107/2_111107112847_1.gif" alt="" style="cursor: pointer"></a>')}	
			  if(index==2){
				  $('<p style="text-align: center"><a href="http://lut.zoosnet.net/LR/Chatpre.aspx?id=LUT33816963"><img width="337" height="72" border="0" src="http://www.81fck.com/uploads/allimg/111107/2_111107112933_1.gif" alt="" style="cursor: pointer"></a></p>').insertAfter($(this));}
		  }
	  })		
	  var $self = $(".dl5 ul");
	  var liwidth = $self.find("li:first").width()+6; 
	  $self.append($self.html());
	  var timespace=3000;
	  var scrollTimerleft=setInterval(scrollleft,timespace);
	  var scrollTimerright;
	  $(".img1").mousedown(function(){
		  clearInterval(scrollTimerright);
		  clearInterval(scrollTimerleft);
		  scrollleft();
		  scrollTimerleft=setInterval(scrollleft,timespace);
	  })
	 $(".img2").mousedown(function(){
		  clearInterval(scrollTimerright);
		  clearInterval(scrollTimerleft);
		  scrollright();
		  scrollTimerright=setInterval(scrollright,timespace);
	  })
	  function scrollleft(){
		  if( !$self.is(":animated")){
			   $self.animate({left:'-='+liwidth}, 800 , function(){
				   $self.css({left:0}).find("li:first").appendTo($self); 
			   });
		   }
	  }
	  function scrollright(){
		  if( !$self.is(":animated") ){
				   $self.animate({left:'+='+liwidth},800,function(){
					  $self.css({left:-liwidth*($self.children("li").length/2)}).find("li").last().prependTo($self);
			  });
		  }
	  }
	  
	  var $selfA = $(".fkyydl2 ul");
	  var liwidthA = $selfA.find("li:first").width()+6; 
	  $selfA.append($selfA.html());
	  var timespaceA=3000;
	  var scrollTimerleftA=setInterval(scrollleftA,timespaceA);
	  var scrollTimerrightA;
	  $(".imgA").mousedown(function(){
		  clearInterval(scrollTimerrightA);
		  clearInterval(scrollTimerleftA);
		  scrollleftA();
		  scrollTimerleftA=setInterval(scrollleftA,timespaceA);
	  })
	 $(".imgB").mousedown(function(){
		  clearInterval(scrollTimerrightA);
		  clearInterval(scrollTimerleftA);
		  scrollrightA();
		  scrollTimerrightA=setInterval(scrollrightA,timespaceA);
	  })
	  function scrollleftA(){
		  if( !$selfA.is(":animated")){
			   $selfA.animate({left:'-='+liwidthA}, 800 , function(){
				   $selfA.css({left:0}).find("li:first").appendTo($selfA); 
			   });
		   }
	  }
	  function scrollrightA(){
		  if( !$selfA.is(":animated") ){
				   $selfA.animate({left:'+='+liwidthA},800,function(){
					  $selfA.css({left:-liwidthA*($selfA.children("li").length/2)}).find("li").last().prependTo($selfA);
			  });
		  }
	  }
	  $("#slider").flashSlider();
	  $("#pagezjfra").imageScroller({
		  next:"pagezjrightbut",
		  prev:"pagezjleftbut",
		  frame:"pagezjscroll",
		  child:"li",
		  margleftzhi:-158,
		  auto:true			
	  });
	  $("#pagezjfra1").imageScroller({
		  next:"pagezjrightbut1",
		  prev:"pagezjleftbut1",
		  frame:"pagezjscroll1",
		  child:"li",
		  margleftzhi:-158,
		  auto:true			
	  });
	  $(".slidead").slideDown(2500,function(){});
			setTimeout(slideup,5000);
			function slideup(){
				$(".slidead").slideUp(2500,function(){
					  $(this).css({height:120}).find("img").attr("src","/templets/temp1/images/motherday81fck1.jpg").parent().parent().show("slow");
				});
	  }
});

function ShowSub(id_num,num){ 
	for(var i = 0;i <= 15;i++){
		if(GetObj("Menu_" + id_num + i)){GetObj("Menu_" + id_num + i).className = '';}
		if(GetObj("Cont_" + id_num + i)){GetObj("Cont_" + id_num + i).style.display = 'none';}
	}
	if(GetObj("Menu_" + id_num + num)){GetObj("Menu_" + id_num + num).className = 'hover';}
	if(GetObj("Cont_" + id_num + num)){GetObj("Cont_" + id_num + num).style.display = 'block';}
}
function GetObj(objName){
	if(document.getElementById){
		return eval('document.getElementById("' + objName + '")');

	}else{

		return eval('document.all.' + objName);
	}
}


























