if(top.frames.length>0)top.location.href=self.location;function Browser()
{if(((parseInt(navigator.appVersion)>=3))&&((navigator.appName.indexOf("Netscape")>=0))||((parseInt(navigator.appVersion)>=4))&&((navigator.appName.indexOf("Microsoft")>=0))||((parseInt(navigator.appVersion)>=4))&&((navigator.appName.indexOf("Opera")>=0)))
{return true;}
else
{return false;}}
var expHours=1;var exp=new Date();exp.setTime(exp.getTime()+(expHours*60*60*1000));function SetCookie(name,value)
{var argv=SetCookie.arguments;var argc=SetCookie.arguments.length;var expires=(argc>2)?argv[2]:null;var path="/";var domain=(argc>4)?argv[4]:null;var secure=(argc>5)?argv[5]:false;document.cookie=name+"="+escape(value)+((expires==null)?"":("; expires="+expires.toGMTString()))+((path==null)?"":("; path="+path))+((domain==null)?"":("; domain="+domain))+((secure==true)?"; secure":"");}
function GetCookie(name)
{var arg=name+"=";var alen=arg.length;var clen=document.cookie.length;var i=0;while(i<clen)
{var j=i+alen;if(document.cookie.substring(i,j)==arg)return GetCookieValue(j);i=document.cookie.indexOf(" ",i)+1;if(i==0)break;}
return null;}
function GetCookieValue(offset)
{var endstr=document.cookie.indexOf(";",offset);if(endstr==-1)endstr=document.cookie.length;return unescape(document.cookie.substring(offset,endstr));}
function DeleteCookie(name)
{var exp=new Date();exp.setTime(exp.getTime()-1);var cval=GetCookie(name);document.cookie=name+"="+cval+"; expires="+exp.toGMTString();}
function FO(n,d)
{var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=FO(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}
function GetWidth()
{var de=document.documentElement;var myWidth=window.innerWidth||self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth;return myWidth;}
function GetHeight()
{var de=document.documentElement;var myHeight=window.innerHeight||self.innerHeight||(de&&de.clientHeight)||document.body.clientHeight;return myHeight;}
function SetContentBorder()
{var myWidth=GetWidth();if(myWidth>=950)
{var myPositionLeft=eval(((myWidth-970)/2)+353)
FO('content-border-top').style.display='block';FO('content-border-bottom').style.display='block';FO('content-border-top').style.left=myPositionLeft+'px';FO('content-border-bottom').style.left=myPositionLeft+'px';}
else
{FO('content-border-top').style.display='none';FO('content-border-bottom').style.display='none';}
return true;}
function CaptchaReload()
{var obj,args=CaptchaReload.arguments;var timestamp=new Date();if((obj=FO(args[0]))!=null)
{obj.src='/images/tools/captcha.png?Cache='+timestamp.getTime();}
return true;}
function Submenu()
{$(" #navi a").removeAttr("title");$(" #navi ul ").css({display:"none"});$(" #navi li").hover(function()
{var thisWidth=$(this).width();var hiddenWidth=$(this).find('ul:first:hidden').width();if(hiddenWidth<thisWidth)setWidth=thisWidth;else setWidth=hiddenWidth;$(this).find('li a').css({width:eval(setWidth-35)});$(this).find('ul:first:hidden').css({visibility:"visible",display:"none",width:setWidth}).show(200);},function()
{$(this).find('ul:first').css({visibility:"hidden"});});}
$(document).ready(function(){Submenu();});