l.gl=function(B){var A=l.l[B];return(A?A:"{"+B+"}")};lp.gl=function(B){var A=lp.l[B];return(A?A:"{"+B+"}")};l.tag=function(B){var A=l.l["tags."+B.toLowerCase()];return(A?A:B)};l.stringAppend=function(){var A=(arguments.length>0&&arguments[0]?arguments[0]:"");for(var B=1;B<arguments.length;B++){A=A.replace(new RegExp("{\\u00"+(29+B)+"}","g"),arguments[B])}return A};l.replaceTokens=function(){var A=arguments[0];var G=1;var D=[];if(typeof(arguments[G])=="object"){D=arguments[G];G++}if(arguments.length>G){var F=0;while(G<arguments.length){D[F++]=arguments[G];G++}}var B=false;do{var E=0;A=A.replace(/\{.[^\{\}]*\}/g,H)}while(E>0&&!B);return A;function H(){E++;var I=arguments[0];I=I.substr(1,I.length-2);var M=I.indexOf("?");if(M==-1){return C(I)}else{var N=C(I.substr(0,M));I=I.substr(M+1).split("|");for(var M=0;M<I.length;M++){var K=I[M].indexOf(":");var L=I[M].substr(0,K);if(L==N||L=="default"){return I[M].substr(K+1)}else{L=L.split(",");if(L.length>1){for(var J=0;J<L.length;J++){if(L[J]==N){return I[M].substr(K+1)}}}}}B=true;return arguments[0]}}function C(){switch(arguments[0]){case"gender":return(session.user.gender==2?"f":"m");default:var I=D[arguments[0]];if(!I){B=true;I="{"+arguments[0]+"}"}return I}}};var fe={loaded:{_complete:0,scripts:0,dom:0,messenger:0},USER_TYPE_GUEST:1,USER_TYPE_USER:2,USER_TYPE_PRO:3,USER_TYPE_ADMIN:100,USER_TYPE_SUPERADMIN:101,MODE_WEB:0,MODE_FACEBOOK_APP:1,onLoad:function(){var A=this;if(this.loaded[arguments[0]]==2){return}this.loaded[arguments[0]]=2;if(fe.onLoadCustom){fe.onLoadCustom(arguments[0])}if(this.loaded.scripts&&this.loaded.dom){this.mode=(session.facebookMode?session.facebookMode:this.MODE_WEB);if(this.loaded.messenger===0&&session.messengerWidth){this.loaded.messenger=1;this.insertMessenger()}}if(this.loaded.scripts==2&&this.loaded.dom==2&&this.loaded._complete!=2){this.loaded._complete=2;this.onLoadComplete()}},dom:{init:function(){this.callback=arguments[0];var A=this;if(document.readyState=="complete"){A.doCallback()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",A.doCallback,false);window.addEventListener("load",A.doCallback,false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",A.onLoad);window.attachEvent("onload",A.doCallback)}}},onLoad:function(){var A=fe.dom;if(document.addEventListener){document.removeEventListener("DOMContentLoaded",A.onLoad,false);document.removeEventListener("load",A.doCallback,false);A.doCallback()}else{if(document.attachEvent&&document.readyState=="complete"){document.detachEvent("onreadystatechange",A.onLoad);document.detachEvent("onload",A.doCallback);A.doCallback()}}},doCallback:function(){var A=fe.dom;if(A.callback){A.callback();delete A.callback}}},onUnload:function(){if(this.page&&this.page.onUnload){this.page.onUnload()}},onError:function(){if(typeof(arguments[0])=="string"){var A=["Error loading script","0x80040111","file://","Location.toString"];for(var B=0;B<A.length;B++){if(arguments[0].indexOf(A[B])>-1){return true}}this.infoBar.show("An error occured: "+arguments[0],this.infoBar.STATUS.ERROR,true,5);var C=[];for(var B=0;B<arguments.length;B++){C.push(arguments[B])}geewa.debug.report(global.domain,"Error",C.join("; "));if(fe.pt){fe.pt._trackEvent("error","ajax")}}return true},onHashChange:function(A){var B=this.getIDs("contentSearch");if(A.qt){fe.search.search(unescape(A.qt));if(fe.refreshAds){fe.refreshAds()}}else{if(B[0]&&B[0].style.display!="none"){fe.search.clear();if(fe.refreshAds){fe.refreshAds()}}else{if(this.page&&this.page.onHashChange){this.page.onHashChange(A)}}}},cookieWrite:function(){if(typeof(localStorage)!="undefined"){localStorage.setItem(arguments[0],arguments[1])}else{geewa.cookieWrite(arguments[0],arguments[1])}},cookieRead:function(){if(typeof(localStorage)!="undefined"){return localStorage.getItem(arguments[0])}else{return geewa.cookieRead(arguments[0])}},addStyle:function(C,A){var B=(typeof(C)=="string"?document.getElementById(C):C);if(B&&B.className.indexOf(" "+A)==-1){B.className+=" "+A}},removeStyle:function(aID,aStyle){var e=(typeof(aID)=="string"?document.getElementById(aID):aID);if(e){if(e.className==aStyle){e.className=""}if(e.className.indexOf(" "+aStyle)>-1){e.className=eval("e.className.replace(/ "+aStyle+"/g,'')")}}},timeBefore:function(B){var A=(arguments.length>1?arguments[1]:new Date().valueOf());var C=parseInt((A-B)/1000,10);if(C<60){return geewa.stringAppend(C>1?l.gl("time.secondsAgo"):l.gl("time.secondAgo"),C)}C=parseInt(C/60,10);if(C<60){return geewa.stringAppend(C>1?l.gl("time.minutesAgo"):l.gl("time.minuteAgo"),C)}C=parseInt(C/60,10);if(C<24){return geewa.stringAppend(C>1?l.gl("time.hoursAgo"):l.gl("time.hourAgo"),C)}C=parseInt(C/24,10);if(C<7){return geewa.stringAppend(C>1?l.gl("time.daysAgo"):l.gl("time.dayAgo"),C)}if(C<30){C=parseInt(C/7,10);return geewa.stringAppend(C>1?l.gl("time.weeksAgo"):l.gl("time.weekAgo"),C)}if(C<365){C=parseInt(C/30,10);return geewa.stringAppend(C>1?l.gl("time.monthsAgo"):l.gl("time.monthAgo"),C)}C=parseInt(C/365,10);return geewa.stringAppend(C>1?l.gl("time.yearsAgo"):l.gl("time.yearAgo"),C)},dateFormat:function(H){var F=H;if(typeof(F)!="date"){F=new Date(H)}var E=[];var D=(arguments.length>1?arguments[1]:"time");D=D.split(",");for(var C=0;C<D.length;C++){switch(D[C]){case"day":var B=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"];E.push(B[F.getDay()]);break;case"date":var G=[F.getDate(),F.getMonth()+1,F.getFullYear()];E.push((G[0]<10?"0":"")+G[0]+"."+(G[1]<10?"0":"")+G[1]+"."+G[2]);break;case"time":var A=F.getMinutes();E.push(F.getHours()+(A<10?":0":":")+A);break}}return E.join(" ")},tryValue:function(){try{var A=arguments[0];var D=arguments[1].split(".");for(var B=0;B<D.length;B++){A=A[D[B]]}if((A||A===0)&&typeof(A)!="undefined"){return A}}catch(C){}return arguments.length<3?null:arguments[2]},getHash:function(){var B=document.location.href;var A=B.indexOf("#");return(A==-1?null:B.substring(A+1))},getDomain:function(C){var E=(C?C:"");var B=E.indexOf("//");if(B>-1){E=E.substr(B+2)}B=E.indexOf("/");if(B>-1){E=E.substr(0,B)}var D=E.split(".");var A="";for(B=D.length-1;B>=0;B--){A=D[B]+"."+A;if(D[B].length>3){break}}if(A.substring(A.length-1)=="."){A=A.substring(0,A.length-1)}return A},numFormat:function(C){var A=String(C).split(".");var B=/(\d+)(\d{3})/;while(B.test(A[0])){A[0]=A[0].replace(B,"$1.$2")}return A.join(",")},timeFormat:function(B){var A=B.getMinutes();return B.getHours()+(A<10?":0":":")+A},gameUrl:function(A){return"http://"+location.hostname+"/"+(l.rewrite[A]?l.rewrite[A]:A)},utfText:function(A){var B=[];for(var D=0;D<A.length;D++){var C=A.charCodeAt(D);if(C<128){B.push(String.fromCharCode(C))}else{if((C>127)&&(C<2048)){B.push(String.fromCharCode((C>>6)|192));B.push(String.fromCharCode((C&63)|128))}else{B.push(String.fromCharCode((C>>12)|224));B.push(String.fromCharCode(((C>>6)&63)|128));B.push(String.fromCharCode((C&63)|128))}}}return B.join("")},trimToSpace:function(C,A){if(C.length<A){return C}else{var B=C.lastIndexOf(" ",A);if(B==-1){B=A}return C.substring(0,B)+"&hellip;"}},trimText:function(B,A){if(B.length<A){return B}else{return B.substring(0,A)+"&hellip;"}},optionValue:function(C){var B=document.getElementsByName(C);for(var A=0;A<B.length;A++){if(B[A].checked){return B[A].value}}return null},getIDs:function(){var B=[];for(var A=0;A<arguments.length;A++){B.push(document.getElementById(arguments[A]))}return B},arrayHasValue:function(C,B){for(var A=0;A<C.length;A++){if(C[A]==B){return true}}return false},getIdentity:function(B){if(!this._identity){var A=B;if(navigator.userAgent.indexOf("MSIE")>-1){A+="ie"}else{if(navigator.userAgent.indexOf("Firefox")>-1){A+="ff"}else{if(navigator.userAgent.indexOf("Chrome")>-1){A+="ch"}else{if(navigator.userAgent.indexOf("Opera")>-1){A+="op"}else{if(navigator.userAgent.indexOf("Safari")>-1){A+="sa"}else{A+="xx"}}}}}this._identity=A}return this._identity},flashHTML:function(){var D={};for(var C in arguments[0]){D[C]=arguments[0][C]}if(D.flashvars&&typeof(D.flashvars)=="object"){D.flashvars="params="+escape(geewa.encodeJSON(D.flashvars)).replace(/\+/g,"%2B")}var B=["base","quality","allowscriptaccess","wmode","flashvars"];var A=[null,"high","always",null,null];for(var C=0;C<B.length;C++){if(!D[B[C]]&&A[C]){D[B[C]]=A[C]}}var E=[];if(navigator.userAgent.indexOf("MSIE ")>-1){E.push("<object ");if(D.id){E.push('id="'+D.id+'" ')}E.push('width="'+D.width+'" height="'+D.height+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codeBase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,47,0">');E.push('<param name="movie" value="'+D.url+'"/>');for(var C=0;C<B.length;C++){if(D[B[C]]){E.push('<param name="'+B[C]+'" value="'+D[B[C]]+'"/>')}}E.push("</object>")}else{E.push("<embed");if(D.id){E.push(' id="'+D.id+'"')}E.push(' width="'+D.width+'"');E.push(' height="'+D.height+'"');E.push(' src="'+D.url+'"');for(var C=0;C<B.length;C++){if(D[B[C]]){E.push(" "+B[C]+'="'+D[B[C]]+'"')}}E.push(' type="application/x-shockwave-flash"');E.push(' pluginspage="http://www.macromedia.com/go/getflashplayer"');E.push("/>\n")}return E.join("")},getFlashVersion:function(){var E={major:0,minor:0,rev:0};if(navigator.plugins&&navigator.mimeTypes.length){var A=navigator.plugins["Shockwave Flash"];if(A&&A.description){A=A.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".");E={major:A[0],minor:A[1],rev:A[2]}}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var C=1;var B=4;while(C){try{B++;C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+B);E={major:B,minor:0,rev:0}}catch(D){C=null}}}else{try{var C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(D){try{var C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");E={major:6,minor:0,rev:21};C.AllowScriptAccess="always"}catch(D){if(E.major==6){return E}}try{C=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(D){}}if(C!=null){var A=C.GetVariable("$version").split(" ")[1].split(",");E={major:A[0],minor:A[1],rev:A[2]}}}}return E},getSilverlightVersion:function(){var A="0.0.0";try{if(navigator.userAgent.indexOf("MSIE")>-1){var C=new ActiveXObject("AgControl.AgControl");for(var B=10;B>0;B--){if(C.IsVersionSupported(B+".0.0")){A=B+".0.0";break}}}else{if(navigator&&navigator.plugins){var E=navigator.plugins["Silverlight Plug-In"];A=E.description}}}catch(D){}A=A.replace(/[^\d\.]/g,"").split(".");while(A.length<3){A.push("0")}return{major:parseInt(A[0],10),minor:parseInt(A[1],10),rev:parseInt(A[2],10)}},getUnityVersion:function(){var A="0.0.0";try{if(navigator.userAgent.indexOf("MSIE")>-1){var B=new ActiveXObject("UnityWebPlayer.UnityWebPlayer.1");A=B.GetPluginVersion()}else{if(navigator&&navigator.plugins){var D=navigator.plugins["Unity Player"];A=D.description}}}catch(C){}A=A.replace(/[^\d\.]/g,"").split(".");while(A.length<3){A.push("0")}return{major:parseInt(A[0],10),minor:parseInt(A[1],10),rev:parseInt(A[2],10)}},getFirstFromArray:function(D,C,B){if(D){for(var A=0;A<D.length;A++){if(D[A][C]==B){return D[A]}}}return null},getIndexFromArray:function(D,C,B){if(D){for(var A=0;A<D.length;A++){if(D[A][C]==B){return A}}}return null},removeFirstFromArray:function(D,C,B){if(D){for(var A=0;A<D.length;A++){if(D[A][C]==B){D.splice(A,1);return true}}}return false},fixPageHeight:function(){var E=this.getIDs("contentBody","contentSearch","popupWindow");if(E[0]&&E[1]&&E[2]){var D=(E[1]&&E[1].style.display!="none"?E[1]:E[0]);var B=D.offsetHeight-26;var A=parseInt(D.style.minHeight.replace(/px/g,""),10);if(E[2].style.display=="block"){var C=E[2].offsetHeight+geewa.offsetTop(E[2])-geewa.offsetTop(D)+26;if(C>B){B=C}}if(isNaN(A)||A<B){D.style.minHeight=B+"px";fe.setFrameHeight(document.body.offsetHeight)}}},userLink:function(E){var D=[];var A=geewa.encodeJSON(E);A=A.replace(/"/g,"&quot;");D.push("<span");D.push(' data-user="'+A+'">');var B="";var C="";switch(E.type){case this.USER_TYPE_GUEST:B="guest";break;case this.USER_TYPE_ADMIN:B=(E.gender==2?"f":"m")+"admin";break;default:B=(E.gender==2?"f":"m")+(E.rank?(E.rank+1):1);C=l.gl("ranks."+B);break}if(E.type==this.USER_TYPE_PRO){C=l.gl("ranks."+(E.gender==2?"f":"m")+"pro")+" - "+C;D.push('<span class="user-type pro" title="'+C+'">')}if(arguments.length==1){D.push('<a href="javascript:void(0);" onclick="fe.user.show(this,event);" class="user-type '+B+'" title="'+C+'">')}else{D.push('<span class="user-type '+B+'" title="'+C+'">')}D.push(E.nick);if(arguments.length==1){D.push("</a>")}else{D.push("</span>")}if(E.type==this.USER_TYPE_PRO){D.push("</span>")}D.push("</span>");return D.join("")},payment:{script:[],show:function(){if(session.user.type==fe.USER_TYPE_GUEST&&arguments[0]!="machinarium"){fe.showRegistrationRequired();return}if(fe.popup.active){fe.popup.close()}this.type=arguments[0];this.title=arguments.length>1&&arguments[1]?arguments[1]:null;this.callback=arguments.length>2&&arguments[2]?arguments[2]:null;if(this.script.length==0){this.script[0]=this.insertScript("/js/"+(global.obfuscated?"":"src/")+"payment.js?"+global.cacheKey)}else{this.onLoad("payment")}if(fe.pt){fe.pt._trackEvent("payment",this.type)}},onLoad:function(){switch(arguments[0]){case"payment":if(this.script[1]){document.body.removeChild(this.script[1])}this.script[1]=this.insertScript("/t/"+global.theme+"/payment/"+this.type+".js?"+global.cacheKey);break;default:this._show();break}},_show:function(){var B={};var C=[];payment.init();if(this.title){B.title=this.title}C.push('<div class="secure-payment" onmouseover="fe.bubble.show(this, l.gl(\'bubble.payment.securePayment\'), \'bubble-green\');" onmouseout="fe.bubble.close(this);"><div>'+l.gl("payment.all.securePayment")+"</div></div>");C.push('<div style="width:650px;">');C.push(payment.getHTML());C.push("</div>");B.body=C.join("");var A=this;B.onClose=function(){A.onClose.apply(A,arguments)};fe.popup.show(B);payment.onHTML()},onClose:function(){if(this.script[1]){document.body.removeChild(this.script[1]);this.script.splice(1,1)}if(this.callback){this.callback()}},insertScript:function(B){var A=document.createElement("script");A.src=B;A.type="text/javascript";document.body.appendChild(A);return A}},user:{show:function(){var e=document.getElementById("mainGame");if(e.style.display=="block"){return}if(fe.tryValue(arguments[0],"userID")){var user=arguments[0]}else{e=arguments[0].parentNode;var i=0;while(true){var x=e.getAttribute("data-user");if(x||i>2){break}e=e.parentNode;i++}var user=x?eval("("+x+")"):null}if(fe.popup.active){fe.popup.close()}if((arguments.length<2||arguments[1]!="messenger")&&session.messengerWidth>0){geewa.messenger.call("showUserProfileByID",user.userID);return}if(session.user.userID==user.userID&&session.user.type==fe.USER_TYPE_GUEST){fe.showRegistrationRequired();return}var o=[];o.push('<div style="width:650px;min-height:422px;">');if(fe.page&&fe.page.getUserData){o.push('<div class="tabs-nav"><ul class="reset clearfix">');o.push('<li id="userLink1"><a href="javascript:void(0);" onclick="fe.user.getPage(1);"><span>'+l.gl("player.infoPopup.tabPlayer")+"</span></a></li>");o.push('<li id="userLink2"><a href="javascript:void(0);" onclick="fe.user.getPage(2);"><span>'+l.gl("player.infoPopup.tabGame")+"</span></a></li>");o.push("</ul></div>")}o.push('<div id="userPage1" class="user-body" style="display:none;"></div>');o.push('<div id="userPage2" class="user-body" style="display:none;"></div>');o.push("</div>");var p={};p.title=user.nick;p.body=o.join("");if(fe.mode==fe.MODE_FACEBOOK_APP&&arguments.length>1){p.yPos=arguments[1].clientY}p.onClose=function(){delete fe.user.data;if(geewa.messenger){geewa.messenger.call("hideUserProfile")}};fe.popup.show(p);this.data=user;this.getPage(fe.page&&fe.page.getUserData?2:1)},close:function(){if(this.data){fe.popup.close()}},getPage:function(B){this.page=B;for(var C=1;C<3;C++){var D=fe.getIDs("userLink"+C,"userPage"+C);if(D[0]){D[0].className=(C==B?"active":"")}D[1].style.display=(C==B?"block":"none")}switch(arguments[0]){case 1:var A=this;geewa.server.user.call(function(){A.onData.apply(A,arguments)},"User.GetUserByID",this.data.userID);break;case 2:fe.page.getUserData(this.data.userID,"userPage2");break}},onData:function(B,E){var H=[];var D=E.result.user;H.push('<div class="avatar-holder"><img src="'+D.avatar+'" alt=""/></div>');H.push('<div class="flag-holder">'+fe.getFlag(D)+"</div>");H.push('<table style="width: 500px;">');H.push("<tr><th>"+l.gl("player.infoPopup.nick")+":</th><td>"+fe.userLink(D,true)+"</td></tr>");if(D.name||D.surname){H.push("<tr><th>"+l.gl("player.infoPopup.name")+":</th><td>"+(D.name?D.name:"")+" "+(D.surname?D.surname:"")+"</td></tr>")}if(D.birthdate&&D.birthdate.length>3){var G=D.birthdate.length==8?new Date(parseInt(D.birthdate.substr(0,4),10),parseInt(D.birthdate.substr(4,2),10)-1,parseInt(D.birthdate.substr(6),10)):new Date(parseInt(D.birthdate.substr(0,4),10),0,1);var C=parseInt((new Date().valueOf()-G.valueOf())/31536000000,10);H.push("<tr><th>"+l.gl("player.infoPopup.age")+":</th><td>"+C+"</td></tr>")}H.push("<tr><th>"+l.gl("player.infoPopup.gpoints")+':</th><td><span class="gpoints">'+D.gpoints+"</span></td></tr>");H.push("<tr><th>"+l.gl("player.infoPopup.registeredSince")+":</th><td>"+fe.timeBefore(D.createTime)+"</td></tr>");if(D.state.status<=1){H.push("<tr><th>"+l.gl("player.infoPopup.lastActivity")+":</th><td>"+fe.timeBefore(D.accessTime)+"</td></tr>")}else{var A="";switch(D.state.status){case 2:A=l.gl("player.infoPopup.statusAway");break;case 3:A=l.gl("player.infoPopup.statusOnline");break;case 4:A=l.gl("player.infoPopup.statusActivity");break}H.push("<tr><th>"+l.gl("player.infoPopup.status")+":</th><td>"+A+"</td></tr>")}H.push("<tr><th>"+l.gl("player.infoPopup.activeTime")+":</th><td>"+l.replaceTokens(l.gl("global.hours"),Math.round(D.activeTime/3600000))+"</td></tr>");H.push("<tr><th>"+l.gl("player.infoPopup.activeDays")+":</th><td>"+D.activeDays+"</td></tr>");if(D.description){H.push('<tr><th style="vertical-align: top;">'+l.gl("player.infoPopup.description")+":</th><td>"+D.description+"</td></tr>")}if(D.identity.indexOf("geewa:fb-")===0){H.push('<tr><td colspan="2"><a href="http://www.facebook.com/profile.php?id='+D.identity.substr(9)+'" target="_blank" class="share">Go to Facebook profile</a></td></tr>')}H.push("</table>");var F=document.getElementById("userPage1");if(F){F.innerHTML=H.join("")}}},avatar:{imgIndex:navigator.userAgent.indexOf("MSIE")>-1?0:1,onmouseover:function(){if(window.event){var B=window.event.fromElement;if(B==arguments[0]||B==arguments[0].lastChild.firstChild){return}for(var A=0;A<arguments[0].childNodes.length;A++){if(arguments[0].childNodes[A]==B){return}}}this.start(arguments[0])},onmouseout:function(){if(window.event){var B=window.event.toElement;if(B==arguments[0]||B==arguments[0].lastChild.firstChild){return}for(var A=0;A<arguments[0].childNodes.length;A++){if(arguments[0].childNodes[A]==B){return}}}this.destroy()},onClick:function(){var B=(arguments.length>0?arguments[0]:this.element);var A=B.parentNode.getAttribute("data-position");if(A=="owner"){location.href="/players/"+session.user.userID+(fe.mode===fe.MODE_FACEBOOK_APP?"?fb_sig_in_iframe=1&fb_sig_added=1":"")+"#p=avatar"}},start:function(){if(this.element){this.destroy()}var B=document.createElement("div");B.style.position="absolute";B.style.left="-25px";B.style.top="-25px";B.style.zIndex=2;arguments[0].appendChild(B);var A={id:"avatarViewer",url:"http://gc001.geewa.com/flash/club/dev/avatar/viewer/AvatarViewerStandalone.swf?"+geewa.loader.cacheKeys["avatarManager.1"],base:"http://gc001.geewa.com/flash/club/dev/avatar/viewer/",width:150,height:125,wmode:"transparent",flashvars:{avatarUrl:"http://gc001.geewa.com/flash/club/dev/avatar/",avatarCacheKey:geewa.loader.cacheKeys["avatarManager.1"],externalEventListener:"__geewa_avatar_onEvent"}};B.innerHTML=fe.flashHTML(A);this.element=B},destroy:function(){if(!this.element||this._timer){return}this.call("destroy");if(this.element.parentNode){this.element.parentNode.childNodes[this.imgIndex].style.visibility="visible";this.element.parentNode.removeChild(this.element)}delete this.element},call:function(){if(!this.element){return null}try{var A=[];for(var B=1;B<arguments.length;B++){A.push(arguments[B])}return this.element.firstChild[arguments[0]].apply(this.element.firstChild,A)}catch(C){return null}},onEvent:function(B){try{switch(B.eventType){case"init":var A=this.element.parentNode.getAttribute("data-image");this.call("setAvatar",A);break;case"updateComplete":this.call("animate","hello (ch) (omg) (wha)");this.element.parentNode.childNodes[this.imgIndex].style.visibility="hidden";this.playSound();break;case"animationStart":break;case"animationProgress":break;case"animationComplete":break;case"mouseOut":break;case"click":this.onClick();break}}catch(C){}},playSound:function(){if(session.sound===false){return}var B={"default":1,"owner-generic":1,"owner-custom":1,"friend-better":3,"friend-worse":3};var A=this.user();var C=this.element.parentNode.getAttribute("data-position");if(!C){C="default"}else{if(C=="owner"){C+=(A.avatar.indexOf("defaulavatars")>-1?"-generic":"-custom")}}C+="-"+(A.gender===2?"f":"m")+(1+Math.floor(Math.random()*B[C]));this.call("playSound","sound/en/"+C+".mp3")},user:function(){var x=this.element.parentNode.getAttribute("data-user");if(x){return eval("("+x+")")}else{x=this.element.parentNode.getAttribute("data-position");if(x=="owner"){return session.user}else{return null}}},getHTML:function(C){var B=[];var A=geewa.encodeJSON(C);A=A.replace(/"/g,"&quot;");B.push('<div class="avatar"');B.push(' data-user="'+A+'"');B.push(' data-image="'+C.avatar+'"');if(arguments.length>2){B.push(' data-position="'+arguments[2]+'"')}if(C.type==1){B.push('><div style="height: 100%; width: 100%; background: url(http://gc001.geewa.com/flash/club/last/avatar/defaultAvatars/baby.png?a=mxz8kz2u%26v=3) no-repeat center center"></div>')}else{if(C.avatar&&C.avatar.indexOf("fbcdn.net")>-1){B.push('><div style="height: 100%; width: 100%; background: url('+C.avatar+') no-repeat center center" onclick="fe.avatar.onClick(this);"></div>')}else{B.push(' style="position:relative;width:100px;height:100px;');if(arguments.length>1&&arguments[1]){B.push(arguments[1])}if(navigator.userAgent.indexOf("MSIE")>-1){B.push('" onmouseover="fe.avatar.onmouseover(this);" onmouseout="fe.avatar.onmouseout(this);">')}else{B.push('"><div style="position:absolute;width:100px;height:100px;z-index:99;" onmouseover="fe.avatar.onmouseover(this.parentNode);" onmouseout="fe.avatar.onmouseout(this.parentNode);" onclick="fe.avatar.onClick(this);"></div>')}B.push('<div style="position:absolute;width:100px;height:100px;background:#fff url('+C.avatar+') no-repeat -10px -20px;"></div>')}}B.push("</div>");return B.join("")}},popup:{active:false,show:function(){geewa.debug.log("fe","popup.show");var A=fe.getIDs("popupOverlay","popupWindow","popupTitle","popupContent","main","adILayer","popupButtons");if(this.active){this.close()}fe.bubble.close();this.active=true;this.params=arguments[0];A[2].innerHTML=this.params.title;A[3].innerHTML=this.params.body;A[0].style.display="block";A[0].style.height=A[4].scrollHeight+"px";A[1].style.display="block";A[1].style.marginLeft=parseInt(A[1].offsetWidth*-0.5,10)+"px";if(this.params.yPos){var B=parseInt(this.params.yPos-A[1].offsetHeight/2,10);if(B>document.body.offsetHeight-A[1].offsetHeight-300){B=document.body.offsetHeight-A[1].offsetHeight-300}A[1].style.marginTop=(B>0?B:0)+"px"}else{A[1].style.marginTop=parseInt((document.documentElement.scrollTop===0?document.body.scrollTop:document.documentElement.scrollTop)+A[4].scrollTop,10)+"px"}if(A[5]){A[5].style.visibility="hidden"}if(this.params.buttons){A[6].innerHTML=this.params.buttons;A[6].style.display="block"}else{A[6].style.display="none"}if(fe.mode==fe.MODE_FACEBOOK_WEB){fe.fixPageHeight()}},close:function(){this.active=false;var A=fe.getIDs("popupOverlay","popupWindow","popupTitle","popupContent","adILayer","popupButtons");A[3].innerHTML="";A[2].innerHTML="";A[0].style.display="none";A[1].style.display="none";A[5].innerHTML="";A[5].style.display="none";if(A[4]){A[4].style.visibility="visible"}if(this.params){if(this.params.onClose&&(arguments.length===0||!arguments[0])){this.params.onClose()}delete this.params}}},bubble:{WIDTH_MAX:760,init:function(){this.e=fe.getIDs("bubble","bubbleContent","bubbleCorner");return(this.e[0]&&this.e[1]&&this.e[2]&&geewa&&geewa.offsetLeft)},show:function(){if(!this.init()){return}if(this._timer){clearTimeout(this._timer)}if(arguments.length>2&&arguments[2]){this.e[0].className="bubble "+arguments[2]}else{this.e[0].className="bubble bubble-blue"}if(arguments.length>1&&arguments[1]){this.e[1].innerHTML=arguments[1]}var B=arguments[0];if(!B){return}var A=geewa.offsetLeft(B);var C=geewa.offsetTop(B);A+=parseInt((B.offsetWidth-this.e[0].offsetWidth)/2,10);C+=B.offsetHeight;if(A<0){this.e[2].style.left=(this.e[0].offsetWidth/2+A)+"px";A=0}else{if(fe.mode==fe.MODE_FACEBOOK_APP&&A>(this.WIDTH_MAX-this.e[0].offsetWidth)){this.e[2].style.left=(this.e[0].offsetWidth/2+(A-this.WIDTH_MAX+this.e[0].offsetWidth))+"px";A=this.WIDTH_MAX-this.e[0].offsetWidth}else{this.e[2].style.left="50%"}}this.e[0].style.left=A+"px";this.e[0].style.top=C+"px";if(arguments.length>3&&arguments[3]){this._timer=setTimeout(function(){fe.bubble.close()},arguments[3])}},close:function(){if(!this.init()){return}this.e[0].style.left="-1000px";this.e[0].style.top="-1000px"}},infoBar:{STATUS:{INFO:0,LOADING:1,WARNING:2,ERROR:3},show:function(){var F=document.getElementById("infoText");if(!F){return}if(this._timer){clearTimeout(this._timer)}var E=(arguments.length>1?arguments[1]:0);var C;switch(E){case 1:C="loading";break;case 2:C="warning";break;case 3:C="error";break;default:C="info";break}F.className="text status-"+C;F.innerHTML=arguments[0];var D=document.getElementById("infoClose");var B=(arguments.length>2?arguments[2]:E!=1);if(B){D.style.display="block"}else{D.style.display="none"}document.getElementById("info").style.display="block";if(arguments.length>3){var A=this;this._timer=setTimeout(function(){A.close()},arguments[3]*1000)}},close:function(){if(this._timer){clearTimeout(this._timer)}var A=document.getElementById("info");A.style.display="none"}},history:{_lastHash:"",_timer:null,_ieFrame:null,_running:false,init:function(A){this._callback=A;if(navigator.userAgent.indexOf("MSIE")>-1){this._ieFrame=this._createFrame()}},start:function(){this._running=true;this._onTime()},stop:function(){window.clearTimeout(this._timer);this._running=false},add:function(A){if(arguments.length>1){this._lastHash="#"+A;this.hash=this.hashToObject(this._lastHash)}if(this._ieFrame){this._storeHash(A)}else{window.location.hash=A}},_storeHash:function(A){var B=this._ieFrame.contentWindow.document;B.open();B.write("<html><body onload=\"window.parent.fe.history._onFrame('"+A+'\');"><div id="hash">'+A+"</div></body></html>");B.close()},_onFrame:function(B){if(!this._saving){var A=window.location.hash;if(/^#/.test(A)){A=A.substr(1)}if(B!=A){window.location.hash=B}}this._saving=false},_createFrame:function(){var B=document.createElement("iframe");B.width=1;B.height=1;B.frameborder=0;B.style.position="absolute";B.style.left="-5px";B.style.top="-5px";B.frameborder="no";var A=this;document.body.appendChild(B);return B},getHash:function(){var B="";if(this._ieFrame){var C=this._ieFrame.contentWindow.document;if(C){C=C.getElementById("hash");if(C&&C.innerText.length>0){B="#"+C.innerText}}if(window.location.hash!=B){var A=window.location.hash;if(/^#/.test(A)){A=A.substr(1)}this._saving=true;this._storeHash(A);B=window.location.hash}}else{B=window.location.hash}return B},hashToObject:function(C){var A=C;if(/^#/.test(A)){A=A.substr(1)}A=A.split("&");for(var B=0;B<A.length;B++){A[B]=A[B].split("=");A[A[B][0]]=A[B][1];delete A[B]}return A},_onTime:function(){if(this._timer){window.clearTimeout(this._timer)}var B=this.getHash();if(!this._saving){if(B!=this._lastHash){if(this._ieFrame){var C=document.title.indexOf("#");if(C>-1){document.title=document.title.substr(0,C)}}this.hash=this.hashToObject(B);this._callback(this.hash)}this._lastHash=window.location.hash}var A=this;this._timer=window.setTimeout(function(){A._onTime()},300)}},search:{textInputID:"searchText",textInput:null,lastSearched:null,lastHash:"#",hasFocus:false,SEARCH_COUNT:20,sort:6,page:0,init:function(){var A=this;this.textInput=document.getElementById(this.textInputID);this.lastSearched="";this._searchText=this.textInput.value;this._fontColor="#617375";this.textInput.onkeyup=function(){A._keyUp.apply(A,arguments)};this.textInput.onfocus=function(){A._onFocus.apply(A,arguments)};this.textInput.onblur=function(){A._onLostFocus.apply(A,arguments)};this.setDefaultTag()},specialCommands:function(){if(!/^#/.test(this.textInput.value)){return}var A=this.textInput.value.toLowerCase().substring(1);switch(A){case"debug":geewa.debug.start();break;case"edit":if(fe.page.id=="game"&&fe.page.data&&fe.page.data.gameID){window.open("/admin/members.aspx?redirect=game-edit&gid="+fe.page.data.gameID,"_blank")}break;case"list":window.open("/games/gameList.aspx","_blank");break;case"clear cache":geewa.server.ps.call("Game.ClearCache");alert("Game cache was cleared!");break;case"restart":fe.ls.call("restart");break;case"admin":window.open("http://spreadsheets.google.com/a/geewa.com/ccc?key=rSQ77Bhug4y9IXg9YemOJ5w","_blank");break;case"bugs":window.open("http://bugzilla.geewa.com","_blank");break;case"clr":fe.ls.call("clearCache");break}fe.history.add(this.lastHash)},_onFocus:function(){if(this.textInput.value==this._searchText){this.textInput.value="";this.textInput.style.color="#000"}this.textInput.select();this.hasFocus=true},_onLostFocus:function(){this.clearValue();this.hasFocus=false},clearValue:function(){if(this.textInput.value==""||(arguments.length>0&&arguments[0])){this.textInput.value=this._searchText;this.textInput.style.color=this._fontColor}},_keyUp:function(B){if(!this.textInput){return}var A=(B?B:window.event).keyCode;if(A==13&&/^#/.test(this.textInput.value)){this.specialCommands()}else{if(this.lastSearched!=this.textInput.value){this._getData(this.textInput.value)}}},_getData:function(A){if(this.timer){window.clearTimeout(this.timer)}if(A==""){fe.history.add(this.lastHash)}else{if(A!=""&&!/^#/.test(A)){this.timer=window.setTimeout(function(){fe.search.getData(A)},250)}}},getData:function(D){var E={};var B=D.split(" ");for(var C=0;C<B.length;C++){if(/^[dt]:\S/.test(B[C])){var A=B[C].substring(0,1);switch(A){case"d":if(!E.developer){E.developer=B[C].substring(2)}break;case"t":if(!E.tag){E.tag=B[C].substring(2)}break}}else{if(B[C].length>0){if(!E.text){E.text=B[C]}else{E.text+=" "+B[C]}}}}this.sort=(E.tag&&E.tag!="live"&&E.tag!="highscore"&&E.tag!="multiplayer")?3:6;this.lastSearched=D;this.query=E;this.page=0;this._send();if(fe.pt){if(this.query.text&&this.query.text.length>2){fe.pt._trackPageview("/virtual/search/?query="+this.query.text)}else{if(this.query.tag){fe.pt._trackEvent("click","tag",this.query.tag)}}}},_send:function(){if(this.timer){window.clearTimeout(this.timer)}if(this.query.text){var B=fe.getIDs("searchIco");if(B[0]){B[0].className="search-loader"}this.query.text=this.query.text.replace(/[<>\{\}]/gi,"")}var A=this;geewa.server.ps.call(function(){A.onData.apply(A,arguments)},"Game.Search",((this.query.tag&&this.query.tag=="newest")?null:this.query),l.id,this.sort,this.page,this.SEARCH_COUNT,global.gameGroup)},clear:function(){this.clearValue();var A=fe.getIDs("searchIco","contentSearchGames","contentSearch","contentBody");if(A[0]){A[0].className="sprite search"}if(A[1]){A[1].innerHTML=""}if(A[2]){A[2].style.display="none"}if(A[3]){A[3].style.display="block"}this.setActiveTag();delete this.lastSearched},setActiveTag:function(){var E=document.getElementById("tagMenu");if(E){var B=E.getElementsByTagName("td");if(B.length==0){B=E.getElementsByTagName("li")}for(var C=0;C<B.length;C++){var A=B[C].id.substr(8);var D=false;if(arguments.length==0){D=(this.defaultTag==A)}else{D=(arguments[0]=="t:"+A)}if(D){fe.addStyle(B[C],"active")}else{fe.removeStyle(B[C],"active")}}}},setDefaultTag:function(){var B=document.getElementById("tagMenu");if(B){B=B.getElementsByTagName("td");for(var A=0;A<B.length;A++){if(B[A].className.indexOf("active")>-1){this.defaultTag=B[A].id.substr(8);return}}}},setLastHash:function(){if(document.getElementById("contentBody").style.display!="none"){var A=fe.history._lastHash;if(!A||A==""){A="#"}this.lastHash=A;var B=document.getElementById("searchCloseLink");if(B){B.href=A}}},search:function(A){this.setLastHash();this.clearValue(true);var B=fe.getIDs("searchIco");if(B[0]){B[0].className="sprite search"}this.getData(A);if(this.query.text){this.textInput.value=A}this.setActiveTag(A)},sortBy:function(A){this.sort=A;this.page=0;this._send()},getPage:function(A){this.page=A;this._send()},onData:function(K,D){if(this.query.text){var F=fe.getIDs("searchIco");if(F[0]){F[0].className="sprite search"}}if(!fe.history.hash||fe.history.hash.qt!=this.lastSearched){this.setLastHash();fe.history.add("qt="+escape(this.textInput.value),true)}var C=[];var B=D.result.count;if(B>0){var E=D.result.games}var I;if(this.query.text&&!this.query.tag&&!this.query.developer){I=B+" "+l.gl("gamesList.gamesContaining")+" "+this.query.text}else{if(!this.query.text&&this.query.tag&&!this.query.developer){var H=l.tag(this.query.tag);I=H.substring(0,1).toUpperCase()+H.substring(1)}else{if(!this.query.text&&!this.query.tag&&this.query.developer&&E&&E.length>0&&E[0].developer){var G=E[0].developer;I=B+" "+l.gl("gamesList.gamesFrom")+' <a href="'+G.url+'" target="_blank">'+G.name+"</a>"}else{I=B+" "+l.gl("gamesList.games")}}}C.push(fe.gameList.header(I));if(this.query.tag){var J=l.l["tags.description."+this.query.tag];if(J){C.push(fe.gameList.hotbox(this.query.tag,I,J))}}C.push(fe.gameList.sorting(this.sort,"fe.search.sortBy"));if(fe.gameList.pagingTop){C.push(fe.gameList.pagingTop(this.page,Math.ceil(B/this.SEARCH_COUNT),5,"fe.search.getPage"))}if(B>0){C.push(fe.gameList.body(E,this.sort))}C.push(fe.gameList.paging(this.page,Math.ceil(B/this.SEARCH_COUNT),5,"fe.search.getPage"));var A=fe.getIDs("contentSearchGames","contentBody","contentSearch");A[0].innerHTML=C.join("");A[1].style.display="none";A[2].style.display="block";fe.fixPageHeight()}},getTopUrl:function(){return"http://"+global.domain+"/"}};fe.getFlag=function(B){var D=fe.tryValue(B,"location.alpha3");var C=fe.tryValue(B,"location.country");var A=(D?D:"unknown");var E=(C?C:"");return'<img src="'+session.serverUrls.flags+"w20/"+A+'.png" alt="" title="'+E+'" class="flag" />'};function __geewa_avatar_onEvent(){var A=arguments;window.setTimeout(function(){fe.avatar.onEvent.apply(fe.avatar,A)},0)}fe.dom.init(function(){fe.onLoad("dom")});
lm.gl=function(B){var A=lm.l[B];return(A?A:"{"+B+"}")};fe.onLoadCustom=function(){switch(arguments[0]){case"dom":this.updateUserPanel();break}};fe.onLoadComplete=function(){var C=this;this.winID=new Date().valueOf();fe.cookieWrite("winid",this.winID);geewa.debug.reportLimit=global.reportErrors;session.sound=false;fe.search.SEARCH_COUNT=12;geewa.server.proxyUrl=global.proxyServer;if(!geewa.server.ps){geewa.server.ps=new geewa.server.Server()}geewa.server.ps.serverUrl=global.publicServer;geewa.server.ps.headers={"X-GV":"30300","Content-Type":"application/x-json"};this.search.init();this.pt=_gat._getTracker("UA-6134048-1");if(this.page&&this.page.onLoad){this.page.onLoad()}if(session&&session.sessionID){var E={sessionID:session.sessionID,userServerUrl:session.serverUrls.user,onEventServerReady:function(){C.onEventServerReady.apply(C,arguments)},onError:function(){C.onServerError.apply(C,arguments)},onEventServerCallback:function(){C.onEventServer.apply(C,arguments)},competitionGroupID:global.competitionGroupID,userGroup:global.userGroup,serverProtocolVersion:"30300"};if(!geewa.lite.params.emotion){if(this.mode==fe.MODE_FACEBOOK_APP){E.emotion="#cpt:{gc.messenger.currentPageTexts.in,Live Games at Facebook}"}else{E.emotion="#cpt:{gc.messenger.currentPageTexts.in,"+this.utfText(this.getDomain(location.href))+"}"}}geewa.lite.init(E);if(fe.page&&fe.page.onUserServerReady){fe.page.onUserServerReady()}if(typeof(FB)!="undefined"){FB.XFBML.parse(document.getElementById("fbLike"))}}var B;switch(session.user.type){case this.USER_TYPE_GUEST:B="guest";break;case this.USER_TYPE_USER:B="user";break;case this.USER_TYPE_PRO:B="pro";break}if(B){this.pt._setCustomVar(1,"user-type",B,3)}B=null;switch(session.user.gender){case 1:B="male";break;case 2:B="female";break}if(B){this.pt._setCustomVar(2,"user-gender",B,3)}this.pt._trackPageview();var A=this.getDomain(location.href);if(fe.page&&fe.page.data&&fe.page.data.gameID){geewa.stats.globalHit(A,"games",fe.page.data.gameID)}else{geewa.stats.globalHit(A)}try{B=fe.getSilverlightVersion().major;if(B>0){fe.pt._trackEvent("feature","silverlight",B)}B=fe.getUnityVersion().major;if(B>0){fe.pt._trackEvent("feature","unity3d",B)}}catch(D){}};fe.insertMessenger=function(){geewa.messenger.version=global.flashComponentsVersion;var C={theme:global.messengerTheme,publicServerURL:global.publicServer,language:l.id,userGroup:global.userGroup,chatRoom:{mode:"list",listFilter:{roomKey:"hry"}},userServerURL:session.serverUrls.user,userServerSessionID:session.sessionID,connectToEventServer:false};if(fe.page&&fe.page.getRoom){var B=fe.page.getRoom();if(B){C.chatRoom.id=B.id;if(B.name){C.chatRoom.name=B.name}}}C.identity=this.getIdentity("hry");this.quickGames=[{id:"slovni-fotbal",name:"Slovní fotbal"},{id:"horolezci",name:"Horolezci"},{id:"8-ball-pool",name:"Kulečník"},{id:"kris-kros",name:"Kris Kros"},{id:"gomoku",name:"Piškvorky"}];if(fe.page&&fe.page.id=="game"){C.activityID=fe.page.data.gameID;if(fe.page.data.startModeGame&&fe.page.data.startModeGame.urlType==3){C.currentPageText="{gc.messenger.currentPageTexts.inGame,{gc.games."+fe.page.data.gameID+".info.name}}"}else{C.currentPageText="{gc.messenger.currentPageTexts.inGame,"+this.utfText(fe.page.data.name)+"}"}}else{C.currentPageText="{gc.messenger.currentPageTexts.in,"+this.utfText(this.getDomain(location.href))+"}"}var A=this;geewa.messenger.eventListener=function(){A.onMessenger.apply(A,arguments)};geewa.messenger.insert(C,document.getElementById("holderMessenger"))};fe.changeMessengerWidth=function(){var A=fe.getIDs("messenger");if(A[0]){fe.setMessengerWidth(A[0].offsetWidth==250?500:250)}};fe.switchMessenger=function(){var A=fe.getIDs("messenger");if(A[0]){fe.setMessengerWidth(A[0].offsetWidth>0?0:250)}};fe.setMessengerWidth=function(B){var C=fe.getIDs("main","messenger","mSizeLeft","mSizeRight");if(B===0){if(geewa.messenger.ready){geewa.messenger.call("close")}else{this.onMessenger({eventType:"end"})}}else{if(C[0].style.position!="absolute"){C[0].style.position="absolute";C[0].style.left=0;C[0].style.top=0;C[0].style.bottom=0;C[0].style.height="100%";C[0].style.overflowY="scroll"}var A=C[1].offsetWidth;C[0].style.right=B+"px";C[1].style.display="block";C[1].style.width=B+"px";fe.ls.call("setSession","messengerWidth#int|"+B);session.messengerWidth=B;if(A===0){this.insertMessenger()}}C[2].style.display=(B>250?"none":"block");C[3].style.display=(B>250?"block":"none");if(fe.page.onResize){fe.page.onResize()}};fe.onMessenger=function(){var A=arguments[0];geewa.debug.log("fe-custom","onMessenger:"+A.eventType,geewa.encodeJSON(A));if(fe.page&&fe.page.onMessenger&&fe.page.onMessenger(A)){return}switch(A.eventType){case"connect":this.onLoad("messenger");if(this._serverEventsCache){geewa.messenger.call("handleServerEvents",this._serverEventsCache);delete this._serverEventsCache}break;case"init":case"restart":case"serverEvent":case"disconnect":break;case"userProfileOperation":if(fe.page&&fe.page.getUserData){if(A.operation=="open"){if(A.user.userID!="#externalUser"){fe.user.show(A.user,"messenger")}}else{if(A.operation=="close"){fe.user.close()}}}break;case"ownerProfileClick":fe.user.show(session.user,"messenger");break;case"userAdministration":window.open("/admin/user.aspx?userid="+A.user.userID,"admin");break;case"end":var B=fe.getIDs("main","messenger","holderMessenger");B[0].style.right=0;B[1].style.display="none";fe.ls.call("setSession","messengerWidth#int|0");session.messengerWidth=0;B[2].innerHTML="";if(fe.page.onResize){fe.page.onResize()}break;default:break}};fe.badSession=function(){if(geewa.server.event){geewa.server.event.setState(0)}if(session.messengerWidth>0){fe.setMessengerWidth(0)}if(session.user.type===fe.USER_TYPE_GUEST){document.onclick=function(){location.href=fe.badSessionUrl()}}else{var B=[];B.push('<div style="width:400px;">');B.push("<p>"+l.gl("common.sessionExpireText")+"</p>");B.push("<a style=\"color:gray;cursor:pointer;\" onclick=\"document.getElementById('moreInfo').style.display='block'; this.innerHTML='- "+l.gl("common.moreInfo")+"';\">+ "+l.gl("common.moreInfo")+"</a>");B.push('<div id="moreInfo" style="display: none;">');B.push('<p style="color:gray;">'+arguments[0]);B.push("<br/>Cookie winID = "+fe.cookieRead("winid"));B.push("<br/>Page winID = "+this.winID);B.push("</p>");B.push("</div>");B.push("</div>");var A={};A.title=l.gl("common.sessionExpireTitle");A.body=B.join("");A.buttons='<input id="reconnectButton" type="button" value="'+l.gl("common.reconnect")+'" onclick="location.href=\''+fe.badSessionUrl()+"';\"/>";A.onClose=function(){location.href=fe.badSessionUrl()};fe.popup.show(A)}if(fe.pt){fe.pt._trackEvent("error","bad-session")}};fe.badSessionUrl=function(){var A=location.href;if(A.indexOf("#")>-1){A=A.substring(0,A.indexOf("#"))}return A+(A.indexOf("?")>0?"&":"?")+"sessionBad=1"};fe.newWindow=function(){if(geewa.server.event){geewa.server.event.setState(0)}var A=fe.getIDs("mainGame");if(A[0]&&A[0].style.display=="block"){if(fe.page.game.hide){fe.page.game.hide()}else{return}}if(session.messengerWidth>0){fe.setMessengerWidth(0)}document.onclick=function(){window.location.reload()}};fe.setFrameHeight=function(A){if(typeof(FB)!="undefined"&&fe.mode==fe.MODE_FACEBOOK_APP){FB.Canvas.setSize({width:760,height:(A>767?A:767)})}};fe.onFacebookSession=function(){fe.setFrameHeight(document.body.offsetHeight);if(FB.getSession()){var B={method:"fql.query",query:"SELECT bookmarked, uid FROM permissions WHERE uid="+FB.getSession().uid};var A=this;FB.api(B,function(){A.onFacebookData.apply(A,arguments)})}if(fe.page&&fe.page.onFacebookSession){fe.page.onFacebookSession()}};fe.onFacebookData=function(){try{if(arguments[0][0].bookmarked==1){var A=document.getElementById("linkBookmark");if(A){A.style.display="none"}}}catch(A){}};fe.onEventServerReady=function(B,C){var A=this;this.history.init(function(){A.onHashChange.apply(A,arguments)});this.history.start();var D=fe.getIDs("adSky");if(D[0]){D[0].src="/t/h/ad/cs/sky.htm"}};fe.onServerError=function(A,D,B){var C=fe.cookieRead("winid");if(C!=this.winID){this.newWindow();return}if(B.scope=="server"&&B.type==21){this.badSession("Server Error - "+B.type+" - "+B.message);return}};fe.onEventServer=function(G,F){var D=new Date().valueOf();if(!this._syncTime){this._syncTime=D}else{if((D-this._syncTime)>900000){fe.ls.call("sync");this._syncTime=D}}var J=fe.cookieRead("winid");if(J!=this.winID){this.newWindow();return}if(G.events){for(var I=0;I<G.events.length;I++){var B=G.events[I];switch(B.type){case 2:if(session.messengerWidth===0||session.messengerWidth=="0"){fe.notifications.showMessage(B.data.user,B.data.data);this._serverEventsCache=F.body}if(B.data.type==1&&B.data.data.type=="lobby"){var E=[];var H=B.data.data;E.push('<div style="width:300px;">');var A="http://"+global.domain+"/"+(l.rewrite[H.gameID]?l.rewrite[H.gameID]:H.gameID)+(fe.mode==fe.MODE_FACEBOOK_APP?"?fb_sig_in_iframe=1&fb_sig_added=1":"")+"#p=game&invitation="+H.lobbyID;E.push('<p class="button50-orange" style="text-align: center;"><a href="'+A+'" onclick="fe.popup.close();">'+l.gl("game.playNow")+"</a></p>");E.push("</div>");var C={};C.title=B.data.user.nick+" "+l.gl("game.friends.acceptsYourChallenge");C.body=E.join("");fe.popup.show(C)}break;case 10:geewa.writeHTML("statOnline",fe.numFormat(B.data.root.nodes&&B.data.root.nodes["hry.cz"]?B.data.root.nodes["hry.cz"].count:B.data.root.count));break;case 20:this.notifications.add(B.data);switch(B.data.key){case"paymentGCash":case"paymentPro":case"paymentGanymedeChips":var K=B.data.data;if(K){fe.pt._addTrans(K.transID,K.domain,K.paid,null,null,null,K.channelID,K.country);fe.pt._addItem(K.transID,K.productID,K.productName,K.provider,K.paid,1);fe.pt._trackTrans()}break}break;case 23:if(B.data.user.userID==session.user.userID){session.user=B.data.user;this.updateUserPanel()}break}}if(fe.page&&fe.page.onEventServer){fe.page.onEventServer(G,F)}if(session.messengerWidth>0){geewa.messenger.call("handleServerEvents",F.body)}}};fe.updateUserPanel=function(){try{var C=fe.getIDs("userBox","userLinks","notificationsCount","avatarOwner");var D=[];D.push('<p class="separate clearfix">');if(session.user.type!=fe.USER_TYPE_GUEST){var B="";switch(session.user.type){case this.USER_TYPE_GUEST:B="guest";break;case this.USER_TYPE_ADMIN:B=(session.user.gender==2?"f":"m")+"admin";break;default:B=(session.user.gender==2?"f":"m")+(session.user.rank?(session.user.rank+1):1);break}D.push('<a id="nickOwner" href="/hraci/'+session.user.nick+'" target="_top" class="user-type '+B+'" onmouseover="fe.bubble.show(this, \'Klikni zde pro přechod na stránku tvého profilu.\');" onmouseout="fe.bubble.close(this);">');D.push("<strong"+(session.user.type==fe.USER_TYPE_PRO?' class="user-type pro"':"")+">"+session.user.nick+"</strong>");D.push("</a>")}else{D.push('<span id="nickOwner" class="user-type guest"');D.push('onmouseover="fe.bubble.show(this, \'Pro úpravu svého profilu se musíš přihlásit.\');" onmouseout="fe.bubble.close(this);">');D.push("<strong>"+session.user.nick+"</strong>");D.push("</span>")}D.push("</p>");D.push('<p class="l">');D.push('<span id="gpointsOwner" class="gpoints" onmouseover="fe.bubble.show(this, \''+l.gl("bubble.global.gpoints")+'\');" onmouseout="fe.bubble.close(this);">');D.push(fe.numFormat(fe.tryValue(session,"user.gpoints",0)));D.push("</span>");D.push('<span id="gcashOwner" class="gcash" onmouseover="fe.bubble.show(this, \''+l.gl("bubble.global.gcash")+"');\" onmouseout=\"fe.bubble.close(this);\" onclick=\"fe.bubble.close(this);fe.payment.show('gcash', '"+l.gl("payment.gcash.title")+'\');" style="cursor: pointer;">');D.push(fe.numFormat(fe.tryValue(session,"user.gcash",0)));D.push("</span>");D.push("</p>");if(C[0]){C[0].innerHTML=D.join("")}var D=[];if(session.user.type!=fe.USER_TYPE_GUEST){D.push('<a href="javascript:void(0);" onclick="fe.payment.show(\'pro\', l.gl(\'player.profi.title\'));" class="user-type pro first">'+(session.user.type!=fe.USER_TYPE_PRO?"Stát se":"Prodloužit")+"</a>");D.push('<a href="/rus/logout.aspx?burl='+escape(window.location.href)+'"><span>Odhlásit</span></a>')}else{D.push('<a href="http://registrace.seznam.cz/register.py/stageOneScreen?service=hry" class="first"><span>Registrace</span></a>');D.push('<a href="javascript:void(0);" onclick="window.location = \'/rus/login.aspx?burl='+escape(window.location.href)+"';\"><span>Přihlášení</span></a>");D.push('<a href="http://www.seznam.cz/"><span>Seznam</span></a>')}D.push('<a href="javascript:void(0);" onclick="fe.switchMessenger();"><span>Kecálek</span></a>');if(C[1]){C[1].innerHTML=D.join("")}if(C[2]){C[2].innerHTML=session.notifications.notReaded}if(C[3]){var D=[];if(session.user.type!=fe.USER_TYPE_GUEST){D.push('<div onclick="fe.avatar.onClick(this);" onmouseout="fe.avatar.onmouseout(this.parentNode);" onmouseover="fe.avatar.onmouseover(this.parentNode);" style="position: absolute; top: 0pt; left: 0pt; width: 100px; height: 100px; z-index: 99;"></div>');D.push('<div style="position: absolute; top: 0pt; left: 0pt; width: 100px; height: 100px; background: url('+session.user.avatar+') no-repeat scroll -10px -20px transparent; visibility: visible;"></div>');C[3].setAttribute("data-image",session.user.avatar)}else{D.push('<div style="height: 100%; width: 100%; background: url(http://gc001.geewa.com/flash/club/last/avatar/defaultAvatars/baby.png?a=mxz8kz2u%26v=3) no-repeat scroll center center transparent;"></div>')}C[3].innerHTML=D.join("")}}catch(A){}};fe.showLeaderboard=function(B){var A=this.getIDs("adLeaderboard");if(A[0]&&A[0].style.display!=(B?"block":"none")){A[0].style.display=(B?"block":"none")}};fe.fbGameUrl=function(B){var A=(l.rewrite[B]?l.rewrite[B]:B);if(fe.mode==fe.MODE_FACEBOOK_APP){return global.facebookAppUrl+A}else{if(arguments.length>1&&arguments[1]){return"http://"+global.domain+"/"+A}}return"/"+A};fe.setSound=function(A){session.sound=A;fe.ls.call("setSession","sound#bool|"+(A?"True":"False"));var B=fe.getIDs("linkSoundOn","linkSoundOff");B[0].style.display=A?"inline-block":"none";B[1].style.display=A?"none":"inline-block"};fe.notifications={show:function(){var A=fe.getIDs("notifications","notificationsList");if(A[0]){if(A[0].className!="notification"){A[0].className="notification"}else{if(session.notifications&&session.notifications.list){if(session.notifications.list.length>0){A[1].innerHTML=this.getListHTML()}A[0].className="notification hover";if(session.notifications.notReaded>0){session.notifications.notReaded=0;fe.ls.call("notification",session.notifications.notReaded);fe.updateUserPanel()}}}}},getListHTML:function(){var C=session.notifications.list;var E=[];E.push('<ul class="reset">');for(var B=0;B<C.length;B++){E.push("<li>");E.push('<img src="/img/ico/msg.png" alt="" width="18" height="18"/>');var D=lm.gl("notifications."+C[B].key);for(var A=0;A<C[B].parameters.length;A++){D=D.replace("{"+A+"}",C[B].parameters[A])}E.push(D);E.push("<span>"+fe.timeBefore(C[B].time)+"</span>");E.push("</li>")}E.push("</ul>");return E.join("")},add:function(){session.notifications.list.push(arguments[0]);session.notifications.notReaded++;fe.ls.call("notification",session.notifications.notReaded,geewa.encodeJSON(arguments[0]));fe.updateUserPanel()},showMessage:function(){var A=document.getElementById("message");if(A){var B=[];B.push("<p>"+fe.userLink(arguments[0])+"</p>");B.push("<p>"+this.formatText(arguments[1])+"</p>");B.push('<p class="center"><a href="javascript:void(0);" onclick="fe.notifications.closeMessage();fe.setMessengerWidth(250);">'+l.gl("livegames.answerInMessenger")+"</a></p>");B.push('<a href="javascript:void(0);" onclick="fe.notifications.closeMessage();" class="close">×</a>');A.innerHTML=B.join("");A.style.display="block"}},formatText:function(D){var E=D;var C=E.indexOf("http://"+location.hostname+"/");if(C>-1){var B=E.indexOf(" ",C);if(B==-1){B=E.indexOf("\n",C)}var A=(B==-1?E.substr(C):E.substr(C,B-C));E=E.replace(A,'<a href="'+A+'">'+A+"</a>")}return E},closeMessage:function(){var A=document.getElementById("message");if(A){A.style.display="none";A.innerHTML=""}}};fe.showSuggestGame=function(){if(session.user.type==this.USER_TYPE_GUEST){this.showRegistrationRequired();return}var B=[];B.push('<form action="javascript: fe.suggestGame();">');B.push('<table cellspacing="0" cellpadding="5" border="0" style="width:600px;">');B.push('<tr><td valign="top" nowrap="nowrap">'+l.gl("suggest.gameUrl")+":</td>");B.push('<td><div><input id="formUrl" name="formUrl" value="" size="85" type="text"/></div>');B.push("<span>"+l.gl("suggest.example")+"</span>");B.push(geewa.stringAppend(l.gl("suggest.text"),'<a href="http://www.geewa.cz/copyright-notice-page" target="_blank" class="ext">',"</a>"));B.push("</td></tr>");B.push('<tr><td></td><td align="left"><input id="formSubmit" type="submit" value="'+l.gl("suggest.confirm")+'" name="formSubmit"/><img id="formWaiting" src="/img/geewa/waiting.gif" style="display:none;"/></td></tr>');B.push('<tr><td id="formMessage" colspan="2"></td></tr>');B.push("</table>");B.push("</form>");var A=arguments.length>0?arguments[0]:{};A.title=l.gl("suggest.header");A.body=B.join("");this.popup.show(A)};fe.showWelcomeToPro=function(){var B=[];B.push('<div style="width:400px;"><img style="float: left; margin-right: 10px;" alt="Profesionál" src="/img/user-type/pro.png"/>');B.push("Právě jsi se stal profesionálním hráčem a můžeš si užívat her naplno se všemi možnostmi bez přerušování reklamou.");B.push("Svým předplatným zároveň podporuješ vývoj nových her a provoz herního serveru. Děkujeme a přejeme příjemnou zábavu.");B.push('<div class="break"></div>');B.push('<div style="text-align: center"><a href="javascript:void(0);" onclick="fe.popup.close();">Zavřít</a></div>');B.push("</div>");var A=arguments.length>0?arguments[0]:{};A.title="Vítej mezi profesionály";A.body=B.join("");this.popup.show(A)};fe.showLosePro=function(){var B=[];B.push('<div style="width:425px;"><img style="float: left; margin-right: 10px;" alt="Hráč" src="/img/user-type/player.png"/>');B.push('Pokud ano a chceš nadále hrát hry bez reklam, získat další Géčka a další výhody tak ti stačí:<br/><a href="/hraci/'+session.user.nick+'#p=profi">Prodloužit profesionální účet</a>');B.push('<div class="break"></div>');B.push('<br/><div style="text-align: center"><button onclick="fe.popup.close();">Zavřít</button></div>');B.push("</div>");var A=arguments.length>0?arguments[0]:{};A.title="Užil sis výhod profesionála?";A.body=B.join("");this.popup.show(A)};fe.loginUrl=function(){var B=document.location.href;var A=B.indexOf("?");if(A!=-1){B=B.substr(0,A)}return"/rus/login.aspx?burl="+escape(B)};fe.showRegistrationRequired=function(){var B=[];B.push('<div style="width: 420px;"><img style="float: left; margin-right: 10px;" alt="Hráč" src="/img/user-type/player.png" />');B.push(l.gl("common.regRequired")+":");B.push("<p>"+geewa.stringAppend(l.gl("common.regRequiredAction"),'<a href="'+this.loginUrl()+'">',"</a>",'<a href="http://registrace.seznam.cz/register.py/stageOneScreen?service=hry">',"</a>")+'</p><div class="break"></div></div>');var A=arguments.length>0?arguments[0]:{};A.title=l.gl("common.regRequiredTitle");A.body=B.join("");this.popup.show(A)};fe.showProRequired=function(){var B=[];B.push('<div style="width:400px; text-align: center;"><img src="/img/professional_cs.png" style="float: left;" alt="PRO" />');B.push('<div style="width: 300px; float: left; margin-top: 30px;">');B.push(geewa.stringAppend(l.gl("livegames.proRequired"),'<a href="/help/professional-account">',"</a>"));B.push('</div><div class="break"></div></div>');var A=arguments.length>0?arguments[0]:{};A.title=l.gl("common.proRequiredHeader");A.body=B.join("");A.buttons='<input type="button" value="Staň se profesionálem" onclick="window.location=\'/help/professional-account\';"/><input type="button" value="'+l.gl("game.close")+'" onclick="fe.popup.close();" class="inputaux"/>';this.popup.show(A)};fe.showNoAdmin=function(){var B=[];B.push('<div style="width:400px;">Používáš přezdívku, která je na Hry.cz zakázána, nebo vyhrazena pouze určitým uživatelům (např. "guest" amaterům, "admin" administrátorům)!');B.push("<br/><br/>Pokud chceš pokračovat jako hráč doporučujeme zvolit nekonfliktní přezdívku a");B.push('<br/><a href="http://registrace.seznam.cz/register.py/stageOneScreen?service=hry">Založit si nový účet</a>');B.push('<br/><br/>Pokud jsi nový administrátor tak můžeš požádat některého ze <a href="/help/admins" target="hryhelp">současných administrátorů</a> o aktivaci');B.push("<br/><br/>Děkujeme za pochopení.");B.push('<br/><br/><a href="javascript:void(0);" onclick="fe.popup.close();">Zavřít</a>');B.push("</div>");var A=arguments.length>0?arguments[0]:{};A.title="Zakázaná přezdívka";A.body=B.join("");this.popup.show(A)};fe.showBlockedUser=function(A){var C=[];C.push('<div style="width:400px;">');C.push("<p>Hráčský přístup na Hry.cz ti byl zablokován "+fe.dateFormat(A.created,"date")+" "+fe.dateFormat(A.created,"time")+" administrátorem "+fe.userLink(A.adminUser)+"</p>");C.push("<br/><strong>Důvod blokace:</strong><br/>"+A.reason);if(A.description){C.push("<br/><strong>Popis blokace:</strong><br/>"+A.description)}C.push("<br/><strong>Účet je zablokován do:</strong><br/>"+fe.dateFormat(A.blockedUntil,"date")+" "+fe.dateFormat(A.blockedUntil,"time"));C.push("<p>Hry.cz můžeš do této doby návštěvovat jako nepřihlášený uživatel a tedy bez komunitních možností (hraní ligy, ukládání výsledků, diskuse v kecálkovi apod.).</p>");C.push('<p>Věříme, že tato blokace ti bude dostatečným ponaučením a pro příště se vyvaruješ <a href="/help/ban" target="hryhelp">nevhodného chování, které je popsáno zde</a>.</p>');C.push('<br/><br/><a href="javascript:void(0);" onclick="fe.popup.close();">Zavřít</a>');C.push("</div>");var B={};B.title="Blokovaný účet";B.body=C.join("");this.popup.show(B)};fe.gameList={header:function(A){var B=[];B.push("<h2>"+A+"</h2>");if(arguments.length<2||!arguments[1]){B.push('<div class="close-button"><a href="#" id="searchCloseLink"><img src="/img/game-start/close.png" alt="Close" width="17" height="17" /></a></div>')}return B.join("")},sorting:function(D,B){var A=[{id:6,name:l.gl("gamesList.sortMostPlayers")},{id:5,name:l.gl("gamesList.sortBestRated")},{id:3,name:l.gl("gamesList.sortNewest")},{id:2,name:l.gl("gamesList.sortAZ")}];var F=[];F.push('<div class="sorting">');for(var C=0;C<A.length;C++){var E=(C==A.length-1)?"":" - ";F.push('<a href="javascript:void(0);" onclick="'+B+"("+A[C].id+');"'+(D==A[C].id?' class="active"':"")+">"+A[C].name+"</a>"+E)}F.push("</div>");return F.join("")},body:function(){var G=arguments[0];var D=arguments.length>1?arguments[1]:null;var F=[];var C;F.push("<ul>");for(var B=0;B<G.length;B++){var A=G[B].name.length>34;F.push('<li><div class="game-in"><h3><a href="'+fe.gameUrl(G[B].gameID)+'"');if(A){F.push(' title="'+G[B].name+'"')}F.push(">");if(G[B].languageResources.join(" ").indexOf("splash")!=-1){C=global.gamesServer+G[B].gameID+"/res/"+G[B].language+"/splash58.png"}else{if(G[B].resources.join(" ").indexOf("splash")!=-1){C=global.gamesServer+G[B].gameID+"/res/splash58.png"}else{C="http://www.geewa.com/img/default-game-splashscreen.jpg"}}F.push('<img src="'+C+'" alt="'+G[B].name+'" title="'+G[B].name+'" width="58" height="69"/>');var E=(G[B].premiumUntil&&(G[B].premiumUntil-(new Date().valueOf()))>0);if(E==true){F.push('<img src="/img/pixel.gif" alt="Premium" class="premium-banner" />')}F.push((A?fe.trimText(G[B].name,34):G[B].name)+"</a>");if(G[B].playersOnline&&G[B].playersOnline>0){F.push(' <span class="online" title="'+l.gl("gamesList.nowPlaying")+": "+fe.numFormat(G[B].playersOnline)+" "+l.gl("gamesList.nowPlayingPlayers")+'">'+fe.numFormat(G[B].playersOnline)+"</span>")}F.push("</h3>");switch(D){case 6:F.push('<div class="online">'+l.gl("gamesList.players")+": "+fe.numFormat(G[B].playersPerDay)+" "+l.gl("gamesList.daily")+"</div>");break;case 3:F.push('<div class="online">'+l.gl("gamesList.added")+": "+fe.timeBefore(G[B].createTime)+"</div>");break;case 2:case 5:default:F.push('<div title="'+G[B].userRating+" "+l.gl("gamesList.ratingsFrom")+" 5 ("+G[B].userRatingCount+"x "+l.gl("gamesList.ratedTimes")+')" class="rating-box"><span class="rating-stats" style="width: '+G[B].userRating*14+'px;"></span></div>');break}F.push("<p>");F.push(fe.trimToSpace(G[B].descriptionShort,132));F.push('</p><div class="break"></div></div></li>')}F.push("</ul>");F.push('<div class="break"></div>');return F.join("")},paging:function(H,D,J,C){var B=[];if(D>1){J=(J*2)-1;var I=(J-1)/2;var A=H-I;var E=H+I;if(H<I+1){A=0;E=J-1}if(E>D-1){A-=E-D-1;E=D-1}if(A<0){A=0}B.push('<div class="paging">Stránka: ');if(H>0){B.push('<span class="prev"><a href="javascript:void(0);" onclick="'+C+"("+(H-1)+');">'+l.gl("gamesList.previous")+"</a></span> ")}for(var F=A;F<=E;F++){if(F==H){B.push('<span class="page actual">'+(H+1)+"</span>")}else{B.push('<span class="page"><a href="javascript:void(0);" onclick="'+C+"("+F+');">'+(F+1)+"</a></span>")}}if(H<(D-1)){B.push(' <span class="next"><a href="javascript:void(0);" onclick="'+C+"("+(H+1)+');">'+l.gl("gamesList.next")+"</a></span>")}B.push("</div>")}try{B.push('<div id="adHryRectangleAjax"></div>');var K=this;im.ajaxAd(function(){K.onAd.apply(K,arguments)},"seznam.hry.rectangle","/hrycz")}catch(G){}return B.join("")},onAd:function(){if(arguments[1]=="seznam.hry.rectangle"){var A=document.getElementById("adHryRectangleAjax");if(A){A.innerHTML=arguments[0];if(arguments[0].indexOf("/miss?")==-1){A.className="adFull"}}}},hotbox:function(A,B,C){var D=[];D.push('<div class="tags-desc">');D.push('<div class="screenshot">');D.push('<img alt="'+B+'" src="/img/tags/'+A+'.png"/>');D.push("</div>");D.push('<div class="desc">');D.push(C);D.push("</div>");D.push('<div class="break"></div>');D.push("</div>");return D.join("")}};fe.ls={waiting:[],current:null,xmlObj:null,call:function(){var C={};C.arguments=[];for(var B=0;B<arguments.length;B++){C.arguments.push(arguments[B])}if(arguments[0]=="setSession"){var A=arguments[1].split("|");var B=0;while(B<A.length){if(A[B]&&A[B+1]){session[A[B]]=A[B+1]}B=B+2}}this.waiting.push(C);this._process()},_process:function(){if(this.current||this.waiting.length==0){return false}this.current=this.waiting.shift();if(window.XMLHttpRequest){this.xmlObj=new XMLHttpRequest()}else{if(window.ActiveXObject){this.xmlObj=new ActiveXObject("Microsoft.XMLHTTP")}else{return false}}var A=this;this.xmlObj.onreadystatechange=function(){A._onResponse.apply(A,arguments)};this.xmlObj.open("POST","/proxyLocal/getLocal.aspx",true);var D=[];var B=this.current.arguments;for(var C=0;C<B.length;C++){D.push(B[C])}this.xmlObj.send(D.join("\n"));geewa.debug.log("ajax","local.send",D.join(", "));return true},_onResponse:function(){if(this.xmlObj.readyState!=4){return}if(this.xmlObj.status==200){geewa.debug.log("ajax","local.response",this.xmlObj.responseText);var result=eval("("+this.xmlObj.responseText+")");switch(this.current.arguments[0]){case"restart":alert("Server was restarted!");break}}else{}delete this.current;this._process()}};fe.showSky=function(B){var A=fe.getIDs("adSky");A[0].style.display="block";if(B){A[0].style.width="619px"}};fe.refreshAds=function(A){var B=fe.getIDs("adSky","adRectangle");if(B[0]){B[0].src=B[0].src}if(A===true&&B[1]){B[1].src=B[1].src}};
