// JavaScript Document

$(function(){
	//logo
	$('#top h1').animate({top:0});
	//nav
	$('#nav li').hover(function(){
		if($(this).attr('class') != 'navPage'){
			$(this).stop().animate({backgroundColor:'#ff7200'},function(){$(this).css({backgroundColor:'#ff7200'})})
			$(this).children('a').children('h2').stop().animate({color:'#fff'},function(){$(this).css({color:'#fff'})})
			$(this).children('a').children('h3').stop().animate({color:'#fff'},function(){$(this).css({color:'#fff'})})
		}
	},function(){
		if($(this).attr('class') != 'navPage'){
			$(this).stop().animate({backgroundColor:'#fff'},function(){$(this).css({backgroundColor:'#fff'})})	
			$(this).children('a').children('h2').stop().animate({color:'#353535'},function(){$(this).css({color:'#353535'})})
			$(this).children('a').children('h3').stop().animate({color:'#7d7d7d'},function(){$(this).css({color:'#7d7d7d'})})
		}
		
	})
	
	//菜单
	
	$('.menu_ul > li').css({padding:'10px 0 10px 17px',background:'url(css/img/menu_bg2.jpg) no-repeat left bottom'});
	$('.menuPage').css({background:'url(css/img/menu_bg1.jpg) no-repeat left bottom'});
	$('.menuPage').children('ul').show();
	
	$('.menu_ul > li').hover(function(){
		$(this).children('ul').slideDown();	
	},function(){});
	$('#menu').hover(function(){},function(){
		$('#menu li').not($('.menuPage')).children('ul').slideUp();	
		
	})
	
	
	
	
	//产品
	$('#pro_nav li').hover(function(){
		$(this).css({'background-color':'#007fff'})
	},function(){
		$(this).css({'background-color':'#60afff'})
	})
	
	
	 
	
})

