(function(c){c.fn.bgIframe=c.fn.bgiframe=function(b){if(c.browser.msie&&/6.0/.test(navigator.userAgent)){b=c.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},b||{});var e=function(d){return d&&d.constructor==Number?d+"px":d},f='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+b.src+'"style="display:block;position:absolute;z-index:-1;'+(b.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(b.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":
e(b.top))+";left:"+(b.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":e(b.left))+";width:"+(b.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":e(b.width))+";height:"+(b.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":e(b.height))+';"/>';return this.each(function(){c("> iframe.bgiframe",this).length==0&&this.insertBefore(document.createElement(f),this.firstChild)})}return this}})(jQuery);var is_ie6=!window.XMLHttpRequest;
$.fn.droppy=function(c){c=$.extend({speed:50},c||{});this.each(function(){function b(a){if(a.nodeName.toLowerCase()=="li"){a=$("> ul",a);return a.length?a[0]:null}else return a}function e(a){return a.nodeName.toLowerCase()=="ul"?$(a).parents("li")[0]:a}function f(){var a=b(this);if(a){$.data(a,"cancelHide",false);setTimeout(function(){$.data(a,"cancelHide")||$(a).slideUp(50)},5)}}function d(){var a=b(this);if(a){$.data(a,"cancelHide",true);$(a).css({"z-index":h++}).slideDown(c.speed);if(this.nodeName.toLowerCase()==
"ul"){var g=e(this);$(g).addClass("hover");$("> a",g).addClass("hover")}is_ie6&&$(a).bgiframe()}}var h=5E3;$("ul, li",this).hover(d,f);$("li",this).hover(function(){$(this).addClass("hover");$("> a",this).addClass("hover")},function(){$(this).removeClass("hover");$("> a",this).removeClass("hover")})})};
$().ready(function(){$("#topmenu").droppy();$("ul[class*='subforum']").droppy();$("#topmenu > li").each(function(){$.browser.msie&&parseInt($.browser.version,10)<=7&&$("ul, li",this).css({"text-indent":"-20px"});vMnuCode='<table border="0" cellspacing="1" cellpadding="4" bgcolor="#'+menubg1+'" style="line-height:17px;" width="98px" align="center"><tr bgcolor="#FFFFFF"><td width="14px" background="image/menubg'+cr+'.gif" style="background-color: #'+menubg1+'; background-repeat: no-repeat; line-height:15px; color: #FFFFFF" width="111px" align="center" valign="top"><div style="line-height:17px;">\u6708<br />\u5149<br />\u8ad6<br />\u58c7</div></td><td bgcolor="#'+
menubg+'" nowrap="nowrap">'+$("ul, li",this).html();$(this).find("ul:first").html(vMnuCode).end()});$("ul[class*='subforum'] > li").each(function(){if($.browser.msie&&parseInt($.browser.version,10)<=7)parseInt($.browser.version,10)==6?$("ul, li",this).css({"border-bottom":"1px solid #FFF","text-indent":"-20px"}):$("ul, li",this).css({"text-indent":"-20px"});vMnuCode='<table border="0" cellspacing="1" cellpadding="4" bgcolor="#'+menubg1+'" style="line-height:17px;" width="98px" align="center"><tr bgcolor="#FFFFFF"><td width="14px" background="image/menubg'+
cr+'.gif" style="background-color: #'+menubg1+'; background-repeat: no-repeat; line-height:15px; color: #FFFFFF" width="111px" align="center" valign="top"><div style="line-height:17px;">\u6708<br />\u5149<br />\u8ad6<br />\u58c7</div></td><td bgcolor="#'+menubg+'" nowrap="nowrap">'+$("ul, li",this).html();$(this).find("ul:first").html(vMnuCode).end()})});
