function startGame(){document.location.href="/gameList.html";}if(typeof GTJ==="undefined"){var GTJ=window.GTJ={};}GTJ.namespace=function(){var b=arguments,g=null,e,c,f;for(e=0;e<b.length;e++){f=(""+b[e]).split(".");g=this;c=f[0]=="GTJ"?1:0;for(;c<f.length;c++){g[f[c]]=g[f[c]]||{};g=g[f[c]];}}return g;};GTJ.getCookie=function(a){if(!navigator.cookieEnabled){return null;}if(typeof a==="string"){var b=new RegExp("(?:; )?"+a+"=([^;]*)");if(b.test(document.cookie)){return RegExp["$1"];}}return null;};GTJ.getLoginInfo=function(){var c=GTJ.getCookie("CUID"),b=GTJ.getCookie("PIC");if(!c&&!b){return null;}if(!c&&/^\w+_(.*)$/.test(b)){c=RegExp["$1"];}var a=c.split("-");a[1]=unescape(a[1]);return a;};GTJ.Loading=function(){};GTJ.Loading.getInstance=function(){if(!GTJ.Loading._instance){GTJ.Loading._instance={};GTJ.Loading._instance.maskPanel=$('<div class="mask_loading"></div>').appendTo(document.body);GTJ.Loading._instance.maskCont=$(['<div class="mask_cont">',"<div>",'<img src="style/images/transparent.gif" class="loading" />','<div class="info">正在提交注册，请稍候</div>',"</div>","</div>"].join("")).appendTo(document.body);}return GTJ.Loading._instance;};GTJ.Loading.show=function(){window.focus();var c=Math.max(document.documentElement.scrollWidth||document.body.scrollWidth);var b=Math.max(document.documentElement.scrollHeight||document.body.scrollHeight);var d=Math.max(document.documentElement.scrollTop||document.body.scrollTop);var f=Math.max(document.documentElement.scrollLeft||document.body.scrollLeft);var a=Math.max(document.documentElement.clientHeight||document.body.clientHeight);var e=Math.max(document.documentElement.clientWidth||document.body.clientWidth);GTJ.Loading.getInstance().maskPanel.css({width:c,height:b}).show();GTJ.Loading.getInstance().maskCont.css({left:(e-350)/2+f,top:(a-95)/2+d}).show();$(window).bind("resize",GTJ.Loading.show);return GTJ.Loading;};GTJ.Loading.setMsg=function(a){GTJ.Loading.getInstance().maskCont.find("div.info").html(a||"");};GTJ.Loading.hide=function(){GTJ.Loading.getInstance().maskPanel.hide();GTJ.Loading.getInstance().maskCont.hide();$(window).unbind("resize",GTJ.Loading.show);};GTJ.getParam=function(c){var a=document.location.search,b=new RegExp("^[?&]+"+c+"=([^&]+)");if(a&&b.test(a)){return RegExp["$1"];}return null;};