$(function(){

/*stat*/	
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?e422443978851cab4a6061bd00774795";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
/*stat end*/


	
	$('#logoLeft').mouseenter(function(){
		$('#logoLeftFe').animate({'top':'0px'},0)
		$('#logoLeftFe').animate({'top':'-750px'},1000)
	})



	$('.recoBtn').click(function(){
		$('#bigBox').show()
		$('#recoPage').hide()
		$('#recoPage').animate({'margin-top':'-150px','opacity':'0'},0)
	})

	$('.navBg').hide()

	$('.buy').mouseenter(function(){
		$('.navBg').hide()
		$('.navBg01').show()
		$('.navBg01 a').animate({'top':'0','bottom':'0','opacity':'1'},300)
	})

	$('.news').mouseenter(function(){
		$('.navBg').hide()
		$('.navBg02').show()
		$('.navBg02 a').animate({'top':'0','bottom':'0','opacity':'1'},300)
	})

	$('.forum').mouseenter(function(){
		$('.navBg').hide()
		$('.navBg03').show()
		$('.navBg03 a').animate({'top':'0','bottom':'0','opacity':'1'},300)
	})

	$('.tool').mouseenter(function(){
		$('.navBg').hide()
		$('.navBg04').show()
		$('.navBg04 a').animate({'top':'0','bottom':'0','opacity':'1'},300)
	})

	$('.favorites').mouseenter(function(){
		$('.navBg').hide()
		$('.navBg05').show()
		$('.navBg05 a').animate({'top':'0','bottom':'0','opacity':'1'},300)
	})


	
/*滑动页面*/

$.fn.hoverDelay = function(options){ 
var defaults = { 
hoverDuring: 200, 
outDuring: 200, 
hoverEvent: function(){ 
$.noop(); 
}, 
outEvent: function(){ 
$.noop(); 
} 
}; 
var sets = $.extend(defaults,options || {}); 
var hoverTimer, outTimer; 
return $(this).each(function(){ 
$(this).hover(function(){ 
clearTimeout(outTimer); 
hoverTimer = setTimeout(sets.hoverEvent, sets.hoverDuring); 
},function(){ 
clearTimeout(hoverTimer); 
outTimer = setTimeout(sets.outEvent, sets.outDuring); 
}); 
}); 
} 



$('.hZongheBtn').hoverDelay({ 
hoverEvent: function(){ 
		$('.hSiteBox').hide()
		$('.hZonghe').show()				
		$(".hNav").removeClass("currentHNav")
		$(".hZongheBtn").addClass("currentHNav")
} 
}); 

$('.hGouwuBtn').hoverDelay({ 
hoverEvent: function(){ 
		$('.hSiteBox').hide()
		$('.hGouwu').show()
		$(".hNav").removeClass("currentHNav")
		$(".hGouwuBtn").addClass("currentHNav")	
} 
}); 

$('.hZixunBtn').hoverDelay({ 
hoverEvent: function(){ 
		$('.hSiteBox').hide()
		$('.hZixun').show()
		$(".hNav").removeClass("currentHNav")
		$(".hZixunBtn").addClass("currentHNav")	
} 
}); 

$('.hShejiaoBtn').hoverDelay({ 
hoverEvent: function(){ 
		$('.hSiteBox').hide()
		$('.hShejiao').show()
		$(".hNav").removeClass("currentHNav")
		$(".hShejiaoBtn").addClass("currentHNav")	
} 
}); 

$('.hYingyinBtn').hoverDelay({ 
hoverEvent: function(){ 
		$('.hSiteBox').hide()
		$('.hYingyin').show()
		$(".hNav").removeClass("currentHNav")
		$(".hYingyinBtn").addClass("currentHNav")	
} 
}); 

$('.hShenghuoBtn').hoverDelay({ 
hoverEvent: function(){ 
		$('.hSiteBox').hide()
		$('.hShenghuo').show()
		$(".hNav").removeClass("currentHNav")
		$(".hShenghuoBtn").addClass("currentHNav")		
} 
}); 

$('.hGongjuBtn').hoverDelay({ 
hoverEvent: function(){ 
		$('.hSiteBox').hide()
		$('.hGongju').show()
		$(".hNav").removeClass("currentHNav")
		$(".hGongjuBtn").addClass("currentHNav")	
} 
}); 

$('.hItsiteBtn').hoverDelay({ 
hoverEvent: function(){ 
		$('.hSiteBox').hide()
		$('.hItsite').show()
		$(".hNav").removeClass("currentHNav")
		$(".hItsiteBtn").addClass("currentHNav")
} 
}); 

$('.hQuzhanBtn').hoverDelay({ 
hoverEvent: function(){ 
		$('.hSiteBox').hide()
		$('.hQuzhan').show()
		$(".hNav").removeClass("currentHNav")
		$(".hQuzhanBtn").addClass("currentHNav")	
} 
}); 


$('.promptBtn').hoverDelay({ 
hoverEvent: function(){ 
		$('.promptText').show()
} 
}); 

$('.promptBtn').mouseout(function(){
		$(".promptText").hide()
	})

$('.mSiteBtn').hoverDelay({ 
hoverEvent: function(){ 
		$('.mSiteQrcode').show()
} 
}); 

$('.mSiteBtn').mouseout(function(){
		$(".mSiteQrcode").hide()
	})



})

