/**
 * @author Administrator
 */
$(function(){
	$("#nav ul li:has(ul)").hover(function(){
		$(this).children("ul").stop(true,true).slideDown(400);
      },function(){
		 $(this).children("ul").stop(true,true).slideUp("slow");
	});	   
	
	/*var nav=$("div.news_nav ul li");
	$("div.news_nav ul li").mouseover(function(){
		var $display=$("div.display");
		$(this).addClass("cur").siblings().removeClass("cur");
		var index=nav.index(this);
		$("div.news_hover")
		.eq(index).show().siblings("div.news_hover").hide();
		
	})*/
	
	
	var nav=$("#product_menu_left dt");
	$("#product_menu_left dt").mouseover(function(){
		//$(this).addClass("cur").siblings().removeClass("cur");
		var index=nav.index(this);
		$("div.news_hover")
		.eq(index).show().siblings("div.news_hover").hide();
		
	})
	
	$.each($("#product_menu_left>dt"), function(){
     $(this).click(function(){
     $(this).next("#product_menu_left>dd").slideToggle(500);
     $(this).toggleClass("product_on");;
       });
     });
	
	 $("ul.product_ul li:last-child").addClass("last");
	 
	 
	 $(".content_info img").each(function(){						
	var h=$(this).height();
	var w=$(this).width();
	if(w>760)
	{
		h1=parseInt((750*h)/w);
		$(this).width(750);
		$(this).height(h1);
	}
  });
	 
})
