function Window(){var r=998,n=90001,A=90002,aa;var l=[];l["hasBackground"]=true;l["bottomAlign"]="center";l["autoScroll"]=true;if(Window.arguments.length>0){var T=Window.arguments[0];for(var o in T){l[o]=T[o];}}this.title=l["title"];this.window=l["window"];aa=this.id=this.window;this.hasBackground=l["hasBackground"];this.bottomAlign=l["bottomAlign"];this.autoScroll=l["autoScroll"];this.close=function(P){if(typeof(this.window)!="object")this.window=$(this.window);if(this.window.style.display=="")Windows.j--;var m=(document.documentElement.clientHeight==0)?document.body:document.documentElement;$S($(this.id),"_closeY",parseInt(this.window.style.top)-parseInt(m.scrollTop));$S($(this.id),"_closeX",parseInt(this.window.style.left)-parseInt(m.scrollLeft));this.window.style.display="none";if(Windows.f==this.window)Windows.f=null;if(P==null||typeof(P)=="undefined")P=true;var V=$("WindowBG");if(V){if(this.window.B){if(this.window.B.w){this.window.B.style.zIndex=A;V.style.zIndex=n;}else V.style.zIndex=r;}if(P&&Windows.j<=0){V.style.display="none";V.style.zIndex=r;$("WindowBGIframe").style.width=$("WindowBGIframe").style.height="0px";}}this.window.zIndex=null;this.window.w=null;if(P&&Windows.j<=0){Windows.g=999;d(false);}};this.I=function(tagName,className){if(typeof(this.window)!="object")this.window=$(this.window);var Z=this.window.getElementsByTagName(tagName);for(var i=0;i<Z.length;i++){if(Z[i].className==className)return Z[i];}return null;};this.getButton=function(id){if(typeof(this.window)!="object")this.window=$(this.window);var o=this.window.getElementsByTagName("INPUT");for(var i=0;i<o.length;i++){if(o[i].className=="win"+id)return o[i];}};this.showButton=function(id,b){var o=this.getButton(id);if(o)o.style.visibility=b;};this.update=function(title,body,bottom,K,M,L){if(title)this.title=title;if(body){var U=this.I("SPAN","_WINCenter");if(U)U.getElementsByTagName("DIV")[0].innerHTML=body;}if(bottom){var X=this.I("SPAN","_WINBottom");if(X)X.getElementsByTagName("DIV")[0].innerHTML=bottom;}if(K){var Y=this.window.getElementsByTagName("H2")[0];if(Y){Y=this.I("DIV","winico");Y.style.background="url("+K+") no-repeat";if(M)Y.style.width=M+"px";if(L)Y.style.height=L+"px";}}};this.show=function(width,height,left,top,t,J,Q){if(typeof(this.window)!="object")this.window=$(this.window);if(Q==null||typeof(Q)=="undefined")Q=true;if(Q){if(Windows.f&&Windows.f.zIndex)this.window.style.zIndex=Windows.f.zIndex;if(Windows.f){this.window.B=Windows.f;}}if(Windows.j<=0)d(true);var R=this.window;if(R.style.display!="")Windows.j++;R.style.display="";R.onmousedown=function(){if(R.w)return;e(R);$S(R,"zIndex",R.style.zIndex);;R.style.zIndex=A;};e(R);R.style.zIndex=Windows.g++;$S(R,"zIndex",R.style.zIndex);if(t!=false)var v=R.getElementsByTagName("H2")[0];v.getElementsByTagName("SPAN")[0].innerHTML=this.title;var U=this.I("SPAN","_WINBottom");if(U&&this.bottomAlign)U.getElementsByTagName("DIV")[0].style.textAlign=this.bottomAlign;if(width){R.style.width=width+"px";if(U)U.getElementsByTagName("DIV")[0].style.width=(width-274)+"px";}if(height)R.style.height=height+"px";var m=Body;if(!left)left=parseInt(m.clientWidth/2+m.scrollLeft-R.offsetWidth/2);if(!top)top=parseInt(m.clientHeight/2+m.scrollTop-R.offsetHeight/2);if(!$S(R,"initPosition")){setObjectAutoScroll(this.id,m.scrollLeft,m.scrollTop);R.style.left=left+"px";R.style.top=top+"px";$S(R,"initPosition",true);}else{if($S($(this.id),"_closeX")){R.style.left=m.scrollLeft+parseInt($S($(this.id),"_closeX"))+"px";R.setAttribute("_autoX",m.scrollLeft);}if($S($(this.id),"_closeY")){R.style.top=m.scrollTop+parseInt($S($(this.id),"_closeY"))+"px";R.setAttribute("_autoY",m.scrollTop);}}var O=document.createElement("INPUT");O.type="text";R.appendChild(O);O.focus();R.removeChild(O);var V=$("WindowBG");if(J)this.hasBackground=J;if(V&&this.hasBackground!=false){V.style.display="";V.style.width=(m.clientWidth>m.scrollWidth)?m.clientWidth+"px":m.scrollWidth+"px";V.style.height=(m.clientHeight>m.scrollHeight)?m.clientHeight+"px":m.scrollHeight+"px";if(isIE()){$("WindowBGIframe").style.display="";$("WindowBGIframe").style.width=V.style.width;$("WindowBGIframe").style.height=V.style.height;}}if(Q){if(V)V.style.zIndex=n;this.window.style.zIndex=A;this.window.w=true;}else this.window.w=null;var G=function(){return false};var F=function(){var D=Event.getEvent();if(document.all&&D.button!=1){v.onmouseup();return;}var x=Event.pointerX(D);var y=Event.pointerY(D);var ab=x-$S(R,"x");var ac=y-$S(R,"y");R.style.left=parseInt(R.style.left,10)+ab+"px";R.style.top=parseInt(R.style.top,10)+ac+"px";$S(R,"x",x);$S(R,"y",y);};if(v)v.onmousedown=function(){$S(R,"_drag","1");var D=Event.getEvent();if(Event.element(D).tagName=="A")return;$S(R,"x",Event.pointerX(D));$S(R,"y",Event.pointerY(D));Event.observe(document,"mousemove",F);Event.observe(document,"selectstart",G);};if(v)v.onmouseup=function(){$S(R,"_drag","0");$S(R,"_autoX",parseInt(m.scrollLeft));$S(R,"_autoY",parseInt(m.scrollTop));Event.stopObserving(document,"mousemove",F);Event.stopObserving(document,"selectstart",G);};};function e(o){if(Windows.f&&Windows.f.zIndex)Windows.f.style.zIndex=Windows.f.zIndex;Windows.f=o;};function d(H){if($S($(aa),"_hideSwf")!="1"){window.setTimeout("hideFlash()",400);$S($(aa),"_hideSwf","1");};}};function hideFlash(){var C=document.getElementsByTagName('EMBED');for(var i=0;i<C.length;i++)$S(C[i],"wmode","transparent");};var Windows={f:null,j:0,g:999};
