$(document).ready(function () {
    $(".header .an").click(function () {
        $(this).toggleClass("n");
        $("html").toggleClass("on");
        $(".nav").toggleClass("on");
        $(".e_j").slideUp();
    });
    $(".header .s_ch").click(function () {
        $(".search").slideDown();
        $(".header .an").removeClass("n");
        $(".sj_bj").slideUp(0);
        $("html").removeClass("on");
        $("body").removeClass("on");
        $(".nav").find(".e_j").slideUp();
    });
    $(".search .sc_gb").click(function () {
        $(".search").slideUp();
    });
    $(".nav .y_j i").click(function () {
        $(this).parent().siblings(".e_j").slideToggle();
        $(this).parents(".nav ul li").siblings().find(".e_j").slideUp();
    });
});
$(document).ready(function(){
	$(".index_product_table td").mouseenter(function(){
		var curObj=$(this);
		
		$(".index_product_table td").addClass("layer");
		$(".index_product_table ul").hide();
		$(".index_product_table img").not(curObj.find("img")).stop().animate({
			height:163
		},500);
		
		curObj.removeClass("layer");
		curObj.find("img").stop().animate({
			height:212
		},500);
		curObj.find("ul").show();
	});
	
	$(".index_product_table").mouseleave(function(){
		$(".index_product_table td").removeClass("layer");
		$(".index_product_table ul").hide();
		$.each($(".index_product_table img"), function() {
			var tempImg = new Image();
			tempImg.src = this.src;
			$(this).stop().animate({
				height:tempImg.height
			},500);
		});		
	});
	
	if(fixedMenuIndex!=-1)
		showHeaderSubMenu(fixedMenuIndex);
});


