function getChildLocation(L,J,K,F,M,B){var E=30;var I=parseInt(K+"");var D=parseInt(F+"");var C=parseInt(M+"");var A=parseInt(B+"");var H=parseInt((I-(C+10))/2);H=H+parseInt(L+"");var G=parseInt((D-(A+E))/2);G=G+parseInt(J+"");topLeft=parseInt(H+"");topRight=parseInt(G+"");return"screenX="+topLeft+",screenY="+topRight+",left="+topLeft+",top="+topRight}function getScreenXYParamString(A,B){return getChildLocation(0,0,window.screen.width,window.screen.height,A,B)}function round(C,B){C=C-0;B=B||2;var A=Math.pow(10,B);C=Math.round(C*A)/A;C+=Math.pow(10,-(B+1));C+="";return B==0?C.substring(0,C.indexOf(".")):C.substring(0,C.indexOf(".")+B+1)}function getScreenXYParamsStringWithOffset(B,G){var E=30;var C=781;var D=537;var A=round((window.screen.width-C)/2,0);var F=round((window.screen.height-(D+E))/2,0);topLeft=parseInt(A+"");topRight=parseInt(F+"");topLeft=topLeft+B;topRight=topRight+G;return"screenX="+topLeft+",screenY="+topRight+",left="+topLeft+",top="+topRight}function getDateString(){var A=new Date();return A.getHours()+""+A.getMinutes()+""+A.getSeconds()+""+A.getMilliseconds()}function isRefresh(A){if(window.event){keyNum=A.keyCode}else{if(A.which){keyNum=A.which}}if(keyNum==116||(A.ctrlKey&&keyNum==82)||(A.metaKey&&keyNum==82)){top.frames[6].document.GameLobby.doJob("31","","");top.reset()}}var currentContainerProps=new WindowProps("","",0,0,false);var pageIndex=0;var pageURLs=new Array();function WindowProps(D,C,E,B,A){this.url=D;this.customWin=C;this.width=E;this.height=B;this.isSameDomain=A}function getPageAt(A){return pageURLs[A]}function getWindowProps(D){var B=false;if(D.indexOf(document.domain)!=-1){B=true}else{B=false}D=D+"";if(D==""){null}var C="";var F=D.split(",");D=F[0];var E,A;if(F.length>=2){if(F[1]=="0"){C="resizable=no,toolbar=no,"}E=460;A=480}if(F.length==4){E=F[2];A=F[3]}if(isIEInNN==null){if(navigator.appName&&navigator.appName.indexOf("Netscape")==-1&&navigator.appVersion.indexOf("Netscape")!=-1){E=E+iDeltaWidth;A=A+iDeltaHeight;isIEInNN="Yes"}else{isIEInNN="No"}}else{if(isIEInNN=="Yes"){E=E+iDeltaWidth;A=A+iDeltaHeight}}return new WindowProps(D,C,E,A,B)};