$(function(){
		var index = 0;
		 $("#bannerCtrl span").mouseover(function(){
			index  =  $("#bannerCtrl span").index(this);
			showImg(index);
		});	
		 $('#banner_doc').hover(function(){
				  if(MyTime){
					 clearInterval(MyTime);
				  }
		 },function(){
				  MyTime = setInterval(function(){
					showImg(index)
					index++;
					if(index==5){index=0;}
				  } , 4000);
		 });	
		 var MyTime = setInterval(function(){
			showImg(index)
			index++;
			if(index==5){index=0;}
		 } , 4000);
		 function showImg(i){
		$("#bannerImg img").eq(i).stop(true,true).fadeIn(800).parent().siblings().find("img").hide();

		 $("#bannerCtrl span").eq(i).addClass("hover").siblings().removeClass("hover");
		};
		
	
		var id = 0;
		 $("#pptCtrl span").mouseover(function(){
			id  =  $("#pptCtrl span").index(this);
			showImgs(id);
		});	
		 $('#ppt').hover(function(){
				  if(Time){
					 clearInterval(Time);
				  }
		 },function(){
				  Time = setInterval(function(){
					showImgs(id)
					id++;
					if(id==5){id=0;}
				  } , 3500);
		 });	
		 var Time = setInterval(function(){
			showImgs(id)
			id++;
			if(id==5){id=0;}
		 } , 3500);
		 function showImgs(i){
		$("#pptImg img").eq(i).stop(true,true).show().parent().siblings().find("img").hide();

		 $("#pptCtrl span").eq(i).addClass("hov").siblings().removeClass("hov");
		};
			
		
/***************************************/
	$('#doctor_box').cycle({ 
		fx:     'scrollLeft', 
		speed:  'fast', 
		timeout: 0,
		pause: 1,
		prev: '#prev',
		next:   '#next'
    });
	$("#rongYu div").jMarquee({
      visible:5,
      step:1,
      direction:"left"
	});
	$("#zqcjVideo ul").cycle({
		fx:     'scrollUp', 
		speed:  'fast',
		timeout: 3500,
		pause: 1
	});	

	$("#hot_news h1 p a").each(function(index){
		$(this).mouseover(function(){
			$("#hot_news h1 p a").removeClass('htoNews_hov');
			$("#hot_news h1 p a").eq(index).addClass("htoNews_hov");
			$("#hot_news div").fadeOut(500);
			$("#hot_news div").eq(index).fadeIn(500);
		});
	});
	$("#zqcjSlid h1 a").each(function(index){
		$(this).mouseover(function(){
			$("#zqcjSlid h1 a").removeClass('zqcjSlidHov');
			$("#zqcjSlid h1 a").eq(index).addClass("zqcjSlidHov");
			$("#zqcjSlid div").hide();
			$("#zqcjSlid div").eq(index).fadeIn();
		});
	});
	$("#warpRightSlid p a").each(function(index){
		$(this).mouseover(function(){
			$("#warpRightSlid p a").removeClass('RightSlidhov');
			$("#warpRightSlid p a").eq(index).addClass("RightSlidhov");
			$("#warpRightSlid ul").hide();
			$("#warpRightSlid ul").eq(index).fadeIn();
		});
	});
});
