$(function(){
	if($("#navuinfo").size() > 0){
		$("#navuinfo .inp_text, #navuinfo .inp_sm").hover(function(){$(this).addClass("inp_text_active")},function(){$(this).removeClass("inp_text_active")})
	}
	
		
	$("#showswitch").hover(
		function(){$(this).addClass("nav_switch_active")},function(){$(this).removeClass("nav_switch_active");}
	)

	$("#quickmenu").hover(function(){$(this).addClass("nav_quicklick_active")},function(){$(this).removeClass("nav_quicklick_active")})

	$("#forumnav dt a").focus(function(){$(this).blur();})
	/*$("#forumnav dl").hover(
		function(){
			$("#forumnav dl").removeClass("active");
			$(this).addClass("active");
		},function(){
			$(this).removeClass("active")
		}).click(function(e){e.stopPropagation();}).find("a").focus(function(){$(this).blur();})
	*/

	if($("#forumnav").size() > 0){$("#showitemnav").navgation({obj:"forumnav"})}
	
	$("#navSearchKey").click(function(){if($(this).val() == "输入关键字，搜我想要的！"){$(this).val("")}})

	$("#searchform input").removeAttr("checked").eq(1).attr("checked","checked");

	$("#searchform .inp_radio input").click(function(){
		$("#searchform .inp_radio").removeClass("inp_radio_active");
		$(this).parent().addClass("inp_radio_active")
	}).focus(function(){$(this).blur();});

	$("#announce .announce_closed").click(function(){
		$("#announce").animate({marginTop:"-30px"},800)
	})

	$("#headernav").hover(function(){
		var navTmp = $(this).find("#nav_tips");
		navTmp.find("div").css("width",navTmp.width()).end().show()
	},function(){$(this).find("#nav_tips").fadeOut()})

	$("body").click(function(){$("#forumnav dl").removeClass("active");})

	$("#closeNavgation").click(function(){$("#galaskin").attr("disabled","disabled");$(this).hide();})

	$("#show_navmsg").hover(function(){
		$(this).addClass("nav_msg_active");
	},function(){
		$(this).removeClass("nav_msg_active");
	})

});

(function($){
	$.fn.navgation = function(options){
		var $this = $(this);
		var $obj = $("#"+ options.obj);
		var tmpHeight = ($obj.height() * (-1));
		var timeout = pause = "";
		if($obj.is(".nav_forum_club")){
			$this.hover(function(){
				if($obj.css("top") < 0 && $obj.css("top") > tmpHeight){return false;}
				$obj.animate({top:"0px"},80,function(){
					clearTimeout(timeout);
					$obj.hover(
						function(){
							pause = true;
							$(this).show()
						},
						function(){
							timeout = setTimeout(
								function(){
									pause = false;
									$obj.animate({top:tmpHeight + "px"},120)
								},200)
						}
					)
				})
			},function(){
				timeout = setTimeout(
					function(){
						if(pause != true){
							$obj.animate({top:tmpHeight + "px"},120)
						}
					},300)
			}).find("a").click(function(){return false;});
		}
	}
})(jQuery);

var dk = {};
	dk.showFooter = function(){
		if(arguments.length  == 0){
			document.write('<div id="bottomInfo"><div class="bottomInfo"> <a href="http://corp.jiaozhou.net/corp/page/intro.html" target="_blank" rel="nofollow">公司简介</a>|<a href=" http://corp.jiaozhou.net/corp/page/news.html" target="_blank" rel="nofollow">公司动态</a>|<a href="http://corp.jiaozhou.net/corp/page/partners.html" target="_blank" rel="nofollow">合作伙伴</a>|<a href="http://corp.jiaozhou.net/corp/page/join.html" target="_blank" rel="nofollow">诚聘英才</a>|<a href="http://corp.jiaozhou.net/corp/page/law.html" target="_blank" rel="nofollow">免责声明</a>|<a href="http://corp.jiaozhou.net/corp/page/contact.html" target="_blank" rel="nofollow">联系我们</a>|<a href="http://www.jiaozhou.net/help.php" target="_blank" rel="nofollow">帮助中心</a>|<a href="http://www.jiaozhou.net/misc/links/more.html" target="_blank">友情链接</a></div>');
			document.write('<div class="bottomcopyright">&copy;2001-2009   <a href="http://www.jiaozhou.net/" target="_blank" rel="nofollow">青岛盛唐网络技术有限公司</a> 版权所有<br />&nbsp;&nbsp;<a href="http://www.miibeian.gov.cn/" target="_blank" rel="nofollow">鲁ICP备06001139号</a> <script language="javascript" type="text/javascript" src="http://js.users.51.la/26865.js"></script></div></div>');
		}else if(arguments[0] == "simple"){
			document.write('<div class="layout foot"><div><a href="http://corp.jiaozhou.net/corp/page/intro.html" title="" target="_blank" rel="nofollow">公司简介</a> | <a href="http://corp.jiaozhou.net/corp/page/news.html" title="" target="_blank" rel="nofollow">公司动态</a> | <a href="http://corp.jiaozhou.net/corp/page/partners.html" title="" target="_blank" rel="nofollow">合作伙伴</a> | <a href="http://corp.jiaozhou.net/corp/page/join.html" title="" target="_blank" rel="nofollow">诚聘英才</a> | <a href="http://corp.jiaozhou.net/corp/page/law.html" title="" target="_blank" rel="nofollow">免责声明</a> | <a href="http://corp.jiaozhou.net/corp/page/contact.html" title="" target="_blank" rel="nofollow">联系我们</a> | <a href="http://www.jiaozhou.net/help.php" title="" target="_blank" rel="nofollow">帮助中心</a> | <a href="http://www.jiaozhou.net/misc/links/more.html" title="" target="_blank">友情链接</a></div><p>&copy;copyright2001-2009 青岛盛唐网络技术有限公司 版权所有  鲁ICP备06001139 <script language="javascript" type="text/javascript" src="http://js.users.51.la/26865.js"></script></p></div>');
		}
	}


