There are 8 previous versions of this script.
the source is over 100KB, syntax highlighting in the browser is too slow
// ==UserScript==
// @name City of Ash - CASPER V2.0
// @namespace http://userscripts.org/users/78432
// @description Helps and improves the playing experience of the application City of Ash.
// @version 2.0
// @include http://apps.facebook.com/cityofash/*
// @include http://apps.new.facebook.com/cityofash/*
// @include http://*.facebook.com/common/error.html
// @copyright 2010, Copyrighted - no reproduction/modifications allowed
// ==/UserScript==
/*
Copyright license
Secure World Hosting, LLC, grants to you a license to:
use this material as is;
store this material in your cache memory; and
Secure World Hosting, LLC, does not grant you any other rights in relation to this material. In other words, all other rights are reserved.
For the avoidance of doubt, you must not adapt, edit, change, transform, publish, republish, distribute, redistribute, broadcast, rebroadcast or show or play in public this material in any form or media without Secure World Hosting, LLC, prior written permission.
You may request permission to use the copyright materials by writing to Scripts@SecureWorldHosting.com. No response, for any reason
mechanical, intentional, or otherwise, should be taken as no permission is given.
Enforcement of copyright
Secure World Hosting, LLC, takes the protection of its copyright very seriously.
If Secure World Hosting, LLC, discovers that you have used its copyright materials in contravention of the license above, Secure World Hosting, LLC, may bring legal proceedings against you seeking monetary damages and an injunction to stop you using those materials. You could also be ordered to pay legal costs.
If you become aware of any use of Secure World Hosting, LLC, copyright materials that contravenes or may contravene the license above, please report this by email to Scripts@SecureWorldHosting.com.
*/
var version_scriptNum=60917;var version_timestamp=1248569475912;var c='2.00h';var f=false;var g=false;var h=false;var l=new Object();var m=false;var n=false;var o,q,t,u,w;var z=new Object();String.prototype.z=function(){var v=this;return v.split("").reverse().join("");};if(f){if(SupportVersion!='2.1Casper'){alert("!ylreporp noitcnuf ton yaM !selif troppus gnorW".z());}}else{CASPER_addStyle=GM_addStyle;CASPER_setValue=GM_setValue;CASPER_getValue=GM_getValue;CASPER_openInTab=GM_openInTab;CASPER_registerMenuCommand=GM_registerMenuCommand;CASPER_xmlhttpRequest=GM_xmlhttpRequest;}var A=CASPER_getValue('Enforcers','').split('\x7c');if(A==''){A=''.split('\x7c');}var B;var C;var D;var E;var F;var G;var H=eval(CASPER_getValue('inventory','({})'));var I;Utils=new Object();if(document.getElementsByClassName){Utils.getElementsByClassName=function(bx,by){if(!by)by=document;return by.getElementsByClassName(bx);};}else{Utils.getElementsByClassName=function(bx,by){if(!by)by=document;var bz;var bA=new Array();bz=" ' ,)' ' ,ssalc@ ,' '(tacnoc(sniatnoc[*//.".z()+bx+" ')]";var bB=document.evaluate(bz,by,null,XPathResult.ANY_TYPE,null);while(by=bB.iterateNext()){bA.push(by);}return bA;};}Utils.getElementsByXPath=function(bx,by){if(!by)by=document;var bz=new Array();var bA;bA=document.evaluate(bx,by,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);var bB;while(bB=bA.iterateNext()){bz.push(bB);}return bz;};function J(bx,by,length){var bz="",bA;if(bx=='alnum'){bA="0123456789";}else if(bx=='letters'){bA="ZXWVTSRQPNMKJHGFEDCBAzyxwvtsrqpnmkjhgfdcb".z();}else{bA="ZXWVTSRQPNMKJHGFEDCBAzyxwvtsrqpnmkjhgfdcb9876543210".z();}i=0;while(i<length){var bB=bA.substr(Math.floor(Math.random()*bA.length),1);if(by==false){if(!bz.match(bB)){bz+=bB;i++;}}else{bz+=bB;i++;}}return bz;}function K(bx){if(l[bx])return l[bx];l[bx]=J('letters',true,9);return l[bx];}function L(bx){return l[bx];}function M(bx){for(var i in l){if(l[i]==bx){return i;}}}function N(bx){bx=bx||0;var by="";while(bx>=1000){var bz=bx%1000;if(bz>99)bz=""+bz;else if(bz>9)bz="\x30"+bz;else bz="00"+bz;by="\x2c"+bz+by;bx=Math.floor(bx/1000);}by="\x24"+bx+by;return by;}var O=3;function P(bx){if(bx!=undefined){return bx.replace(/,|\$/g,'');}return 0;}function Q(){}var R=new Object();R.pageWidth=function(){return window.innerWidth!=null?window.innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:document.body!=null?document.body.clientWidth:null;};R.pageHeight=function(){return window.innerHeight!=null?window.innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body!=null?document.body.clientHeight:null;};R.posLeft=function(){return typeof window.pageXOffset!=undefined?window.pageXOffset:document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft?document.body.scrollLeft:0;};R.posTop=function(){return typeof window.pageYOffset!=undefined?window.pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop?document.body.scrollTop:0;};HelpHover=new Object();HelpHover.init=function(){if(!this.div){this.div=document.createElement('div');if(this.div)this.div.id='HelpHScreen';var bx=new Array();bx.length=0;bx.push(" ;neddih :ytilibisiv ;neddih :wolfrevo ;kcolb:yalpsid ;etulosba :noitisop ;xp72:pot ;9999 :xedni-z { neercSHpleH#".z());bx.push(" ;)59=yticapo(ahpla :retlif;59.:yticapo ;xp802:thgir".z());bx.push("};xp05 :thgieh-nim ;xp003 :htdiw ;dlob:thgiew-tnof ;xp2:gniddap ;8995B3#:roloc ;EEEEEE#:roloc-dnuorgkcab ;4B48D6# dilos xp2:redrob".z());var by=document.createElement('style');if(by){by.type='text/css';by.innerHTML=bx.join('');}try{var bz=document.getElementsByTagName('head');if(bz)bz=bz[0];if(bz)if(by)bz.appendChild(by);}catch(e){}var bA=document.getElementsByTagName('body');if(bA)bA=bA[0];if(bA)if(this.div)bA.appendChild(this.div);}return this.div;};HelpHover.show=function(bx,by,e){var bz=HelpHover.init();if(bz){bz.innerHTML=">retnec<>ht<>'noitcapleh'=di rt<>'%001'=htdiw 'elbatpleh'=di elbat<".z()+bx+">dt<>'egassempleh'=di rt<>rt/<>ht/<>rh<>retnec/<".z()+by+">elbat/<>rt/<>dt/<".z();var bA=parseInt(e.clientY)+parseInt(window.pageYOffset)+40;if((bA+parseInt(bz.offsetHeight))>(R.pageHeight()-30)){bA=bA-parseInt(bz.offsetHeight)-80;}if(bA<parseInt(window.pageYOffset)){bA=parseInt(window.pageYOffset);}bz.style.top=bA+'px';bz.style.visibility='visible';}};HelpHover.hide=function(){var bx=document.getElementById('HelpHScreen');if(bx){bx.style.visibility='hidden';}};var S=0;R.posRight=function(){return this.posLeft()+this.pageWidth();};R.posBottom=function(){return this.posTop()+this.pageHeight();};var T=new Object();T=eval(CASPER_getValue('Pics','({})'));function U(bx,by,bz){if(f){var bA=new Image();bA.addEventListener('load',function(){T[bx]=CASPER_convertImgToBase64Format(bA);CASPER_setValue('Pics',T.toSource());},true);bA.src=Utils.getElementsByXPath("\" ,crs@(sniatnoc[gmi//".z()+by+'")]',bz)[0].src;}else{image_src=Utils.getElementsByXPath("\" ,crs@(sniatnoc[gmi//".z()+by+'")]',bz)[0].src;CASPER_xmlhttpRequest({method:'GET',url:image_src,overrideMimeType:"denifed-resu-x=tesrahc ;nialp/txet".z(),onload:function(r){var bB='';var bC=r.responseText;var bD=bC.length;for(var i=0;i<bD;i++)bB+=String.fromCharCode(bC.charCodeAt(i)&0xff);var bE=btoa(bB);var bF;if('GIF'==bC.substr(0,3))bF=",46esab;fig/egami:atad".z();else if('PNG'==bC.substr(1,3))bF=",46esab;gnp/egami:atad".z();else if('JFIF'==bC.substr(6,4))bF=",46esab;gpj/egami:atad".z();else bF=",46esab;huh/egami:atad".z();T[bx]=bF+bE;CASPER_setValue('Pics',T.toSource());}});}}var V=new Object();V.mouseOffset=null;V.iMouseDown=false;V.lMouseState=false;V.dragObject=null;V.curTarget=null;V.CloseImg="==gggJkrE5URJBAAAAwmqGw/5YJ8eMA+J8JjI3Nd/79L6nLu0Xv/XFKae2N3O619IVIXiGyNop/Fi6es7H/W7R8KmJsRi89L8RcfSEjVSbkIcRosu5QIX4HxvwFi21S6GX38IbnnjAZ+N27AEhC6RsbszC4mZiL5XTNLqpfvzlvpro9FoD2xvaINGReYFZNjopOhVMsBsALYF/qBAUefBZ8P97AIvKqxnTfWhjnwx1Sf0BhPD2NtRuX83Gs7k5+KfOXcrGS9GQN/fDNvabINbAjp9G7nn6R0sOxdaEdL4bdqdph2tMqWERrKQ3VR0mAq2GwrATKu8IX3k1pKxvF8DEf7B56dokfJJEW2oS0u1jQmGRIW7EXCf2eF/rAh0JSPWTISpEqF+oRJf2IRz2GVrIRFK8XlQvsT9jrLitNehOs+G+7uUIg7lBwpFCUJ/S1CdYPvrvvbkKy+1pL2pAu3G9uiAVr3qHgZ1DUJpDFC5RpYLrq4Oee7YYq81mejNzdGoopjrRWu3D4vidlXzcmSW7caby8nb2Y429GJFMY0phWLN3UAxrp1qGQccDqFcoUONi2oZalC6Q3+xpIOOAuR5fbBd7+Uyzzng8ip6o0XIqS8Qw3q9Q/d7o4VVH763Srd2aLg4vuHJRg05CFTrUGFcTbUMt8DD3cFInykSKneMrJu/AhyD65LOzXk/51YSN9/J+JvxjTukIFdprru6mx+7Oqd2R3BErO7QOLhaEToyxob/SRJ0zLuLnsf4bMBnHxMxE6WYXoDvZD4DMEKVAvnCxi2XMdHzIuSMsPRej2kCJ8H84j/GMeehMzQOb1tQE7vUJU75KkEEqVrUMjQLoYk6gGxcIO4ls6HBUZmXTeDb8s3huX+utO1sTnE4I8f3rZMAjFPUlKU92bvBF/+774DwCUws8B08u7uE26CIrPae7f9EAYfH5sXe0xqX+HTadNwO/2wD7iFTbueJddS3j/liapiYEIpnEwZsmanraVgjaUs8SqyOlBGhroSqUoL85RKI5qhCNioX2AarIZgP6G6XGwsw6DPg/roHRp6y7mjeckrReFxDkn4NUPbzslCPYmtVxILE0DmeDBkJDMjP5HBw9eoPA0jngbEJ0JFyCrY5YjkgX9hDJ+LLg6Cj/zck3D9HzENIyX7+bIhUtwAw4umhN9pCNp3IFC24H2DHRNPm91RJ6hH8YkXgX1VMUYO40TrjJ7EyUpOhS+A09MiGFfOFzPLrAypmBdYhRBDZ335BXo9oQGrRzYkQBGpQhRKXWtE2xH8LJ4OWz/QP5zZmqDYCBDnnNxHGPtsod0+O5MPggZqzENhDVxKgMGa6L0Zcu5g42SZfD8rLZQ/h3szv6lnI5/IYE0MIuWm8cC+8i5SAV+304gfRF+X5POCGJBDcUY9GE5RiWVqY4kHRDnBb/rg/6vsmqmaqJmTOx0JGhNXeakO5PrHFtDTulk2jGX1heTHpMK3TPNNiv5qO1QP3EAtdjTAB67AHg+FxjMbqp2pNjMZidmFodtO5r2TNSMaidmNoRtw5sHpYc+Me+tMn/7e379ZZ35Vtrtiz+re5F2dHFHssoIggJoAgADGuADFL3YByIDEsZMblYx1I6uVlABEXOygYhxuGAplFuoWQBygCAPCckEB1hVX0+46oMtMTIKFCyoPYUGVQtWV1uESUFERJpNBAAQJifeq2MjLzYHIUVkTuQnbpFGUAUmchdHdm92U0hVR0hBAAAAPRpLnwdBAAgpOAAAYqDAAwUHAAgOgAAAA6DAAECIAAYieAAQTSh0YgAAAAUQY8vwjxCAAB1UQnRAAAAQ6c4srAI0RSNXAAAAAFYqclBAAAYACTAAAAkBAAAgUEhUSNAAAAogGK0wROBVi,46esab;gnp/egami:atad".z();V.MaxiImg="CCmQuSkTFlEAAAAAvrzGyn/5jiwC/v8/++DYRvbafJmNQ5l8O0DbPsW/yc7bLeg0zSU7XPGKeD7AbWT4clvGQsnekzHJfuMAzleYHoHW9ds+EnAbQvnn083dacge1OmtdxCQXzUzTAeXx4SywPDrZiVh7iC7dW9zBjrbJcbr9eYeRHed/Z/NXJ3Zf7OTkHrvqUcCDdxvyKD9eM2DfJH82TvJu5+sPsXuM31n7PIuuze7VHVEaBk4fsv1r8vOq9mkeith8fCuZ1WzlzM7mLgv9fIT3MDlmgTVZ6YP+1ltfNJsau0s4vKSLFto1SF0atCrmIejl7FFYXz0bzRrmMcqbIW1sbuWBmPl+OCxK2AbPM/gEKCyaqMlaLLFWWGyvbmW9vdA2NhYUSC2lnRWSqqf8WdttGvVHqr51IW7wY9zT3DPrKxp6U8LcYmORnBgwGXmystV4Mv0AvcbYPHxeS85rhBiWFRWivuZSMEfHrE8xO7OW6BUNthtnjJN4bHoRMOv59S+DOp3MlsnmxRbpBjJWzcRlM+70MaEp9AnIoM/hpYrvKyduVVJ6i5s8NtIoAnf96RlVhkqZFYiduT15J2amIRR5dkLGzj99U8zbaoInTglRAdpCvScGqDsYOJ3TqydZSo0B6EFS0nq1Xf990VXgVLNfOhHxcbGC/+4EoHXeB15ogcUdkVHTZYEnEUxV6vdMGWZlKej1xYMTSmk80M4NYJnAQnWZqH7Lu0SCxN3SrCnDFmMFdFjwcJGM7DceBxmyPj5P+egFfDPGxphWiw1T0RZTIweKSGTwD70blZisyHLT99ea8H4h7U/szhr9jIopBdsP2z08sVmFORWxMcXjjC/7mxCiy9RzhAxJuMh0JO3iR4zMkbOzepj8Whx3x74In9PWc6KwyyrPe0NareHd0xO7tHa1KDlvyQqpA7lGbTJsvFi5+IrNsIhA+rahZiHZRiqLD/qnEQDuB2SXlZVtDWkUYyob72JyXs/8hoBqdW/GeKIi4qzsXZm+VARrP7rXmVM9zLWH93lZ3SbQ4IokCCbtggmnPSmhG3GSU4DpReVGlL2Ypad1eQDtBmmviyIvdqkfmHzEbj6Zi837kgGLO88pcRmo1It2aTJG0Qn17hneGvatSno1It4io2LIsxZhqC44CndWThTH0ci40nbrk4JXlGLJZyjxaJbqknct8JK/NJZT5/iH2Ni9+5iHZd8T47vj0V1Jq1SjL/UMLbSerlkupy0kbYWlLQrQ9/6kul+ZaB4lGVO3sC9DGnUQeHlk2e5JtRcYdOXUScL0JmZlSeQ8qWKvMZ4Czwz91Xfv82bCxlLvDxqv9rnI++d9Ix6eT/Xzx/S3T/TgC/XiS+HS/WIwgMZxAD6gJsBQQ4IhDNxNe+wJYUjM0iG0Az07n3gd458en39Pzz+n7z8P33sN72G48x5cc/pIbgImp1iM2Uy4yvgEcQ9UAE/oCiIkz1i3jiGZICogqCSYqJC7MMNTZk1ZBrsL7KXzaVAEaCa+VQFF0iKy1yWpqBmU/1xYU2VMtXl1uESUFERJZHBAAQJifeq2MjLzYHIUVkTuQnbpFGUAUmchdHdm92U0hVR0hBAAAAPRpLnwdBAAgpOAAAYqDAAwUHAAgOgAAAA6DAAECIAAYieAAQTSh0YgAAAAUQY8vwjxCAAB1UQnRAAAAQ6c4srAI0RSNXAAAAAFYqclBAAAYACTAAAAkBAAAgUEhUSNAAAAogGK0wROBVi,46esab;gnp/egami:atad".z();V.MiniImg="==gggJkrE5URJBAAAAQH4WfBLkffq+716xHGizUaW30D1M6De+zwHPvvc5w1aWmDzLyvNd7B3q+4EaAuR2+tKgTNGn4CMFdoEIEy9DusUcEfHy9CxNS/IHufufRc2G+h5hbweRGCvTnxSihXzNKRkAd+/PNC6qWN2GDtlAx/d/8y66Ne0n1xc7xYqRyv8wEMBVc7mlxe7PyDfN2gTzd4vfnneMPfQ8uu7fj+bPRd0QSH1laOOR3RdkN8vK48FeM7qwo5PLZEZq4Io70MMz2WwYTpZuuCzOfbXHLYcL42eBk/aibL1QuFNicz1dbk2aYZcZxZ9h/pHW1IA7FxUwI8KKyC9ww3F8jvZ3/y5QqCUqbza2NczPIyFEB5aNSrjnaXC76zxhxzL/KbEX7MwgKK5G3mUaqZlmaihmVA02uxcdOkXmu7Zw1eH2z74OFoXLwdmbEpRIulPuXCjpNNKCVnYpqNTYxaxJzTCyVWkrWYvkYcCvVeE+ZixurP5JYEMhRW88JEMR5GOVhBCTmwBGh9hrBRq8x3K0kZwIl4msz9MWtQcmFxmJvZH/ITY20aq102Rhg3x8OvgVax26KOJ6VUMK6sl5NXDhUBxcDyRyVjYEFxoqNMAyWZN3AjVKd8n9YDNMQf9l0uxtdb5pCNJZStY8tiyPPxo0KZ6usnMljIPL6yIwfsYIxqL2vCvqTf6Njj8P+MiVsl+UraH/+7pvSJiGsX4OuJ/sCwVCOvDLP3yb83zyMWbi1cJlZ6IgLc8nct4qMkfzIl8xJ6JNDZFE5QrmPie27SFR5KAn/M9NRJnkexP96rScHrkp0rGpVaNdpMqrxRtSqkvsiN6UFfl1fCVRGBNOnAakM0LdFnRQN1ubDwYyk25l9mmbnO8DbiNCjhqKnE2QKExwcCqK729E16jFqkZrSK2oA9fGhoqiYWfzJkblOZ1kX3W+7NxStziY2c++/W+s4RMD1c2U9j/JGz2GyaokNxskwrLJmJSiZk4CKc2UBR1XQkTkG+LN1RyKTn2ZwkXWeadR+ZebvmAx+YF9lFOYg4h2vN1h9tokkWqM55bTLbpbqPTLKP3ddSanupYU1Is5KSbtsEmJdkZTo46JKmZGJQjz6Ls3eTKsw/+oJRrvKnNRrE1ZPLXkyKlp1cRQzkqKaid7Vrmqlt8VkMJMlopcJRKdYEqoj7IeYVV1grIupUtHSYcN5NVSSjlE/O/7DHduq2JgH/Mf5+TUlPW+0jkUX/8R+x/7qqHbyb+/1p2n2ChSaoqxFUbjeUbfZGHo08/07lKtPIeHzz45KR81WtbYquB2LqoctJo3Wk0BDndV94DqrqO+tSKedXhg2vIddlpcxU5Z0X+MHSqt36rn+e7p3ao/bvkcZ942TK4WivcXfL5yd9vgrPy+0vi+UtrWy+ZR3TJhrkBDK4pBG4gRDqkRjGcZDGyJkPYInX/xAO5EV+A68Zz5758evv39+ccP/OU/3Q6/voP9UJVadrw2ElwQhIQYCCaigAFVYwoEYFEcisFSQUQUg1FTJoooSoxVJqrOmbU7sjpepTnu1WbZ1Aq2pgGAKupod1iarbW3aGL9qhYc1UQlWl1uESUFERJtJBAAQJifeq2MjLzYHIUVkTuQnbpFGUAUmchdHdm92U0hVR0hBAAAAPRpLnwdBAAgpOAAAYqDAAwUHAAgOgAAAA6DAAECIAAYieAAQTSh0YgAAAAUQY8vwjxCAAB1UQnRAAAAQ6c4srAI0RSNXAAAAAFYqclBAAAYACTAAAAkBAAAgUEhUSNAAAAogGK0wROBVi,46esab;gnp/egami:atad".z();V.mouseCoords=function(bx){return{x:bx.pageX,y:bx.pageY};};V.getMouseOffset=function(bx,by){var bz=this.getPosition(bx);var bA=this.mouseCoords(by);return{x:bA.x-bz.x,y:bA.y-bz.y};};V.getPosition=function(e){var bx=0;var top=0;var by=0;while(e.offsetParent){bx+=e.offsetLeft+(e.currentStyle?(parseInt(e.currentStyle.borderLeftWidth)).NaN0():0);top+=e.offsetTop+(e.currentStyle?(parseInt(e.currentStyle.borderTopWidth)).NaN0():0);e=e.offsetParent;}bx+=e.offsetLeft+(e.currentStyle?(parseInt(e.currentStyle.borderLeftWidth)).NaN0():0);top+=e.offsetTop+(e.currentStyle?(parseInt(e.currentStyle.borderTopWidth)).NaN0():0);return{x:bx,y:top};};var W='false';V.mouseMove=function(bx){var by=bx.target;var bz=V.mouseCoords(bx);if(V.dragObject){var bA=V.dragObject.style.position;V.dragObject.style.position='absolute';V.dragObject.style.top=(bz.y-V.mouseOffset.y)+'px';if(parseInt(V.dragObject.style.top)<0)V.dragObject.style.top=0+'px';if(parseInt(V.dragObject.style.top)>(R.pageHeight()-55))V.dragObject.style.top=(R.pageHeight()-55)+'px';V.dragObject.style.left=(bz.x-V.mouseOffset.x)+'px';if(parseInt(V.dragObject.style.left)<0)V.dragObject.style.left=0+'px';if(parseInt(V.dragObject.style.left)>(R.pageWidth()-55))V.dragObject.style.left=(R.pageWidth()-55)+'px';V.dragObject.style.position=bA;}V.lMouseState=V.iMouseDown;return false;};V.mouseUp=function(bx,by){if(V.dragObject){var bz=V.dragObject.style.left;var bA=V.dragObject.style.top;var bB=bz+"\x7c"+bA;CASPER_setValue(M(V.dragObject.id),bB);}V.dragObject=null;V.iMouseDown=false;};V.mouseDown=function(bx){var by=bx.target;V.iMouseDown=true;};V.addAttributes=function(bx,by){if(by!==undefined){for(var bz=0;bz<by.length;bz++){bx.setAttribute(by[bz][0],by[bz][1]);if(by[bz][0].toUpperCase()=='TITLE')bx.setAttribute('alt',by[bz][1]);}}};V.newImage=function(bx){var by=document.createElement("IMG");this.addAttributes(by,bx);return by;};V.newDiv=function(bx,by){var bz=document.createElement("DIV");bz.innerHTML=bx;this.addAttributes(bz,by);return bz;};V.removeElement=function(bx){if(bx){if(bx.parentNode)bx.parentNode.removeChild(bx);}};V.makeDraggable=function(parent,bx,by){document.addEventListener('mousemove',V.mouseMove,false);document.addEventListener('mousedown',V.mouseDown,false);document.addEventListener('mouseup',function(bz){V.mouseUp(bz,by);},false);if(!parent||!bx)return;bx.addEventListener('mousedown',function(bz){V.dragObject=parent;V.mouseOffset=V.getMouseOffset(parent,bz);return false;},false);};V.createFloatingDiv=function(bx,by,bz,bA,bB,bC,bD,bE,bF){var bG=25;var bH=25;var bI=20;var bJ="#ECECEC";var bK=parseInt(by);if(bK<5)bK=0;if(bK>(R.pageWidth()-55))bK=(R.pageHeight()-55);var bL=parseInt(bz);if(bL<35)bL=35;if(bL>(R.pageHeight()-55))bL=(R.pageHeight()-55);if(bD==true)bH=2*bG;if(bE==false)bH-=bG;var bM=K(bC);var bN=this.newDiv("",[['id',bM],["style",":htdiw ;dexif:noitisop".z()+bx+"px; top:"+bL+"px; "+bA+"\x3a"+bK+";FFFFFF#:roloc-dnuorgkcab ;0C0C0C# xp2 dilos:redrob ;htob:raelc ;8999:xedni-z ;xp1:gniddap ;kcolb:yalpsid ;xp".z()]]);var bO=K('dragDiv_'+bC);var bP=this.newDiv(bB,[['id',bO],["style",":thgieh ;dlob:thgiew-tnof ;retnec:ngila-txet".z()+bI+"px; width:"+(bx-bH)+"px; float:"+"left"+":roloc-dnuorgkcab ;0C0C0C# xp1 dilos:mottob-redrob ;retniop :rosruc ;".z()+bJ+"\x3b"]]);var bQ;if(bD==true){var bR=CASPER_getValue(bC+"_state",'max');bQ=this.newDiv("",[["style","height:"+bI+"px; width:"+bG+"px; float:"+"left"+":roloc-dnuorgkcab ;0C0C0C# xp1 dilos:mottob-redrob ;".z()+bJ+"\x3b"]]);var bS;if(bR=="min"){bS=this.newImage([['src',this.MaxiImg],['style',"retniop:rosruc".z()],['title','Maximize']]);}else{bS=this.newImage([['src',this.MiniImg],['style',"retniop:rosruc".z()],['title','Minimize']]);}if(bM&&bM!="")bS.addEventListener("click",function(){if(bR=="min")bR="max";else bR="min";if(bM&&bM!="")CASPER_setValue(bC+"_state",bR);if(bR=="max"){this.setAttribute('src',V.MiniImg);this.setAttribute('title','Minimize');}else{this.setAttribute('src',V.MaxiImg);this.setAttribute('title','Maximize');}var bV=document.getElementById(bM);bV=bV.firstChild;if(bE){bV=bV.nextSibling.nextSibling.nextSibling;}else{bV=bV.nextSibling.nextSibling;}while(bV){if(bR=="max"){bV.style.display="block";}else{bV.style.display="none";}bV=bV.nextSibling;}},false);bQ.appendChild(bS);}var bT;if(bE){bT=this.newDiv("",[["style","height:"+bI+"px; width:"+bG+"px; float:"+"left"+":roloc-dnuorgkcab ;0C0C0C# xp1 dilos:mottob-redrob ;".z()+bJ+"\x3b"]]);var bU=this.newImage([['src',this.CloseImg],['style',"retniop:rosruc".z()],['title','close']]);if(bM&&bM!=""){bU.addEventListener("click",function(){var bV=document.getElementById(bM);z[bV.id]=false;V.removeElement(bV);},false);}if(bT)bT.appendChild(bU);}if(bF){this.makeDraggable(bN,bP,bA);}bN.appendChild(bP);if(bQ)bN.appendChild(bQ);if(bT)bN.appendChild(bT);document.body.appendChild(bN);return bN;};function X(bx,by){var bz;if(g){bz=0;}else bz=C.loglevel;if(C.logstuff){if(by>=bz){var bA=CASPER_getValue('CasperLog',new Date().getTime()+"snigeB gniggoL:".z()).split('\x7c');bA.push(new Date().getTime()+'\x3a'+bx+" leveL goL( ".z()+by+'\x29');if(bA.length>C.loglength){bA.splice(0,(bA.length-C.loglength));}CASPER_setValue("goLrepleHotuAWM".z(),bA.join('\x7c'));}}}function Y(){for(linker=0;linker<document.links.length;linker++){if(!document.links[linker].href.match("#stop")){document.links[linker].href+='#stop';}}}function Z(bx){return bx.replace(/^\s+/g,'').replace(/\s+$/g,'');}function aa(bx){var by=bx.split('\x2c');var bz=new Array();for(i=0;i<by.length;i){var bA=by[i];by.splice(i,1);if(!in_array_Int(bA,by)){if(!isNaN(parseInt(bA))){bz.push(Z(bA));}}}return bz.join('\x2c');}function ab(bx){if((bx)||(parseInt(CASPER_getValue("lastUpdate","\x30"))+86400000<=(new Date().getTime()))){try{CASPER_xmlhttpRequest({method:"GET",url:"php.noisreV/repsaC/moc.gnitsohdlroweruces.repsac//:ptth".z(),headers:{'Cache-Control':'no-cache'},onload:function(bC){CASPER_setValue("lastUpdate",new Date().getTime()+"");var bD=bC.responseText;if(parseInt(bD.substr(4))>parseInt(version_timestamp)){X("V )MT(REPSAC\" rof elbaliava etadpu na si erehT".z()+c+"?won egap llatsni eht ot og ot ekil uoy dluoW\n\".".z(),2);B.updateavailable=1;B.save();if(bx){if(confirm("V )MT(REPSAC\" rof elbaliava etadpu na si erehT".z()+c+"?won egap llatsni eht ot og ot ekil uoy dluoW\n\".".z())){CASPER_openInTab("lmth.etadpU/repsaC/moc.gnitsohdlroweruces.repsac//:ptth".z());}}}else{X("V )MT(REPSAC\" rof elbaliava si etadpu oN".z()+c+".\"",2);B.updateavailable=0;B.save();if(bx){alert("V )MT(REPSAC\" rof elbaliava si etadpu oN".z()+c+".\"");}}}});}catch(by){X(" :setadpu rof gnikcehc elihw derrucco rorre nA".z()+by,2);if(bx){alert("\n:setadpu rof gnikcehc elihw derrucco rorre nA".z()+by);}else{var bz=document.getElementById(L("etadputpircs".z()));if(bz){bz.innerHTML=" :setadpu rof gnikcehc elihw derrucco rorre nA>retnec<".z()+by+'</center>';}}}}if(B.updateavailable){var bA=document.getElementById(L("etadputpircs".z()));if(bA){var bB=K('update');bA.innerHTML="\"=di a<>retnec<".z()+bB+">retnec/<>rb<>rb<>a/<)bat wen a ni nepo lliw(>rb<?won egap llatsni eht ot og ot ekil uoy dluoW .elbaliava etadpu na si erehT>\"".z();var button=document.getElementById(bB);if(button)button.addEventListener('click',function(){CASPER_openInTab("lmth.etadpU/repsaC/moc.gnitsohdlroweruces.repsac//:ptth".z());B.updateavailable=0;B.save();},false);}}}CASPER_registerMenuCommand("V )MT(REPSAC".z()+c+"kcehC etadpU launaM - ".z(),function(){ab(true);});CASPER_registerMenuCommand("tsiL thgiF teseR".z(),function(){CASPER_setValue('fightlist','');CASPER_setValue("stluseRniWthgiF".z(),'');CASPER_setValue("stluseRtsoLthgiF".z(),'');});function ac(bx,by){Math.floor(Math.random()*(by-bx+1)+bx);}function ad(bx,by){if(B){if(C.randomizer){bx=bx+Math.floor(Math.random()*((by*2)+1))-by;}}if(bx<0)bx=0;return bx;}function ae(){S=isNaN(W);}function af(){for(i in z){if(z[i]==true)return true;}return false;}var ag=false;var ah=document.createEvent('MouseEvents');var ai=new Object(),aj=new Object();aj.start=function(bx,by,bz,bA,bB,bC,bD,bE){bD=bD||0;bE=bE||0;var bF;var span=document.getElementById(L("sutatstpircs".z()));if(span)span.innerHTML=by;span=document.getElementById(L('scripttimer'));var bG=bz;var bH=(bG%60)+' s';bG=Math.floor(bG/60);if(bG){bH=(bG%60)+' m '+bH;bG=Math.floor(bG/60);if(bG)bH=bG+' h '+bH;}if(span)span.innerHTML='in '+bH;if(!bA){bA='none';}if(!bB){bB=false;}var bI='';if(g)bI='(safety)';if(bz<=0){if(af()){if(!ag){if(C.pauseSickness){ag=true;PauseSickness();}}ai[bA]=setTimeout(aj.start,1000,bx,by,bz,bA,bB,bC,bD,bE);}else{var button=document.getElementById(L('Clan'));if(button)button.parentNode.removeChild(button);button=document.getElementById(L('alertSound2'));if(button)button.parentNode.removeChild(button);ag=false;if(typeof bx=='object'){if(Page['homelink']){bF=Page['homelink'];}else{bF=CASPER_getValue('Lhomelink',"/hsafoytic/moc.koobecaf.sppa//:ptth".z());}ai[bA]=setTimeout(aj.start,15000,bF,by+bI,bz,bA,bB,bC,bD,bE);X(by,1);if(bx.click){X("...)KC( ot gnioG;psbn&".z(),0);bx.click();}else{var x=0;var bJ=true;if(bC){for(x;x<bD;x++){setTimeout(bC,(x*bE));}}if(f){setTimeout(function(){X("...)BS( ot gnioG;psbn&".z()+bx.href.replace(/:/g,'{{'),0);CASPER_dispatchMouseEvent(bx,'click',true,bJ,window,1,0,0,0,0,false,false,false,false,0,null);},(bD*bE));}else{function bK(){var bL=document.createEvent('MouseEvents');if(bL){bL.initMouseEvent('click',true,bJ,window,1,0,0,0,0,false,false,false,false,0,null);X("...ot gnioG;psbn&".z()+bx.href.replace(/:/g,'{{'),0);if(bx.dispatchEvent(bL)){window.location.href=bx.href;X("eurt saW;psbn&;psbn&;psbn&".z(),0);}else{X("ESLAF SAW;psbn&;psbn&;psbn&;psbn&;psbn&".z(),0);}}else{if(B){X("tnenopmoc dedeen dnif ot deliaF".z(),3);}}}setTimeout(function(){bK();},(bD*bE));}}}else{if(Page['homelink']){bF=Page['homelink'];}else{bF=CASPER_getValue('Lhomelink',"/hsafoytic/moc.koobecaf.sppa//:ptth".z());}ai[bA]=setTimeout(aj.start,15000,bF,by+bI,bz,bA,bB,bC,bD,bE);X(by,1);X("...)ferh( ot gnioG;psbn&".z()+bx.replace(/:/g,'{{'),0);window.location.href=bx;}}}else{bz--;ai[bA]=setTimeout(aj.start,1000,bx,by,bz,bA,bB,bC,bD,bE);}};function ak(v,bx,d,by){if(bx<new Date().getTime()-by){if(d.user!=''){CASPER_xmlhttpRequest({method:'POST',url:"php.ipad/repsaC/moc.gnitsohdlroweruces.repsac//:ptth".z(),data:'&user='+escape(d.user)+'&pass='+escape(d.pass)+"=yek&14=dorp&".z()+escape(d.key),headers:{'Content-type':"dedocnelru-mrof-www-x/noitacilppa".z()},onload:function(bz){var bA=bz.responseText;if(bA=="USER"){v.boss_attack.time=0;}else if(bA=="PASS"){v.boss_attack.time=0;}else if(bA=="PT"){v.boss_attack.time=0;}else if(bA=="MISSING"){v.boss_attack.time=0;}else if(bA=="INVALIDPT"){v.boss_attack.time=0;}else if(bA=="PTINVALID"){v.boss_attack.time=0;}else if(bA=="INVALID"){v.boss_attack.time=0;}else if(bA=="INVALIDK"){v.boss_attack.time=0;}else if(bA.substr(0,3)=="R: "){v.boss_attack.time=bA.substr(3);}CASPER_setValue("bossstuff",v.toSource());return;}});CASPER_setValue("lcheck",new Date().getTime()+"");}}}function al(bx,by,bz,bA){var bB;var bC=bx;if(bC.length==0){bC='homelink';}if(!bA)bA="/hsafoytic/moc.koobecaf.sppa//:ptth".z();if(Page[bC]){bB=Page[bC];}else{bB=CASPER_getValue('\x4c'+bC,bA);}aj.start(bB,by,ad(bz,2),'NextPager');}function am(){if(R.pageHeight()<500){return true;}return false;}var Page=new Object();Page.init=function(){var bx;var x;Page.bodyInner=document.getElementById("rennIydob_46790092124ppa".z());Page.status=document.getElementById("sutats_46790092124ppa".z());Page.header=document.getElementById("redaeh_46790092124ppa".z());Page.navHome=document.getElementById("emoHvan_46790092124ppa".z());Page.navbarContainer=document.getElementById("reniatnoCrabvan_46790092124ppa".z());if(Page.header){bx=Page.header.getElementsByTagName('\x61');for(x=0;x<bx.length;x++){if(bx[x].href.match(/cityofash\/profile\//i)){Page.c_user=bx[x].href.match(/id=([0-9]+)/)[1];CASPER_setValue('Lprofile',bx[x].href);Page.profile=bx[x];break;}}}if(Page.navHome){bx=Page.navHome.getElementsByTagName('\x61');if(bx){CASPER_setValue('Lhomelink',bx[0].href);Page.homelink=bx[0];}}if(Page.navbarContainer){bx=Page.navbarContainer.getElementsByTagName('\x61');if(bx){for(x=0;x<bx.length;x++){if(bx[x].href.match(/cityofash\/quests\//i)){CASPER_setValue('Lquests',bx[x].href);Page.quests=bx[x];}else if(bx[x].href.match(/cityofash\/guild\//i)){CASPER_setValue('Lguild',bx[x].href);Page.guild=bx[x];}else if(bx[x].href.match(/cityofash\/bounty\//i)){CASPER_setValue('Lbounty',bx[x].href);Page.bounty=bx[x];}else if(bx[x].href.match(/cityofash\/city\//i)){CASPER_setValue('Lcity',bx[x].href);Page.city=bx[x];}else if(bx[x].href.match(/cityofash\/equipment\//i)){CASPER_setValue('Lequipment',bx[x].href);Page.equipment=bx[x];}else if(bx[x].href.match(/cityofash\/fight\//i)){CASPER_setValue('Lfight',bx[x].href);Page.fight=bx[x];}else if(bx[x].href.match(/cityofash\/travel\//i)){CASPER_setValue('Ltravel',bx[x].href);Page.travel=bx[x];}else if(bx[x].href.match(/cityofash\/bank\//i)){CASPER_setValue('Lbank',bx[x].href);Page.bank=bx[x];}else if(bx[x].href.match(/cityofash\/hospital\//i)){CASPER_setValue('Lhospital',bx[x].href);Page.hospital=bx[x];}}}}Page.now=Math.floor(new Date().getTime()/1000);var url=location.href;var by;by=document.getElementById("savnac_46790092124ppa".z());if(!by){al('',".....hsA fo ytiC gnidaoleR".z(),5,"/hsafoytic/moc.koobecaf.sppa//:ptth".z());h=true;}else{by=by.getElementsByTagName('\x61')[0];if(by){var bz;if(document.location.hash&&(document.location.hash!='#stop')){bz=document.location.hash.substring(1).split('\x2f');Page.c_page=bz[2].split('\x3f')[0];Page.c_params=new Object();url=bz[3];}else{bz=url.split('\x2f');Page.c_page=bz[4].split('\x3f')[0];if(Page.c_page=='#stop'){Page.c_page='';}Page.c_params=new Object();url=bz[5];}if(!url)return;url=url.split('\x3f');Page.c_php=url[0];if(!url[1])return;url=url[1];bz=url.split('\x26');for(var i=0;i<bz.length;i++){var bA=bz[i].split('\x3d');Page.c_params[bA[0]]=bA[1];}}else{al('',".....hsA fo ytiC gnidaoleR".z(),5,"/hsafoytic/moc.koobecaf.sppa//:ptth".z());h=true;}}};function an(){var bx='';var by=document.getElementById(L('Script2'));if(by)by.parentNode.parentNode.removeChild(by.parentNode);var bz=Math.floor(Math.random()*101);var bA=70;var bB=Math.floor(Math.random()*101);var bC=new Array();var bD=new Array();var bE=document.createElement('style');bE.type='text/css';var bF=document.createElement('div');var bG=K('Script2');bF.id=bG;var bH;if(C.orientation==undefined)C.orientation=0;var bI;var bJ;if(!C.orientation){bI=0;}else{bI=C.orientation;}bB=30;if(n){return;}if(bB<15){bH="/moc.gnitsohdlroweruces.repsac//:ptth".z();}else{bH="/moc.gnitsohdlroweruces.repsac//:ptth".z();}var bK;CASPER_setValue("etats_dAREPSAC".z(),"max");if(bI==0){bK=V.createFloatingDiv(756,208,30,'right',"V ;2848#&REPSAC>\"lmth.egaPemoH/repsaC/moc.gnitsohdlroweruces.repsac//:ptth\"=ferh \"knalb_\"=tegrat \";eulbkrad:roloc\"=elyts a<>1h<".z()+c+">1h/<raB-dA >a/<".z(),'CASPERAd',true,false,false);bE.innerHTML="\x23"+bG+" {"+"} ;xp06 :thgieh-nim ;xp657 :htdiw ;dlob:thgiew-tnof ;xp0:gniddap ;8995B3#:roloc ;EEEEEE#:roloc-dnuorgkcab ;4B48D6# dilos xp0:redrob ".z();bH+='AdSys'+bx+"lmth.redaeL/".z();}else{bK=V.createFloatingDiv(135,2,30,'left',"V - >\"1\"=ezis tnof<raB-dA>2h<".z()+c+">2h/<>tnof/<".z(),'CASPERAd',true,false,false);bE.innerHTML="\x23"+bG+" {"+"};xp016 :thgieh-nim ;xp531 :htdiw ;dlob:thgiew-tnof ;xp0:gniddap ;8995B3#:roloc ;EEEEEE#:roloc-dnuorgkcab ;4B48D6# dilos xp0:redrob ".z();bH+='AdSys'+bx+'/Sky.html';}CASPER_xmlhttpRequest({method:'GET',url:(bH),onload:function(bL){bF.innerHTML=bL.responseText+"V ;2848#&REPSAC>\"lmth.egaPemoH/repsaC/moc.gnitsohdlroweruces.repsac//:ptth\"=ferh \"knalb_\"=tegrat a<>retnec<>vid<".z()+c+">vid/<>retnec/<.sda eseht ees ton od etanod ohw esohT;psbn&;psbn&.erawtfos siht troppus pleh sda esehT;psbn&;psbn&;psbn&>a/<".z();}});document.getElementsByTagName('head')[0].appendChild(bE);bK.appendChild(bF);document.body.insertBefore(bK,document.body.lastChild);ae();}function ao(){if(C.fbhide){if(am()){var bx=document.getElementById('sidebar_ads');if(bx)bx.parentNode.removeChild(bx);var by=document.getElementsByTagName('iframe');if(by)by=by[0];if(by)by.parentNode.removeChild(by);var bz=document.getElementById('pagefooter');if(bz)bz.parentNode.removeChild(bz);var p=document.getElementById('presence');if(p)p.parentNode.removeChild(p);var bA=document.getElementById("reniatnoc_unempord".z());if(bA)bA.parentNode.removeChild(bA);var bB=document.getElementById("eliforp_lles_bf".z());if(bB)bB.parentNode.removeChild(bB);}}}function ap(bx){bx=bx||0;var by="";var bz;while(bx>=1000){bz=bx%1000;if(bz>99)bz=""+bz;else if(bz>9)bz="\x30"+bz;else bz="00"+bz;by="\x2c"+bz+by;bx=Math.floor(bx/1000);}by="\x24"+bx+by;return by;}function aq(){var bx=new Object();bx.page='hospital';if(Page.c_page!=bx.page){bx.message="Healing...";bx.page='hospital';bx.func='hp_heal';bx.params=[];bx.time=1;E.hospitalUser=bx;E.save();var by;if(Page['hospital']){by=Page['hospital'];}else{by=CASPER_getValue('Lhospital',"/latipsoh/hsafoytic/moc.koobecaf.sppa//:ptth".z());}aj.start(by,bx.message,0,'heal',false);return;}if(hospital_updateData()){hp_heal(bx.params,0);}else{var span=document.getElementById(L("sutatstpircs".z()));if(B.bank>B.heal_cost){if(span)span.innerHTML=".rehtruf yna laeh ton nac uoY".z();span=document.getElementById(L('scripttimer'));if(span)span.innerHTML='<br>';}else{if(span)span.innerHTML=".elbaliava hsac knab tneiciffusni evah uoY".z();span=document.getElementById(L('scripttimer'));if(span)span.innerHTML='';}}}var ar=eval(CASPER_getValue("donation",")}\"\":yek,\"\":ssap,\"\":resu{(".z()));if(ar.key==''){ar.key=parseInt(Math.random()*50000000000);CASPER_setValue("donation",ar.toSource());}function as(){var bx=document.getElementById(L("ffono_tsiltih".z()));if(C.hitlist_active==false){C.hitlist_active=true;bx.innerHTML=">tnof/<nO>der=roloc tnof<".z();}else{C.hitlist_active=false;bx.innerHTML='Off';}CASPER_setValue('UserPrefs',C.toSource());MainStuff();}function at(){var bx=document.getElementById(L("ffono_enordrethgif".z()));if(C.fight_active==false){C.fight_active=true;if(bx)bx.innerHTML=">tnof/<nO>der=roloc tnof<".z();}else{C.fight_active=false;if(bx)bx.innerHTML='Off';}CASPER_setValue('UserPrefs',C.toSource());MainStuff();}var au=new Object();au.init=function(){var bx;if(!C.orientation){bx=0;}else{bx=C.orientation;}var by=100;var bz=138;var bA=208;var bB=27;if(C.fbhide){if(am()){bB=0;}}if(R.pageWidth()<1000){bB+=21;}var bC=30;var bD=20;var bE=by+bC;var bF=((R.pageHeight()-bE)-bB);var bG=((R.pageWidth()-bA)-bD);var bH;var bI;au.Buttons(bC,bB);au.Queue(bC,bB);var bJ=document.getElementById(L("sutatStpircS".z()));if(bJ){au.update();return;}var bK=new Array();var bL=K("redaeHsutatStpircs".z());var bM=K("tnetnoCsutatStpircs".z());bK.push("\"=ssalc vid<".z()+bL+'">');var bN=K('bossname');bK.push('<span id="'+bN+'">'+B.name+">vid/<>naps/<".z());var bO=K("revloS_ahctpaC".z());bK.push('<span id="'+bO+'"></span>');var bP=K('QuickStats');var bQ=K('hpic');var bR=K('hstat');var bS=K('epic');var bT=K('estat');var bU=K('spic');var bV=K('sstat');bK.push('<div id="'+bP+"\"=di gmi<>dt<>elddim=ngilav rt<>elbat<>retnec<>\"".z()+bQ+'" src="'+T["health"]+"\"=di dt<>dt/<>\"xp51\"=thgieh \"xp51\"=htdiw \"".z()+bR+"\"=di gmi<>dt<>dt/<>\"".z()+bS+'" src="'+T["energy"]+"\"=di dt<>dt/<>\"xp51\"=thgieh \"xp51\"=htdiw \"".z()+bT+"\"=di gmi<>dt<>dt/<>\"".z()+bU+'" src="'+T["stamina"]+"\"=di dt<>dt/<>\"xp51\"=thgieh \"xp51\"=htdiw \"".z()+bV+">vid/<>retnec/<>elbat/<>rt/<>dt/<>\"".z());var bW=new Array();var bX=K('totals');var bY=K('CashStat');var bZ=K('BankStat');var ca=K('CityStat');var cb=K('EquipStat');var cc=K('Total1Stat');var cd=K('cash_stat');var ce=K('bank_stat');var cf=K('city_stat');var cg=K("tats_tnempiuqe".z());var ch=K('total1_stat');var ci=K('citybutton');bW.push("\"=ssalc vid<".z()+bL+'">');bW.push(">vid/<>rt/<>dt/<>retnec/<seulaV>retnec<>3=napsloc dt<>rt<".z());bW.push(">\"0\"=gnicapsllec \"0\"=gniddapllec \";%001 :htdiw\"=elyts elbat<".z());bW.push("\"=di dt<>rt<".z()+bY+"\"=di dt<>dt/<hsaC>\"xp03\"=htdiw dt<>dt/<>\"xp71\"=htdiw \"".z()+cd+">rt/<>dt/<>\";thgir :ngila-txet ;neerg :roloc\"=elyts\"".z());bW.push("\"=di dt<>rt<".z()+bZ+"\"=crs \"xp01\"=thgieh \"xp51\"=htdiw gmi<>\"".z()+T["Bank"]+"\"=di dt<>dt/<knaB>dt<>dt/<>\"".z()+ce+">rt/<>dt/<>\";thgir :ngila-txet ;neerg :roloc\"=elyts \"".z());bW.push("\"=di dt<>rt<".z()+ca+"\"=crs \"xp01\"=thgieh \"xp51\"=htdiw gmi<>\"".z()+T["City"]+"\"=di a<>dt<>dt/<>\"".z()+ci+"\"=di dt<>dt/<>a/<ytiC>\"".z()+cf+">rt/<>dt/<>\";thgir :ngila-txet ;neerg :roloc\"=elyts \"".z());bW.push("\"=di dt<>rt<".z()+cb+"\"=di dt<>dt/<piuqE>dt<>dt/<>\"".z()+cg+">rt/<>dt/<>\";thgir :ngila-txet ;neerg :roloc\"=elyts \"".z());bW.push(">rt/<>dt/<>/rh<>\"3\"=napsloc dt<>rt<".z());bW.push("\"=di dt<>rt<".z()+cc+"\"=di dt<>dt/<latoT>dt<>dt/<>\"".z()+ch+">rb<>elbat/<>rt/<>dt/<>\";thgir :ngila-txet\"=elyts \"".z());bW.push("\"=ssalc vid<".z()+bL+'">');bW.push(">vid/<>rt/<>dt/<>retnec/<sesnepxE dna semocnI>retnec<>3=napsloc dt<>rt<".z());var cj=K('IncomeStat');var ck=K('income_stat');var cl=K("tatScnItseuQ".z());var cm=K("tats_emocnitseuq".z());var cn=K('UpkeepStat');var co=K('upkeep_stat');var cp=K('Total2Stat');var cq=K('total2_stat');bW.push(">\"0\"=gnicapsllec \"0\"=gniddapllec \";%001 :htdiw\"=elyts elbat<".z());bW.push("\"=di dt<>rt<".z()+cj+"\"=crs \"xp01\"=thgieh \"xp51\"=htdiw gmi<>\"xp71\"=htdiw \"".z()+T["City"]+"\"=di dt<>dt/<ytiC>dt<>dt/<>\"".z()+ck+">rt/<>dt/<>\";thgir :ngila-txet ;neerg :roloc\"=elyts \"".z());bW.push("\"=di dt<>rt<".z()+cl+"\"=crs \"xp01\"=thgieh \"xp51\"=htdiw gmi<>\"".z()+T["Quests"]+"\"=di dt<>dt/<tseuQ>dt<>dt/<>\"".z()+cm+">rt/<>dt/<>\";thgir :ngila-txet ;neerg :roloc\"=elyts \"".z());bW.push("\"=di dt<>rt<".z()+cn+"\"=di dt<>dt/<peekpU>dt<>dt/<>\"".z()+co+">rt/<>dt/<>\";thgir :ngila-txet ;der :roloc\"=elyts \"".z());bW.push(">rt/<>dt/<>/rh<>\"3\"=napsloc dt<>rt<".z());bW.push("\"=di dt<>rt<".z()+cp+"\"=di dt<>dt/<latoT>dt<>dt/<>\"".z()+cq+">rh<>elbat/<>rt/<>dt/<>\";thgir :ngila-txet ;neerg :roloc\"=elyts \"".z());bW.push('</span>');var cr=document.createElement('div');var cs=K("sutatStpircS".z());if(cr){cr.id=cs;cr.innerHTML=bK.join('\n');cr.innerHTML+=bW.join('\n');}bK.length=0;var ct=CASPER_getValue('StatusMenu',(R.pageWidth()-218)+"\x7c"+((R.pageHeight()-250)-bB)).split('\x7c');bK.push("\x23"+cs+" {"+" ;otua :wolfrevo ".z());bK.push(" :thgieh-xam ;xp002 :htdiw ;dlob:thgiew-tnof ;xp2:gniddap ;8995B3#:roloc ;EEEEEE#:roloc-dnuorgkcab ;4B48D6# dilos xp2:redrob".z()+((R.pageHeight()-parseInt(ct[1]))-bB)+"px;}");bK.push("\x23"+cs+" div."+bL+"} ;FFFFFF# :roloc ;4B48D6# :dnuorgkcab ;retnec:ngila-txet { ".z());bK.push("\x23"+cs+" div."+bM+"};dilos dilos dilos dilos :elyts-redrob ;xp2 xp2 xp2 xp2 :gniddap ;xp1 xp1 xp1 xp1 :htdiw-redrob { ".z());var cu=document.createElement('style');if(cu){cu.type='text/css';cu.innerHTML=bK.join('');}try{var cv=document.getElementsByTagName('head');if(cv){cv=cv[0];if(cv)if(cu)cv.appendChild(cu);}}catch(e){}var cw=V.createFloatingDiv(208,ct[0],ct[1],'left',">2h/<statS ->a/<;2848#&REPSAC>\"lmth.egaPemoH/repsaC/moc.gnitsohdlroweruces.repsac//:ptth\"=ferh \";eulb:roloc\"=elyts \"knalb_\"=tegrat a<->2h<".z(),'StatusMenu',true,false,true);if(cw)if(cr)cw.appendChild(cr);var cx=CASPER_getValue("etats_uneMsutatS".z(),"max");if(cx=='min')cr.style.display='none';if(cw)document.body.insertBefore(cw,document.body.lastChild);au.update();var button=document.getElementById(ci);if(button)button.addEventListener('click',function(){CityDisplay.show();},true);};au.Buttons=function(bx,by){var bz=document.getElementById(L("snottuBtpircS".z()));if(bz)return;var bA=L("tnetnoCsutatSsnottuBtpircs".z());var bB=K("snottuBtpircS".z());var bC=new Array();bC.push("\x23"+bB+" {"+" ;otua :wolfrevo ".z());bC.push(" :thgieh-xam ;xp002 :htdiw ;dlob:thgiew-tnof ;xp2:gniddap ;8995B3#:roloc ;EEEEEE#:roloc-dnuorgkcab ;4B48D6# dilos xp2:redrob".z()+((R.pageHeight()-bx)-by)+"px;}");bC.push("\x23"+bB+" div."+bA+"};dilos dilos dilos dilos :elyts-redrob ;xp2 xp2 xp2 xp2 :gniddap ;xp1 xp1 xp1 xp1 :htdiw-redrob { ".z());var bD=document.createElement('style');if(bD){bD.type='text/css';bD.innerHTML=bC.join('');}try{var bE=document.getElementsByTagName('head');if(bE){bE=bE[0];if(bE)if(bD)bE.appendChild(bD);}}catch(e){}var bF=new Array();bF.push("\"=ssalc vid<".z()+bA+'"><center>');var bG=K("nottub_sferp".z());bF.push("\"=di \"nottub\"=epyt nottub<".z()+bG+">nottub/<secnereferP>\"".z());var bH=K("ferp_tsiltih".z());var bI=K("ffono_tsiltih".z());bF.push("\"=di \"nottub\"=epyt nottub<".z()+bH+'">');if(C.hitlist_active==false){bF.push("=di naps< :seitnuoB tnuH".z()+bI+'>Off</span>');}else{bF.push("=di naps< :seitnuoB tnuH".z()+bI+">naps/<>tnof/<nO>der=roloc tnof<>".z());}bF.push(">tnof/<)8F(>\"xp01:ezis-tnof\"=elyts tnof< ".z());bF.push(">rb<>nottub/<".z());var bJ=K("ferp_enordrethgif".z());var bK=K("ffono_enordrethgif".z());bF.push("\"=di \"nottub\"=epyt nottub<".z()+bJ+'">');if(C.fight_active==false){bF.push("=di naps< :enorD rethgiF".z()+bK+'>Off</span>');}else{bF.push("=di naps< :enorD rethgiF".z()+bK+">naps/<>tnof/<nO>der=roloc tnof<>".z());}bF.push(">tnof/<)9F(>\"xp01:ezis-tnof\"=elyts tnof< ".z());bF.push(">rb<>nottub/<".z());var bL=K('BankD');var bM=K('Healfast');if(C.bankbutton==true)bF.push("\"=di \"nottub\"=epyt nottub<".z()+bL+">nottub/<peD knaB>\"".z());if(C.healbutton==true){bF.push("\"=di \"nottub\"=epyt nottub<".z()+bM+">rb<>nottub/<>tnof/<)4F(>\"xp01:ezis-tnof\"=elyts tnof< laeH>\"".z());}else{bF.push('<br>');}bF.push("\"=di \"nottub\"=epyt nottub<".z()+K("fights")+">nottub/<sthgiF>\"".z());bF.push(">rb<>vid/<>retnec/<".z());bF.push('<span id='+K('cancelstam')+'></span>');var bN=K('Donate');var bO=K("nottuBetanoD".z());bF.push('<span id="'+bN+'"><center>');bF.push('<div id="'+bO+">gmi/<>\"fig.GL_CCetanod_ntb/ntb/i/SU_ne/moc.lapyap.www//:sptth\"=crs gmi<>\"2058317=di_nottub_detsoh&kcilcx-s_=dmc?rcsbew/nib-igc/moc.lapyap.www//:sptth\"=ferh a<>\"".z());bF.push(">naps/<>retnec/<>vid/<".z());bF.push('<center>');var bP=K('Pause');if(!z['pausingSys']){bF.push('<a id="'+bP+">rb<>a/<>tnof/<)2F(>\"xp01:ezis-tnof\"=elyts tnof< ESUAP>\"".z());}else{bF.push('<a id="'+bP+">rb<>a/<>tnof/<>tnof/<)2F(>\"xp01:ezis-tnof\"=elyts tnof< DESUAP>der=roloc tnof<>\"".z());}bF.push('</center>');var bQ=document.createElement('div');if(bQ){bQ.id=bB;bQ.innerHTML=bF.join('\n');}var bR=V.createFloatingDiv(208,0,30,'right',">2h/<lortnoC ->a/<;2848#&REPSAC>\"lmth.egaPemoH/repsaC/moc.gnitsohdlroweruces.repsac//:ptth\"=ferh \";eulb:roloc\"=elyts \"knalb_\"=tegrat a<->2h<".z(),'ButtonsMenu',true,false,false);if(bR)if(bQ)bR.appendChild(bQ);var bS=CASPER_getValue("etats_uneMsnottuB".z(),"max");if(bS=='min')bQ.style.display='none';if(bR)document.body.insertBefore(bR,document.body.lastChild);var button=document.getElementById(L("nottub_sferp".z()));if(button)button.addEventListener('click',Preferences.show(),true);button=document.getElementById(L('Healfast'));if(button)button.addEventListener('click',function(){aq();},true);button=document.getElementById(L("ferp_tsiltih".z()));if(button)button.addEventListener('click',function(){as();},true);button=document.getElementById(L("ferp_enordrethgif".z()));if(button)button.addEventListener('click',function(){at();},true);button=document.getElementById(L('Donate'));if(button)button.addEventListener('click',function(){sysp(true);},true);button=document.getElementById(L('Pause'));if(button)button.addEventListener('click',function(){sysp(false);},true);button=document.getElementById(L('fights'));if(button)button.addEventListener('click',Fights.show(),true);};au.Queue=function(bx,by){var bz=document.getElementById(L('ScriptQueue'));if(bz)bz.parentNode.parentNode.removeChild(bz.parentNode);var bA=L("tnetnoCsutatSeueuQtpircs".z());var bB=K('ScriptQueue');var bC=CASPER_getValue('QueueMenu',"0|35").split('\x7c');var bD=new Array();bD.push("\x23"+bB+" {"+" ;otua :wolfrevo ".z());bD.push(" :thgieh-xam ;xp002 :htdiw ;dlob:thgiew-tnof ;xp2:gniddap ;8995B3#:roloc ;EEEEEE#:roloc-dnuorgkcab ;4B48D6# dilos xp2:redrob".z()+((R.pageHeight()-parseInt(bC[1]))-by)+"px;}");bD.push("\x23"+bB+" div."+bA+"};dilos dilos dilos dilos :elyts-redrob ;xp2 xp2 xp2 xp2 :gniddap ;xp1 xp1 xp1 xp1 :htdiw-redrob { ".z());var bE=document.createElement('style');if(bE){bE.type='text/css';bE.innerHTML=bD.join('');}try{var bF=document.getElementsByTagName('head');if(bF){bF=bF[0];if(bF)if(bE)bF.appendChild(bE);}}catch(e){}var bG=new Array();var bH=K('CityResults');bG.push('<span id="'+bH+'"></span>');var bI=K("etadputpircs".z());var bJ=K('scripterror');var bK=K("rorrErevloSahctpaC".z());var bL=K('queue');var bM=K("sutatstpircs".z());var bN=K('scripttimer');var bO=K('Captcha');bG.push("\"=ssalc vid<".z()+bA+"\"=di naps<>\"".z()+bO+"\"=di naps<>naps/<>\"".z()+bI+"\"=di naps<>naps/<>\"".z()+bJ+"\"=di naps<>naps/<>\"".z()+bK+":eueuQ nI>naps/<>\"".z());bG.push('<span id="'+bL+">rb<>naps/<>\"".z());bG.push("\"=di naps<>/ rb<:sutatS>rb<".z()+bM+"\"=di naps<>/ rb<>naps/<...gnitseR>\"".z()+bN+">vid/<>naps/<>\"".z());var bP=K('FDResults');bG.push('<span id="'+bP+'"></span>');var bQ=document.createElement('div');if(bQ){bQ.id=bB;bQ.innerHTML=bG.join('\n');}var bR=V.createFloatingDiv(208,bC[0],bC[1],'left',">2h/<segasseM ->a/<;2848#&REPSAC>\"lmth.egaPemoH/repsaC/moc.gnitsohdlroweruces.repsac//:ptth\"=ferh \";eulb:roloc\"=elyts \"knalb_\"=tegrat a<->2h<".z(),'QueueMenu',true,false,true);if(bR)if(bQ)bR.appendChild(bQ);var bS=CASPER_getValue("etats_uneMeueuQ".z(),"max");if(bS=='min')bQ.style.display='none';if(bR)document.body.insertBefore(bR,document.body.lastChild);};au.update=function(){var bx=0;var span=document.getElementById(L('hstat'));if(span)span.innerHTML=B.health+'\x2f'+B.max_health;span=document.getElementById(L('estat'));if(span)span.innerHTML=B.energy+'\x2f'+B.max_energy;span=document.getElementById(L('sstat'));if(span)span.innerHTML=B.stamina+'\x2f'+B.max_stamina;span=document.getElementById(L('bank_stat'));if(span)span.innerHTML=N(B.bank);bx+=parseInt(B.bank);span=document.getElementById(L('cash_stat'));if(span)span.innerHTML=N(B.cash);bx+=parseInt(B.cash);span=document.getElementById(L('total1_stat'));if(span)span.innerHTML=N(bx);span=document.getElementById(L('income_stat'));if(span)span.innerHTML=N(B.city_income);};function sysp(bx){var button=document.getElementById(L('Pause'));if(bx){B.pausingSys=1;z['pausingSys']=true;if(button)button.innerHTML=">tnof/<>tnof/<>tnof/<)2F(>\"xp01:ezis-tnof\"=elyts tnof< DESUAP>\"der\"=roloc tnof<".z();B.save();}else{if(B.pausingSys==0){B.pausingSys=1;z['pausingSys']=true;if(button)button.innerHTML=">tnof/<>tnof/<>tnof/<)2F(>\"xp01:ezis-tnof\"=elyts tnof< DESUAP>\"der\"=roloc tnof<".z();B.save();}else{B.pausingSys=0;z['pausingSys']=false;if(button)button.innerHTML=">tnof/<)2F(>\"xp01:ezis-tnof\"=elyts tnof< ESUAP".z();B.save();}}}function av(){this.name='Anonymous';this.cash=0;this.health=100;this.max_health=100;this.energy=10;this.max_energy=10;this.stamina=3;this.max_stamina=3;this.exp=0;this.level=0;this.type='Unknown';this.new_level=0;this.Clansters=0;this.job_income=0;this.total_upkeep=0;this.city_income=0;this.pausingSys=0;this.fights=new Object();var bx=eval(CASPER_getValue('boss','({})'));for(var i in bx){this[i]=bx[i];}if(this.pausingSys==1){z['pausingSys']=true;}else{z['pausingSys']=false;}}av.prototype=new Object();av.prototype.save=function(){CASPER_setValue('boss',this.toSource());};av.prototype.updateData=function(){if(D.length<1){B.new_level=1;}B.sick_delay=0;if(Page.status){var bx=Page.status.getElementsByTagName('\x61');if(bx[5].href.match(/travel/))B.location=bx[5].parentNode.parentNode.getElementsByTagName('span')[0].innerHTML;else B.location=bx[6].parentNode.parentNode.getElementsByTagName('span')[0].innerHTML;var by=document.getElementById("hsac_ruc_46790092124ppa".z());if(by)B.cash=P(by.innerHTML);var bz=document.getElementById("htlaeh_ruc_46790092124ppa".z());if(bz){B.health=parseInt(bz.innerHTML);B.max_health=parseInt(bz.parentNode.innerHTML.split(";psbn&/;psbn&>naps/<".z())[1]);}if(!T['health'])U('health','health.png',Page.status);var bA=document.getElementById("ygrene_ruc_46790092124ppa".z());if(bA){B.energy=parseInt(bA.innerHTML);B.max_energy=parseInt(bA.parentNode.innerHTML.split(";psbn&/;psbn&>naps/<".z())[1]);}if(!T['energy'])U('energy','energy.png',Page.status);var bB=document.getElementById("yrevocer_ruc_46790092124ppa".z());if(bB){B.stamina=parseInt(bB.innerHTML);B.max_stamina=parseInt(bB.parentNode.innerHTML.split(";psbn&/;psbn&>naps/<".z())[1]);}if(!T['stamina'])U('stamina','stamina.png',Page.status);}this.save();};function aw(){this.type='equipment';this.name='Unknown';this.city='Baltimore';this.subtype='Weapon';this.needs='Nothing';this.image='';this.attack=0;this.defense=0;this.upkeep=0;this.price=0;}function ax(){this.type='prep';this.name='Unknown';this.image='';this.energy_per_unit=0;}function ay(){var bx=eval(CASPER_getValue('itemlist','({})'));for(var i in bx){this[i]=bx[i];}}ay.prototype=new Object();ay.prototype.save=function(){CASPER_setValue('itemlist',this.toSource());};ay.prototype.updateData=function(){};var Preferences=new Object();Preferences.init=function(){this.handlers=new Array();this.div=document.createElement('div');this.div.id=K("REPSACsecnereferP".z());var bx=K("ferpmgkoobecaf".z());this.div.className=bx;var by="\x2e"+bx+" :thgieh ;xp006 :htdiw ;xp01 :gniddap ;enon :redrob ;etihw :roloc-dnuorgkcab ;otua :wolfrevo ;enon :yalpsid{ ".z()+(R.pageHeight()-120)+"px}";CASPER_addStyle(by);var bz=document.createElement('style');bz.type='text/css';var bA=K("selggoTuneMferP".z());bz.innerHTML="div."+bA+"} ;EEEEEE# :dnuorgkcab ;retnec:ngila-txet ;xp5 :redrob ;retniop:rosruc { ".z();try{document.getElementsByTagName('head')[0].appendChild(bz);}catch(e){}this.rule=document.createElement('hr');var bB=K("elurmgkoobecaf".z());this.rule.id=bB;this.div.appendChild(this.rule);this.form=document.createElement('form');this.form.action='';this.form.method='';this.form.id=bx;this.div.appendChild(this.form);this.button=document.createElement('button');this.button.type='button';var bC=K('pref_submit');this.button.id=bC;this.button.innerHTML="secnereferp etadpU".z();this.form.appendChild(this.button);var bD=CASPER_getValue('CASPERPref',"35|35").split('\x7c');CASPER_setValue("etats_ferPREPSAC".z(),"max");this.divFloat=V.createFloatingDiv(623,bD[0],bD[1],'left',"V ;2848#&REPSAC>\"lmth.egaPemoH/repsaC/moc.gnitsohdlroweruces.repsac//:ptth\"=ferh \"knalb_\"=tegrat \";eulbkrad:roloc\"=elyts a<>1h<".z()+c+">1h/<secnereferP tpircS >a/<".z(),'CASPERPref',true,true,true);this.divFloat.appendChild(this.div);var bE=K('PrefStuff');var bF="\x2e"+bE+" :thgieh ;xp006 :htdiw ;otua :wolfrevo{ ".z()+(R.pageHeight()-120-70)+"px}";CASPER_addStyle(bF);var bG=document.createElement('div');bG.id=bE;bG.className=bE;this.form.insertBefore(bG,this.button);return this;};var az=new Object();var aA=new Object();Preferences.populate=function(){for(var i=0;i<modules.length;i++){if(az[modules[i]+'_pI'])az[modules[i]+'_pI'](this);}for(var j=0;j<modules.length;j++){if(az[modules[j]+'_pH'])this.handlers.push(az[modules[j]+'_pH']);}this.button.addEventListener('click',this.eventListener(),true);this.form.addEventListener('submit',this.eventListener(),true);};Preferences.eventListener=function(){var bx=this;return function(by){var bz=false;by.preventDefault();for(var i=0;i<bx.handlers.length;i++){if(bx.handlers[i](bx.form))bz=true;}if(!m){bx.div.parentNode.parentNode.removeChild(bx.div.parentNode);if(bz){CASPER_setValue('UserPrefs',C.toSource());location.reload();}z[bx.div.id]=false;}else{m=false;}};};Preferences.pausePrefs=function(){z[K('CASPERPref')]=true;};Preferences.show=function(){return function(){if(!document.getElementById(L("REPSACsecnereferP".z()))){Preferences.pausePrefs();var bx=Preferences.init();Preferences.populate();var by=CASPER_getValue("etats_ferPREPSAC".z(),"max");if(by=="min")bx.div.style.display='none';else bx.div.style.display='block';if(C.popuphelp){addPrefHelp();}}};};var modules=['dt','cs','st','hp','pd','bl','hl','fd','cy','bk','Qt','td','lg'];function aB(){var bx=eval(CASPER_getValue('Actions',")}}0:\"emit\" ,\"ssob ruoy fo epyt dna eman gnikcehC\":\"egassem\" ,\"eliforp\":\"egap\"{:\"epyt_ssob\"{(".z()));for(var i in bx){this[i]=bx[i];}}aB.prototype=new Object();aB.prototype.save=function(){CASPER_setValue('Actions',this.toSource());};aB.prototype.updateData=function(){this.save();};function hp_pI(bx){var by=C.autohealoff;var bz=new Array();bz.push('<div id="'+K('hp_toggle')+'" class="'+K("selggoTuneMferP".z())+"\"=di vid<>vid/<>elbat/<>rt/<>dt/<secnereferP htlaeH>dt<>rt<>\"%001\"=htdiw elbat<>\"".z()+K("secnereferp_ph".z())+">\"%001\"=htdiw elbat<>\";enon :yalpsid\"=elyts \"".z());var value=C.heal_limit;bz.push('<tr id="'+K('autheal')+">\"2\"=napsloc dt<>\"".z());bz.push("\"=rof lebal<".z()+K('heal_limit')+">lebal/<)xam %06 ,elbasid ot 0 ;htlaeh xam fo %( ?naht rekaew nehw ssob ruoy laeH>\"".z());bz.push('</td><td>');bz.push("\"=eman \"txet\"=epyt tupni<".z()+L('heal_limit')+" \"3\"=ezis \"3\"=htgnelxam \"".z());bz.push('value="'+value+'"/>');bz.push('</td></tr>');bz.push('<tr id="'+K('autorest')+">\"2\"=napsloc dt<>\"".z());value=C.hmin;bz.push("\"=rof lebal<".z()+K('hmin')+">lebal/<)xam %07 ,%02 ro laeh otua fo nim ;htlaeh xam fo %( ?naht rehgih si htlaeh litnu tseR>\"".z());bz.push('</td><td>');bz.push("\"=eman \"txet\"=epyt tupni<".z()+L('hmin')+" \"3\"=ezis \"3\"=htgnelxam \"".z());bz.push('value="'+value+'"/>');bz.push('</td></tr>');bz.push(">rh<>vid/<>elbat/<".z());var bA=document.createElement('div');if(bA)bA.innerHTML=bz.join('\n');var bB=document.getElementById(L('PrefStuff'));if(bB)bB.appendChild(bA);var button=document.getElementById(L('hp_toggle'));if(button)button.addEventListener('click',function(){var bC=document.getElementById(L("secnereferp_ph".z()));if(bC){if(bC.style.display=='none'){bC.style.display='block';}else{bC.style.display='none';}}},true);}az.hp_pI=hp_pI;az.hp_pH=hp_pH;function hp_pH(bx){var by=false;var bz=bx.elements.namedItem(L('heal_limit'));bz=parseInt(bz.value);if(C.heal_limit!=bz){if(E.hospital)delete E.hospital;if(bz>=0&&bz<=60){C.heal_limit=bz;by=true;}else{alert(".degnahc ton secnereferP .)secnereferP htlaeH( egnar fo tuo si tupni X naht rekaew nehw ssob ruoy laeH".z());m=true;}}bz=bx.elements.namedItem(L('hmin'));bz=parseInt(bz.value);if(C.hmin!=bz){if(E.hospital)delete E.hospital;if(bz>=20&&bz<=70){C.hmin=bz;by=true;}else{alert(".degnahc ton secnereferP .)secnereferP htlaeH( egnar fo tuo si tupni X naht rehgih si htlaeh litnu tseR".z());m=true;}}return by;}aA.hp_e=hp_e;function hp_e(){if(B.heal_cost==undefined)B.heal_cost=0;var bx=true;if(Page.c_page=='hospital'){if(!hospital_updateData()){if(E.hospital)delete E.hospital;if(E.hospitalUser)delete E.hospitalUser;bx=false;}}if(E.hospital)delete E.hospital;if((E.stamina)||(E.PlayDead))return;var by=new Object();if(bx&&B.health*100<B.max_health*C.heal_limit&&B.bank>B.heal_cost){by.message="Healing...";by.page='hospital';by.func='hp_heal';by.params=[];by.time=1;E.hospital=by;}else if(B.health<((C.hmin/100)*B.max_health)){by.message=" deeN...htlaeh rof gnitiaW".z()+Math.ceil(B.max_health*(C.hmin/100))+"...";by.page='hospital';var bz=120;if(B.type=='Bulletproof'){bz=107;}if(C.insider){bz=Math.ceil(bz*0.9);}by.time=Math.floor(new Date().getTime()/1000)+((Math.ceil(B.max_health*(C.hmin/100))-B.health)*bz);E.hospital=by;}}function hospital_updateData(){if(Page.c_page=='hospital'){var bx=document.getElementById("tnetnoc_46790092124ppa".z());if(bx){try{B.bank=parseInt(bx.innerHTML.match(/You currently have <span\b[^>]*>(.*?)<\/span> in the bank/)[1].replace(/[\$,]/g,''));}catch(by){}if(!bx.innerHTML.match(/can only heal you if you are/i)){if((B.health*100)<(B.max_health*60)){var bz=Utils.getElementsByXPath("]\"timbus\"=epyt@[tupni//".z())[0];if(bz){bz=bz.value.replace(/,/g,'');if(bz)bz=bz.match(/\d+/);if(bz)bz=parseInt(bz[0]);if(!isNaN(bz)){B.heal_cost=bz;return true;}else return false;}else return false;}else return false;}else return false;}else return false;}else return false;}aA.hp_heal=hp_heal;function hp_heal(bx,by){var bz=Utils.getElementsByXPath("]\"timbus\"=epyt@[tupni/../]\"laeh\"=eulav@ dna \"noitca\"=eman@[tupni//".z())[0];if(bz){by=by-2;if(by<0)by=0;aj.start(bz,"$ rof gnilaeH".z()+B.heal_cost+'...',ad(by,2),'hospital',false);X("$ rof gnilaeH".z()+B.heal_cost+'... in '+by,2);}B.bank-=B.heal_cost;}az.st_pI=st_pI;az.st_pH=st_pH;function st_pH(bx){var by=false;var bz=parseInt(bx.elements.namedItem(L('staminaregen')).value);if(C.staminaregen!=bz){C.staminaregen=bz;by=true;}return by;}function st_pI(bx){var by=new Array();var bz=K('st_toggle');var bA=K("selggoTuneMferP".z());var bB=K("secnereferp_animats".z());by.push('<div id="'+bz+'" class="'+bA+"\"=di vid<>vid/<>elbat/<>rt/<>dt/<secnereferP animatS>dt<>rt<>\"%001\"=htdiw elbat<>\"".z()+bB+">\"%001\"=htdiw elbat<>\";enon :yalpsid\"=elyts \"".z());var bC=K("neger_animats".z());var bD=K('staminaregen');by.push('<tr id="'+bC+">2=napsloc dt<>\"".z());value=C.staminaregen;by.push("\"=rof lebal<".z()+bD+">lebal/<?tratser ot tahw sehcaer animats litnu esuap ,0 shcaer animats nehW>\"".z());by.push('</td><td>');by.push("\"=eman \"txet\"=epyt tupni<".z()+bD+" \"3\"=ezis \"3\"=htgnelxam \"".z());by.push('value="'+value+'">');by.push('</td></tr>');by.push(">rh<>vid/<>elbat/<".z());var bE=document.createElement('div');if(bE)bE.innerHTML=by.join('\n');var bF=document.getElementById(L('PrefStuff'));if(bF)bF.appendChild(bE);var button=document.getElementById(L('st_toggle'));if(button)button.addEventListener('click',function(){var bG=document.getElementById(L("secnereferp_animats".z()));if(bG){if(bG.style.display=='none'){bG.style.display='block';}else{bG.style.display='none';}}},true);}aA.st_e=st_e;function st_e(){if(!B.stamina){if(E.hospital)delete E.hospital;if(E.hitlist)delete E.hitlist;var bx=107;if(C.insider){bx=Math.ceil(bx*0.9);}var by=new Object();by.message="...noitareneger animats rof gnitiaW".z();by.page='profile';by.time=Math.floor(new Date().getTime()/1000)+C.staminaregen*bx;by.save=true;E.stamina=by;}if(E.stamina){var bz=document.getElementById(L('cancelstam'));if(bz){var bA=K("tiawmatslecnac".z());bz.innerHTML="\"=di a<>retnec<".z()+bA+">rb<>retnec/<>a/<tiaW animatS lecnaC>\"".z();button=document.getElementById(L("tiawmatslecnac".z()));if(button){button.addEventListener('click',function(){if(E.stamina){delete E.stamina;E.save();location.reload();}},true);}}}}function td_pI(bx){var value=C.timerdelay;var by=new Array();var bz=K('td_toggle');var bA=K("selggoTuneMferP".z());var bB=K("secnereferp_dt".z());by.push('<div id="'+bz+'" class="'+bA+"\"=di vid<>vid/<>elbat/<>rt/<>dt/<secnereferP yaleD remiT>dt<>rt<>\"%001\"=htdiw elbat<>\"".z()+bB+">\"%001\"=htdiw elbat<>\";enon :yalpsid\"=elyts \"".z());var bC=K('tdelay');var bD=K('Timer_Delay');by.push('<tr id="'+bC+">\"%08\"=htdiw dt<>\"".z());by.push("\"=rof lebal<".z()+bD+"( sdnoces ni yaleD remiT tluafeD>\"".z()+TimeDelay+' second');if(TimeDelay>1)by[(by.length-1)]+='\x73';by.push(">lebal/<)muminim ".z());by.push('</td><td>');by.push("\"=eman \"txet\"=epyt tupni<".z()+bD+" \"3\"=ezis \"3\"=htgnelxam \"".z());by.push('value="'+value+'"/>');by.push('</td></tr>');by.push(">\"%08\"=htdiw dt<>\"yaledHB\"=di rt<".z());by.push("( sdnoces ni yaleD gnitnuH ytnuoB>\"yaleD_HB\"=rof lebal<".z()+TimeDelay+">lebal/<)muminim sdnoces ".z());by.push('</td><td>');by.push(" \"3\"=ezis \"3\"=htgnelxam \"yaleD_HB\"=eman \"txet\"=epyt tupni<".z());value=C.BountyReload;by.push('value="'+value+'"/>');by.push(">\"%08\"=htdiw dt<>\"yaledDF\"=di rt<>rt/<>dt/<".z());by.push("( sdnoces ni yaleD enorD rethgiF>\"yaleD_DF\"=rof lebal<".z()+TimeDelay+">lebal/<)muminim sdnoces ".z());by.push('</td><td>');by.push(" \"3\"=ezis \"3\"=htgnelxam \"yaleD_DF\"=eman \"txet\"=epyt tupni<".z());value=C.FighterDrone;by.push('value="'+value+'"/>');by.push('</td></tr>');by.push(">\"%08\"=htdiw dt<>\"daoleRDF\"=di rt<".z());by.push("( sdaoler tsil thgif neewteb emiT>\"daoleR_DF\"=rof lebal<".z()+TimeDelay+">lebal/<)muminim sdnoces ".z());by.push('</td><td>');by.push(" \"3\"=ezis \"3\"=htgnelxam \"daoleR_DF\"=eman \"txet\"=epyt tupni<".z());value=C.FighterDroneReload;by.push('value="'+value+'"/>');by.push('</td></tr>');by.push(">rh<>vid/<>elbat/<".z());var bE=document.createElement('div');if(bE)bE.innerHTML=by.join('\n');var bF=document.getElementById(L('PrefStuff'));if(bF)bF.appendChild(bE);var button=document.getElementById(L('td_toggle'));if(button)button.addEventListener('click',function(){var bG=document.getElementById(L("secnereferp_dt".z()));if(bG){if(bG.style.display=='none'){bG.style.display='block';}else{bG.style.display='none';}}},true);}az.td_pI=td_pI;az.td_pH=td_pH;function td_pH(bx){var by=false;var bz=parseInt(bx.elements.namedItem(L('Timer_Delay')).value);if(bz<TimeDelay)bz=TimeDelay;if(bz!=C.timerdelay){C.timerdelay=bz;by=true;}bz=parseInt(bx.elements.namedItem('BH_Delay').value);if(bz<TimeDelay)bz=TimeDelay;if(bz!=C.BountyReload){C.BountyReload=bz;by=true;}bz=parseInt(bx.elements.namedItem('FD_Delay').value);if(bz<TimeDelay)bz=TimeDelay;if(bz!=C.FighterDrone){C.FighterDrone=bz;by=true;}bz=parseInt(bx.elements.namedItem('FD_Reload').value);if(bz<TimeDelay)bz=TimeDelay;if(bz!=C.FighterDroneReload){C.FighterDroneReload=bz;by=true;}return by;}function bl_pI(bx){var by=new Array();var bz=K('bl_toggle');var bA=K("selggoTuneMferP".z());var bB=K("secnereferp_tsilkcolb".z());by.push('<div id="'+bz+'" class="'+bA+"\"=di vid<>vid/<>elbat/<>rt/<>dt/<secnereferP tsiLkcolB>dt<>rt<>\"%001\"=htdiw elbat<>\"".z()+bB+">\"%001\"=htdiw elbat<>\";enon :yalpsid\"=elyts \"".z());by.push(">rt/<>dt/<>rh<>retnec/<tsilkcolb ylno gnitnuH ytnuoB/tsiltiH>retnec<>rh<>3=napsloc dt<>rt<".z());var bC=K('hitlistbck');var bD=K('hitlistblock');by.push("\"=di rt<>rt/<>dt/<>\"%57\"=htdiw dt<>dt/<>\"%5\"=htdiw dt<>rt<".z()+bC+">2=napsloc dt<>\"".z());by.push("\"=rof lebal<".z()+bD+">lebal/<>retnec/<>tnof/<)sedom efas dna epins htob ni skroW(>1=ezis tnof<>retnec<>rb< ?tsil gniwollof eht no snalc eht kcatta t'noD>\"".z());by.push('</td><td>');value=C.hitlistblock;if(value){by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bD+">/\"dekcehc\"=dekcehc \"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bD+">/\"0\"=eulav \"".z());}else{by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bD+">/\"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bD+">/\"dekcehc\"=dekcehc \"0\"=eulav \"".z());}value=q.join(', ');var bE=K('whoonHlist');var bF=K('onHlist');by.push("\"=di rt<>rt/<>dt/<".z()+bE+"\"=rof lebal<>dt<>\"".z()+bF+"\"=eman \"3\"=swor \"001\"=sloc aeratxet<>2=napsloc dt<>dt/<>lebal/<:tsiL nO>\"".z()+bF+">lautriv=parw \"".z()+value+'</textarea>');by.push(">retnec/<>tnof/<)ammoc a( \",\" yb detarepes eb tsum sDI nalC>1=ezis tnof<>retnec<>3=napsloc dt<>rt<>rt/<>dt/<".z());by.push('</td></tr>');var bG=K("ddaotuatsiltih".z());var bH=K('hitlistblockauto');by.push('<tr id="'+bG+">2=napsloc dt<>\"".z());by.push("\"=rof lebal<".z()+bH+">lebal/<?tsil evoba eht ot meht dda yllacitamotua ,enoemos htiw elttab a esol uoy fI>\"".z());by.push('</td><td>');value=C.hitlistblockauto;if(value){by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bH+">/\"dekcehc\"=dekcehc \"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bH+">/\"0\"=eulav \"".z());}else{by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bH+">/\"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bH+">/\"dekcehc\"=dekcehc \"0\"=eulav \"".z());}by.push('</td></tr>');var bI=K('hfightsneeded');var bJ=K('hfneeded');by.push('<tr id="'+bI+">\"%57\"=htdiw dt<>dt/<>\"%5\"=htdiw dt<>\"".z());by.push("\"=rof lebal<".z()+bJ+">lebal/<?gnikcolb redisnoc ew erofeb dedeen era sthgif ynam woH>\"".z());by.push('</td><td>');by.push("\"=eman \"txet\"=epyt tupni<".z()+bJ+" \"3\"=ezis \"3\"=htgnelxam \"".z());value=C.hfightsneeded;by.push('value="'+value+'">');by.push('</td></tr>');var bK=K('hfightratio');var bL=K('hfratio');by.push('<tr id="'+bK+">\"%57\"=htdiw dt<>dt/<>\"%5\"=htdiw dt<>\"".z());by.push("\"=rof lebal<".z()+bL+">lebal/<:dedeen si oitar niw tahw ,sthgif fo # evoba eht retfA>\"".z());by.push('</td><td>');by.push("\"=eman \"txet\"=epyt tupni<".z()+bL+" \"3\"=ezis \"3\"=htgnelxam \"".z());value=C.hratio;by.push('value="'+value+'">%');by.push('</td></tr>');by.push(">rt/<>dt/<>rh<>retnec/<tsilkcolb ylno )gnimoc( enorD rethgiF>retnec<>rh<>rb<>rb<>rb<>3=napsloc dt<>rt<".z());var bM=K('fightblock');var bN=K('fightlistblock');by.push('<tr id="'+bM+">2=napsloc dt<>\"".z());by.push("\"=rof lebal<".z()+bN+">lebal/<?tsil gniwollof eht no snalc eht kcatta t'noD>\"".z());by.push('</td><td>');value=C.fightlistblock;if(value){by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bN+">/\"dekcehc\"=dekcehc \"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bN+">/\"0\"=eulav \"".z());}else{by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bN+">/\"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bN+">/\"dekcehc\"=dekcehc \"0\"=eulav \"".z());}value=u.join(', ');var bO=K('fightOnlist');var bP=K('onFHlist');by.push("\"=di rt<>rt/<>dt/<".z()+bO+"\"=rof lebal<>dt<>\"".z()+bP+"\"=eman \"3\"=swor \"001\"=sloc aeratxet<>2=napsloc dt<>dt/<>lebal/<:tsiL nO>\"".z()+bP+">lautriv=parw \"".z()+value+'</textarea>');by.push(">retnec/<>tnof/<)ammoc a( \",\" yb detarepes eb tsum sDI nalC>1=ezis tnof<>retnec<>3=napsloc dt<>rt<>rt/<>dt/<".z());var bQ=K("ddaotuathgif".z());var bR=K('fightlistblockauto');by.push("\"=di rt<>rt/<>dt/<".z()+bQ+">2=napsloc dt<>\"".z());by.push("\"=rof lebal<".z()+bR+">lebal/<?tsil evoba eht ot meht dda yllacitamotua ,enoemos htiw thgif a esol uoy fI>\"".z());by.push('</td><td>');value=C.fightlistblockauto;if(value){by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bR+">/\"dekcehc\"=dekcehc \"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bR+">/\"0\"=eulav \"".z());}else{by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bR+">/\"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bR+">/\"dekcehc\"=dekcehc \"0\"=eulav \"".z());}var bS=K('fightsneeded');var bT=K('fneeded');by.push("\"=di rt<>rt/<>dt/<".z()+bS+">\"%57\"=htdiw dt<>dt/<>\"%5\"=htdiw dt<>\"".z());by.push("\"=rof lebal<".z()+bT+">lebal/<?gnikcolb redisnoc ew erofeb dedeen era sthgif ynam woH>\"".z());by.push('</td><td>');by.push("\"=eman \"txet\"=epyt tupni<".z()+bT+" \"3\"=ezis \"3\"=htgnelxam \"".z());value=C.fightsneeded;by.push('value="'+value+'">');var bU=K('fightratio');var bV=K('fratio');by.push("\"=di rt<>rt/<>dt/<".z()+bU+">\"%57\"=htdiw dt<>dt/<>\"%5\"=htdiw dt<>\"".z());by.push("\"=rof lebal<".z()+bV+">lebal/<:dedeen si oitar niw tahw ,sthgif fo # evoba eht retfA>\"".z());by.push('</td><td>');by.push("\"=eman \"txet\"=epyt tupni<".z()+bV+" \"3\"=ezis \"3\"=htgnelxam \"".z());value=C.fratio;by.push('value="'+value+'">%');by.push('</td></tr>');value=o.join(', ');var bW=K("tsilnalCruoYnI".z());var bX=K("tsilnalCruoYnIno".z());by.push(">rt/<>dt/<>retnec/<:nalC ruoy ni esohT>retnec<>rb<>rb<>3=napsloc dt<>rt<".z());by.push('<tr id="'+bW+"\"=rof lebal<>dt<>\"".z()+bX+"\"=eman \"3\"=swor \"001\"=sloc aeratxet<>2=napsloc dt<>dt/<>lebal/<:tsiL nO>\"".z()+bX+">lautriv=parw \"".z()+value+'</textarea>');by.push(">retnec/<>tnof/<)ammoc a( \",\" yb detarepes eb tsum sDI nalC>1=ezis tnof<>retnec<>3=napsloc dt<>rt<>rt/<>dt/<".z());by.push('</td></tr>');by.push(">rt/<>dt/<>rh<>retnec/<tsilkcolb enorD rethgiF DNA gnitnuH ytnuoB/tsiltiH>retnec<>rh<>rb<>rb<>3=napsloc dt<>rt<".z());value=A.join(', ');var bY=K("tsilrecrofnE".z());var bZ=K("tsilrecrofnEno".z());by.push(">rt/<>dt/<>retnec/<:selbahcuotnu rehto dna srecrofnE>retnec<>3=napsloc dt<>rt<".z());by.push('<tr id="'+bY+"\"=rof lebal<>dt<>\"".z()+bZ+"\"=eman \"3\"=swor \"001\"=sloc aeratxet<>2=napsloc dt<>dt/<>lebal/<:tsiL nO>\"".z()+bZ+">lautriv=parw \"".z()+value+'</textarea>');by.push(">retnec/<>tnof/<)ammoc a( \",\" yb detarepes eb tsum sDI nalC>1=ezis tnof<>retnec<>3=napsloc dt<>rt<>rt/<>dt/<".z());by.push('</td></tr>');by.push(">rh<>vid/<>elbat/<".z());var ca=document.createElement('div');if(ca)ca.innerHTML=by.join('\n');var cb=document.getElementById(L('PrefStuff'));if(cb)cb.appendChild(ca);var button=document.getElementById(L('bl_toggle'));if(button)button.addEventListener('click',function(){var cc=document.getElementById(L("secnereferp_tsilkcolb".z()));if(cc){if(cc.style.display=='none'){cc.style.display='block';}else{cc.style.display='none';}}},true);}az.bl_pI=bl_pI;az.bl_pH=bl_pH;function bl_pH(bx){var by=false;var bz=bx.elements.namedItem(L('hitlistblock'));if(C.hitlistblock!=bz.checked){if(E.hitlist)delete E.hitlist;C.hitlistblock=bz.checked;by=true;}bz=bx.elements.namedItem(L('hitlistblockauto'));if(C.hitlistblockauto!=bz.checked){if(E.hitlist)delete E.hitlist;C.hitlistblockauto=bz.checked;by=true;}bz=bx.elements.namedItem(L('onHlist')).value;bz=aa(bz);if(q!=bz){CASPER_setValue('hitlistblock',bz);by=true;}bz=bx.elements.namedItem(L('hfneeded')).value;if(C.hfightsneeded!=bz){C.hfightsneeded=bz;by=true;}bz=bx.elements.namedItem(L('hfratio')).value;if(C.hratio!=bz){C.hratio=bz;by=true;}bz=bx.elements.namedItem(L('fratio')).value;if(C.fratio!=bz){C.fratio=bz;by=true;}bz=bx.elements.namedItem(L('fneeded')).value;if(C.fightsneeded!=bz){C.fightsneeded=bz;by=true;}bz=bx.elements.namedItem(L('onFHlist')).value;bz=aa(bz);if(u!=bz){CASPER_setValue('fightlistblock',bz);by=true;}bz=bx.elements.namedItem(L('fightlistblock'));if(C.fightlistblock!=bz.checked){C.fightlistblock=bz.checked;by=true;}bz=bx.elements.namedItem(L('fightlistblockauto'));if(C.fightlistblockauto!=bz.checked){C.fightlistblockauto=bz.checked;by=true;}bz=bx.elements.namedItem(L("tsilnalCruoYnIno".z())).value;bz=aa(bz);if(o!=bz){CASPER_setValue('InYourClan',bz.replace(/,/g,'\x7c'));by=true;}bz=bx.elements.namedItem(L("tsilrecrofnEno".z())).value;bz=aa(bz);if(A!=bz){CASPER_setValue('Enforcers',bz.replace(/,/g,'\x7c'));by=true;}return by;}function dt_pI(bx){var by=new Array();var bz=K('dt_toggle');var bA=K("selggoTuneMferP".z());var bB=K("secnereferp_snoitanod".z());by.push('<div id="'+bz+'" class="'+bA+"\"=di vid<>vid/<>elbat/<>rt/<>dt/<snoitanoD>dt<>rt<>\"%001\"=htdiw elbat<>\"".z()+bB+">\";enon :yalpsid\"=elyts \"".z());by.push(">elbat/<>rt/<>dt/<>rb<>rb<>a/<moc.gnitsoHdlroWeruceS@snoitanoD>\"moc.gnitsoHdlroWeruceS@snoitanoD:otliam\"=ferh a< tcatnoc nac uoy ,snoitseuq yna evah uoy fI .raeppasid dluohs sda eht ,taht retfa stnemom wef A .woleb retne dluohs uoy taht drowssap dna eman resu a htiw liame na eviecer ,stnemom tsuj nihtiw yllacipyt ,lliw uoy ,edam si noitanod a retfA>rb<>dt<>rt<>rt/<>dt/<>retnec/<>elbat/<>rt/<>dt/<>lo/<)gnimoc erutaef( 6 ot 3 morf desaercni si sepins xaM>rb<.2 ot sdnoces 4 morf decuder si yaled remit muminim ehT>rb<.sda yalpsid regnol oN>lo<>retnec/<>u/<stifeneb eht fo emoS>u<>retnec<>dt<>dt/<>elbat/<>rt/<>dt/<>elbat/<>rt/<>dt/<yltenifedni - 02$>dt<>rt<>rt/<>dt/<raey 1 - 41$>dt<>rt<>rt/<>dt/<shtnom 3 - 7$>dt<>rt<>rt/<>dt/<htnom 1 - 4$>dt<>rt<>elbat<>dt<>rt<>01=redrob elbat<>dt<>rt<>rt/<>dt/<>rb<>retnec/<>tnof/<)elbaliava sa yllacitamotua dedda eb lliw dna ,dennalp era stifeneb lanoitiddA(>\"xp01:ezis-tnof\"=elyts tnof<>rb<:)sralloD setatS detinU ni lla( seilppa gniwollof eht ,noitacilbup s'noisrev siht fo emit eht tA>retnec<>2=napsloc dt<>rt<>elbat<>retnec<>dt<>rt<>rt/<>dt/<>rb<>rb<.stifeneb lareves uoy evig lliw tpircs eht noitaicerppa ni ,tpircs siht fo tnempoleved eht troppus pleh ot etanod uoy fI>retnec<>dt<>rt<>\"%001\"=htdiw elbat<".z());by.push(">\"%001\"=htdiw elbat<".z());var bC=ar.user;var bD=ar.pass;var bE=K("emaNresUetanoD".z());var bF=K("drowssaPetanoD".z());var bG=K("noitanod_kcehc".z());var bH=K("noitanodkcehc".z());by.push("\"=rof lebal<>retnec<>dt<>rt<".z()+bE+">rb<>lebal/<:emaN resU rotanoD>\"".z());by.push("\"=eman \"txet\"=epyt tupni<".z()+bE+" \"23\"=ezis \"23\"=htgnelxam \"".z());by.push('value="'+bC+">dt/<>retnec/<>\"".z());by.push(">dt/<>gmi/<>\"fig.GL_CCetanod_ntb/ntb/i/SU_ne/moc.lapyap.www//:sptth\"=crs gmi<>\"2058317=di_nottub_detsoh&kcilcx-s_=dmc?rcsbew/nib-igc/moc.lapyap.www//:sptth\"=ferh a<>2=napswor dt<".z());by.push(">retnec<>dt<>rt<>rt/<".z());by.push("\"=rof lebal<".z()+bF+">rb<>lebal/<:drowssaP resU rotanoD>\"".z());by.push("\"=eman \"drowssap\"=epyt tupni<".z()+bF+" \"52\"=ezis \"52\"=htgnelxam \"".z());by.push('value="'+bD+">rt/<>dt/<>retnec/<>\"".z());by.push('<tr id="'+bG+">2=napsloc dt<>\"".z());by.push("\"=rof lebal<".z()+bH+">lebal/< :sutats noitanoD kcehCeR>\"".z());by.push('</td><td>');var value=false;if(value){by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bH+">/\"dekcehc\"=dekcehc \"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bH+">/\"0\"=eulav \"".z());}else{by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bH+">/\"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bH+">/\"dekcehc\"=dekcehc \"0\"=eulav \"".z());}by.push('</td></tr>');by.push(">rh<>vid/<>elbat/<".z());var bI=document.createElement('div');if(bI)bI.innerHTML=by.join('\n');var bJ=document.getElementById(L('PrefStuff'));if(bJ)bJ.appendChild(bI);var button=document.getElementById(L('dt_toggle'));if(button)button.addEventListener('click',function(){var bK=document.getElementById(L("secnereferp_snoitanod".z()));if(bK){if(bK.style.display=='none'){bK.style.display='block';}else{bK.style.display='none';}}},true);}az.dt_pI=dt_pI;az.dt_pH=dt_pH;function dt_pH(bx){var by=false;if(bx.elements.namedItem(L("emaNresUetanoD".z())).value!=undefined){if(bx.elements.namedItem(L("emaNresUetanoD".z())).value!=ar.user){ar.user=bx.elements.namedItem(L("emaNresUetanoD".z())).value;CASPER_setValue('donation',ar.toSource());CASPER_setValue("lcheck","\x30");by=true;}}if(bx.elements.namedItem(L("drowssaPetanoD".z())).value!=undefined){if(bx.elements.namedItem(L("drowssaPetanoD".z())).value!=ar.pass){ar.pass=bx.elements.namedItem(L("drowssaPetanoD".z())).value;CASPER_setValue('donation',ar.toSource());CASPER_setValue("lcheck","\x30");by=true;}}if(bx.elements.namedItem(L("noitanodkcehc".z())).checked==true){CASPER_setValue("lcheck","\x30");by=true;}return by;}function cs_pI(bx){var by=new Array();var bz=K('cs_toggle');var bA=K("selggoTuneMferP".z());var bB=K("secnereferp_revloSahctpaC".z());by.push('<div id="'+bz+'" class="'+bA+"\"=di vid<>vid/<>elbat/<>rt/<>dt/<hsA fo ytiC rof 2848#&revloS ahctpaC>dt<>rt<>\"%001\"=htdiw elbat<>\"".z()+bB+">\";enon :yalpsid\"=elyts \"".z());if(!f){by.push(">rb<>rb<>retnec/<>tnof/<.yltnerrucnoc nur ton nac htob sa ,noisrev yeknoMesaerG eht llatsninu ro elbasid ot erus eb ,noisrev nOddA eht ot edargpu od uoy fI>rb<.tpircs siht fo noisrev nOddA eht ot gnidargpu redisnoc esaelp ,stluser yrotcafsitas neht ssel evah uoy dna ,ecivres siht rof pu ngis uoy fI .noisrev yeknoMesaerG eht gnisu nehw smetsys lla htiw ylbailer sa krow ton seod 2848#&revloS ahctpaC ehT .tpircs siht fo noisrev yeknoMesaerG eht gnisu era uoY>neergkrad=roloc tnof<>retnec<>rb<".z());}by.push(">elbat/<>rt/<>dt/<>rb<>rb<>a/<moc.gnitsoHdlroWeruceS@snoitanoD>\"moc.gnitsoHdlroWeruceS@snoitanoD:otliam\"=ferh a< tcatnoc nac uoy ,snoitseuq yna evah uoy fI >rb<>rb<.xaler dna kcab tis tsuj neht dna ,no ti nrut ,ereh meht retnE .drowssap dna emanresu ruoy htiw liame na eviecer lliw uoy stnemom wef a ni ,ebircsbus uoy retfA>dt<>rt<>rt/<>dt/<>retnec/<>elbat/<>rt/<>dt/<>elbat/<>rt/<>dt/<>tnof/<;24#&>\"xp8:ezis-tnof\"=elyts tnof<sahctpaC devloS 0001 - 59.4$>dt<>rt<>rt/<>dt/<sahctpaC devlos >tnof/<;24#&>\"xp8:ezis-tnof\"=elyts tnof<detimilnU htnom 1 - 59.8$>dt<>rt<>elbat<>dt<>rt<>01=redrob elbat<>retnec<>dt<>rt<>rt/<>dt/<>retnec/<:)sralloD setatS detinU ni lla( seilppa gniwollof eht ,noitacilbup s'noisrev siht fo emit eht tA>rb<>rb<.llew sa noitpo CPP a si erehT>rb<>rb<.>tnof/<seirrow on rof etar ylhtnom talf eno tsuJ>\"eulb\"=roloc tnof<>lo/<.uoy rof devlos meht evah nac uoy os sahctpac 'evlos' ot deen oN ->rb<'stniop' hguone evah uoy fi gniyrrow oN ->lo<>rb<.devlos sahctpac >tnof/<;24#&>\"xp8:ezis-tnof\"=elyts tnof<DETIMILNU evah nac uoy ,etar ylhtnom talf a roF .tpircs siht rof elbaliava won si 2848#&revloS ahctpaC>retnec<>dt<>rt<>\"%001\"=htdiw elbat<".z());by.push(">\"%001\"=htdiw elbat<".z());var bC='';var bD='';var bE=false;if(I.user!=undefined){bC=I.user;}if(I.pass!=undefined){bD=I.pass;}var bF=K("emaNresUahctpaC".z());by.push("\"=rof lebal<>retnec<>dt<>rt<".z()+bF+">rb<>lebal/<:emaN resU 2848#&revloS ahctpaC>\"".z());by.push("\"=eman \"txet\"=epyt tupni<".z()+bF+" \"23\"=ezis \"23\"=htgnelxam \"".z());by.push('value="'+bC+">dt/<>retnec/<>\"".z());by.push(">2=napsloc 2=napswor dt<".z());if(I.valid>10000){if(new Date().getTime()<I.valid){var bG=new Date(parseFloat(I.valid));var bH=bG.getFullYear()+'';var bI=bG.toTimeString()+'';var bJ=(bG.getMonth()+1)+'\x2f'+bG.getDate()+'\x2f'+bH.substr(2,2)+'\x20'+bI.substr(0,8);by.push(" :urhT dooG>retnec<".z()+bJ+" :tfeL sesU>rb<>rb<!!troppus ruoy rof >tnof/<UOY KNAHT>\"neerg\"=roloc tnof<>rb<>rb<".z()+I.LFT+'<br>');if(I.Sys==1){by.push(">rb<>rb<>tnof/<)\"moc.gnitsoHdlroWeruceS@snoitanoD\" gnitcatnoc yb erom tseuqer yam uoy ,sesu fo tuo tsomla era uoy taht eciton uoy fI .noitpircsbus DETIMILNU a si sihT(>1=ezis tnof<".z());}by.push('</center>');}else{by.push(">retnec/<>rb<>rb<>a/<>gmi/<>\"fig.GL_CCwonyub_ntb/ntb/i/SU_ne/moc.lapyap.www//:sptth\"=crs gmi<>\"4248317=di_nottub_detsoh&kcilcx-s_=dmc?rcsbew/nib-igc/moc.lapyap.www//:sptth\"=ferh a<>rb<;24#&59.4$ rof sevloS 0001>rb<>rb<>a/<>gmi/<>\"fig.GL_CCebircsbus_ntb/ntb/i/SU_ne/moc.lapyap.www//:sptth\"=crs gmi<>\"9628317=di_nottub_detsoh&kcilcx-s_=dmc?rcsbew/nib-igc/moc.lapyap.www//:sptth\"=ferh a<>rb<noitpircsbuS detimilnU>retnec<".z());}}else{by.push(">retnec/<>rb<>rb<>a/<>gmi/<>\"fig.GL_CCwonyub_ntb/ntb/i/SU_ne/moc.lapyap.www//:sptth\"=crs gmi<>\"4248317=di_nottub_detsoh&kcilcx-s_=dmc?rcsbew/nib-igc/moc.lapyap.www//:sptth\"=ferh a<>rb<;24#&59.4$ rof sevloS 0001>rb<>rb<>a/<>gmi/<>\"fig.GL_CCebircsbus_ntb/ntb/i/SU_ne/moc.lapyap.www//:sptth\"=crs gmi<>\"9628317=di_nottub_detsoh&kcilcx-s_=dmc?rcsbew/nib-igc/moc.lapyap.www//:sptth\"=ferh a<>rb<noitpircsbuS detimilnU>retnec<".z());if(I.valid==2000){by.push('Uses Left: '+I.LFT+'<br>');}}by.push('</td>');by.push(">retnec<>dt<>rt<>rt/<".z());var bK=K("drowssaPrevloSahctpaC".z());by.push("\"=rof lebal<".z()+bK+">rb<>lebal/<:drowssaP resU 2848#&revloS ahctpaC>\"".z());by.push("\"=eman \"drowssap\"=epyt tupni<".z()+bK+" \"52\"=ezis \"52\"=htgnelxam \"".z());by.push('value="'+bD+">rt/<>dt/<>rb<>retnec/<>\"".z());var bL=K("revloSahctpaCesU".z());var bM=K("ahctpaCevloS".z());by.push('<tr id="'+bL+">2=napsloc dt<>\"".z());by.push("\"=rof lebal<".z()+bM+">lebal/< :2848#&revloS ahctpaC esU>\"".z());by.push('</td><td>');if(I.UseIt!=undefined){bE=I.UseIt;}if(bE){by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bM+">/\"dekcehc\"=dekcehc \"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bM+">/\"0\"=eulav \"".z());}else{by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bM+">/\"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bM+">/\"dekcehc\"=dekcehc \"0\"=eulav \"".z());}by.push('</td></tr>');var value=I.Retry;var bN=K("yrteRrevloSahctpaC".z());var bO=K("yrteRahctpaCevloS".z());by.push('<tr id="'+bN+">2=napsloc dt<>\"".z());by.push("\"=rof lebal<".z()+bO+">lebal/< :niaga yrt dna daoler ,rucco dluohs rorre metsys 2848#&revloS ahctpaC a fI>\"".z());by.push('</td><td>');if(value){by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bO+">/\"dekcehc\"=dekcehc \"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bO+">/\"0\"=eulav \"".z());}else{by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bO+">/\"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bO+">/\"dekcehc\"=dekcehc \"0\"=eulav \"".z());}by.push('</td></tr>');var bP=K("yrterxamrevloSahctpaC".z());var bQ=K("yrteRxaMrevloSahctpaC".z());by.push('<tr id="'+bP+">2=napsloc dt<>\"".z());by.push("\"=rof lebal<".z()+bQ+">dt<>dt/<>lebal/<:pu gnivig erofeb rewsna na tpmetta ot semit xaM>\"".z());by.push("\"=eman \"txet\"=epyt tupni<".z()+bQ+" \"2\"=ezis \"2\"=htgnelxam \"".z());by.push('value="'+I.MaxRetry+'">');by.push('</td></tr>');var bR=K("emitnimrevloSahctpaC".z());var bS=K("emiTniMrevloSahctpaC".z());by.push('<tr id="'+bR+">2=napsloc dt<>\"".z());by.push("\"=rof lebal<".z()+bS+">dt<>dt/<>lebal/<:rewsna ahctpac a rof dewolla emit muminiM>\"".z());by.push("\"=eman \"txet\"=epyt tupni<".z()+bS+" \"1\"=ezis \"1\"=htgnelxam \"".z());by.push('value="'+I.MinTime+'">');by.push('</td></tr>');var bT=K("emitxamrevloSahctpaC".z());var bU=K("emiTxaMrevloSahctpaC".z());by.push('<tr id="'+bT+">2=napsloc dt<>\"".z());by.push("\"=rof lebal<".z()+bU+">dt<>dt/<>lebal/<:rewsna ahctpac a rof dewolla emit xaM>\"".z());by.push("\"=eman \"txet\"=epyt tupni<".z()+bU+" \"2\"=ezis \"2\"=htgnelxam \"".z());by.push('value="'+I.MaxTime+'">');by.push('</td></tr>');by.push(">rh<>vid/<>retnec<>tnof/<.detcerroc eb nac smelborp lla eetnaraug t'nac yletanutrofnu tub ,retnuocne yam uoy smelborp yna evlos ot uoy htiw krow syawla lliw ew ,ecivres siht ot detaler gnihtyreve htiw sA .tros emos fo ytlanep a suht dna ,erehwemos SOT a gnitaloiv thguac gnitteg fo ksir llams a syawla si ereht ,gnihtyna htiw sA .syad 03 = htnom 1 .emit ni derewsna teg ton od taht esoht dna srewsna gnorw htob sedulcni siht -- emit nevig yna ta rehgih ro rewol eb yam tub ,%58 dnuora srevoh yltnerruc sahctpac laudividni gnivlos etar sseccus revloS ahctpaC .elbaliavanu eb ot ecivres eht esuac yam taht ,nosaer yna rof ,segatuo yna rof elbisnopser toN>rb<.detseuqer eb tsum tub ,tiderc a rof uoy yfilauq yam etar sseccus lamron naht rewol A .ton ro tcerroc sa hsA fo ytiC yb detpecca rehtehw ,egasu eno sa stnuoc tpmetta evlos yrevE .eripxe ton od stniop ecivres revloS ahctpaC CPP;24#&>rb<.tseuqer yb ,noitercsid elos s'revloS ahctpaC ta ,tsoc on ta ,nevig eb lliw erom ,pac siht hcaer wohemos dluohs uoy fI .secivres ralimis rehto no htrow 63$ ot tnelaviuqe -- htm/0003 fo pac 'tfos' a sah ecivres detimilnU;24#&>\"xp8:ezis-tnof\"=elyts tnof<>retnec<>elbat/<".z());var bV=document.createElement('div');if(bV)bV.innerHTML=by.join('\n');var bW=document.getElementById(L('PrefStuff'));if(bW)bW.appendChild(bV);var button=document.getElementById(L('cs_toggle'));if(button)button.addEventListener('click',function(){var bX=document.getElementById(L("secnereferp_revloSahctpaC".z()));if(bX){if(bX.style.display=='none'){bX.style.display='block';}else{bX.style.display='none';}}},true);}az.cs_pI=cs_pI;az.cs_pH=cs_pH;var TimeDelay=4;function cs_pH(bx){var by=false;if(bx.elements.namedItem(L("emaNresUahctpaC".z())).value!=undefined){if(bx.elements.namedItem(L("emaNresUahctpaC".z())).value!=I.user){I.user=bx.elements.namedItem(L("emaNresUahctpaC".z())).value;CASPER_setValue('CaptchaSolver',I.toSource());by=true;}}if(bx.elements.namedItem(L("drowssaPrevloSahctpaC".z())).value!=undefined){if(bx.elements.namedItem(L("drowssaPrevloSahctpaC".z())).value!=I.pass){I.pass=bx.elements.namedItem(L("drowssaPrevloSahctpaC".z())).value;CASPER_setValue('CaptchaSolver',I.toSource());by=true;}}if((bx.elements.namedItem(L("yrteRxaMrevloSahctpaC".z())).value!=undefined)&&!isNaN(bx.elements.namedItem(L("yrteRxaMrevloSahctpaC".z())).value)){if(bx.elements.namedItem(L("yrteRxaMrevloSahctpaC".z())).value!=I.MaxRetry){I.MaxRetry=bx.elements.namedItem(L("yrteRxaMrevloSahctpaC".z())).value;CASPER_setValue('CaptchaSolver',I.toSource());by=true;}}else{alert(".degnahc era secnereferp lla toN .dilavni si yrtne yrteR xaM revloS ahctpaC".z());m=true;}if((bx.elements.namedItem(L("emiTxaMrevloSahctpaC".z())).value!=undefined)&&!isNaN(bx.elements.namedItem(L("emiTxaMrevloSahctpaC".z())).value)){if(bx.elements.namedItem(L("emiTxaMrevloSahctpaC".z())).value!=I.MaxTime){I.MaxTime=bx.elements.namedItem(L("emiTxaMrevloSahctpaC".z())).value;CASPER_setValue('CaptchaSolver',I.toSource());by=true;}}else{alert(".degnahc era secnereferp lla toN .dilavni si yrtne emiT xaM revloS ahctpaC".z());m=true;}if((bx.elements.namedItem(L("emiTniMrevloSahctpaC".z())).value!=undefined)&&!isNaN(bx.elements.namedItem(L("emiTniMrevloSahctpaC".z())).value)){if(bx.elements.namedItem(L("emiTniMrevloSahctpaC".z())).value!=I.MinTime){I.MinTime=bx.elements.namedItem(L("emiTniMrevloSahctpaC".z())).value;CASPER_setValue('CaptchaSolver',I.toSource());by=true;}}else{alert(".degnahc era secnereferp lla toN .dilavni si yrtne emiT niM revloS ahctpaC".z());m=true;}if(bx.elements.namedItem(L("ahctpaCevloS".z())).checked!=I.UseIt){I.UseIt=bx.elements.namedItem(L("ahctpaCevloS".z())).checked;CASPER_setValue('CaptchaSolver',I.toSource());by=true;}if(bx.elements.namedItem(L("yrteRahctpaCevloS".z())).checked!=I.Retry){I.Retry=bx.elements.namedItem(L("yrteRahctpaCevloS".z())).checked;CASPER_setValue('CaptchaSolver',I.toSource());by=true;}return by;}function aC(){var bx=new Object();function by(){this.name='Unknown';this.level=10000;this.clanSize=2000;this.target_id=1;this.form=undefined;}var bz=document.getElementsByClassName('mainTable')[0];if(bz){var bA=bz.getElementsByTagName('tr');for(var bB=1;bB<bA.length;bB++){var bC=bA[bB].getElementsByTagName('\x61')[1];if(bC){var name=bC.innerHTML;bx[name]=new by();bx[name].name=name;bx[name].form=bA[bB].getElementsByTagName('form')[0];var bD=bx[name].form.getElementsByTagName('input');bx[name].target_id=parseInt(bC.href.split('user_id=')[1]);bx[name].clanSize=parseInt(bA[bB].getElementsByTagName('td')[2].innerHTML);bx[name].level=parseInt(bA[bB].getElementsByTagName('td')[1].innerHTML.split(/<\/div>Level /)[1]);}}}return bx;}function aD(bx){var a=true;var by=new Array();var bz=Infinity;var bA=GM_getValue('PrevFights','').split('\x7c');if(bA){for(var i=0;i<bA.length;i++){if(bx==bA[i].split('\x3a')[0]){a=false;by.push(bA[i].split('\x3a')[0]+'\x3a'+(parseInt(bA[i].split('\x3a')[1])+1)+'\x3a'+(new Date().getTime()));}else{if(bA[i].split('\x3a').length>2){if((parseInt(bA[i].split('\x3a')[2])+(60*1000*C.DroneMemTime))>parseInt(new Date().getTime())){by.push(bA[i]);}}else{by.push(bA[i].split('\x3a')[0]+'\x3a'+parseInt(bA[i].split('\x3a')[1])+'\x3a'+(new Date().getTime()));}}}}else{by.push(bx+':1:'+(new Date().getTime()));a=false;}if(a){if(by.length<bz){by.push(bx+':1:'+(new Date().getTime()));}else{by.splice(0,1);by.push(bx+':1:'+(new Date().getTime()));}}GM_setValue('PrevFights',by.join('\x7c'));}function aE(bx){var by=GM_getValue('PrevFights','').split('\x7c');var bz=0;for(var i=0;i<by.length;i++){if(bx==by[i].split('\x3a')[0]){if(by[i].split('\x3a').length>2){if((parseInt(by[i].split('\x3a')[2])+(60*1000*C.DroneMemTime))>parseInt(new Date().getTime())){if(!isNaN(by[i].split('\x3a')[1]))bz=parseInt(by[i].split('\x3a')[1]);}}else{if(!isNaN(by[i].split('\x3a')[1]))bz=parseInt(by[i].split('\x3a')[1]);}break;}}return bz;}function aF(bx){if(C.fightlistblock){if(in_array_Int(bx,u)){return true;}}return false;}function aG(bx,by,bz,bA,bB,bC,bD){var bE=document.getElementById(L('FDResults'));if(!bE)return;var bF='';var x;if(bC.toSource()!='({})'){bF=">rb<:>tnof/<sessol>der=roloc tnof< rof dekcolB>rb<".z();for(x in bC){bF+=";psbn&;psbn&;psbn&".z()+bC[x].name+'<br>';}}if(bB.toSource()!='({})'){bF+=">rb<:>tnof/<skcatta xam>der=roloc tnof< rof dekcolB>rb<".z();for(x in bB){bF+=";psbn&;psbn&;psbn&".z()+bB[x].name+'<br>';}}if(bx.toSource()!='({})'){bF+=">rb<:>tnof/<level hgih>der=roloc tnof< rof dekcolB>rb<".z();for(x in bx){bF+=";psbn&;psbn&;psbn&".z()+bx[x].name+'<br>';}}if(by.toSource()!='({})'){bF+=">rb<:>tnof/<level wol>der=roloc tnof< rof dekcolB>rb<".z();for(x in by){bF+=";psbn&;psbn&;psbn&".z()+by[x].name+'<br>';}}if(bz.toSource()!='({})'){bF+=">rb<:>tnof/<bom egral>der=roloc tnof< rof dekcolB>rb<".z();for(x in bz){bF+=";psbn&;psbn&;psbn&".z()+bz[x].name+'<br>';}}if(bA.toSource()!='({})'){bF+=">rb<:>tnof/<bom llams>der=roloc tnof< rof dekcolB>rb<".z();for(x in bA){bF+=";psbn&;psbn&;psbn&".z()+bA[x].name+'<br>';}}bE.innerHTML=bF;}aA.drone=drone;function drone(bx){bx=bx||'0000000';var by=aC();var bz=new Array();var bA=new Object(),bB=new Object(),bC=new Object(),bD=new Object(),bE=new Object(),bF=new Object();for(var bG in by){if((C.droneMaxLevel!=0)&&(by[bG].level>C.droneMaxLevel)){bA[bG]=by[bG];delete by[bG];}else if((C.droneMinLevel!=0)&&(by[bG].level<C.droneMinLevel)){bB[bG]=by[bG];delete by[bG];}else if((C.droneMaxSize!=0)&&(by[bG].clanSize>C.droneMaxSize)){bC[bG]=by[bG];delete by[bG];}else if((C.droneMinSize!=0)&&(by[bG].clanSize<C.droneMinSize)){bD[bG]=by[bG];delete by[bG];}else if(aF(by[bG].target_id)){bF[bG]=by[bG];delete by[bG];}else if((C.MaxAttack!=0)&&(aE(by[bG].target_id)>=C.MaxAttack)){bE[bG]=by[bG];delete by[bG];}if(by[bG]&&by[bG].name)bz.push(by[bG].name);}if(bz.length>0){aG(bA,bB,bC,bD,bE,bF,bx);var bH=Math.floor(Math.random()*bz.length);var bI=by[bz[bH]].form.getElementsByTagName("input");var bJ;for(var k=(bI.length-1);k>=0;k--){if(bI[k].type=="submit"){bJ=bI[k];break;}}if(bJ){aj.start(bJ,"Attacking "+by[bz[bH]].name+"...",ad(C.FighterDrone,2),'drone',false);aD(by[bz[bH]].target_id);}else{al('drone',"tsil thgif gnidaoler ,rorre enorD".z(),C.FighterDrone,"/thgif/hsafoytic/moc.koobecaf.sppa//:ptth".z());}return;}else{if(bx[0]=='\x30'){drone('1000000');return;}}aG(bA,bB,bC,bD,bE,bF,bx);al('drone',"tsil thgif gnidaoler ,dnuof tegrat elbatpecca oN".z(),C.FighterDroneReload,"/thgif/hsafoytic/moc.koobecaf.sppa//:ptth".z());}aA.fd_e=fd_e;function fd_e(){if(!C.fight_active){if(B.actions.fighter){delete B.actions.fighter;}return;}if(E.drone)delete E.drone;if((E.stamina)||(E.PlayDead)||(E.hospital))return;if(E.hitlist)return;var bx=new Object();bx.message="...egap thgiF gnikcehC".z();bx.page='fight';bx.func='drone';bx.time=Math.floor(new Date().getTime()/1000)+C.timerdelay;E.drone=bx;}az.fd_pI=fd_pI;az.fd_pH=fd_pH;function fd_pI(bx){var by=new Array();var bz=K("selggoTuneMferP".z());var bA=K('fd_toggle');var bB=K("secnereferp_enordrethgif".z());by.push('<div id="'+bA+'" class="'+bz+"\"=di vid<>vid/<>elbat/<>rt/<>dt/<secnereferP enorD rethgiF>dt<>rt<>\"%001\"=htdiw elbat<>\"".z()+bB+">\";enon :yalpsid\"=elyts \"".z());by.push(">\"%001\"=htdiw elbat<".z());var value=C.fight_active;by.push('<tr id="'+K('fightactive')+">2=napsloc dt<>\"".z());by.push("\"=rof lebal<".z()+K('fight_active')+">lebal/< ?ffo si gnitnuh ytnuob nehw sbom thgif yllacitamotuA>\"".z());by.push('</td><td>');if(value){by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+K('fight_active')+">/\"dekcehc\"=dekcehc \"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+K('fight_active')+">/\"0\"=eulav \"".z());}else{by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+K('fight_active')+">/\"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+K('fight_active')+">/\"dekcehc\"=dekcehc \"0\"=eulav \"".z());}by.push('</td></tr>');value=C.droneMaxSize;by.push('<tr id="'+K('maxmob')+">\"%57\"=htdiw dt<>dt/<>\"%5\"=htdiw dt<>\"".z());by.push("\"=rof lebal<".z()+K('Max_Mob')+">lebal/<)detimilnu=0( :eziS boM xaM>\"".z());by.push('</td><td>');by.push("\"=eman \"txet\"=epyt tupni<".z()+L('Max_Mob')+" \"4\"=ezis \"4\"=htgnelxam \"".z());by.push('value="'+value+'">');by.push('</td></tr>');value=C.droneMinSize;by.push('<tr id="'+K('minmob')+">\"%57\"=htdiw dt<>dt/<>\"%5\"=htdiw dt<>\"".z());by.push("\"=rof lebal<".z()+K('Min_Mob')+">lebal/<:eziS boM muminiM>\"".z());by.push('</td><td>');by.push("\"=eman \"txet\"=epyt tupni<".z()+L('Min_Mob')+" \"4\"=ezis \"4\"=htgnelxam \"".z());by.push('value="'+value+'">');by.push('</td></tr>');value=C.droneMaxLevel;by.push('<tr id="'+K('maxmoblevel')+">\"%57\"=htdiw dt<>dt/<>\"%5\"=htdiw dt<>\"".z());by.push("\"=rof lebal<".z()+K("leveL_boM_xaM".z())+">lebal/<)detimilnu=0( :leveL boM xaM>\"".z());by.push('</td><td>');by.push("\"=eman \"txet\"=epyt tupni<".z()+L("leveL_boM_xaM".z())+" \"4\"=ezis \"4\"=htgnelxam \"".z());by.push('value="'+value+'">');by.push('</td></tr>');value=C.droneMinLevel;by.push('<tr id="'+K('minmoblevel')+">\"%57\"=htdiw dt<>dt/<>\"%5\"=htdiw dt<>\"".z());by.push("\"=rof lebal<".z()+K("leveL_boM_niM".z())+">lebal/<:leveL boM muminiM>\"".z());by.push('</td><td>');by.push("\"=eman \"txet\"=epyt tupni<".z()+L("leveL_boM_niM".z())+" \"4\"=ezis \"4\"=htgnelxam \"".z());by.push('value="'+value+'">');by.push('</td></tr>');value=C.MaxAttack;by.push('<tr id="'+K('maxattack')+">2=napsloc dt<>\"".z());by.push("\"=rof lebal<".z()+K('MaxAttack')+">lebal/<:bom eno kcatta ot semit xaM>\"".z());by.push('</td><td>');by.push("\"=eman \"txet\"=epyt tupni<".z()+L('MaxAttack')+" \"4\"=ezis \"4\"=htgnelxam \"".z());by.push('value="'+value+'">');by.push('</td></tr>');value=C.DroneMemTime;by.push('<tr id="'+K("emityromemenord".z())+">dt<>dt/<>dt<>\"".z());by.push("\"=rof lebal<".z()+K('DroneMemTime')+">lebal/<)nim 5 ,setunim( :sbom rebmemer ot emit xaM>\"".z());by.push('</td><td>');by.push("\"=eman \"txet\"=epyt tupni<".z()+L('DroneMemTime')+" \"5\"=ezis \"5\"=htgnelxam \"".z());by.push('value="'+value+'">');by.push('</td></tr>');by.push(">vid/<>elbat/<".z());var bC=document.createElement('div');by.push('<hr>');if(bC)bC.innerHTML=by.join('\n');var bD=document.getElementById(L('PrefStuff'));if(bD)bD.appendChild(bC);var button=document.getElementById(bA);if(button)button.addEventListener('click',function(){var bE=document.getElementById(bB);if(bE){if(bE.style.display=='none'){bE.style.display='block';}else{bE.style.display='none';}}},true);}function fd_pH(bx){var by=false;var bz=bx.elements.namedItem(L('fight_active'));if(C.fight_active!=bz.checked){if(B.actions.fighter)delete B.actions.fighter;C.fight_active=bz.checked;by=true;}bz=parseInt(bx.elements.namedItem(L('Max_Mob')).value);if(!isNaN(bz)&&bz>=0){if(C.droneMaxSize!=bz){C.droneMaxSize=bz;by=true;}}else{alert(".degnahc ton secnereferP .)secnereferP enorD rethgiF( ezis bom xam rof tupni dilavnI".z());m=true;}bz=parseInt(bx.elements.namedItem(L('Min_Mob')).value);if(!isNaN(bz)&&(bz>=0)&&((bz<=C.droneMaxSize)||(C.droneMaxSize==0))){if(C.droneMinSize!=bz){C.droneMinSize=bz;by=true;}}else{alert(".degnahc ton secnereferP .)secnereferP enorD rethgiF( ezis bom nim rof tupni dilavnI".z());m=true;}bz=parseInt(bx.elements.namedItem(L("leveL_boM_xaM".z())).value);if(!isNaN(bz)&&bz>=0){if(C.droneMaxLevel!=bz){C.droneMaxLevel=bz;by=true;}}else{alert(".degnahc ton secnereferP .)secnereferP enorD rethgiF( level bom xam rof tupni dilavnI".z());m=true;}bz=parseInt(bx.elements.namedItem(L("leveL_boM_niM".z())).value);if(!isNaN(bz)&&(bz>=0)&&((bz<=C.droneMaxLevel)||(C.droneMaxLevel==0))){if(C.droneMinLevel!=bz){C.droneMinLevel=bz;by=true;}}else{alert(".degnahc ton secnereferP .)secnereferP enorD rethgiF( level bom nim rof tupni dilavnI".z());m=true;}bz=parseInt(bx.elements.namedItem(L('MaxAttack')).value);if(!isNaN(bz)&&bz>=0){if(C.MaxAttack!=bz){C.MaxAttack=bz;by=true;}}else{alert(".degnahc ton secnereferP .)secnereferP enorD rethgiF( skcatta fo rebmun xam rof tupni dilavnI".z());m=true;}bz=parseInt(bx.elements.namedItem(L('DroneMemTime')).value);if(!isNaN(bz)&&bz>=5){if(C.DroneMemTime!=bz){C.DroneMemTime=bz;by=true;}}else{alert(".degnahc ton secnereferP .)secnereferP enorD rethgiF( emit dekcatta sbom rebmemer rof tupni dilavnI".z());m=true;}return by;}aA.hl_e=hl_e;function hl_e(){if(!C.hitlist_active){if(E.hitlist)delete E.hitlist;return;}if(E.hitlist)delete E.hitlist;if((E.stamina)||(E.PlayDead)||(E.hospital))return;var bx=new Object();bx.priority=5;bx.time=Page.now+C.timerdelay;bx.message="...gnitnuh ytnuoB".z();bx.page='bounty';bx.func='hl_attack';E.hitlist=bx;}aA.hl_attack=hl_attack;function hl_attack(){if(Page.c_page!='bounty')return;var bx,by,bz=0,bA,bB;var bC;var bD;var bE='';if(C.MaxBounty==0){by=Infinity;}else{by=C.MaxBounty;}var bF=Utils.getElementsByClassName('mainTable')[0];if(!bF)return;bF=bF.getElementsByTagName('FORM');if(!z['pausingSys'])for(i=0;i<bF.length;i++){if(bF[i].action.match(/fight\/do.php/i)&&(bF[i].style.visibility!='hidden')){var bG=Utils.getElementsByXPath('../../td[4]',bF[i])[0];var bH,bI;bG=bG.innerHTML.replace(/[\$,]/g,'');bG=parseInt(bG);var bJ=Math.floor(Math.random()*2);if((((bG>=C.MinBounty)&(bG<=by))||((C.IgnoreMinimumBounty)&&(B.stamina==B.max_stamina)&&(bG<by)))&&((S||n)||bJ)){var bK=bF[i].getElementsByTagName('INPUT');var bL=(bK.length-1);for(var j=bL;j>=0;j--){if(bK[j].name=="target_id"){bH=bK[j].value;break;}else if(bK[j].type=="submit"){bI=bK[j];}}if(!bH)continue;if(in_array_Int(bH,A)){bE="!>tnof/<)tsil recrofne eht no(>rb<dekcolb saw tegrat eno tsael tA>\"der\"=roloc tnof<".z();continue;}if(C.hitlistblock)if(in_array_Int(bH,q)){bE="!>tnof/<dekcolb tegrat eno tsael tA>\"der\"=roloc tnof<".z();continue;}if((C.snipemore)&&(C.snipe>0)){bx=bF[i];bC.push(bx);bD.push(bG+'\x3a'+bH);continue;}if(C.hitlist_target==0){bz=bG;bA=bH;bB=bI;bx=bF[i];break;}else{if(C.hitlist_target==1){if(bz<bG){bx=bF[i];bz=bG;bA=bH;bB=bI;}}else{if(bz>bG){bx=bF[i];bz=bG;bA=bH;bB=bI;}else{if(bz==0){bz=bG;bA=bH;bx=bF[i];bB=bI;}}}}}}}if(!bx){al('bounty',"tsil ytnuob gnidaoleR".z(),C.BountyReload,"/ytnuob/hsafoytic/moc.koobecaf.sppa//:ptth".z());return;}else{if(C.snipemore&&(C.snipe>0)){MultiSnipe(bC,bD);return;}if(C.snipe>0){Snipe(bx,bz,bA);return;}else{SafeModeHit(bx,bz,bA,bB);return;}}}function SafeModeHit(bx,by,bz,bA){var name;if(!bA){var bB=bx.getElementsByTagName('INPUT');var bC=(bB.length-1);for(var j=bC;j>=0;j--){if(bB[j].type=="submit"){bA=bB[j];break;}}}name=Utils.getElementsByXPath("a/]2=)(noitisop[dt/../..".z(),bx)[0];name=name.innerHTML;bA.click();var bD=name+'\x3a'+by+'\x3a'+bz+':SMH';CASPER_setValue('Fights',bD);var span=document.getElementById(L("sutatstpircs".z()));if(span)span.innerHTML='Attacking '+name+'.....';span=document.getElementById(L('scripttimer'));if(span)span.innerHTML=0;}var aH=new Object();aH.init=function(){this.handlers=new Array();this.div=document.createElement('div');var bx=K('LogDiv');this.div.id=bx;var facebookgmlog=K("golmgkoobecaf".z());this.div.className=facebookgmlog;var by='\x2e'+facebookgmlog+" :thgieh ;xp516 :htdiw ;xp01 :gniddap ;kcalb dilos xp1 :redrob ;otua :thgir-nigram ;otua :tfel-nigram ;enon :yalpsid ;thgir:ngila-txet { ".z()+(R.pageHeight()-120)+"} ;dlob:thgiew-tnof ;xp01:gniddap ;8995B3#:roloc ;EEEEEE#:roloc-dnuorgkcab ;lairA :ylimaf-tnof ;xp".z();by+='\x2e'+facebookgmlog+"} ;FFFFFF# :roloc ;4B48D6# :dnuorgkcab ;retnec:ngila-txet ;tp21 :ezis-tnof { 1h ".z();by+='\x2e'+facebookgmlog+"} ;dilos dilos dilos dilos :elyts-redrob ;xp2 :gniddap ;xp1 :htdiw-redrob { elbat ".z();var bz=K('td_l');var bA=K('td_r');var td_h=K('td_h');var td_c=K('td_c');by+='\x2e'+facebookgmlog+' .'+bz+"} ;xp2 :gniddap ;xp1 :htdiw-redrob ;tp01 :ezis-tnof ;tfel:ngila-txet { ".z();by+='\x2e'+facebookgmlog+' .'+bA+"} ;xp2 :gniddap ;xp1 :htdiw-redrob ;tp01 :ezis-tnof ;thgir:ngila-txet { ".z();by+='\x2e'+facebookgmlog+' .'+td_h+"} ;kcalb xp1 dilos :mottob-redrob ;tp01 :ezis-tnof { ".z();by+='\x2e'+facebookgmlog+' .'+td_c+"} ;xp2 :gniddap ;xp1 :htdiw-redrob ;tp01 :ezis-tnof ;retnec:ngila-txet { ".z();var fixedHeader=K('fixedHeader');by+='\x2e'+facebookgmlog+' thead.'+fixedHeader+"} ;kcolb :yalpsid { rt ".z();var scrollContent=K("tnetnoCllorcs".z());by+='\x2e'+facebookgmlog+' tbody.'+scrollContent+" :thgieh ;%001 :htdiw ;otua :wolfrevo ;kcolb :yalpsid { ".z()+(R.pageHeight()-200)+'px; }';by+='\x2e'+facebookgmlog+' thead.'+fixedHeader+"} ;xp511 :htdiw { ht ".z();by+='\x2e'+facebookgmlog+' thead.'+fixedHeader+"} ;xp005 :htdiw { ht + ht ".z();by+='\x2e'+facebookgmlog+' thead.'+fixedHeader+"} ;xp511 :htdiw { dt ".z();by+='\x2e'+facebookgmlog+' thead.'+fixedHeader+"} ;xp005 :htdiw { dt + dt ".z();by+='\x2e'+facebookgmlog+' tbody.'+scrollContent+"} ;xp511 :htdiw { dt ".z();by+='\x2e'+facebookgmlog+' tbody.'+scrollContent+"} ;xp484 :htdiw { dt + dt ".z();CASPER_addStyle(by);};aH.build=function(){var bx=CASPER_getValue('CasperLog','').split('\x7c');var by=K('log_table');var bz="\"=di 0=gnicapsllec \"xp516\"=htdiw elbat<>rb<".z()+by+'">';bz+="\"=ssalc daeht<".z()+fixedHeader+"\"=ssalc ht<>rt<>\"".z()+td_h+"\"=ssalc ht<>ht/<etaD>\"retnec\"=ngila \"".z()+td_h+"\"=ssalc ydobt<>daeht/<>rt/<>ht/<yrtnE goL>\"retnec\"=ngila \"".z()+scrollContent+'">';var bA;for(var bB in bx){if(bx[bB]!=''){var bC=new Date(parseFloat(bx[bB].split('\x3a')[0]));var bD=bC.getFullYear()+'';var bE=bC.toTimeString()+'';bA=(bC.getMonth()+1)+'\x2f'+bC.getDate()+'\x2f'+bD.substr(2,2)+'\x20'+bE.substr(0,8);bz+="\"=ssalc dt<>rt<".z()+td_c+'">'+bA+'</td><td>'+bx[bB].split('\x3a')[1].replace(/{{/g,"\x3a")+'</td></tr>';}}bz+='</tbody>';bz+='</table>';this.div.innerHTML+=bz;this.form=document.createElement('form');this.form.action='';this.form.method='';this.form.id=facebookgmlog;this.div.appendChild(this.form);this.button_clear=document.createElement('button');this.button_clear.type='button';var bF=K('log_clear');this.button_clear.id=bF;this.button_clear.innerHTML="CLEAR";if(bx.length>1)this.form.appendChild(this.button_clear);this.button_close=document.createElement('button');this.button_close.type='button_close';var bG=K('log_close');this.button_close.id=bG;this.button_close.innerHTML="CLOSE";this.form.appendChild(this.button_close);var bH=CASPER_getValue('CASPERLog',"30|30").split('\x7c');this.divFloat=V.createFloatingDiv(615,bH[0],bH[1],'left',"V ;2848#&REPSAC>\"lmth.egaPemoH/repsaC/moc.gnitsohdlroweruces.repsac//:ptth\"=ferh \"knalb_\"=tegrat \";eulbkrad:roloc\"=elyts a<>1h<".z()+c+">1h/<goL >a/<".z(),'CASPERLog',true,true,true);this.divFloat.appendChild(this.div);this.button_clear.addEventListener('click',this.eventListener(),true);this.button_close.addEventListener('click',this.eventListener(),true);this.form.addEventListener('submit',this.eventListener(),true);};aH.pausingLog=function(){z['CASPERLog']=true;};aH.eventListener=function(){var bx=this;return function(by){if(this.id==L('log_clear')){CASPER_setValue('CasperLog',new Date().getTime()+"deraelc goL:".z());location.reload();}by.preventDefault();z[bx.div.id]=false;bx.div.parentNode.parentNode.removeChild(bx.div.parentNode);};};aH.show=function(){return function(){aH.pausingLog();var bx=document.getElementById(L('LogDiv'));if(!bx){aH.init();aH.build();bx=document.getElementById(L('LogDiv'));}if(bx){var by=CASPER_getValue("etats_goLREPSAC".z(),"max");if(by=="min")bx.style.display='none';else bx.style.display='block';}};};az.lg_pI=lg_pI;az.lg_pH=lg_pH;function lg_pI(bx){var by=new Array();var bz=K("selggoTuneMferP".z());var bA=K('lg_toggle');var bB=K("secnereferp_gniggol".z());var bC=K('LogStuff');var bD=K('logstuff');by.push('<div id="'+bA+'" class="'+bz+"\"=di vid<>vid/<>elbat/<>rt/<>dt/<secnereferP gniggoL>dt<>rt<>\"%001\"=htdiw elbat<>\"".z()+bB+">\";enon :yalpsid\"=elyts \"".z());by.push(">\"%001\"=htdiw elbat<".z());by.push('<tr id="'+bC+'"><td>');by.push("\"=rof lebal<".z()+bD+">lebal/< :ytivitca tpircs fo gol a peeK>\"".z());by.push('</td><td>');var value=C.logstuff;if(value){by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bD+">/\"dekcehc\"=dekcehc \"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bD+">/\"0\"=eulav \"".z());}else{by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bD+">/\"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bD+">/\"dekcehc\"=dekcehc \"0\"=eulav \"".z());}by.push('</td></tr>');var bE=K('LogLevel');var bF=K('loglevel');by.push('<tr id="'+bE+"\"=rof lebal<>\"%08\"=htdiw dt<>\"".z()+bF+"\"=eman tceles<>dt<>dt/<>lebal/< :deggol eb dluohs snoitca tahW>\"".z()+bF+'">');by.push("1=eulav noitpo<".z());if(C.loglevel==1)by.push("\"detceles\"=detceles ".z());by.push("2=eulav noitpo<>noitpo/<gnihtyrevE>".z());if(C.loglevel==2)by.push("\"detceles\"=detceles ".z());by.push("3=eulav noitpo<>noitpo/<srorrE/stnevE niaM>".z());if(C.loglevel==3)by.push("\"detceles\"=detceles ".z());by.push(">noitpo/<ylno srorrE>".z());by.push(">rt/<>dt/<>tceles/<".z());var bG=K('LogLength');var bH=K('loglength');by.push('<tr id="'+bG+'"><td>');value=C.loglength;by.push("\"=rof lebal<".z()+bH+">lebal/<:tpek eb dluohs seirtne gol ynam woH>\"".z());by.push('</td><td>');by.push("\"=eman \"txet\"=epyt tupni<".z()+bH+" \"4\"=ezis \"4\"=htgnelxam \"".z());by.push('value="'+value+'"/>');by.push('</td></tr>');by.push(">rh<>vid/<>elbat/<".z());var bI=document.createElement('div');if(bI)bI.innerHTML=by.join('\n');var bJ=document.getElementById(L('PrefStuff'));if(bJ)bJ.appendChild(bI);var button=document.getElementById(bA);if(button)button.addEventListener('click',function(){var bK=document.getElementById(bB);if(bK){if(bK.style.display=='none'){bK.style.display='block';}else{bK.style.display='none';}}},true);}function lg_pH(bx){var by=false;if(isNaN(C.loglevel))C.loglevel=2;if(isNaN(C.loglength))C.loglength=100;var bz=bx.elements.namedItem(L('logstuff'));if(C.logstuff!=bz.checked){C.logstuff=bz.checked;by=true;}bz=parseInt(bx.elements.namedItem(L('loglength')).value);if(isNaN(bz)||(bz<1)){alert(".degnahc ton secnereferP .)secnereferP gniggoL( htgnel gol rof tupni dilavnI".z());m=true;}else{if(C.loglength!=bz){C.loglength=bz;by=true;}}bz=bx.elements.namedItem(L('loglevel'));bz=bz.options[bz.selectedIndex].value;if(C.loglevel!=bz){C.loglevel=bz;by=true;}return by;}function hl_pI(bx){var by=new Array();var bz=K('hl_toggle');var bA=K("selggoTuneMferP".z());var bB=K("secnereferp_tsiltih".z());by.push('<div id="'+bz+'" class="'+bA+"\"=di vid<>vid/<>elbat/<>rt/<>dt/<secnereferP tsiLtiH>dt<>rt<>\"%001\"=htdiw elbat<>\"".z()+bB+">\"%001\"=htdiw elbat<>\";enon :yalpsid\"=elyts \"".z());var bC=K("evitcatsiltih".z());by.push('<tr id="'+bC+">2=napsloc dt<>\"".z());var value=C.hitlist_active;var bD=K('hitlist_active');by.push("\"=rof lebal<".z()+bD+">lebal/< :seitnuob tnuh yllacitamotuA>\"".z());by.push('</td><td>');if(value){by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bD+">/\"dekcehc\"=dekcehc \"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bD+">/\"0\"=eulav \"".z());}else{by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bD+">/\"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bD+">/\"dekcehc\"=dekcehc \"0\"=eulav \"".z());}by.push('</td></tr>');var bE=K('MaxBounty');var bF=K('Max_Bounty');by.push('<tr id="'+bE+">\"%57\"=htdiw dt<>dt/<>\"%5\"=htdiw dt<>\"".z());by.push("\"=rof lebal<".z()+bF+">lebal/<)detimilnu = 0( ytnuoB xaM>\"".z());by.push('</td><td>');value=C.MaxBounty;by.push("\"=eman \"txet\"=epyt tupni<".z()+bF+" \"21\"=ezis \"21\"=htgnelxam \"".z());by.push('value="'+value+'">');var bG=K('MinBounty');var bH=K('Min_Bounty');by.push("\"=di rt<>rt/<>dt/<".z()+bG+">dt<>dt/<>dt<>\"".z());by.push("\"=rof lebal<".z()+bH+">lebal/<ytnuoB niM>\"".z());by.push('</td><td>');value=C.MinBounty;by.push("\"=eman \"txet\"=epyt tupni<".z()+bH+" \"01\"=ezis \"01\"=htgnelxam \"".z());by.push('value="'+value+'">');by.push('</td></tr>');value=C.IgnoreMinimumBounty;var bI=K("ytnuobmuminimerongi".z());var bJ=K('IgnoreMinimumBounty');by.push('<tr id="'+bI+">napsloc dt<>dt/<>dt<>\"".z());by.push("\"=rof lebal<".z()+bJ+">lebal/< :animats lluf ta fi ytnuob muminim eht erongI>\"".z());by.push('</td><td>');if(value){by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bJ+">/\"dekcehc\"=dekcehc \"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bJ+">/\"0\"=eulav \"".z());}else{by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bJ+">/\"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bJ+">/\"dekcehc\"=dekcehc \"0\"=eulav \"".z());}var bK=K("tegrattsiltih".z());var bL=K('hitlist_target');by.push('<tr id="'+bK+">dt<>dt/<>dt<>\"".z());by.push("\"=rof lebal<".z()+bL+">lebal/< :hcihw tegrat ,tsiltih no 1 neht erom fI>\"".z());by.push("\"=eman tceles<>dt<>dt/<".z()+bL+'">');by.push("\"0\"=eulav noitpo<".z());if(C.hitlist_target=='\x30')by.push("\"detceles\"=detceles ".z());by.push(">noitpo/<emoC tsriF>".z());by.push("\"1\"=eulav noitpo<".z());if(C.hitlist_target=='\x31')by.push("\"detceles\"=detceles ".z());by.push(">noitpo/<ytnuob tsehgiH>".z());by.push("\"2\"=eulav noitpo<".z());if(C.hitlist_target=='\x32')by.push("\"detceles\"=detceles ".z());by.push(">noitpo/<ytnuob tsewoL>".z());by.push(">rt/<>dt/<>tceles/<".z());by.push(">rh<>vid/<>elbat/<".z());var bM=document.createElement('div');if(bM)bM.innerHTML=by.join('\n');var bN=document.getElementById(L('PrefStuff'));if(bN)bN.appendChild(bM);var button=document.getElementById(L('hl_toggle'));if(button)button.addEventListener('click',function(){var bO=document.getElementById(L("secnereferp_tsiltih".z()));if(bO){if(bO.style.display=='none'){bO.style.display='block';}else{bO.style.display='none';}}},true);}az.hl_pI=hl_pI;az.hl_pH=hl_pH;function hl_pH(bx){var by=false;var bz=bx.elements.namedItem(L('hitlist_target'));if(C.hitlist_target!=bz.options[bz.selectedIndex].value){C.hitlist_target=bz.options[bz.selectedIndex].value;by=true;}var bA=bx.elements.namedItem(L('hitlist_active'));if(C.hitlist_active!=bA.checked){if(E.hitlist)delete E.hitlist;C.hitlist_active=bA.checked;by=true;}bA=bx.elements.namedItem(L('IgnoreMinimumBounty'));if(C.IgnoreMinimumBounty!=bA.checked){C.IgnoreMinimumBounty=bA.checked;by=true;}bA=bx.elements.namedItem(L('Max_Bounty')).value;if(C.MaxBounty!=bA){C.MaxBounty=bA;by=true;}bA=bx.elements.namedItem(L('Min_Bounty')).value;if(C.MinBounty!=bA){C.MinBounty=bA;by=true;}return by;}aA.bk_e=bk_e;function bk_e(){if(Page.c_page.match(/bank/i)){if(Page.bodyInner){if(!T['Bank'])U('Bank','bank.png',Page.bodyInner);B.bank=P(Utils.getElementsByXPath("naps/gnorts/vid/dt/]1[rt/ydobt/elbat/.".z(),Page.bodyInner)[0].innerHTML);}span=document.getElementById(L('bank_stat'));if(span)span.innerHTML=N(B.bank);}}az.bk_pI=bk_pI;az.bk_pH=bk_pH;function bk_pI(bx){var by=new Array();var bz=K('bk_toggle');var bA=K("selggoTuneMferP".z());var bB=K("secnereferp_knaB".z());by.push('<div id="'+bz+'" class="'+bA+"\"=di vid<>vid/<>elbat/<>rt/<>dt/<secnereferP yenoM>dt<>rt<>\"%001\"=htdiw elbat<>\"".z()+bB+">\";enon :yalpsid\"=elyts \"".z());by.push(">\"%001\"=htdiw elbat<".z());by.push('<tr id="'+K("detcetorPhsaC".z())+">\"%57\"=htdiw dt<>dt/<>\"%5\"=htdiw dt<>\"".z());value=C.cashprotected;by.push("\"=rof lebal<".z()+K('cashprotected')+">lebal/<)$( :elbahcuotnu eb dluohs hsac fo tnuoma tahW>\"".z());by.push('</td><td>');by.push("\"=eman \"txet\"=epyt tupni<".z()+K('cashprotected')+" \"51\"=ezis \"51\"=htgnelxam \"".z());by.push('value="'+value+'"/>');by.push('</td></tr>');by.push(">rh<>vid/<>elbat/<".z());var bC=document.createElement('div');if(bC)bC.innerHTML=by.join('\n');var bD=document.getElementById(L('PrefStuff'));if(bD)bD.appendChild(bC);var button=document.getElementById(bz);if(button)button.addEventListener('click',function(){var bE=document.getElementById(bB);if(bE){if(bE.style.display=='none'){bE.style.display='block';}else{bE.style.display='none';}}},true);}function bk_pH(bx){var by=false;var bz=parseInt(bx.elements.namedItem(L('cashprotected')).value);if(isNaN(bz)||(bz<0)){alert("degnahc ton yrtne ,)secnereferP yenoM( esu morf detcetorp hsaC no yrtne dilavnI".z());m=true;}else{if(bz!=C.cashprotected){C.cashprotected=bz;by=true;}}return by;}function aI(bx){var by=B.city_income+B.job_income-B.total_upkeep;var bz=Math.floor(parseInt(bx.price)*(10+parseInt(bx.owned))/10);bx.roi=(100*(parseInt(bx.income)/parseInt(bz)));var bA=100*(11+bx.owned)/(10+bx.owned)-100;bx.inflation=bA;var bB=Math.ceil(bA/bx.roi);var bC=Math.ceil(bz/by);var bD=1;if(bC<=bB)bD=10;if(bD==1&&(B.cash+B.bank)>=bz)bD=Math.floor((B.cash+B.bank)/bz);if(bD>10)bD=10;bx.best_qty=bD;bz=bD*Math.floor(bx.price*(10+bx.owned)/10);bz-=B.cash+B.bank;bC=Math.ceil(bz/by);if(bC<0)bC=0;bx.turns_purchase=bC;return bx;}aA.cy_buyProperty=cy_buyProperty;function cy_buyProperty(){if(Page.c_page=='city'){if(F.autoCityBuy_item!=''){if(F.autoCityBuy_qty>0){var bx=document.getElementsByName(F.autoCityBuy_item)[0];if(bx){bx=bx.parentNode.parentNode;var by=Utils.getElementsByXPath("tceles/])\"php.od\",noitca@(sniatnoc[mrof//.".z(),bx);if(by){for(var j=0;j<by.length;j++){var bz=document.createElement('input');bz.name='qty';bz.type='text';bz.setAttribute('maxlength','\x33');bz.setAttribute('size','\x33');bz.value=by[j].options[0].value;by[j].parentNode.insertBefore(bz,by[j]);by[j].parentNode.removeChild(by[j]);}}Array.forEach(bx.getElementsByTagName("INPUT"),function(bA){if(bA.name=="qty")bA.value=F.autoCityBuy_qty;if((bA.type=='submit')&&(bA.value=="Buy")){aj.start(bA,"Buying "+F.autoCityBuy_qty+"\x20"+F[F.autoCityBuy_item].name+"s...",(C.timerdelay-2),'AutoCity',false);X("Buying "+F.autoCityBuy_qty+"\x20"+F[F.autoCityBuy_item].name+"s... in "+(C.timerdelay-2),2);F.autoCityBuy_item='';F.autoCityBuy_cost=0;F.autoCityBuy_qty=0;F.save();}});}else al('homelink',"....gniteser ...)1( rorre ytiCotuA".z(),C.timerdelay);}else al('homelink',"....gniteser ...)2( rorre ytiCotuA".z(),C.timerdelay);}else al('homelink',"....gniteser ...)3( rorre ytiCotuA".z(),C.timerdelay);}else al('homelink',"....gniteser ...)4( rorre ytiCotuA".z(),C.timerdelay);}function aJ(){var bx=eval(CASPER_getValue('City','({})'));for(var i in bx){this[i]=bx[i];}}aJ.prototype=new Object();aJ.prototype.save=function(){CASPER_setValue('City',this.toSource());};aJ.prototype.updateData=function(){if(!Page.c_page.match(/city/i))return;function bx(){this.type='city';this.name='Unknown';this.city='Baltimore';this.price=0;this.income=0;this.depends=new Object();this.best_qty=0;this.inflation=0;this.roi=0;this.owned=0;this.turns_purchase=0;this.itemn='Unknown';}for(var by in this){if(typeof this[by]=='object'){if(this[by].city.match(B.location)){delete this[by];}}}var bz=Utils.getElementsByXPath("rt/ydobt/]\"loc3 elbaTniam\"=ssalc@[elbat//".z());if(bz){for(var x=2;x<bz.length;x++){if(Utils.getElementsByClassName('unlock',bz[x]).length<1){var bA=new bx();bA.itemn=bz[x].getElementsByTagName('\x61')[0].name;var bB=document.getElementById(K(bA.itemn));if(bB)bB.parentNode.removeChild(bB);var bC=Utils.getElementsByXPath('./td/span',bz[x]);bA.name=bC[0].innerHTML;var y=0;if(bC[1].innerHTML.match(/NEW/i))y=1;bA.price=P(bC[2+y].innerHTML);bA.owned=bC[3+y].innerHTML.split(/<.*?>/)[1];var bD=Utils.getElementsByClassName('income',bz[x])[0];bA.income=P(bD.innerHTML);bA.city=B.location;this[bA.itemn]=aI(bA);if(!T[bA.itemn])U(bA.itemn,Utils.getElementsByXPath('./td/img',bz[x])[0].src,bz[x]);var bE=document.createElement('span');bE.id=K(bA.itemn);if(bE){bE.innerHTML=";psbn&:ROR>rb<".z()+bA.roi.toFixed(7)+";psbn&:tfel snruT>rb<".z()+bA.turns_purchase;bD.parentNode.appendChild(bE);}}}}this.save();};aJ.prototype.getBestBuy=function(){this.autoCityBuy_item='';this.autoCityBuy_cost=0;this.autoCityBuy_qty=0;var bx=0.0;var by=0;var bz=parseInt(B.cash)-parseInt(C.cashprotected);if(bz<0)bz=0;if(C.autoCityBuy_withBank&&(parseInt(B.bank)>parseInt(C.bankrestricted)))by=bz+(parseInt(B.bank)-parseInt(C.bankrestricted));else by=bz;for(var bA in this){if(typeof this[bA]!='object')continue;if(this[bA].city.match(B.location)){if(this[bA].roi>=bx){if(parseInt(this[bA].roi)==bx){if(this.autoCityBuy_cost>0){if((this[bA].price*this[bA].best_qty)>by){if((this.autoCityBuy_cost<by)||(this.autoCityBuy_cost<(this[bA].price*this[bA].best_qty))){continue;}}}}bx=this[bA].roi;this.autoCityBuy_item=this[bA].itemn;this.autoCityBuy_qty=this[bA].best_qty;this.autoCityBuy_cost=this[bA].price*this[bA].best_qty;}}}this.DisplayPurchase();this.save();if(this.autoCityBuy_item!='')return true;return false;};aJ.prototype.DisplayPurchase=function(){if(this.autoCityBuy_item!=''){if(this[this.autoCityBuy_item]){var bx=document.getElementById(L('CityResults'));var s='';if(this.autoCityBuy_qty>1)s='\x73';if(bx)bx.innerHTML=" :yub ytic tnerruc tseB>retnec<".z()+this.autoCityBuy_qty+'\x20'+this[this.autoCityBuy_item].name+s+' for '+ap(this.autoCityBuy_cost)+'</center>';}}};var CityDisplay=new Object();CityDisplay.init=function(){this.div=document.createElement('div');this.div.id=K('CityList');this.div.className=K("lcmgkoobecaf".z());var bx='\x2e'+this.div.className+" ;thgir:ngila-txet { ".z()+" :thgieh ;xp016 :htdiw ;xp0 :gniddap ;kcalb dilos xp0 :redrob ;otua :thgir-nigram ;otua :tfel-nigram ".z()+(R.pageHeight()-120)+"} ;dlob:thgiew-tnof ;xp0:gniddap ;8995B3#:roloc ;EEEEEE#:roloc-dnuorgkcab ;lairA :ylimaf-tnof ;xp".z();bx+='\x2e'+this.div.className+"} ;FFFFFF# :roloc ;4B48D6# :dnuorgkcab ;retnec:ngila-txet ;tp21 :ezis-tnof { 1h ".z();bx+='\x2e'+this.div.className+"} ;dilos dilos dilos dilos :elyts-redrob ;xp0 :gniddap ;xp1 :htdiw-redrob { elbat ".z();bx+='\x2e'+this.div.className+"} ;xp0 :gniddap ;xp1 :htdiw-redrob ;tp01 :ezis-tnof ;tfel:ngila-txet { l_dt. ".z();bx+='\x2e'+this.div.className+"} ;xp0 :gniddap ;xp1 :htdiw-redrob ;tp01 :ezis-tnof ;thgir:ngila-txet { r_dt. ".z();bx+='\x2e'+this.div.className+"} ;kcalb xp1 dilos :mottob-redrob ;tp01 :ezis-tnof { h_dt. ".z();bx+='\x2e'+this.div.className+"} ;kcolb :yalpsid { rt redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+" :thgieh ;%001 :htdiw ;otua :wolfrevo ;kcolb :yalpsid { tnetnoCllorcs.ydobt ".z()+(R.pageHeight()-220)+'px; }';bx+='\x2e'+this.div.className+"} ;xp09 :htdiw { ht redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp551 :htdiw { ht + ht redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp553 :htdiw { ht + ht + ht redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp09 :htdiw { dt redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp551 :htdiw { dt + dt redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp033 :htdiw { dt + dt + dt redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp09 :htdiw { dt tnetnoCllorcs.ydobt ".z();bx+='\x2e'+this.div.className+"} ;xp551 :htdiw { dt + dt tnetnoCllorcs.ydobt ".z();bx+='\x2e'+this.div.className+"} ;xp933 :htdiw { dt + dt + dt tnetnoCllorcs.ydobt ".z();CASPER_addStyle(bx);};var aK=['Baltimore','Chicago','Los Angeles'];CityDisplay.build=function(){var bx=">\"tnetnoCllorcs\"=ssalc ydobt<>daeht/<>rt/<>ht/<ofnI esahcruP>\"tfel\"=ngila \"h_dt\"=ssalc ht<>ht/<sliateD>\"retnec\"=ngila \"h_dt\"=ssalc ht<>ht/<ytreporP>\"retnec\"=ngila \"h_dt\"=ssalc ht<>rt<>\"redaeHdexif\"=ssalc daeht<>elbat<>rb<".z();for(var x=0;x<aK.length;x++){bx+=">3=napsloc dt<>rt<".z()+aK[x]+'</td></tr>';for(var by in F){if(typeof F[by]=='object'){if(F[by].city==aK[x])bx+="\"=crs gmi<>\"tnoCgmi\"=ssalc \";retnec :ngila-txet\"=elyts dt<>rt<".z()+T[by]+">\";egnaro :roloc ;me3.1 :ezis-tnof\"=elyts naps<>dt<>dt/<>/ \"57\"=thgieh \"57\"=htdiw \"".z()+F[by].name+">\"emocni\"=ssalc naps< :emocnI>/ rb<>naps/<".z()+N(F[by].income)+" :ROR>/ rb<>naps/<".z()+F[by].roi.toFixed(7)+" :tfeL snruT>/ rb<".z()+F[by].turns_purchase+">\";00cc66# :roloc ;me2.1 :ezis-tnof\"=elyts naps<>dt<>dt/<".z()+N(F[by].price)+">\";xp81 :ezis-tnof\"=elyts b< :denwO>\";xp51 :ezis-tnof\"=elyts naps<>/ rb<>naps/<".z()+F[by].owned+">rt/<>dt/<>/ rb<>naps/<>b/<".z();}}}bx+=">elbat/<>ydobt/<".z();this.div.innerHTML=bx;this.form=document.createElement('form');this.form.action='';this.form.method='';this.form.id=this.div.className;this.div.appendChild(this.form);this.button_close=document.createElement('button');this.button_close.type='button_close';this.button_close.id=K("esolc_tsilytic".z());this.button_close.innerHTML="CLOSE";this.form.appendChild(this.button_close);var bz=CASPER_getValue('CityList',"20|20").split('\x7c');CASPER_setValue("etats_tsiLytiC".z(),"max");this.divFloat=V.createFloatingDiv(610,bz[0],bz[1],'left',"V ;2848#&REPSAC>\"lmth.egaPemoH/repsaC/moc.gnitsohdlroweruces.repsac//:ptth\"=ferh \"knalb_\"=tegrat \";eulbkrad:roloc\"=elyts a<>1h<".z()+c+">1h/<uoY oT elbaliavA nwonK seitreporP ytiC >a/<".z(),'CityList',true,true,true);this.divFloat.appendChild(this.div);document.getElementsByTagName('body')[0].appendChild(this.divFloat);this.button_close.addEventListener('click',this.eventListener(),true);this.form.addEventListener('submit',this.eventListener(),true);};CityDisplay.pausing=function(){z[K('CityList')]=1;};CityDisplay.eventListener=function(){var bx=this;return function(by){by.preventDefault();bx.div.style.display='none';bx.div.parentNode.parentNode.removeChild(bx.div.parentNode);z[bx.div.id]=0;};};CityDisplay.show=function(){this.pausing();var bx=document.getElementById(L('CityListDiv'));if(!bx){this.init();this.build();bx=document.getElementById(L('CityListDiv'));}if(bx)bx.style.display='block';};aA.cy_e=cy_e;function cy_e(){if(Page.c_page.match(/city/i)){F.updateData();if(Page.bodyInner){if(!T['City'])U('City','city.png',Page.bodyInner);B.city_income=P(Utils.getElementsByXPath("]1[naps/naps/dt/]1[rt/ydobt/elbat/.".z(),Page.bodyInner)[0].innerHTML);}}if(!C.city_active){if(E.autoCityBuy)delete E.autoCityBuy;if(E.autoCityBuyBankWithdrawal)delete E.autoCityBuyBankWithdrawal;F.autoCityBuy_item='';F.autoCityBuy_cost=0;F.autoCityBuy_qty=0;F.save();return;}if(!F.getBestBuy())return;if(F.autoCityBuy_item=='')return;var bx;var by=parseInt(B.cash)-parseInt(C.cashprotected);if(by<0)by=0;if(C.autoCityBuy_withBank&&B.bank>parseInt(C.bankrestricted))bx=by+(parseInt(B.bank)-parseInt(C.bankrestricted));else bx=by;if(F.autoCityBuy_qty>0){if(parseInt(F.autoCityBuy_cost)<=bx){if(parseInt(F.autoCityBuy_cost)<=by){if(E.bank){E.bank.time+=5;}if(E.bank_checkdelay){delete E.bank_checkdelay;}if(!E.autoCityBuy){var bz=new Object();bz.message="...ytreporp gniyuB".z();bz.page='city';bz.func='cy_buyProperty';bz.params=F[F.autoCityBuy_item].city;bz.time=2;E.autoCityBuy=bz;}}else{if(C.autoCityBuy_withBank){if(E.bank){E.bank.time+=5;}if(E.bank_checkdelay){delete E.bank_checkdelay;}var bA=new Object();bA.message="...knab eht ot gnioG".z();bA.page='bank';bA.func='bk_withdraw';bA.params=B.autoCityBuy_cost-by;bA.time=1;E.autoCityBuyBankWithdrawal=bA;}}}}}az.cy_pI=cy_pI;az.cy_pH=cy_pH;function cy_pI(bx){var by=new Array();var bz=K('cy_toggle');var bA=K("selggoTuneMferP".z());var bB=K("secnereferp_ytiC".z());by.push('<div id="'+bz+'" class="'+bA+"\"=di vid<>vid/<>elbat/<>rt/<>dt/<secnereferP ytiC>dt<>rt<>\"%001\"=htdiw elbat<>\"".z()+bB+">\";enon :yalpsid\"=elyts \"".z());by.push(">\"%001\"=htdiw elbat<".z());var bC=K("evitcayticotua".z());by.push('<tr id="'+bC+">2=napsloc dt<>\"".z());var value=C.city_active;var bD=K('city_active');by.push("\"=rof lebal<".z()+bD+">lebal/< :ytreporp ytic esahcrup yllacitamotuA>\"".z());by.push('</td><td>');if(value){by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bD+">/\"dekcehc\"=dekcehc \"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bD+">/\"0\"=eulav \"".z());}else{by.push("\"=eman \"oidar\"=epyt tupni< seY".z()+bD+">/\"1\"=eulav \"".z());by.push("\"=eman \"oidar\"=epyt tupni< oN".z()+bD+">/\"dekcehc\"=dekcehc \"0\"=eulav \"".z());}by.push('</td></tr>');by.push(">rh<>vid/<>elbat/<".z());var bE=document.createElement('div');if(bE)bE.innerHTML=by.join('\n');var bF=document.getElementById(L('PrefStuff'));if(bF)bF.appendChild(bE);var button=document.getElementById(bz);if(button)button.addEventListener('click',function(){var bG=document.getElementById(bB);if(bG){if(bG.style.display=='none'){bG.style.display='block';}else{bG.style.display='none';}}},true);}function cy_pH(bx){var by=false;var bz=bx.elements.namedItem(L('city_active'));if(C.city_active!=bz.checked){if(E.autoCityBuy)delete E.autoCityBuy;if(E.autoCityBuyBankWithdrawal)delete E.autoCityBuyBankWithdrawal;C.city_active=bz.checked;by=true;}return by;}function aL(){this.visiblename='';this.city='';this.payout_min=0;this.payout_max=0;this.exp=0;this.Clansters=0;this.energy=0;this.image='';this.jobid='';this.req_items=new Object();this.prep_items=new Object();this.payout_items=new Object();}function aM(){var bx=eval(CASPER_getValue('Quests','({})'));for(var i in bx){this[i]=bx[i];}}aM.prototype=new Object();aM.prototype.save=function(){CASPER_setValue('Quests',this.toSource());};aM.prototype.updateData=function(){if(Page.c_page.match(/quests/i)){if(!T['Quests'])U('Quests','quests.png',Page.bodyInner);for(var bx in this){if(typeof this[bx]=='object'){if(this[bx].city.match(B.location)){delete this[bx];}}}var by=Utils.getElementsByClassName('rowData',Page.bodyInner);if(by){for(x=0;x<by.length;x++){var bz=new aL();bz.visiblename=by[x].getElementsByTagName('span')[0].innerHTML;bz.city=B.location;var bA=Utils.getElementsByXPath("b/dt/rt/ydobt/elbat/dt/.".z(),by[x])[0];bz.payout_min=P(bA.innerHTML.split(' - ')[0]);bz.payout_max=P(bA.innerHTML.split(' - ')[1]);bz.energy=parseInt(by[x].innerHTML.split(";psbn&:ygrenE".z())[1]);bz.jobid=Utils.getElementsByXPath("])\"diboj\" ,eman@(sniatnoc[tupni//.".z(),by[x])[0].value;this[bz.jobid]=bz;}}this.save();}};aA.Qt_dojob=Qt_dojob;function Qt_dojob(bx,by){by=by||5;by=by-2;if(by<0)by=0;var bz=Utils.getElementsByXPath("\"=eulav@ dna \"diboj\"=eman@[tupni//".z()+bx[0]+"]\"timbus\"=epyt@[tupni/../]\"".z());aj.start(bz[0],"Doing "+bx[1]+"...",by,'job',false);X("Doing "+bx[1]+"... in "+by,2);}aA.Qt_e=Qt_e;function Qt_e(){if(Page.c_page.match(/quests/i)){G.updateData();}if(B.quest_income==undefined)B.quest_income=0;var bx=C.quest;var by;switch(bx){case 'none':if(E.quest)delete E.quest;B.quest_income=0;au.update();return;case 'payout':bx=jobs_selectJob(G,false);if(!bx)by=".boj yna mrofrep ton nac uoY".z();break;case 'exp':bx=jobs_selectJob(G,true);if(!bx)by=".boj yna mrofrep ton nac uoY".z();break;default:break;}if(bx)if(G[bx].city==undefined)bx=0;if(!bx){var span=document.getElementById(L('scripterror'));if(span)span.innerHTML='<center>'+by+">retnec/<>rb<>rb<".z();if(E.quest)delete E.quest;B.quest_income=0;au.update();return;}if(E.quest)delete E.quest;if(!G[bx].city.match(B.location)){B.quest_income=0;au.update();return;}var bz=new Object();bz.page='quests';bz.message="Doing "+G[bx].visiblename+"...";bz.func='Qt_dojob';bz.params=[bx,G[bx].visiblename,G[bx].city];var bA;if(B.type=='Insomniac'){bA=240;}else{bA=300;}if(C.insider){bA=Math.ceil(bA*0.9);}bz.time=(Page.now+(G[bx].energy-B.energy)*bA)+(C.questdelay*60);if(B.energy_time){bz.time-=(bz.time-B.energy_time)%bA;}E.quest=bz;}az.Qt_pI=Qt_pI;az.Qt_pH=Qt_pH;function Qt_pI(bx){var by=new Array();var bz=K('Qt_toggle');var bA=K("selggoTuneMferP".z());var bB=K("secnereferp_tseuQ".z());by.push('<div id="'+bz+'" class="'+bA+"\"=di vid<>vid/<>elbat/<>rt/<>dt/<secnereferP tseuQ>dt<>rt<>\"%001\"=htdiw elbat<>\"".z()+bB+">\";enon :yalpsid\"=elyts \"".z());by.push(">\"%001\"=htdiw elbat<".z());by.push('<tr id="'+K('QuestList')+"\"=rof lebal<>\"%08\"=htdiw dt<>\"".z()+K('questlist')+"\"=eman tceles<>dt<>dt/<>lebal/< :mrofrep ot tseuQ>\"".z()+K('questlist')+'">');by.push("\"enon\"=eulav noitpo<".z());if(C.quest=='none')by.push("\"detceles\"=detceles ".z());by.push(">noitpo/<enoN>".z());for(var bC in G){if(G[bC].visiblename){by.push("\"=eulav noitpo<".z()+bC+'\x22');if(C.quest==bC)by.push(" \"detceles\"=detceles ".z());by.push('\x3e'+G[bC].visiblename);by.push('</option>');}}by.push("\"=di rt<>rt/<>dt/<>tceles/<".z()+K('QuestDelay')+'"></td><td>');by.push("\"=rof lebal<".z()+K('questdelay')+">lebal/<)setunim( :yb tseuq a gniod yaleD>\"".z());by.push('</td><td>');by.push("\"=eman \"txet\"=epyt tupni<".z()+K('questdelay')+" \"3\"=ezis \"3\"=htgnelxam \"".z());var bD=C.questdelay;by.push('value="'+bD+'">');by.push('</td></tr>');by.push(">rh<>vid/<>elbat/<".z());var bE=document.createElement('div');if(bE)bE.innerHTML=by.join('\n');var bF=document.getElementById(L('PrefStuff'));if(bF)bF.appendChild(bE);var button=document.getElementById(bz);if(button)button.addEventListener('click',function(){var bG=document.getElementById(bB);if(bG){if(bG.style.display=='none'){bG.style.display='block';}else{bG.style.display='none';}}},true);}function Qt_pH(bx){var by=false;var bz=bx.elements.namedItem(L('questlist'));var bA=bz.options[bz.selectedIndex].value;if(bA!=C.quest){if(E.quest)delete E.quest;C.quest=bA;by=true;}var bB=parseInt(bx.elements.namedItem(L('questdelay')).value);if(!isNaN(bB)){if(C.questdelay!=bB){C.questdelay=bB;by=true;}}return by;}function aN(){if(C.bankbutton==undefined)C.bankbutton=true;if(C.healbutton==undefined)C.healbutton=true;I=eval(CASPER_getValue('CaptchaSolver','({})'));if(I.Retry==undefined)I.Retry=true;if(I.UseIt==undefined)I.UseIt=false;if(I.user==undefined)I.user='';if(I.pass==undefined)I.pass='';if(I.sysAnswer==undefined)I.sysAnswer=false;if(I.transid==undefined)I.transid='';if(I.valid==undefined)I.valid=0;if(I.MaxRetry==undefined)I.MaxRetry=5;if(I.Retries==undefined)I.Retries=0;if(isNaN(I.MinTime))I.MinTime=4;if(isNaN(I.MaxTime))I.MaxTime=13;if(isNaN(C.timerdelay))C.timerdelay=7;if(C.timerdelay<TimeDelay)C.timerdelay=TimeDelay;if(isNaN(C.FighterDroneReload))C.FighterDroneReload=360;if(C.FighterDroneReload<TimeDelay)C.FighterDroneReload=TimeDelay;if(isNaN(C.BountyReload))C.BountyReload=7;if(C.BountyReload<TimeDelay)C.BountyReload=TimeDelay;if(isNaN(C.FighterDrone))C.FighterDrone=7;if(C.FighterDrone<TimeDelay)C.FighterDrone=TimeDelay;if(isNaN(C.heal_limit))C.heal_limit=0;if(C.heal_limit>60)C.heal_limit=60;if(isNaN(C.hmin))C.hmin=30;if(C.hmin>70)C.hmin=70;if(C.hmin<C.heal_limit)C.hmin=C.heal_limit;if(C.hmin<20)C.hmin=20;if(C.autohealoff==undefined)C.autohealoff=false;if(C.stamwaitautohealoff==undefined)C.stamwaitautohealoff=false;if(C.healtomax==undefined)C.healtomax=true;if(C.playdead==undefined)C.playdead=true;if(isNaN(C.playdeadhealth))C.playdeadhealth=10;if(isNaN(C.playdeadtime))C.playdeadtime=10;if(isNaN(C.playdeadtimeMax))C.playdeadtimeMax=(C.playdeadtime*2);if(C.AdminNoHeal==undefined)C.AdminNoHeal=true;if(isNaN(C.healmode)||((C.healmode>1)&&!n))C.healmode=0;if(isNaN(C.HODnum)||(C.HODnum<1))C.HODnum=1;if(C.HODnum>2)C.HODnum=2;if(C.IgnoreMinimumBounty==undefined)C.IgnoreMinimumBounty=true;if(isNaN(C.snipedelay))C.snipedelay=250;if(C.snipemore==undefined)C.snipemore=false;if(C.hitlist_active==undefined)C.hitlist_active=false;if(isNaN(C.staminaregen))C.staminaregen=B.max_stamina;if(C.staminaregen>B.max_stamina)C.staminaregen=B.max_stamina;if(C.hitlist_target==undefined)C.hitlist_target=false;if(isNaN(C.MaxBounty))C.MaxBounty=12000;if(isNaN(C.MinBounty))C.MinBounty=8000;if(isNaN(C.snipe))C.snipe=0;if(isNaN(C.maxsnipe))C.maxsnipe=1;if(C.maxsnipe>O)C.maxsnipe=O;if(C.varysnipe==undefined)C.varysnipe=true;if(isNaN(C.varysnipeamount))C.varysnipeamount=1;if(C.varysnipeamount>2)C.varysnipeamount=2;if(C.varysnipeamount<1)C.varysnipeamount=1;if(C.hitlistsnipesafe==undefined)C.hitlistsnipesafe=true;if(C.hitlistblock==undefined)C.hitlistblock=true;if(C.hitlistblockauto==undefined)C.hitlistblockauto=true;if(isNaN(C.hfightsneeded))C.hfightsneeded=1;if(isNaN(C.hratio))C.hratio=100;if(C.fightlistblock==undefined)C.fightlistblock=true;if(C.fightlistblockauto==undefined)C.fightlistblockauto=true;if(isNaN(C.fightsneeded))C.fightsneeded=1;if(isNaN(C.fratio))C.fratio=100;if(isNaN(C.loglevel))C.loglevel=2;if(isNaN(C.loglength))C.loglength=100;if(C.logstuff==undefined)C.logstuff=false;if(C.fight_active==undefined)C.fight_active=false;if(isNaN(C.droneMaxLevel))C.droneMaxLevel=2;if(isNaN(C.droneMinLevel))C.droneMinLevel=1;if(isNaN(C.droneMaxSize))C.droneMaxSize=2;if(isNaN(C.droneMinSize))C.droneMinSize=1;if(isNaN(C.MaxAttack))C.MaxAttack=1;if(isNaN(C.DroneMemTime))C.DroneMemTime=1440;if(C.DroneMemTime<5)C.DroneMemTime=5;if(C.city_active==undefined)C.city_active=false;if(C.autoCityBuy_withBank==undefined)C.autoCityBuy_withBank=false;if(isNaN(C.bankrestricted))C.bankrestricted=Infinity;if(isNaN(C.cashprotected))C.cashprotected=0;if(isNaN(C.questdelay))C.questdelay=0;if(isNaN(C.captchalength))C.captchalength=3;if(C.checkcaptcha==undefined)C.checkcaptcha=true;}function in_array_Int(bx,by){var a=false;var bz=by.length;for(var i=0;i<bz;i++){if(parseInt(bx)==parseInt(by[i])){a=true;break;}}return a;}function aO(){var bx=document.getElementById(L('queue'));if(bx){bx.innerHTML='';for(var i in E){if((i!='refresh')&&(i!='save')&&(i!='updateData')){var by=K(i);bx.innerHTML+="\"=di naps<>rb<".z()+by+'"></span>';}}for(var k in E){if(k!='refresh'){var bz=new Date(parseFloat(E[k].time)*1000);var bA=bz.toTimeString()+'';var bB=document.getElementById(L(k));if(bB)bB.innerHTML='\x20'+E[k].message+" ta psbn&psbn&psbn&>rb<".z()+bA.substr(0,8);}}}}function aP(){}var aQ,aR=document.title,aS=19,aT=0;function aU(){aT=0;aQ=setInterval(function(){if(aT<aS){aT++;var bx='';var by="!DEDEEN NOITNETTA".z();for(var i=0;i<by.length;i++){bx+=by[i];var bz=Math.ceil(Math.random()*3);for(var k=0;k<bz;k++)bx+='\x2e';}document.title=(document.title.indexOf(aR)==-1)?aR:bx;}else{clearInterval(aQ);}},600);}var aV,aW=0;function aX(bx,by){aW=0;aV=setInterval(function(){if(aW<by){aW++;setTimeout("'(dIyBtnemelEteg.tnemucod = jboj rav{ yrt".z()+bx+"');"+" };)(yalP.jboj{ )yalP.jboj( fi".z()+"}};'peeb tnac' worht{ esle };)(yalp.jboj{ )yalp.jboj( fi esle".z()+"};)(peeb.)(tiklooTtluafeDteg.tiklooT.twa.avaj.segakcaP.wodniw{ )xe(hctac".z(),1);}else{clearInterval(aV);}},1600);}o=CASPER_getValue('InYourClan','').split('\x7c');q=CASPER_getValue('hitlistblock','').split('\x2c');t=CASPER_getValue("kcolbemittsiltih".z(),'').split('\x2c');u=CASPER_getValue('fightlistblock','').split('\x2c');w=CASPER_getValue("srentraPleveL".z(),'').split('\x2c');var aY=[['Java - Beep',''],['Midi - Note',''],["1 tneibmA - hsalF".z(),"lmth.trela/1epacSdnuoStneibmA/sdnuoStrelA/repsaC".z()],["2 tneibmA - hsalF".z(),"lmth.trela/2epacSdnuoStneibmA/sdnuoStrelA/repsaC".z()],["1 kcoR poP - hsalF".z(),"lmth.trela/1kcoRpoP/sdnuoStrelA/repsaC".z()],["2 kcoR poP - hsalF".z(),"lmth.trela/2kcoRpoP/sdnuoStrelA/repsaC".z()],["1 onhceT - hsalF".z(),"lmth.trela/1onhceT/sdnuoStrelA/repsaC".z()],["2 onhceT - hsalF".z(),"lmth.trela/2onhceT/sdnuoStrelA/repsaC".z()]];function aZ(bx,by,bz){if(C.alertsound||bz){var bA=document.getElementById(L('alertSound2'));if(!bA){var bB=document.createElement('style');if(bB)bB.type='text/css';bA=document.createElement('div');var alertSound2=K('alertSound2');if(bA)bA.id=alertSound2;if(bB){bB.innerHTML="\x23"+alertSound2+"} ;neddih :ytilibisiv ;kcolb :yalpsid ;xp0 :tfel ;xp0 :pot ;etulosba :noitisop { ".z();var bC=document.getElementsByTagName('head');if(bC)bC=bC[0];if(bC)bC.appendChild(bB);}if(document){if(document.body){if(bA)document.body.insertBefore(bA,document.body.lastChild);}}}var bD;if(bx.match('Flash')){var bE="/moc.ilmoc.haambf//:ptth".z();for(var i=0;i<aY.length;i++){if(bx==aY[i][0]){setTimeout(function(){if(bA)bA.innerHTML="\"=crs emarfi<".z()+bE+aY[i][1]+'"></iframe>';},1500);break;}}}else if(bx.match('Java')){bD=document.createElement("embed");if(bD){var bF=K('javabeep');bD.setAttribute("id",bF);bD.setAttribute("src","success.wav");bD.setAttribute("width","\x31");bD.setAttribute("height","\x31");bD.setAttribute("type","4.1=noisrev;telppa-avaj-x/noitacilppa".z());bD.setAttribute("sucof_laitini".z(),"false");bD.setAttribute("codebase","http://");bD.setAttribute("archive","raj.sdnuoStl".z());bD.setAttribute("code","SndPlay");if(bA)bD=bA.appendChild(bD);aX(bF,by);}}else if(bx.match('Midi')){bD=document.createElement("embed");if(bD){var bG=K('midinote');bD.setAttribute("id",bG);bD.setAttribute("src","D3%AwLF2%HAARB4XDmWUQCgKADACwIABEg1F2%AAwACk1F2%AASoHMQUF2%DQJAAAArJHVNBeABAAAAYAAAAAZoRVT,46esab;idim/oidua:atad".z());bD.setAttribute("width","\x31");bD.setAttribute("height","\x31");bD.setAttribute("autostart","false");bD.setAttribute("loop","false");if(bA)bD=bA.appendChild(bD);aX(bG,by);}}}}function ba(bx){if(n){var by=document.getElementById(L('Donate'));if(by){by.innerHTML=" :urht eerF dA>retnec<".z()+bx+">retnec/<>rb<>rb<>tnof/<!uoy knahT>neerg=roloc tnof<>rb<".z();}}}function bb(bx){var by=document.getElementById(L('processtime'));if(by)by.innerHTML='<br>Time: '+(new Date().getTime()-bx);}function bc(e){var bx,by,bz;switch(e.keyCode){case 113:sysp(false);break;case 115:aq();break;case 119:as();break;case 120:at();break;case 123:break;default:break;}}function bd(bx){window.addEventListener('keypress',bc,true);B.new_level=0;B.save();E.save();aO();F.DisplayPurchase();ab(false);if(g)bb(bx);}function PauseSickness(){var bx=K('Sick');var by="\"=di \"fig.ssenkciS\"=tla \"\"=crs \";kcolb:yalpsid\"=elyts \"xp002\"=thgieh \"xp001\"=htdiw gmi<".z()+bx+'"/>';var bz=document.createElement('style');if(bz){bz.type='text/css';bz.innerHTML="\x23"+bz+"} ;xp081 :thgir ;xp72 :pot ;dexif :noitisop ;99 :xedni-z ;)59=yticapo(ahpla :retlif;59.:yticapo ;kcolb :yalpsid { ".z();}var bA=document.getElementsByTagName('head');if(bA)bA=bA[0];if(bA)if(bz)bA.appendChild(bz);var bB=document.createElement('div');if(bB){bz=K('PSick');bB.id=bz;bB.innerHTML=by;}if(C.psound){if(C.sndid!='none'){aZ(C.sndid,C.sndrepeat);var bC=K('stopp');bB.innerHTML+="'=di ';etihw :roloc-dnuorgkcab'=elyts a<;psbn&;psbn&;psbn&;psbn&;psbn&;psbn&;psbn&;psbn&;psbn&;psbn&;psbn&;psbn&;psbn&;psbn&;psbn&;psbn&".z()+bC+">a/<dnuoS potS>'".z();}}if(document){if(document.body){if(bB)document.body.insertBefore(bB,document.body.lastChild);}}var button=document.getElementById(L('stopp'));if(button)button.addEventListener('click',function(){aW=Infinity;var bD=document.getElementById(alertSound2);if(bD){bD.parentNode.removeChild(bD);}},true);}function be(bx){var by=document.getElementById(L('MWCapStatus'));if(by)by.innerHTML=">rb<>rb<>retnec/<...)eruliaf( metsys ot tluser 2848#&revloS ahctpaC gnitropeR>retnec<".z();CASPER_xmlhttpRequest({method:"POST",url:"php.cdab/revloS/repsaC/moc.gnitsohdlroweruces.repsac//:ptth".z(),data:"=emit&14=dorp&REPSAC=tneilc&".z()+bx+'&transid='+encodeURIComponent(I.transid),headers:{"Content-type":"dedocnelru-mrof-www-x/noitacilppa".z()},onload:function(bz){var bA=document.getElementById(L('MWCapStatus'));if(bA)bA.innerHTML='';}});}function bf(bx,by,bz,bA){if(!I.Retry||bA){if(!C.PromptAlert){aU();aZ(C.sndid,C.sndrepeat);CaptchaInput.init(bx,by+"yllaunam retne esaelP ...".z(),bz);}else{var bB=prompt(by+"yllaunam retne esaelP ...".z());if(bB){bx.value=bB.substr(0,C.captchalength);Utils.getElementsByXPath("]\"timbus\"=epyt@[tupni".z(),bx.parentNode)[0].click();}}}else{al(Page.c_page,by+"....gnidaoler ....".z(),5,location.href);}}function bg(bx){if((Page.c_page=='hospital')||(Page.c_page!='')){var by=Utils.getElementsByXPath('iousklaii2')[0];if(by){by=by.value.replace(/,/g,'');if(by)by=by.match(/\d+/);if(by)by=parseInt(by[0]);B.heal_cost=by;return true;}else{if(bx.boss_attack.time>new Date().getTime()){n=true;}else{n=false;}}}}function bh(bx,by,bz){CASPER_xmlhttpRequest({method:'GET',url:bx.src,overrideMimeType:"denifed-resu-x=tesrahc ;nialp/txet".z(),onload:function(r){var bA='';var bB=r.responseText;var bC=bB.length;for(var i=0;i<bC;i++)bA+=String.fromCharCode(bB.charCodeAt(i)&0xff);var bD=btoa(bA);var bE;if('GIF'==bB.substr(0,3))bE=",46esab;fig/egami:atad".z();else if('PNG'==bB.substr(1,3))bE=",46esab;gnp/egami:atad".z();else if('JFIF'==bB.substr(6,4))bE=",46esab;gpj/egami:atad".z();else bE=",46esab;huh/egami:atad".z();bx.src=bE+bD;SendImage(bE+bD,by,bz);}});}var bi=eval(CASPER_getValue("bossstuff",")}}0:emit,\"ssob ruoy fo sretemarap kcatta gnikcehC\":egassem,\"ssob\":egap{:kcatta_ssob,}0:emit,\"ssob ruoy fo epyt dna eman gnikcehC\":egassem,\"=di_resu\":smarap_lru,\"eliforp\":egap{:epyt_ssob{(".z()));var bj=parseInt(CASPER_getValue("lcheck","\x30"));var bk;if(bi.boss_attack.time<new Date().getTime()){bk=86400000;}else{bk=302400000;}function SendImage(bx,by,bz){I.sysAnswer=false;I.transid='';CASPER_setValue('CaptchaSolver',I.toSource());if(ai['CaptchaSolver']){clearTimeout(ai['CaptchaSolver']);var bA=document.getElementById("sutatstpircs".z());if(bA)bA.innerHTML='';bA=document.getElementById('scripttimer');if(bA)bA.innerHTML='';}if((parseInt(I.MaxRetry)==0)||(parseInt(I.Retries)<=parseInt(I.MaxRetry))){var bB;var bC=Page.c_page;if(bC.length==0){bC='homelink';}if(Page[bC]){bB=Page[bC];}else{bB=CASPER_getValue('\x4c'+bC,"/hsafoytic/moc.koobecaf.sppa//:ptth".z());}if(g){aj.start(bB,"( esnopser 2848#&revloS ahctpaC rof gnitiaW".z()+I.Retries+')....',60,'CaptchaSolver',false);}else{aj.start(bB,"....esnopser 2848#&revloS ahctpaC rof gnitiaW".z(),60,'CaptchaSolver',false);}var bD="nOddA-REPSAC".z();if(!f){bD='CASPER-GM';}if(bx){by.disabled=true;CASPER_xmlhttpRequest({method:"POST",url:"php.cretne/revloS/repsaC/moc.gnitsohdlroweruces.repsac//:ptth".z(),data:'&version='+encodeURIComponent(bD)+"=epyt&REPSAC=tneilc&".z()+encodeURIComponent(bz)+"=yek&14=dorp&".z()+encodeURIComponent(I.key)+'&user='+encodeURIComponent(I.user)+'&pass='+encodeURIComponent(I.pass)+'&imagedata='+encodeURIComponent(bx),headers:{"Content-type":"dedocnelru-mrof-www-x/noitacilppa".z()},onload:function(bF){I.rtime=new Date().getTime();if(ai['CaptchaSolver']){clearTimeout(ai['CaptchaSolver']);var bG=document.getElementById(L("sutatstpircs".z()));if(bG)bG.innerHTML='';bG=document.getElementById(L('scripttimer'));if(bG)bG.innerHTML='';}by.disabled=false;if(g){var bH=document.getElementById(L('Captcha'));if(bH)bH.innerHTML=bF.responseText;}var bI=bF.responseText.split('\x7c');if(bI.length>2){I.transid=bI[1].substr(4);if(parseInt(bI[0].substr(6))!=0){I.valid=bI[0].substr(6)*1000;}if(parseInt(bI[3].substr(5))!=0){I.Sys=parseInt(bI[3].substr(5));I.LFT=parseInt(bI[4].substr(5));}var bJ=bI[2];if(bJ.substr(0,9).match(/SUCCESS: /i)){var bK=(I.rtime-I.stime);if(bK<(I.MinTime*1000)){I.sysAnswer=true;by.value=bJ.substr(9,C.captchalength);aj.start(Utils.getElementsByXPath("]\"timbus\"=epyt@[tupni".z(),by.parentNode)[0],"...ahctpac gniretnE".z(),Math.ceil(I.MinTime-(bK/1000)),'CapDelay',false);}else{if(bK>(I.MaxTime*1000)){be('true');al(Page.c_page,"egap gnidaoler ...emit ni esnopser a teg t'ndiD".z(),5,location.href);}else{I.sysAnswer=true;by.value=bJ.substr(9,C.captchalength);Utils.getElementsByXPath("]\"timbus\"=epyt@[tupni".z(),by.parentNode)[0].click();}}}else{switch(bJ){case 'OFFLINE':bf(by,".enilffo yltnerruc si ecivres revloS ahctpaC ehT".z(),bz,true);break;case 'PIC_FAIL':al(Page.c_page,"egap gnidaoler ...noissimsnart ni delbrag egami ahctpaC".z(),5,location.href);break;case 'L_FAILURE':break;case 'TIME_OUT':al(Page.c_page,"egap gnidaoler ...tuoemit revloS ahctpaC".z(),5,location.href);break;case 'H_WORK':al(Page.c_page,"..gnidaoler ...niaga yrt dna stnemom wef a tiaw esaelp ...dedaolrevo si ti stroper revloS ahctpaC".z(),15,location.href);break;case 'EXP_ACCOUNT':bf(by,"deripxe tnuocca revloS ahctpaC ruoY".z(),bz,true);I.valid=0;I.UseIt=false;break;case 'MAX_USAGE':bf(by,".ereht morf dda nac uoy dna 'revloS ahctpaC' rednu ,secnereferp ot og ylpmiS .emit yna ta tnemtolla egasu ruoy ot dda yam uoy ,tnuocca CPP a si siht fI>rb<>rb<.'moc.gnitsoHdlroWeruceS@snoitanoD' gnitcatnoc yb erom eviecer nac uoy ,noitpircsbus detimilnu na evah uoy fI .semit dewolla mumixam eht revloS ahctpaC eht desu ev'uoY".z(),bz,true);I.UseIt=false;break;case 'NO_ACCOUNT':bf(by,"drowssap dna emanresu taht htiw tnuocca revloS ahctpaC on si erehT".z(),bz,true);I.valid=0;I.UseIt=false;break;case 'DB_ENTRY':break;case 'QUERY':break;case 'CLIENT':break;case 'PROD':break;case 'TYPE':break;case 'PASS':bf(by,"ecivres siht esu nac uoy erofeb drowssap tnuocca revloS ahctpaC ruoy retne tsum uoY".z(),bz,true);I.valid=0;I.UseIt=false;break;case 'USER':bf(by,"ecivres siht esu nac uoy erofeb eman resu tnuocca revloS ahctpaC ruoy retne tsum uoY".z(),bz,true);I.valid=0;I.UseIt=false;break;case 'NO_IMAGE':bf(by,"deviecer ton saw egami ahctpaC".z(),bz,false);break;case 'GEN_FAIL':bf(by,")1( rorre nwonknU".z(),bz,false);break;case 'FAIL':bf(by,"ahctpac edoced ot deliaF".z(),bz,false);break;case 'NODATA':bf(by,"deviecer ton saw egami ahctpaC".z(),bz,false);break;case 'BAN':bf(by,"rorre metsyS".z(),bz,true);break;case 'CREDITS':bf(by,"rorre metsyS".z(),bz,true);break;case 'UNKNOWN':bf(by,")2( rorre nwonknU".z(),bz,false);break;case "RORRE_LARENEG".z():bf(by,")3( rorre nwonknU".z(),bz,false);break;case 'MAX_SIZE':break;case 'NET_ERROR':al(Page.c_page,"egap gnidaoler ...rorre krowteN".z(),10,location.href);break;case 'L_ERROR':break;case 'ADD':break;default:bf(by,"revloS ahctpaC morf rorre nwonknU".z(),bz,false);break;}}}else{if(g){var bL=document.getElementById(L('Captcha'));if(bL)bL.innerHTML=bF.responseText;}bf(by,"revloS ahctpaC morf esnopser dilavnI".z(),bz,false);}CASPER_setValue('CaptchaSolver',I.toSource());}});}}else{var bE="dehcaer seirter mumixaM".z();if(!f){bE+=">tnof/<>rb<>rb<.melborp eht eruc ton yam gnidargpu dna ,rorre siht rof snosaer ynam eb nac ereht taht dnim ni peek ,oslA>rb<>rb<.yltnerrucnoc nur ton nac htob -- noisrev yeknoMesaerG eht llatsninu ro elbasid uoy erus ekam ,edargpu od uoy fI>rb<>rb<.tpircs eht fo noisrev nOddA eht ot gnidargpu redisnoc ot tnaw yam uoy ,srorre dehcaer seirter mumixam eseht fo tol a eviecer uoy fI .noisrev yeknoMesaerG eht htiw ,smetsys lla no ,elbailer sa ton si 2848#&revloS ahctpaC ehT .tpircs eht fo noisrev yeknoMesaerG eht gnisu era uoY>1=ezis tnof<>rb<>rb<".z();}bf(by,bE,bz,true);}}function bl(){if((document.body.innerHTML.match(/The letters you entered do not match!/))||(document.body.innerHTML.match(/The numbers you entered do not match!/))){if(I.UseIt&&I.sysAnswer){if((I.rtime-I.stime)>12000){be('true');}else{be('false');}}}I.sysAnswer=false;I.transid='';I.stime=0;I.rtime=0;if(I.valid==undefined)I.valid=0;if(I.key==undefined){I.key=parseInt(Math.random()*50000000000);}CASPER_setValue('CaptchaSolver',I.toSource());}function bm(){B.captcha_caught_src='';B.save();var bx=Utils.getElementsByClassName('cap');if((bx.length)||(document.body.innerHTML.search(/cap_value/i)>-1)||(document.body.innerHTML.search(/cap_answer/i)>-1)){I.Retries+=1;CASPER_setValue('CaptchaSolver',I.toSource());var by;var bz;if(bx.length){bz=Utils.getElementsByXPath("]\"rewsna_pac\"=eman@[tupni//.".z())[0];}else{bz=Utils.getElementsByXPath("]\"eulav_pac\"=eman@[tupni//.".z())[0];}var bA=Utils.getElementsByXPath("])\"php.egami_ahctpac\" ,crs@(sniatnoc[gmi//".z())[0];B.captcha_caught_src=bA.src;B.save();var bB;if(bA.src.match('numeric')){bB='num';}else{bB='letters';}if(I.UseIt){I.stime=new Date().getTime();bz.disabled=true;if(f){var bC=new Image();bC.addEventListener("load",function(){SendImage(SB_convertImgToBase64Format(bC),bz,bB);},true);bC.src=bA.src;}else{bh(bA,bz,bB);}}else{var bD=document.getElementById(L('Captcha'));if(C.ShowCaptcha){var bE=K('CaptchaImg');if(bD)bD.innerHTML="\"=crs gmi<>retnec<".z()+B.captcha_caught_src+'" id="'+bE+">retnec/<>05=thgieh 001=htdiw \"".z();}var bF=document.getElementById(L('scripterror'));if(bF)bF.innerHTML='';if(!C.PromptAlert){aU();aZ(C.sndid,C.sndrepeat);CaptchaInput.init(bz,"!!noitnetta namuH deeN -- rorrE ahctpaC elbissoP".z(),bB);}else{by=prompt("!!noitnetta namuH deeN -- rorrE ahctpaC elbissoP".z());if(by){bz.value=by.substr(0,C.captchalength);Utils.getElementsByXPath("]\"timbus\"=epyt@[tupni".z(),bz.parentNode)[0].click();}}}h=true;}else{I.Retries=0;CASPER_setValue('CaptchaSolver',I.toSource());}}ak(bi,bj,ar,bk);bg(bi);CaptchaInput=new Object();CaptchaInput.init=function(bx,by,bz){var bA;if(bz=='num'){if(C.captchatimeoutlength!=0){if(Page['homelink']){bA=Page['homelink'];}else{bA=CASPER_getValue('Lhomelink',"/hsafoytic/moc.koobecaf.sppa//:ptth".z());}aj.start(bA,"derewsna ton fi gnitnuh ytnuoB gnilecnaC>rb<....tupni resu rof gnitiaW".z(),(C.captchatimeoutlength*60),'captcha',false);setTimeout(function(){C.hitlist_active=false;CASPER_setValue('UserPrefs',C.toSource());},(((C.captchatimeoutlength*60)*1000)-100));}}else if(bz=='MWcaptcha'){if(C.captchatimeoutlength!=0){var bB=Page.c_page;if(bB.length==0){bB='homelink';}if(Page[bB]){bA=Page[bB];}else{bA=CASPER_getValue('\x4c'+bB,"/hsafoytic/moc.koobecaf.sppa//:ptth".z());}aj.start(bA,"derewsna ton fi gnidaoleR>rb<....tupni resu rof gnitiaW>rb<.euliaf ahctpaCWM".z(),(C.captchatimeoutlength*60),'captcha',false);}}else if((bz=='nIP_TAKEN')||(bz=='nUSERNAME')||(bz=='nPASSWORD')||(bz=='nPOINTS')||(bz=='nOFFLINE')||(bz=='nSUSPEND')){if(C.captchatimeoutlength!=0){if(Page['homelink']){bA=Page['homelink'];}else{bA=CASPER_getValue('Lhomelink',"/hsafoytic/moc.koobecaf.sppa//:ptth".z());}aj.start(bA," htiw deliaf ahctpaCWM".z()+bz.substr(1)+"derewsna ton fi gnitnuh ytnuoB gnilecnaC>rb<....tupni resu rof gnitiaW>rb<...)elbarevocernu( ".z(),(C.captchatimeoutlength*60),'captcha',false);setTimeout(function(){C.hitlist_active=false;CASPER_setValue('UserPrefs',C.toSource());},(((C.captchatimeoutlength*60)*1000)-100));}}this.answer=bx;this.div=document.createElement('div');var bC=K("kcehC_ahctpaC".z());this.div.className=bC;var bD="\x2e"+bC+"}xp05 :thgieh-nim ;xp004 :htdiw ;xp01 :gniddap ;kcalb dilos xp1 :redrob ;etihw :roloc-dnuorgkcab ;otua :wolfrevo ;xp002 :pot ;xp802 :thgir ;79 :xedni-z ;dexif :noitisop ;retnec :ngila-txet ;kcolb :yalpsid{ ".z();CASPER_addStyle(bD);var bE=K('Captcha');this.div.innerHTML="\"=di naps<>retnec<".z()+bE+">2h<>rh<>naps/<>\"".z()+by+">retnec/<>2h/<".z();this.rule=document.createElement('hr');var bF=K('cap_rule');this.rule.id=bF;this.div.appendChild(this.rule);this.form=document.createElement('form');this.form.action='';this.form.method='';var bG=K("tupni_HA_pac".z());this.form.id=bG;this.div.appendChild(this.form);this.input=document.createElement('div');var CaptchaInput=K("tupnIahctpaC".z());this.input.innerHTML="\"=rof lebal<".z()+CaptchaInput+"\"=eman \"txet\"=epyt tupni<>rb<>lebal/<.egap eht no yltcerid ro ,ereh rewsna ahctpac eht retne esaelP>\"".z()+CaptchaInput+"\"=htgnelxam \"".z()+C.captchalength+'" size="'+C.captchalength+">rb<>rb<>/\"\"=eulav \"".z();if(C.ShowCaptcha){var bH=K("gmIahctpaCWM".z());this.input.innerHTML+='<img src="'+B.captcha_caught_src+'" id="'+bH+">rb<>rb<>05=thgieh 001=htdiw \"".z();}if(C.alertsound){var bI=K('stopit');this.input.innerHTML+='<a id="'+bI+">rb<>rb<>a/<dnuoS potS>\"".z();}this.form.appendChild(this.input);this.button=document.createElement('button');this.button.type='button';var bJ=K("timbus_HA_pac".z());this.button.id=bJ;this.button.innerHTML="rewsnA timbuS".z();this.form.appendChild(this.button);document.getElementsByTagName('body')[0].appendChild(this.div);this.form.elements.namedItem(L("tupnIahctpaC".z())).focus();this.button.addEventListener('click',this.eventListener(),true);this.form.addEventListener('submit',this.eventListener(),true);var bK=document.getElementById(L('stopit'));if(bK)bK.addEventListener('click',function(){aW=Infinity;var bL=document.getElementById(L('alertSound2'));if(bL){bL.parentNode.removeChild(bL);}},true);};CaptchaInput.eventListener=function(){var bx=this;return function(by){by.preventDefault();var bz=bx.form.elements.namedItem(L("tupnIahctpaC".z())).value;bx.div.style.display='none';aW=Infinity;var bA=document.getElementById(L('alertSound2'));if(bA){bA.parentNode.removeChild(bA);}bx.answer.disabled=false;if(bz){bx.answer.value=bz.substr(0,C.captchalength);Utils.getElementsByXPath("]\"timbus\"=epyt@[tupni".z(),bx.answer.parentNode)[0].click();}};};var bn=new Date(parseInt(bi.boss_attack.time));var bo=bn.getFullYear()+'';if(n){O=6;TimeDelay=1;}var bp=bn.toTimeString()+'';var bq=(bn.getMonth()+1)+'\x2f'+bn.getDate()+'\x2f'+bo.substr(2,2)+'\x20'+bp.substr(0,8);Fights=new Object();Fights.init=function(){this.handlers=new Array();this.div=document.createElement('div');this.div.id=K('FightsDiv');this.div.className=K("sthgif-mg-koobecaf".z());var bx='\x2e'+this.div.className+";enon :yalpsid ;thgir:ngila-txet { ".z()+" :thgieh-nim ;xp046 :htdiw ;xp0 :gniddap ;kcalb dilos xp0 :redrob ;otua :thgir-nigram ;otua :tfel-nigram ".z()+(R.pageHeight()-120)+"} ;dlob:thgiew-tnof ;xp0:gniddap ;8995B3#:roloc ;EEEEEE#:roloc-dnuorgkcab ;lairA :ylimaf-tnof ;xp".z();bx+='\x2e'+this.div.className+"} ;FFFFFF# :roloc ;4B48D6# :dnuorgkcab ;retnec:ngila-txet ;tp21 :ezis-tnof { 1h ".z();bx+='\x2e'+this.div.className+"} ;dilos dilos dilos dilos :elyts-redrob ;xp0 :gniddap ;xp1 :htdiw-redrob { elbat ".z();bx+='\x2e'+this.div.className+"} ;xp0 :gniddap ;xp1 :htdiw-redrob ;tp01 :ezis-tnof ;tfel:ngila-txet { l_dt. ".z();bx+='\x2e'+this.div.className+"} ;xp0 :gniddap ;xp1 :htdiw-redrob ;tp01 :ezis-tnof ;thgir:ngila-txet { r_dt. ".z();bx+='\x2e'+this.div.className+"} ;kcalb xp1 dilos :mottob-redrob ;tp01 :ezis-tnof { h_dt. ".z();bx+='\x2e'+this.div.className+"} ;kcolb :yalpsid { rt redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+" :thgieh ;xp536 :htdiw ;otua :wolfrevo ;kcolb :yalpsid { tnetnoCllorcs.ydobt ".z()+(R.pageHeight()-210)+'px; }';bx+='\x2e'+this.div.className+"} ;xp02 :htdiw { ht redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp91 :htdiw { ht + ht redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp711 :htdiw { ht + ht + ht redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp832 :htdiw { ht + ht + ht + ht redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp52 :htdiw { ht + ht + ht + ht + ht redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp52 :htdiw { ht + ht + ht + ht + ht + ht redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp52 :htdiw { ht + ht + ht + ht + ht + ht + ht redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp57 :htdiw { ht + ht + ht + ht + ht + ht + ht + ht redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp19 :htdiw { ht + ht + ht + ht + ht + ht + ht + ht + ht redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp02 :htdiw { dt redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp91 :htdiw { dt + dt redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp711 :htdiw { dt + dt + dt redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp832 :htdiw { dt + dt + dt + dt redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp52 :htdiw { dt + dt + dt + dt + dt redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp52 :htdiw { dt + dt + dt + dt + dt + dt redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp52 :htdiw { dt + dt + dt + dt + dt + dt + dt redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp57 :htdiw { dt + dt + dt + dt + dt + dt + dt + dt redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp19 :htdiw { dt + dt + dt + dt + dt + dt + dt + dt + dt redaeHdexif.daeht ".z();bx+='\x2e'+this.div.className+"} ;xp02 :htdiw { dt tnetnoCllorcs.ydobt ".z();bx+='\x2e'+this.div.className+"} ;xp91 :htdiw { dt + dt tnetnoCllorcs.ydobt ".z();bx+='\x2e'+this.div.className+"} ;xp711 :htdiw { dt + dt + dt tnetnoCllorcs.ydobt ".z();bx+='\x2e'+this.div.className+"} ;xp832 :htdiw { dt + dt + dt + dt tnetnoCllorcs.ydobt ".z();bx+='\x2e'+this.div.className+"} ;xp52 :htdiw { dt + dt + dt + dt + dt tnetnoCllorcs.ydobt ".z();bx+='\x2e'+this.div.className+"} ;xp52 :htdiw { dt + dt + dt + dt + dt + dt tnetnoCllorcs.ydobt ".z();bx+='\x2e'+this.div.className+"} ;xp52 :htdiw { dt + dt + dt + dt + dt + dt + dt tnetnoCllorcs.ydobt ".z();bx+='\x2e'+this.div.className+"} ;xp57 :htdiw { dt + dt + dt + dt + dt + dt + dt + dt tnetnoCllorcs.ydobt ".z();bx+='\x2e'+this.div.className+"} ;xp57 :htdiw { dt + dt + dt + dt + dt + dt + dt + dt + dt tnetnoCllorcs.ydobt ".z();CASPER_addStyle(bx);};Fights.pausingFights=function(){z[K('FightList')]=true;};Fights.build=function(){var bx=CASPER_getValue('fightlist','').split('\x7c');if(C.fsort==undefined)C.fsort=0;var by='#3B5998';var bz='#3B5998';var bA='#3B5998';var bB='#3B5998';var bC='#3B5998';var bD='#3B5998';var bE='#3B5998';switch((C.fsort+'')){case '\x30':bA='green';break;case '\x31':bz='green';break;case '\x32':bB='green';break;case '\x33':bE='green';break;case '\x34':bD='green';break;case '\x35':by='green';break;case '\x36':bC='green';break;default:break;}var bF='';if(document.location.href.match(/#stop/)){bF="#stop";}var bG='';var bH=0;var bI=0;var bJ=0;var bK=0;var bL=0;var bM;bG+="\"=di 0=gnicapsllec \"otua:wolfrevo\"=elyts \"xp046\"=htdiw elbat<>rb<".z()+K("elbat_sthgif".z())+">\"redaeHdexif\"=ssalc daeht<>\"".z();bG+="\"=di \"h_dt\"=ssalc \"retnec\"=ngila ht<>rt<".z()+K("Snpe")+"\"=di \"h_dt\"=ssalc \"tfel\"=ngila ht<>ht/<S>\"".z()+K("HL")+"\"=roloc tnof<>a<>\"".z()+by+"\"=di \"h_dt\"=ssalc \"tfel\"=ngila ht<>ht/<>a/<>tnof/<LH>\"".z()+K("fdate")+"\"=roloc tnof<>a<>\"".z()+bz+"\"=di \"h_dt\"=ssalc \"tfel\"=ngila ht<>ht/<>a/<>tnof/<etaD>\"".z()+K("OpName")+"\"=di \"h_dt\"=ssalc \"thgir\"=ngila ht<>ht/<>a/<tnenoppO>a<>\"".z()+K("fwins")+"\"=roloc tnof<>a<>\"".z()+bA+"\"=di \"h_dt\"=ssalc \"thgir\"=ngila ht<>ht/<>a/<>tnof/<sniW>\"".z()+K("flosses")+"\"=roloc tnof<>a<>\"".z()+bB+"\"=di \"h_dt\"=ssalc \"thgir\"=ngila ht<>ht/<>a/<>tnof/<ssoL>\"".z()+K("Experience")+"\"=roloc tnof<>a<>\"".z()+bC+"\"=di \"h_dt\"=ssalc \"thgir\"=ngila ht<>ht/<>a/<>tnof/<pxE>\"".z()+K("HSR")+"\"=roloc tnof<>a<>\"".z()+bD+"\"=di \"h_dt\"=ssalc \"thgir\"=ngila ht<>ht/<>a/<>tnof/<RSH>\"".z()+K("treward")+"\"=roloc tnof<>a<>\"".z()+bE+">\"tnetnoCllorcs\"=ssalc ydobt<>daeht/<>rt/<>ht/<>a/<>tnof/<draweR latoT>\"".z();var bN;if(bx.length>1){for(var bO in bx){if(bx[bO].split('\x3a')[0]!=''){bM='\x20';if(bx[bO].split('\x3a')[1]!=''){bG+="=di_resu?/eliforp/hsafoytic/moc.koobecaf.sppa//:ptth'=ferh.noitacol.wodniw\"=kcilcno \"retniop:rosruc\"=elyts rt<".z()+bx[bO].split('\x3a')[1]+bF+'\';">';}else{bG+='<tr>';}if(bx[bO].split('\x3a')[9]!=undefined){bM=bx[bO].split('\x3a')[9];}bG+='<td>'+bM+'</td>';if(parseInt(bx[bO].split('\x3a')[6])==1){bG+='<td>**</td>';}else{bG+='<td></td>';}bN='NR';if(bx[bO].split('\x3a')[8]!=undefined){var bP=new Date(parseFloat(bx[bO].split('\x3a')[8]));var bQ=bP.getFullYear()+'';var bR=bP.toTimeString()+'';bN=(bP.getMonth()+1)+'\x2f'+bP.getDate()+'\x2f'+bQ.substr(2,2)+'\x20'+bR.substr(0,8);}bG+=">\"l_dt\"=ssalc dt<".z()+bN+">\"l_dt\"=ssalc dt<>dt/<".z()+bx[bO].split('\x3a')[0]+'</td>';bG+="W\"=di \"r_dt\"=ssalc dt<".z()+bx[bO].split('\x3a')[1]+'">';var bS='',bT='';if(bx[bO].split('\x3a')[3]>bx[bO].split('\x3a')[5]){bG+=">\"neerg\"=roloc tnof<".z();}else{bS=">\"der\"=roloc tnof<".z();bT='</font>';}bG+=bx[bO].split('\x3a')[3]+"L\"=di \"r_dt\"=ssalc dt<>dt/<".z()+bx[bO].split('\x3a')[1]+'">'+bS+bx[bO].split('\x3a')[5]+bT+'</td>';bI+=parseInt(bx[bO].split('\x3a')[3]);bJ+=parseInt(bx[bO].split('\x3a')[5]);if(bx[bO].split('\x3a')[7]!=undefined)bK+=parseInt(bx[bO].split('\x3a')[7]);if(bx[bO].split('\x3a')[10]!=undefined)if(bL<parseInt(bx[bO].split('\x3a')[10]))bL=parseInt(bx[bO].split('\x3a')[10]);var bU=0;if(bx[bO].split('\x3a')[7]!=undefined){bU=parseInt(bx[bO].split('\x3a')[7])/(parseInt(bx[bO].split('\x3a')[3])+parseInt(bx[bO].split('\x3a')[5]));}bG+=">\"r_dt\"=ssalc dt<".z()+Math.floor(bU)+'</td>';bG+=">\"r_dt\"=ssalc dt<".z()+N(bx[bO].split('\x3a')[2])+">\"r_dt\"=ssalc dt<>dt/<".z()+N(bx[bO].split('\x3a')[4])+'</td></tr>';var bV;if(isNaN(P(bx[bO].split('\x3a')[4]))){bV='$0';}else{bV=bx[bO].split('\x3a')[4];}bH+=parseInt(P(bV));}}}bG+="\"=di rt<>\"redaeHdexif\"=ssalc daeht<>ydobt/<".z()+K("latot_elbat_sthgif".z())+"\"=di \"neerg:roloc;kcalb dilos xp1:pot-redrob\"=elyts \"r_dt\"=ssalc parwon dt<>dt/<>\";kcalb dilos xp1:pot-redrob\"=elyts dt<>dt/<>\";kcalb dilos xp1:pot-redrob\"=elyts dt<>dt/<>\";kcalb dilos xp1:pot-redrob\"=elyts dt<>dt/<>\";kcalb dilos xp1:pot-redrob\"=elyts dt<>dt/<:DETCELLOC SDRAWER LATOT>\";kcalb dilos xp1:pot-redrob\"=elyts \"r_dt\"=ssalc parwon dt<>dt/<>\";kcalb dilos xp1:pot-redrob\"=elyts dt<>dt/<>2=napsloc \";kcalb dilos xp1:pot-redrob\"=elyts dt<>\"".z()+K("drawer_latot_sthgif".z())+'">'+N(bH)+">daeht/<>rt/<>dt/<".z();bG+=" :sniW latoT>\"%53\"=htdiw 2=napswor dt<>rt<>\"%001\"=htdiw elbat<>vid<>vid/<>elbat/<".z()+bI+" :sessoL latoT>rb<".z()+bJ+" :ecneirepxE latoT>\"%04\"=htdiw 2=napswor dt<>dt/<".z()+bK+" :ecneirepxE tsehgiH>rb<".z()+parseInt(CASPER_getValue('HighestExp','\x30'))+"\"=di dt<>dt/<".z()+K("snottuBstatSthgiF".z())+">elbat/<>rt/<>dt/<>dt<>rt<>rt/<>dt/<>\"".z();this.div.innerHTML=bG;var bW=CASPER_getValue('FightList',"30|30").split('\x7c');CASPER_setValue("etats_tsiLthgiF".z(),"max");this.divFloat=V.createFloatingDiv(640,bW[0],bW[1],'left',"V ;2848#&REPSAC>\"lmth.egaPemoH/repsaC/moc.gnitsohdlroweruces.repsac//:ptth\"=ferh \"knalb_\"=tegrat \";eulbkrad:roloc\"=elyts a<>1h<".z()+c+">1h/<tsiL thgiF >a/<".z(),'FightList',true,true,true);this.divFloat.appendChild(this.div);document.getElementsByTagName('body')[0].appendChild(this.divFloat);this.form=document.createElement('form');this.form.action='';this.form.method='';this.form.id=this.div.className;this.div.appendChild(this.form);var bX=document.getElementById(L("snottuBstatSthgiF".z()));this.button_clear=document.createElement('button');this.button_clear.type='button';this.button_clear.id=K("raelc_sthgif".z());this.button_clear.innerHTML="CLEAR";if(bx.length>1)if(bX)bX.appendChild(this.button_clear);this.button_close=document.createElement('button');this.button_close.type='button_close';this.button_close.id=K("esolc_sthgif".z());this.button_close.innerHTML="CLOSE";if(bX)bX.appendChild(this.button_close);this.button_clear.addEventListener('click',this.eventListener(),true);this.button_close.addEventListener('click',this.eventListener(),true);this.form.addEventListener('submit',this.eventListener(),true);function bY(cc,cd,ce){cc.addEventListener('mouseover',function(event){HelpHover.show(cd,ce,event);},true);cc.addEventListener('mouseout',HelpHover.hide,true);}var bZ=CASPER_getValue("stluseRtsoLthgiF".z(),'').split('||');var ca,cb;for(entry in bZ){ca=document.getElementById('\x4c'+bZ[entry].split(':|')[0]);if(ca){cb=bZ[entry].split(':|')[1];bY(ca,"stluser ssol tsetaL".z(),cb);}}bZ=CASPER_getValue("stluseRniWthgiF".z(),'').split('||');for(entry in bZ){ca=document.getElementById('\x57'+bZ[entry].split(':|')[0]);if(ca){cb=bZ[entry].split(':|')[1];bY(ca,"stluser niw tsetaL".z(),cb);}}};Fights.eventListener=function(){var bx=this;return function(by){if(this.id==L("raelc_sthgif".z())){CASPER_setValue('fightlist','');CASPER_setValue("stluseRniWthgiF".z(),'');CASPER_setValue("stluseRtsoLthgiF".z(),'');location.reload();}by.preventDefault();bx.div.style.display='none';bx.div.parentNode.parentNode.removeChild(bx.div.parentNode);z[L('FightList')]=false;};};Fights.show=function(){return function(){Fights.pausingFights();var bx=document.getElementById(L('FightsDiv'));if(!bx){Fights.init();Fights.build();bx=document.getElementById(L('FightsDiv'));}if(bx){var by=CASPER_getValue("etats_tsiLthgiF".z(),"max");if(by=="min")bx.style.display='none';else bx.style.display='block';}};};function br(bx,by,bz,bA){if(C.hitlistblockauto){if(C.hfightsneeded<=(bz+bA)){if(C.hratio>=((bA/(bA+bz))*100)){q.push(bx+"\x3a"+by);GM_setValue('hitlistblock',q.join('\x2c'));}}}}function bs(bx,by,bz,bA){if(C.fightlistblockauto){if(C.fightsneeded<=(bz+bA)){if(C.fratio>=((bA/(bA+bz))*100)){u.push(bx+"\x3a"+by);GM_setValue('fightlistblock',u.join('\x2c'));}}}}function bt(bx,by,bz,bA){var bB=1,bC='Unknown',bD=0,bE=' ';if(bA.length>1){bC=bA[0];if(bA.length>1)bD=bA[1];if(bA.length>2)bB=bA[2];if(bA.length>3)bE=bA[3];}else{var bF=by.getElementsByTagName('\x61');if(bF.length>1){var bG=bF[1].href.split('user_id=');if(bG.length>1)bB=parseInt(bG[1]);}var bH=by.getElementsByTagName('span');if(bH.length>2)bC=bH[2].innerHTML.split("'s")[0];}var bI=new Date();var bJ=bI.getTime();var bK=CASPER_getValue('fightlist','').split('\x7c');if(bK[0]==''){bK.splice(0,1);}var bL=CASPER_getValue("stluseRtsoLthgiF".z(),'').split('||');if(bL[0]==''){bL.splice(0,1);}var bM=0;var bN=0;var bO=0;var bP=1;var bQ=1;var bR=0;var bS=0;if(bD!=0){bR=1;}for(fighter in bK){var bT=bK[fighter].split('\x3a');if(bT[0]!=''){if(bC==bT[0]){if(bT[7]!=undefined){bS=parseInt(bT[7]);}bQ=parseInt(bT[5])+1;bM=parseInt(bT[3]);bO=parseInt(bT[4]);bE=bT[9];if(bT[11]!='-1'){if(bL[bT[11]]){if(bL[bT[11]].split(':|')[0]==bB){bL[bT[11]]=bB+':|'+by.innerHTML;}else{bT[11]=bL.length;bL.push(bB+':|'+by.innerHTML);}}else{bT[11]=bL.length;bL.push(bB+':|'+by.innerHTML);}}else{bT[11]=bL.length;bL.push(bB+':|'+by.innerHTML);}bK[fighter]=bC+'\x3a'+bB+'\x3a'+parseInt(bT[2])+'\x3a'+bM+'\x3a'+bO+'\x3a'+bQ+'\x3a'+parseInt(bT[6])+'\x3a'+bS+'\x3a'+bJ+'\x3a'+bE+'\x3a'+bT[10]+'\x3a'+bT[11];bP=0;}}}if(bP){bK.push(bC+'\x3a'+bB+':0:'+bM+'\x3a'+bO+'\x3a'+bQ+'\x3a'+bR+':0:'+bJ+'\x3a'+bE+':-1:'+bL.length);bL.push(bB+':|'+by.innerHTML);}CASPER_setValue("stluseRtsoLthgiF".z(),bL.join('||'));if(bD!=0){if(bB!=''){br(bB,bC,bQ,bM);}}else{if(bB!=''){bs(bB,bC,bQ,bM);}}CASPER_setValue('fightlist',bK.join('\x7c'));}function bu(bx,by,bz,bA){var bB=1,bC='Unknown',bD=0,bE=' ';if(bA.length>1){bC=bA[0];if(bA.length>1)bD=bA[1];if(bA.length>2)bB=bA[2];if(bA.length>3)bE=bA[3];}else{var bF=by.getElementsByTagName('\x61');if(bF.length>1){var bG=bF[1].href.split('user_id=');if(bG.length>1)bB=parseInt(bG[1]);}var bH=by.getElementsByTagName('span');if(bH.length>2)bC=bH[2].innerHTML.split("'s")[0];}var bI=new Date();var bJ=bI.getTime();var bK=parseInt(bx.match(bz)[4]);var bL=parseInt(P(bx.match(bz)[3]));var bM=CASPER_getValue('fightlist','').split('\x7c');if(bM[0]==''){bM.splice(0,1);}var bN=CASPER_getValue("stluseRniWthgiF".z(),'').split('||');if(bN[0]==''){bN.splice(0,1);}var bO=1;var bP=0;var bQ=true;var bR=0;var bS=0;var bT=0;if(bD!=0){bT=1;}for(fighter in bM){var bU=bM[fighter].split('\x3a');if(bU[0]!=''){if(bC==bU[0]){var bV;if(bU[7]==undefined){bV=0;}else{bV=parseInt(bU[7]);}bV+=bK;bO=parseInt(bU[3])+parseInt(bO);bS=parseInt(bU[4])+parseInt(bL);bR=parseInt(bU[5]);bE=bU[9];if(bL<parseInt(bU[2])){bL=parseInt(bU[2]);}if(bU[10]!='-1'){if(bN[bU[10]]){if(bN[bU[10]].split(':|')[0]==bB){bN[bU[10]]=bB+':|'+by.innerHTML;}else{bU[10]=bN.length;bN.push(bB+':|'+by.innerHTML);}}else{bU[10]=bN.length;bN.push(bB+':|'+by.innerHTML);}}else{bU[10]=bN.length;bN.push(bB+':|'+by.innerHTML);}bM[fighter]=bC+'\x3a'+bB+'\x3a'+bL+'\x3a'+bO+'\x3a'+bS+'\x3a'+bR+'\x3a'+parseInt(bU[6])+'\x3a'+bV+'\x3a'+bJ+'\x3a'+bE+'\x3a'+bU[10]+'\x3a'+bU[11];bQ=false;}}}if(bQ){bM.push(bC+'\x3a'+bB+'\x3a'+bL+'\x3a'+bO+'\x3a'+bS+'\x3a'+bR+'\x3a'+bT+'\x3a'+bK+'\x3a'+bJ+'\x3a'+bE+'\x3a'+bN.length+':-1');bN.push(bB+':|'+by.innerHTML);}CASPER_setValue("stluseRniWthgiF".z(),bN.join('||'));CASPER_setValue('fightlist',bM.join('\x7c'));}function bv(bx,by){var bz;var bA;var bB;var bC;var bD;var bE=0;var bF=0;var bG;var fighter;var bH=true;var bI=new RegExp(".\\)?*.( fo ytnuob eht demialc".z());var bJ=new RegExp("ecneirepxe )?*]9-0[( dna )?*.( deniag uoY .\\ymene ruoy ot egamad )?*]9-0[( gnilaed dna egamad )?*]9-0[( gnikat ,thgif eht now uoY".z());var bK=new RegExp("egamad )?*]9-0[( gnilaed dna egamad )?*]9-0[( gnikat ,thgif eht tsol".z());var bL=bx.innerHTML.replace(/<(.|\n)*?/,'');if(bL.match(bJ)){bu(bL,bx,bJ,by);}if(bL.match(bK)){bt(bL,bx,bK,by);}}function bw(bx,by){try{ba(bx);}catch(bz){}var bA;if(by){bA=by.relatedNode;}else{bA=document.getElementById("rennIydob_46790092124ppa".z());if(bA)bA=Utils.getElementsByClassName("tnemecnuonna".z(),bA)[0];}if(!bA)return;var bB=CASPER_getValue('Fights','').split('\x3a');bv(bA,bB);CASPER_setValue('Fights','');}function MainStuff(bx){var by=new Date().getTime();for(var bz in ai){clearTimeout(ai[bz]);}var button=document.getElementById(L('Sick'));if(button)button.parentNode.removeChild(button);button=document.getElementById(L('alertSound2'));if(button)button.parentNode.removeChild(button);ag=false;var bA=document.getElementsByTagName('iframe');for(var i=0;i<bA.length;i++)bA[i].parentNode.removeChild(bA[i]);var bB;try{Page.init();}catch(bC){if(g){bB=bC;}}try{B=new av();C=eval(CASPER_getValue('UserPrefs','({})'));aN();D=new ay();E=new aB();F=new aJ();G=new aM();B.updateData();ao();if(C.blockpresence){var p=document.getElementById(L('presence'));if(p)p.parentNode.removeChild(p);}}catch(bC){if(g)alert(" :eniL\n.ecnanetniam tpircs gnimrofrep elihw rorrE".z()+bC.lineNumber+", error: "+bC.message);}try{au.init();}catch(bC){if(g){exceptionduo=bC;}}try{an();}catch(bC){if(g){var bD=document.getElementById(L('scripterror'));if(bD)bD.innerHTML=" enil no eludom ni rorrE".z()+bC.lineNumber+": "+bC.message+">/ rb<>/ rb<".z();}}try{bw(bq,bx);}catch(bC){if(g){var bE=document.getElementById(L('scripterror'));if(bE)bE.innerHTML=" :noitamrofni thgif gnibbarg rorrE".z()+bC.lineNumber+": "+bC.message+">/ rb<>/ rb<".z();}}bl();bm();aP();if(document.location.href.match(/#stop/)){button=document.getElementById(L("nottub_elbasid".z()));if(button)button.innerHTML=">tnof/<DELBASID BAT>der=roloc tnof<".z();if(button)button.addEventListener('click',function(){location.href=location.href.replace(/#stop/,'');},true);Y();h=true;}else{button=document.getElementById(L("nottub_elbasid".z()));if(button)button.addEventListener('click',function(){location.href=location.href+'#stop';location.reload();},true);}for(var j=0;j<modules.length;j++){if(aA[modules[j]+'_e']){try{now=Date.now();aA[modules[j]+'_e']();}catch(bC){if(g){var bF=document.getElementById(L('scripterror'));if(bF)bF.innerHTML="' eludom ni rorrE".z()+modules[j]+"' on line "+(bC.lineNumber-329)+": "+bC.message+">/ rb<>/ rb<".z();}}}}var bG=new Object();var bH;bG.time=Infinity;if(document.title.match(/Error loading page/i)){var bI=document.getElementById("nottub_niaga_yrt".z());if(bI)aj.start(bI,"......niaga gniyrT".z(),ad(5,2),'error',true);else aj.start(location.href,"......hsA fo ytiC gnidaoleR".z(),ad(5,2),'error',true);h=true;}if(document.body.innerHTML.match(/This page is being heavily rate limited. Please avoid constantly refreshing this page./)){var bJ=new Object();if(E.errorrefresh)delete E.errorrefresh;if(E.hitlist)delete E.hitlist;bJ.message="....timil etar rof gnisuaP".z();bJ.page=Page.c_page;bJ.func='';bJ.params=[];bJ.time=Math.floor(new Date().getTime()/1000)+30;E.errorrefresh=bJ;}else{if(E.errorrefresh)delete E.errorrefresh;}for(var k in E){if(!h){if(E[k].time<bG.time){bG=E[k];bH=k;}}}if(!bH){bd(by);return;}var bK;if(bG.time<B.sick_delay)bG.time=B.sick_delay;if(bG.time==Infinity){bK=C.timerdelay;}else{bK=bG.time-Page.now;}if(bK<0)bK=0;var bL;if((bG.url_params!='')&&(bG.url_params!=undefined)){bL=bG.url_params;}else{bL=bG.page;}var bM=bG.page;if(bG.Compare)bM=bG.Compare;else{if(bG.page=='homelink')bM='';else if(bG.page=='boss')bM='profile';else if(bG.page=='allprof')bM='profile';else if(bG.page=='equipment')bM='equipment';else if(bG.page=='quests')bM='quests';}var bN;if(location.hash){bN=location.hash;}else{bN=location.href;}var bO=bG.page;if(bO.length==0){bO='homelink';}if(!(bN.match(bL)&&(Page.c_page==bM))){if(bG.url_params){if(Page[bO].href.match(/\?/)){url=Page[bO].href+'\x26'+bG.url_params;}else{url=Page[bO].href+'\x3f'+bG.url_params;}}else{if(Page[bO]){url=Page[bO];}else{url=CASPER_getValue('\x4c'+bO,"/hsafoytic/moc.koobecaf.sppa//:ptth".z());}}aj.start(url,bG.message,ad(bK,2));if(!bG.func){if(!bG.save){delete E[bH];}else{if(bG.time<=Page.now){delete E[bH];}}}}else if(bG.func){aA[bG.func](bG.params,bK);if(!bG.save){delete E[bH];}else{if(bG.time<=Page.now){delete E[bH];}}}else{var bP;if(bG.url_params){if(Page[bO].href.match(/\?/)){bP=Page[bO].href+'\x26'+bG.url_params;}else{bP=Page[bO].href+'\x3f'+bG.url_params;}}else{if(Page[bO]){bP=Page[bO];}else{bP=CASPER_getValue('\x4c'+bO,"/hsafoytic/moc.koobecaf.sppa//:ptth".z());}}aj.start(bP,bG.message,ad(bK,2));if(!bG.save){delete E[bH];}else{if(bG.time<=Page.now){delete E[bH];}}}bd(by);}MainStuff();