function MM_swapImgRestore(){var i,x,a=document.cv;for(i=0;a&&i<a.length&&(x=a[i])&&x.cu;i++)x.src=x.cu;};function aS(){var d=document;if(d.images){if(!d.cj)d.cj=new Array();var i,j=d.cj.length,a=aS.arguments;for(i=0;i<a.length;i++)if(a[i].indexOf("#")!=0){d.cj[j]=new Image;d.cj[j++].src=a[i];}}};function bK(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=bK(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;};function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.cv=new Array;for(i=0;i<(a.length-2);i+=3)if((x=bK(a[i]))!=null){document.cv[j++]=x;if(!x.cu)x.cu=x.src;x.src=a[i+2];}};var aT="main-container";var bO=0;var bW=0;var F="main-panel";var bX="popup-mask";var af="main-popup-container";var aj="loading-gif";var R=null;var m=null;var l=null;var ad=null;var au=false;var I=0;var v=null;window.onresize=bB;function on_main_load(){aS('/main/menu/hover/movies.gif','/main/menu/hover/search.gif','/main/menu/hover/join.gif','/main/menu/hover/login.gif','/main/menu/hover/logoff.gif','/main/menu/hover/about.gif','/main/menu/hover/help.gif','/frames/home/more_hover.gif');aW();};function bB(){if(aq()){aM();}if(bE()){aB();}if(am()){U();}};function on_click_popup_mask(){aE();K();O();};function aW(){R=document.getElementById(F);m=document.getElementById(bX);l=document.getElementById(af);ad=document.getElementById(aj);};function cG(g,bM,cf){if(g.addEventListener){g.addEventListener(bM,cf,false);return true;}else if(g.attachEvent){return g.attachEvent("on"+bM,cf);}else{return false;}};function ba(g,opacity){g.style.filter="alpha(opacity:"+opacity+")";g.style.MozOpacity=(opacity/100)-.001;g.style.opacity=(opacity/100)-.001;};function ci(at,r,an){g=document.getElementById(at);if(r<an){ba(g,r);r+=10;window.setTimeout("fade_in('"+at+"',"+r+","+an+")",100);}};function cH(at,r,an){g=document.getElementById(at);if(r>an){ba(g,r);r-=10;window.setTimeout("fade_in('"+at+"',"+r+","+an+")",10);}};function ax(at,aJ){var A=document.getElementById(aJ);var g=document.getElementById(at);var cD=bs();var f=ab();var k=aF();var D=bp();var C=be();var left=0;var top=0;if(f>A.offsetHeight){top=(A.offsetHeight-g.offsetHeight)/2;}else{top=D+((f-g.offsetHeight)/2);}if(top<0){top=0;}else if(top+g.offsetHeight>A.offsetHeight){top=A.offsetHeight-g.offsetHeight;}if(k>A.offsetWidth){left=(A.offsetWidth-g.offsetWidth)/2;}else{left=C+((k-g.offsetWidth)/2);}if(left<0){left=0;}else if(left+g.offsetWidth>A.offsetWidth){left=A.offsetWidth-g.offsetWidth;}return{top:top,left:left};};function T(at,aJ,left,top){var g=document.getElementById(at);var A=document.getElementById(aJ);var cq=bi(A)+left;var cx=bq(A)+top;g.style.left=cq+"px";g.style.top=cx+"px";};function L(cy,aA){au=true;v=aA;I=window.setTimeout("bF()",cy);};function O(){if(au){if(I){window.clearTimeout(I);I=0;}if(am){bH();}au=false;}v=null;};function ak(){return au;};function bF(){I=0;if(au){if(v){v();}by();}};function by(){U();ad.style.visibility="visible";};function bH(){T(aj,F,0,0);ad.style.visibility="hidden";};function am(){return ad.style.visibility=="visible";};function U(){var pos=ax(aj,F);T(aj,F,pos.left,pos.top);};function bm(){aB();bP();};function aE(){bk();T(af,F,0,0);};function bE(){return l.style.visibility=="visible";};function bP(){l.style.visibility="visible";};function bk(){l.style.visibility="hidden";};function Q(content){ah(l,content);};function ap(aJ){if(parent){aT=aJ;}else{aT="main-container";}};function ai(left,top){bO=left;bW=top;aB();};function aB(){T(af,aT,bO,bW);};function cw(){return l.offsetWidth;};function cs(){return l.offsetHeight;};function av(){var pos=ax("main-popup-container",F);ap(F);ai(pos.left,pos.top);};function aq(){return m.style.visibility=="visible";};function K(){m.style.height="0";m.style.width="0";m.style.visibility="hidden";};function ac(){aM();ba(m,40);m.style.visibility="visible";};function aM(){var bv=0;var bL=0;var f=ab();var k=aF();bv=(R.offsetHeight>f)?R.offsetHeight:f;bL=(R.offsetWidth>k)?R.offsetWidth:k;m.style.height=bv+"px";m.style.width=bL+"px";}