// JavaScript Document

$(document).ready(function(){

/*qq客服*/
if($(".qq").size()){$(".qq").ad({top:200});}

/*设为主页*/
$("#sethomepage a").sethome();

/*当浏览器窗口改变大小时改变body宽度*/
$(window).resize(function(){
	
if(document.documentElement.clientWidth<=1300){$("body").width(1300); }else{ $("body").width("100%");}

});
/*顶部header效果*/


$(".menuul1 li").hover(function(){$(this).find("ul").stop(true,true).slideDown();},function(){$(this).find("ul").stop(true,true).slideUp();});

/*顶部top_menu菜单翻转效果*/
	$("#top_menu li").css("cursor","pointer").hover(
	function() {
		$(this).find("span").stop().animate({marginTop: "-20"}, 250);
	} , function() {
		$(this).find("span").stop().animate({marginTop: "0"}, 250);
	});

$(".menuul2 li").hover(function(){
	//$("#header").css("background","#2D4350");
	$(this).find("ul").stop(true,true).slideDown();
	},function(){
		$(this).find("ul").stop(true,true).slideUp();
	//	$("#header").css("background","#CFB88C");
		});

/*顶部top_menu菜单翻转效果*/
	$("#top_menu li").css("cursor","pointer").hover(
	function() {
		$(this).find("span").stop().animate({marginTop: "-20"}, 250);
	} , function() {
		$(this).find("span").stop().animate({marginTop: "0"}, 250);
	});
	})
	


