$(function() {
		//新书速递
    $(".main .jCarouselLite").jCarouselLite({
        btnNext: ".main .next",
        btnPrev: ".main .prev",
        speed: 500,
       	visible : 4
    });
    
    //国际
		$(".gj .top").find('p').mouseover(
			function(){
				$(".gj .top").find('p').removeClass("hover");
				$(this).addClass("hover");
				//隐藏所有的层
				$(".gj .box6").hide();
				//获取所有P的集合
				var $p = $(".gj .top").find('p');
				//获取P的索引号，去显示相应的层
				var index = $p.index(this);
				$(".gj .box6").eq(index).show();
			}
		);
		
		//月畅销
		$(".ycx .top").find("p").mouseover(
			function(){
				$(".ycx .top").find("p").removeClass("hover");
				$(this).addClass("hover");
				//隐藏所有的层
				$(".ycx .box6").hide();
				//获取所有P的集合
				var $p = $(".ycx .top").find('p');
				//获取P的索引号，去显示相应的层
				var index = $p.index(this);
				$(".ycx .box6").eq(index).show();
			}	
		);
		
		//季畅销
		$(".jcx .top").find("p").mouseover(
			function(){
				$(".jcx .top").find("p").removeClass("hover");
				$(this).addClass("hover");
				//隐藏所有的层
				$(".jcx .box6").hide();
				//获取所有P的集合
				var $p = $(".jcx .top").find('p');
				//获取P的索引号，去显示相应的层
				var index = $p.index(this);
				$(".jcx .box6").eq(index).show();
			}	
		);
		
		//主编推荐
		$(".zb .top").find("p").mouseover(
				function(){
					$(".zb .top").find("p").removeClass("hover");
					$(this).addClass("hover");
					//隐藏所有的层
					$(".zb .box4").hide();
					//获取所有P的集合
					var $p = $(".zb .top").find('p');
					//获取P的索引号，去显示相应的层
					var index = $p.index(this);
					$(".zb .box4").eq(index).show();
				}	
			);
});
