$(document).ready(function(){  
						   
	/*$(".text").click(function(){  
    $(".shousou").removeClass('shousou');
	$(".tianjia").addClass('shousougai');
			
                 });*/
	
								   
			
	$("div.daohang_box  .hao").hover(function() { //When trigger is clicked...
		
	  
		//Following events are applied to the subnav itself (moving subnav up and down)
		$(this).parent().find("ul.subnav").slideDown('fast').show(); //Drop down the subnav on click

		$(this).parent().hover(function() {
		}, function(){	
			$(this).parent().find("ul.subnav").slideUp('slow'); //When the mouse hovers out of the subnav, move it back up
		});

		//Following events are applied to the trigger (Hover events for the trigger)
		}).hover(function() { 
			$(this).addClass("subhover"); //On hover over, add class "subhover"
		}, function(){	//On Hover Out
			$(this).removeClass("subhover"); //On hover out, remove class "subhover"
	});
		


	
	
	
	
	
	
	
	
$(function(){
	$('#number li').mouseover(function(){
		$("#"+this.id).addClass("selected").siblings().removeClass("selected");
		$('.slider1 li img').fadeIn(4000).attr("src","images/"+(this.id)+".jpg");
		});
	});
	
/*首页广告效果*/
$(function(){
     var len  = $(".num > li").length;
	 var index = 0;
	 var adTimer;
	 $(".num li").mouseover(function(){
		index  =   $(".num li").index(this);
		showImg(index);
	 }).eq(0).mouseover();	
	 //滑入 停止动画，滑出开始动画.
	 $('.ad').hover(function(){
			 clearInterval(adTimer);
		 },function(){
			 adTimer = setInterval(function(){
			    showImg(index)
				index++;
				if(index==len){index=0;}
			  } , 2000);
	 }).trigger("mouseleave");
})
// 通过控制top ，来显示不同的幻灯片
function showImg(index){
        var adHeight = $(".content_right .ad").height();
		$(".slider").stop(true,false).animate({bottom : -adHeight*index},1000);
		$(".num li").removeClass("on")
		
			.eq(index).addClass("on");
}
	
	
});  



$(document).ready(function() { 
$(".tab span:first").addClass("current"); //为第一个SPAN添加当前效果样式 
$(".tab ul:not(:first)").hide(); //隐藏其它的UL 
$(".tab span").mouseover(function() { 
$(".tab span").removeClass("current"); //去掉所有SPAN的样式 
$(this).addClass("current"); 
$(".tab ul").hide(); 
$("." + $(this).attr("id")).fadeIn('slow'); 
}); 
}); 

						   
			   
						   
				   
						   
				

$(document).ready(function() { 
						   $(".tab ul li ").hover(function() {
	// $("#orderedlist li:last").hover(function() {
		$(this).addClass("jguo");
		
		
	}, function() {
		$(this).removeClass("jguo");
		
		
	
		
	});
	
	
		$(".tab_cpin  ul li ").hover(function() {
	// $("#orderedlist li:last").hover(function() {
		$(this).addClass("jguo");
		
		
	}, function() {
		$(this).removeClass("jguo");
							   
						   
		}); 
	
	



$('.xwengyouhua   tr:even').addClass('niao');


						  

 $('.xwengyouhua   tr').hover(
  function() {$(this).addClass('blue');},
  function() {$(this).removeClass('blue');}
 );


 $('.mulu_lie li').hover(
  function() {$(this).addClass('danqian');},
  function() {$(this).removeClass('danqian');}
 );


 






}); 
		   
						   

							   
							   
		   
							   
							   
							


