﻿if(typeof aa=="undefined"|| !aa){var aa={};aa.Image={};aa.ac={};aa.ab={};aa.bD={};aa.protocol=(document.URL)?document.URL.substr(0,document.URL.indexOf(':')):'';aa.domain=window.location.host;aa.aE={};aa.aE.ah={};aa.aE.aS=4;aa.aE.hv=false;aa.aE.nv=null;aa.tC=['bj','tr','mm','rl','rd','mrm','df','bb'];aa.pI=new Array();aa.pI['bj']='Blackjack';aa.pI['tr']='Tomb Raider';aa.pI['mm']='Major Millions';aa.pI['rl']='Roulette';aa.pI['rd']='Royal Derby';aa.pI['mrm']='Mermaids Millions';aa.pI['df']='Dragon\'s Fortune';aa.pI['bb']='Bingo Bonanza';aa.ge=new Array();aa.ge['bj']=103;aa.ge['tr']=110;aa.ge['mm']=113;aa.ge['rl']=107;aa.ge['rd']=119;aa.ge['mrm']=120;aa.ge['df']=122;aa.ge['bb']=124;aa.Ae=new Array();aa.Ae['rd']='images/rd/rd_splash_bg.gif';aa.Ae['mrm']='images/mrm/mrm_splash_bg.jpg';aa.Ae['df']='images/df/df_splash_bg.jpg';aa.bn='';aa.ig=window.location.pathname.substring(0,window.location.pathname.lastIndexOf('/')+1);aa.UH=null;aa.rf='http://spin3.mobi';aa.ah={};aa.az={};aa.ao={};aa.location={};aa.location.gQ=[];aa.location.tP=[];aa.location.ew={};aa.afl=0;aa.ahr=0;var m=navigator.userAgent.match(/Android\s([^;]*)/);if(m&&m[1]){aa.afl=parseFloat(m[1]);}var m=navigator.userAgent.match(/(iphone|ipod).+safari\/([^;]*)/i);if(m&&m[2]){aa.ahr=parseFloat(m[2]);}aa.location.ew.oS='state';aa.pn='webAppbTag';aa.nr={};aa.ab.layout={};aa.ab.layout.aL=0;aa.ab.layout.eS=1;aa.ab.layout.fI=0;aa.ab.layout.fV=1;aa.ab.layout.as=[[320,417],[480,269]];aa.ab.layout.ag=aa.ab.layout.aL;}aa.ah.KF='An error has occurred.';aa.ah.np='Connection Failure. An error has occurred.';aa.ah.MA='Please fill in all marked fields.';aa.ah.Lm='Password not match.';aa.ah.iU='Password was not changed. Please check your entries and try again.';aa.ah.Mr='To play at our Casino, you must be of legal age.';aa.ah.Ln='To play at our Casino, you must agree to the Terms & Conditions.';aa.ah.xn='Country code not valid.';aa.ah.xG='Phone number not valid.';aa.ah.Bg='Email not valid.';aa.ah.Bs='Invalid password.';aa.ah.oP='Invalid name. Please use letters only.';aa.ah.Lt='Invalid security code.';aa.ah.lp='Invalid amount.';aa.ah.Lx='The amount entered is lower than the minimum withdrawal amount. Re-enter the amount you want to withdraw';aa.ah.Ly='Invalid withdrawal amount. The amount entered is greater than your availible credits. Re-enter the amount you want to withdraw.';aa.ah.Bd='Invalid CVC. Please use digits only.';aa.ah.Bf='Invalid Issue Number. Please use digits only.';aa.ah.Bt='Invalid PAN. Please use digits only.';aa.ah.Bv='Invalid Secure ID. Please use digits only.';aa.ah.Bu='Invalid Voucher Value.';aa.ah.lM='Invalid Card Number.';aa.ah.Lu='Invalid Voucher Number. Please use digits only.';aa.ah.MB='Invalid Account ID.';aa.ah.qI='Invalid Month.';aa.ah.Ml='Invalid Date. Starting date cannot be grater than expiration date';aa.ah.Mk='Invalid Date. Starting date cannot be grater or equal to expiration date.';aa.ah.qH='Invalid Year.';aa.ah.Be='Invalid Brand.';aa.ah.ale='Please fill in your login details';aa.ah.ajG='<br />Error Code:';aa.ah.ali='CHANGE PASSWORD';aa.ah.ajB='SPECIAL MESSAGE';aa.ah.akT='Thank you. Your password has been changed.<br />Please use it to login.';aa.ah.ako='Spin3 Mobile Casino';aa.ah.acy='Banking';aa.ah.de='Credit Card';aa.ah.ed='Debit Card';aa.ah.eO='Wallet';aa.ah.dm='Card Verification Code (CVC)';aa.ah.cb='Issue No. (if applicable)';aa.ah.dB='Add Card';aa.ah.bw='Card Failed';aa.ah.ba='Card Updated';aa.ah.bJ='Account Updated';aa.ah.bF='Add Credit Card';aa.ah.dF='Add Debit Card';aa.ah.bO='Add Wallet';aa.ah.dF='Add Debit Card';aa.ah.cW='NETELLER';aa.ah.fa='NETELLER Deposit - New Account';aa.ah.eV='Account ID';aa.ah.aY='(Example: 450000000001)<br/>';aa.ah.eJ='Secure ID';aa.ah.eK='If you still dont have a valid NETELLER account please visit <a href="http://www.neteller.com" >www.neteller.com</a> to register a new account.';aa.ah.eh='Click2Pay';aa.ah.bv='Click 2 Pay';aa.ah.cn='Click2Pay Deposit - New Account';aa.ah.cy='User Name';aa.ah.ey='PAN';aa.ah.cl='If you still dont have a valid Click2Pay account please visit <a href="http://www.Click2Pay.com" >www.Click2Pay.com</a> to register a new account.';aa.ah.bc='(Example: name@domain.com)<br/>';aa.ah.eG='UKash';aa.ah.aP='UKash Deposit';aa.ah.aW='Voucher number';aa.ah.aO='Voucher Value';aa.ah.aT='You can split, join or get a new voucher at the UKash website <a href="http://www.ukash.com" >www.ukash.com</a>';aa.ah.ei='EntroPay VISA';aa.ah.cg='Add EntroPay VISA';aa.ah.k='Deposit';aa.ah.cs='Deposit Failed';aa.ah.v='Withdraw';aa.ah.bR=' full voucher value';aa.ah.cA='<span class="disable_color">Deposit/</span>Add Card';aa.ah.aZ='Cheque';aa.ah.bL='Call Me';aa.ah.ai='Withdraw Error';aa.ah.ce='Input Error';aa.ah.ca='Error';aa.ah.iX='To enable all payment methods please make your first deposit using one of the avaliable methods below:';aa.ah.iD='Please select one of the available methods below:';aa.aE.ah.sx='Balance&nbsp;';aa.aE.ah.cI='Demo Credits&nbsp;';aa.aE.ah.qu='Credits&nbsp;';aa.aE.ah.l='CREDITS EXCEEDED';aa.aE.ah.dc='You do not have enough credits to place the minimum bet.<br />Press OK to make a deposit.';aa.aE.ah.ib='You do not have enough credits to place the minimum bet. We hope you enjoyed our demo!<br />Press OK to start playing for real.';aa.aE.ah.mV='You do not have enough credits to place the minimum bet.<br />Press OK to start again.';aa.aE.ah.cH='BET EXCEEDED';aa.aE.ah.FT='Your bet exceeds your balance.<br />Press OK to make a deposit.';aa.aE.ah.UJ='Your bet exceeds your balance.<br />Press Back to place the minimum bet.';aa.aE.ah.UT='Your bet exceeds your balance.';aa.aE.ah.ar='Your bet exceeds your balance.';aa.aE.ah.qV='Your bet exceeds your balance.<br />Press Back to place the minimum bet.';aa.aE.ah.qC='Your bet exceeds your balance.';aa.aE.ah.hM='Your session has timed out. Please Login again.';aa.aE.ah.lY='Your session has timed out.';aa.aE.ah.hL='TIMEOUT';aa.aE.ah.Ir='<img src="images/lobby/star_SL.gif" border="0" hspace="5" /><span>More Games!</span><img src="images/lobby/star_SL.gif" border="0" hspace="5" />';aa.aE.ah.pW='<span>More Games</span>';aa.aE.ah.acn='Press OK to log out';aa.aE.ah.aaW='Win ';aa.aE.ah.acl='Tap on table<br />to place your bets';aa.aE.ah.yd='Demo';aa.aE.ah.UK='Choose ';aa.aE.ah.UW=' symbol';aa.aE.ah.UP=' symbols';aa.aE.ah.UV='Bonus Total Win ';aa.aE.ah.UM='Loading...';aa.aE.ah.Vh='Last Win: ';aa.aE.ah.Vd='Today\'s Race Conditions...Weather: ';aa.aE.ah.Vg='Going: ';aa.aE.ah.UZ='You reached the maximum stake allowed (';aa.aE.ah.Va='). Reduce your stake and try again.';aa.aE.ah.ye='To win';aa.aE.ah.UL='Each Way';aa.aE.ah.UX='Sunny';aa.aE.ah.adC='Soft';aa.aE.ah.afc='Firm';aa.aE.ah.Vb='Congratulations! Your return is&nbsp;';aa.aE.ah.Ve='Unlucky this time...';aa.aE.ah.afe='Unrated';aa.aE.ah.afd='Poor';aa.aE.ah.agg='Average';aa.aE.ah.aff='Good';aa.aE.ah.Vf='Very good';aa.aE.ah.agw='Excellent';aa.aE.ah.Qq='OK';aa.aE.ah.QL='Cancel';aa.aE.ah.FW='Back';aa.aE.ah.AO='Spin';aa.aE.ah.UY=' Free Spins';aa.aE.ah.xz='Rebet';aa.aE.ah.abz='Clear All';aa.aE.ah.FQ='Undo';aa.aE.ah.Uf='Start';aa.aE.ah.RU='Race';aa.aE.ah.GG='Race again';aa.aE.ah.adI='Clear Bets';aa.ah.Oz=['iphone','android',''];aa.ah.yL=['Designed especially for your iPhone','Designed especially for your Android phone','Total Mobile Gaming Solutions'];aa.az.xg=/^(?:\+)?(1|7|20|27|30|31|32|33|34|36|39|40|41|43|44|45|46|47|48|49|51|52|53|54|55|56|57|58|60|61|62|63|64|65|66|81|82|84|86|90|91|92|93|94|95|98|212|213|216|218|220|221|222|223|224|225|226|227|228|229|230|231|232|233|234|235|236|237|238|239|240|241|242|243|244|245|246|247|248|249|250|251|252|253|254|255|256|257|258|260|261|262|263|264|265|266|267|268|269|290|291|297|298|299|350|351|352|353|354|355|356|357|358|359|370|371|372|373|374|375|376|377|378|379|380|381|382|385|386|387|389|420|421|423|500|501|502|503|504|505|506|507|508|509|590|591|592|593|594|595|596|597|598|599|618|670|672|673|674|675|676|677|678|679|680|681|682|683|685|686|687|688|689|690|691|692|800|808|850|852|853|855|856|870|871|872|873|874|878|880|881|886|960|961|962|963|964|965|966|967|968|970|971|972|973|974|975|976|977|992|993|994|995|996|998|5399|8810|8811|8812|8813|8816|8817|8818|8819|88213|88216)$/;aa.az.xl=/^\b(\d{5,11})$/;aa.az.fB=/^(\d*)$/;aa.az.CU=/^\b(1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20)$/;aa.az.qv=/^[a-zA-Z.]+$/;aa.az.tS=/^\b[a-zA-Z.\s]+\b$/;aa.az.yc=/^[.,?!1@'-_\(\):;&\/%*#+<=>\"$£§¥¤¡¿ABC2ÄÆÅÀÁÂÃÇDEF3ÈÉÊËÐGHI4ÌÍÎÏJKL5MNO6ÖØÒÓÔÕÑPQRS7ßTUV8ÙÚÛÜWXYZ9Ý\s0]{4,8}$/i;aa.az.Bi=/^[a-z0-9!#$%*\/?|^{}`~&'+=-_]+(\.[a-z0-9!#$%*\/?|^{}`~&'+=-_]+)*@([a-z]([a-z0-9-]*[a-z0-9])*\.)+[a-z]([a-z0-9-]*[a-z0-9])*$/i;aa.az.Mb=/\w{4}/i;aa.az.sj=/^\b(01|02|03|04|05|06|07|08|09|10|11|12)$/;aa.az.sk=/^\b(2005|2006|2007|2008|2009|2010|2011|2012|2013|2014|2015|2016|2017|2018|2019|2020)$/;aa.az.pi=/^((\d*)|(\d*\.\d{1,2}))$/;aa.ac.Xe=function(an,Mi){an.ajY=Mi;an.ajY();delete an.ajY;};aa.ac.indexOf=function(bP,an){if(!Array.indexOf){for(var i=0;i<bP.length;i++){if(bP[i]==an){return i;}}return-1;}else{return bP.indexOf(an);}};aa.ac.il=function(bP,an){if(!Array.indexOf){for(var i=0;i<bP.length;i++){if(bP[i]===an){return i;}}return-1;}else{return bP.indexOf(an);}};aa.ac.ij=function(){setInterval('aa.ac.Gf()',100000);};aa.ac.xR=function(an){if(an!=undefined&&an!=null){try{if(parseInt(an)!=0){aa.ac.al("aj",aa.ac.am("aj"),0,aa.aE.aS)}}catch(e){}}};aa.ac.Lw={success:aa.ac.xR,failure:aa.ac.xR,argument:{}};aa.ac.Gf=function(){aa.bD.bb(aa.bn+'ping.spin3','',aa.ac.Lw);};aa.Image.aN=function(tV){var image=new Image();image.src=tV;aa.ab.ae(image,false);image.style.position='absolute';image.style.left='0px';image.style.top='0px';image.style.borderWidth='0px';return image;};aa.ac.jB=function(HG){var gJ=HG.split('~');while(gJ.length>0&&gJ[0].length==0){gJ.shift();}while(gJ.length>0&&gJ[gJ.length-1].length==0){gJ.pop();}for(var i=0;i<gJ.length;i++){gJ[i]=aa.ac.ak(gJ[i]);}return gJ;};aa.ac.sB=function(hU){for(var i=0;i<hU.length;i++){var result=false;if(hU[i]instanceof Array){result=aa.ac.sB(hU[i]);}else{result=hU[i].complete;}if(!result){return false;}}return true;};aa.ac.ak=function(ax){var result;if(ax instanceof Number){result=ax;}else{result=ax;if(typeof(ax)=='string'){while(result.length>1&&result.charAt(0)=='0'){result=result.substring(1);}}result=parseInt(result);if(isNaN(result)){result=0;}}return Math.floor(result);};aa.ac.mi=function(n,xZ,JU){n=n.toString();var xV='';if(xZ>n.length){for(var i=0;i<(xZ-n.length);i++){xV+=JU;}}return xV+n.toString();};aa.ac.cz=function(ax){ax=parseFloat(ax);if(ax==0){ax='0';}else{ax=(ax/100).toFixed(2);}return ax;};aa.ac.kT=function(ax){ax=parseFloat(ax);if(ax==0){ax='';}else{ax=(ax/100).toFixed(2);}return ax;};aa.ac.Iv=function(ax){ax=parseFloat(ax);ax=(ax/100).toFixed(2);return ax;};aa.ac.am=function(si){if(document.cookie.length>0){var lA=document.cookie.split(';');for(var i=0;i<lA.length;i++){lA[i]=YAHOO.lang.trim(lA[i]);}for(var i=0;i<lA.length;i++){var xA=lA[i].indexOf(si+'=');if(xA==0){xA+=si.length+1;return unescape(lA[i].substring(xA));}}}return "";};aa.ac.al=function(si,value,Bo,tU){if(tU==undefined){tU=0;}var tZ=new Date();tZ.setTime(tZ.getTime()+Bo*86400000+tU*60000);var text=si+"="+escape(value)+((Bo==null)?"":";expires="+tZ.toGMTString())+'; path=/';document.cookie=text;};aa.ac.fy=function(src,aid,alk){for(var abC in src){if(alk&&typeof(src[abC])==='object'){aid[abC]={};aa.ac.fy(src[abC],aid[abC]);}else{aid[abC]=src[abC];}}};aa.ac.Wz=function(){try{if(document.execCommand){document.execCommand("Stop");}else{if(window.stop){window.stop();}}}catch(e){}};aa.ac.Wa=function(){throw '';};aa.ab.ve=1;aa.ab.vh=2;aa.ab.eC=4;aa.ab.eF=8;aa.ab.oT=16;aa.ab.oZ=32;Object.prototype.spin3anchor;aa.ab.ap=function(an,x,y){var X=aa.ab.FL(x,an.offsetWidth,an.spin3anchor);var Y=aa.ab.FG(y,an.offsetHeight,an.spin3anchor);an.style.left=X+'px';an.style.top=Y+'px';};aa.ab.alm=function(JX){JX=aa.ab.jY(JX);var pos={x:0,y:0};for(;JX.offsetParent;JX=JX.offsetParent){pos.x+=JX.offsetLeft;pos.y+=JX.offsetTop;}return pos;};aa.ab.addElement=function(parent,object){var pR=aa.ab.jY(parent);var pE=aa.ab.jY(object);pR.appendChild(pE);};aa.ab.dY=function(parent,object,JX){var pR=aa.ab.jY(parent);var pE=aa.ab.jY(object);var JR=aa.ab.jY(JX);pR.insertBefore(pE,JR);};aa.ab.fO=function(parent,object){var pR=aa.ab.jY(parent);var pE=aa.ab.jY(object);pR.removeChild(pE);};aa.ab.jY=function(an){if(typeof(an)=='string'){return document.getElementById(an);}return an;};aa.ab.aD=function(an,mf,eQ){an=aa.ab.jY(an);if(eQ==undefined){var eQ=mf;}if(an.style){var visible=(eQ)?'':'hidden';var display=(mf)?'':'none';an.style.visibility=visible;an.style.display=display;}};aa.ab.ae=function(Sr,mf,eQ,jG,qt){var an=aa.ab.jY(Sr);if(eQ==undefined){var eQ=mf;}if(qt==undefined){qt=false;}var pq=false;if(jG instanceof Array){if(aa.ac.indexOf(jG,an)> -1){pq=true;}}if(!pq){if(an.style){var visible=(eQ)?'':'hidden';var display=(mf)?'':'none';an.style.visibility=visible;an.style.display=display;}}else{if(qt){return;}}if(an.hasChildNodes&&an.hasChildNodes()){var children=an.childNodes;for(var c=0;c<children.length;c++){if(children[c].style){aa.ab.ae(children[c],mf,eQ,jG,qt);}}}};aa.ab.OE=function(JX){var DT=[];var childNodes=JX.childNodes;for(var i=0;i<childNodes.length;i++){if(childNodes[i].id){DT.push(childNodes[i]);}var wB=childNodes[i];if(wB.hasChildNodes){var Jk=aa.ab.OE(wB);if(Jk.length>0){DT=DT.concat(Jk);}}}return DT;};aa.ab.uw=function(BS){var FM=new Array(BS.length);for(var i=0;i<FM.length;i++){FM[i]=aa.Image.aN(BS[i]);}return FM;};aa.Image.bI=function(image){var fy=image.cloneNode(true);fy.style.position='absolute';fy.style.display='none';fy.style.visible='hidden';fy.width=image.width;fy.height=image.height;return fy;};aa.ab.fF=function(IMAGE,kI,Jf){this.image=aa.Image.bI(IMAGE);this.bf=kI;this.us=Jf;this.length=kI*Jf;this.bd=0;this.cK=this.image.width/this.bf;this.bZ=this.image.height/this.us;this.x=0;this.y=0;};aa.ab.fF.prototype.OF=function(step){return(this.bd+step+this.length)%this.length;};aa.ab.fF.prototype.fT=function(ck){if(ck<0||ck>=this.length){return;}var eE=ck%this.bf;var eT=aa.ac.ak(ck/this.bf);var dn=eE*this.cK;var dh=eT*this.bZ;var ks=dn+this.cK;var kl=dh+this.bZ;this.bd=ck;this.image.style.clip="rect("+dh+"px,"+ks+"px,"+kl+"px,"+dn+"px)";this.drawImage(this.x,this.y);};aa.ab.fF.prototype.drawImage=function(X,Y){this.x=X;this.y=Y;var eE=this.bd%this.bf;var eT=aa.ac.ak(this.bd/this.bf);var dn=eE*this.cK;var dh=eT*this.bZ;aa.ab.ap(this.image,X-dn,Y-dh);};aa.ab.fF.prototype.image;aa.ab.fF.prototype.bf;aa.ab.fF.prototype.us;aa.ab.fF.prototype.bd;aa.ab.fF.prototype.cK;aa.ab.fF.prototype.bZ;aa.ab.fF.prototype.x;aa.ab.fF.prototype.y;aa.ab.vq=function(tz){this.image=aa.Image.bI(tz.image);this.bf=tz.bf;this.us=tz.us;this.length=this.bf*this.us;this.bd=0;this.cK=this.image.width/this.bf;this.bZ=this.image.height/this.us;this.x=0;this.y=0;this.te=document.createElement('div');this.te.style.position='absolute';this.te.style.width=this.cK+'px';this.te.style.height=this.bZ+'px';this.te.style.backgroundImage='url('+this.image.src+')';aa.ab.addElement(tz.parent,this.te);};aa.ab.vq.prototype.te;aa.ab.vq.prototype.image;aa.ab.vq.prototype.bf;aa.ab.vq.prototype.us;aa.ab.vq.prototype.bd;aa.ab.vq.prototype.cK;aa.ab.vq.prototype.bZ;aa.ab.vq.prototype.x;aa.ab.vq.prototype.y;aa.ab.vq.prototype.OF=function(step){return(this.bd+step+this.length)%this.length;};aa.ab.vq.prototype.fT=function(ck){if(ck<0||ck>=this.length){return;}var eE=ck%this.bf;var eT=aa.ac.ak(ck/this.bf);this.bd=ck;this.te.style.backgroundPosition=(-eE*this.cK)+'px '+(-eT*this.bZ)+'px';};aa.ab.vq.prototype.drawImage=function(X,Y){this.x=X;this.y=Y;aa.ab.ap(this.te,this.x,this.y);};aa.ab.uL=function(tz){this.image=tz.image;this.bf=tz.bf;this.us=tz.us;this.length=this.bf*this.us;this.bd=0;this.cK=this.image.width/this.bf;this.bZ=this.image.height/this.us;this.x=0;this.y=0;this.te=document.createElement('canvas');this.te.style.position='absolute';this.te.width=this.cK;this.te.height=this.bZ;aa.ab.addElement(tz.parent,this.te);this.context2d=this.te.getContext('2d');};aa.ab.uL.prototype.te;aa.ab.uL.prototype.image;aa.ab.uL.prototype.bf;aa.ab.uL.prototype.us;aa.ab.uL.prototype.bd;aa.ab.uL.prototype.cK;aa.ab.uL.prototype.bZ;aa.ab.uL.prototype.context2d;aa.ab.uL.prototype.x;aa.ab.uL.prototype.y;aa.ab.uL.prototype.OF=function(step){return(this.bd+step+this.length)%this.length;};aa.ab.uL.prototype.fT=function(ck){if(ck<0||ck>=this.length){return;}var eE=ck%this.bf;var eT=aa.ac.ak(ck/this.bf);this.bd=ck;this.context2d.clearRect(0,0,this.cK,this.bZ);this.context2d.drawImage(this.image,-eE*this.cK,-eT*this.bZ);};aa.ab.uL.prototype.drawImage=function(X,Y){this.x=X;this.y=Y;aa.ab.ap(this.te,this.x,this.y);};aa.ab.Font=function(IMAGE,IH,Hl){this.image=IMAGE;this.sQ=IH;this.lD=Hl;this.rb=new Array();this.hj=new Array();};aa.ab.Font.prototype.clear=function(){if(this.hj!=null){while(this.hj.length>0){var an=this.hj.shift();if(an!=undefined){aa.ab.fO(an.image.parentNode,an.image);delete an;}}}delete this.hj;this.hj=this.rb;this.rb=new Array();};aa.ab.Font.prototype.jl=function(text,x,y){if(text.length==0){return;}var Ip=this.rb;for(var i=0;i<text.length;i++){var letter=text.charAt(i);var kP=this.sQ.indexOf(letter);if(kP> -1){var bd=this.LC(kP);if(bd==null){bd=this.Po(kP);aa.ab.addElement(this.lD,bd.image);var tu=i*bd.cK;bd.drawImage(x+tu,y);aa.ab.ae(bd.image,true);}else{var tu=i*bd.cK;bd.drawImage(x+tu,y);}Ip.push(bd);}}};aa.ab.Font.prototype.LC=function(kP){for(var i=0;i<this.hj.length;i++){if(this.hj[i].bd==kP){var splice=this.hj[i];this.hj.splice(i,1);return splice;}}return null;};aa.ab.Font.prototype.Po=function(kP){var bd=new aa.ab.fF(this.image,this.sQ.length,1);bd.fT(kP);return bd;};aa.ab.Font.prototype.Ek=function(text){return text.length*(this.image.width/this.sQ.length);};aa.ab.eY=function(){return(window.innerHeight==undefined)?document.documentElement.clientHeight:window.innerHeight;};aa.ab.je=function(){return(window.innerWidth==undefined)?document.documentElement.clientWidth:window.innerWidth;};aa.ab.Os=function(text){var div=document.createElement('div');div.style.position='absolute';div.innerHTML=text;return div;};aa.ab.Cd=function(parent,text){var mE=aa.ab.Os(text);aa.ab.addElement(parent,mE);return mE;};aa.ab.yP=function(mE,X,Y,anchor){aa.ab.ae(mE,true,false);mE.spin3anchor=anchor;aa.ab.ap(mE,X,Y);};aa.ab.Font.prototype.image;aa.ab.Font.prototype.sQ;aa.ab.Font.prototype.lD;aa.ab.Font.prototype.rb;aa.ab.Font.prototype.hj;aa.bD.bb=function(url,ti,aH){if(!aa.aE.hv){if(aH==undefined){YAHOO.util.Connect.asyncRequest('GET',url,ti);}else{YAHOO.util.Connect.asyncRequest('POST',url,aH,YAHOO.lang.JSON.stringify(ti));}}else{var rs=aa.aE.nv(ti);var rx=YAHOO.lang.JSON.stringify(rs);var rF=function(){var nK=new Object();nK.responseText=rx;aH.success(nK);};setTimeout(rF,500);}return;};aa.Nj=function(){var bq=window.location.href;if(bq.indexOf('?')> -1){bq=bq.substr(0,bq.indexOf('?'));}if(bq.charAt(bq.length-1)=='/'){bq=bq.substr(0,bq.length-1);}if(bq.lastIndexOf('/')> -1){bq=bq.substr(bq.lastIndexOf('/')+1);}if(bq.lastIndexOf('.')> -1){bq=bq.substr(0,bq.lastIndexOf('.'));}return bq;};var Lv=/[^0-9]/;var qv=/[^a-zA-Z\.]/;aa.ac.PF=function(bE){if(typeof(bE)=='string'){bE=document.getElementById(bE);}var qa=bE.value.length;var gr=aa.ac.BL(bE);bE.value=bE.value.replace(Lv,"");if(bE.value.length<qa){gr-=qa-bE.value.length;gr=Math.max(0,gr);if(gr<bE.value.length){aa.ac.BK(bE,gr);}}};aa.ac.PO=function(bE){if(typeof(bE)=='string'){bE=document.getElementById(bE);}var qa=bE.value.length;var gr=aa.ac.BL(bE);bE.value=bE.value.replace(qv,"");if(bE.value.length<qa){gr-=qa-bE.value.length;gr=Math.max(0,gr);if(gr<bE.value.length){aa.ac.BK(bE,gr);}}};aa.ac.Fs=function(value){return(YAHOO.lang.trim(value).length==0)?true:false;};aa.ac.BL=function(fA){lg=0;if(document.selection){fA.focus();var ll=document.selection.createRange();ll.moveStart('character',-fA.value.length);lg=ll.text.length;}else if(fA.selectionStart||fA.selectionStart=='0')lg=fA.selectionStart;return(lg);};aa.ac.BK=function(fA,lg){if(document.selection){fA.focus();var ll=document.selection.createRange();ll.moveStart('character',-fA.value.length);ll.moveStart('character',lg);ll.moveEnd('character',0);ll.select();}else if(fA.selectionStart||fA.selectionStart=='0'){fA.selectionStart=lg;fA.selectionEnd=lg;fA.focus();}};aa.ac.sI=function(){var tF=window.location.search;if(tF.indexOf('?')> -1){var NQ=tF.substr(tF.indexOf('?')+1);return NQ;}return '';};aa.ao.hy=function(message){var error=document.getElementById('gh');var lu=document.getElementById('lu');if(!lu){lu=error;}error.innerHTML=message;lu.style.display='';lu.style.visibility='';};aa.ao.kk=function(){var error=document.getElementById('gh');var lu=document.getElementById('lu');if(!lu){lu=error;}lu.style.display='none';error.innerHTML='';};aa.ao.aK=function(qr,NN,Ll,ah){var Bq= !aa.ac.Fs(document.getElementById(qr).value);aa.ao.bH(document.getElementById(qr),!Bq);if(!Bq){aa.ao.dK(ah,aa.ah.MA);return false;}else{var HE=YAHOO.lang.trim(document.getElementById(qr).value);var yi=NN.test(HE);aa.ao.bH(document.getElementById(qr),!yi);if(!yi){aa.ao.dK(ah,Ll);return false;}}return true;};aa.ao.bH=function(an,It){an=aa.ab.jY(an);if(It){an.style.borderColor='red';an.style.borderStyle='solid';an.style.borderWidth='2px';}else{an.removeAttribute('style');an.className=an.className;}};aa.ao.dK=function(bP,an){if(aa.ac.indexOf(bP,an)== -1){bP.push(an);}};aa.ao.iZ=function(zm,zF){for(var i=0;i<zF.length;i++){aa.ao.dK(zm,zF[i]);}return zm;};aa.location.ew.rv=function(ma){
	if(YAHOO.env.ua.ie){
var hn=document.createElement('iframe');hn.id='yui-history-iframe';hn.style.position='absolute';hn.style.display='none';hn.style.visibility='hidden';hn.style.top='0px';hn.style.left='0px';hn.style.width='1px';hn.style.height='1px';hn.src='images/rl/chip2ss.gif';aa.ab.addElement(document.body,hn);}var mx=document.createElement('input');mx.id='yui-history-bE';mx.setAttribute('type','hidden');mx.style.position='absolute';mx.style.display='none';mx.style.visibility='hidden';aa.ab.addElement(document.body,mx);var kD=YAHOO.util.History.getBookmarkedState(aa.location.ew.oS)||'main';YAHOO.util.History.register(aa.location.ew.oS,kD,ma);YAHOO.util.History.onReady(function(){var kD=YAHOO.util.History.getCurrentState(aa.location.ew.oS);ma(kD);});YAHOO.util.History.initialize("yui-history-bE","yui-history-iframe");};aa.location.ew.Eu=function(Qo){var index=aa.ac.indexOf(aa.location.gQ,this.className);var Mt=aa.location.tP[index];aa.location.ew.moveTo(Mt);};aa.location.ew.moveTo=function(iJ){var ry=YAHOO.util.History.getCurrentState(aa.location.ew.oS);if(ry!==iJ){YAHOO.util.History.navigate(aa.location.ew.oS,iJ);}};aa.location.ew.Gq=function(gQ){aa.location.gQ=new Array(gQ.length);aa.location.tP=new Array(gQ.length);for(var i=0;i<gQ.length;i++){aa.location.gQ[i]=gQ[i][0];aa.location.tP[i]=gQ[i][1];}for(var i=0;i<gQ.length;i++){var Di=aa.ac.On(aa.location.gQ[i]);for(var j=0;j<Di.length;j++){var item=Di[j];YAHOO.util.Event.addListener(item,'click',aa.location.ew.Eu);}}};aa.ac.On=function(AV,xE){if(document.Nb){return document.Nb('.'+AV);}if(!xE)xE=document.getElementsByTagName("body")[0];var a=[];var Nn=new RegExp('\\b'+AV+'\\b');var xo=xE.getElementsByTagName("*");for(var i=0,j=xo.length;i<j;i++)if(Nn.test(xo[i].className))a.push(xo[i]);return a;};aa.ab.Op=function(iF){var result=[0,0];var hk=false;if(iF==undefined){hk=true;}iF=aa.ab.ajm(iF);if(hk){if(document.documentElement&&document.documentElement.scrollTop){result[0]=iF.clientX+document.documentElement.scrollLeft;result[1]=iF.clientY+document.documentElement.scrollTop;}else{result[0]=iF.clientX+document.body.scrollLeft;result[1]=iF.clientY+document.body.scrollTop;}}else{result[0]=iF.pageX;result[1]=iF.pageY;}return result;};aa.ab.ajm=function(e){return e||window.event;};aa.ab.ajN=function(e){if(e.stopPropagation){e.stopPropagation();}else{e.cancelBubble=true;}};aa.ab.IY=function(an,gw){
	if(YAHOO.env.ua.ie){
an.style.filter='alpha(opacity='+gw+')';}else{an.style.opacity=gw/100;}};aa.aE.pm=function(){if(aa.aE.hv){aa.ac.WA(aa.rf,false,true);}else{aa.ac.WA(aa.ig+'#game='+aa.Nj(),false,false);}};aa.ac.tJ=function(name){name=name.replace(/[\[]/,'\\\[').replace(/[\]]/,'\\\]');var NM='[\\?&]'+name+'=([^&#]*)';var Nv=new RegExp(NM,'i');var zi=Nv.exec(window.location.href);if(zi==null)return "";else return zi[1];};aa.ac.Dc=function(name){name=name.replace(/[\[]/,'\\\[').replace(/[\]]/,'\\\]');var NM='[\\?&]('+name+')=[^&#]*';var Nv=new RegExp(NM,'i');var zi=Nv.exec(window.location.href);if(zi==null)return name;else return zi[1];};aa.aE.fi=function(){var hZ=aa.ac.am('fi');if(hZ.length>0){aa.ac.al('fi','',-1);aa.ac.al('aj','',-1);}};aa.ac.yq=function(){var pn=aa.ac.tJ('btag');if(pn.length==0){pn=aa.ac.am('btag');}else{aa.ac.al('btag',pn,255);}if(pn.length==0){pn=aa.pn;}return pn;};aa.ac.R=function(){if(aa.UH){if(aa.aE.hv||aa.ac.jC()){aa.ac.WA(aa.UH,false,false);}else{aa.ac.WA(aa.ig,false,true);}}else{if(!aa.ac.VL()){aa.ac.WA(aa.ig,false,true);}else{if(aa.ac.am('aj').length>0){window.location.reload();}else{aa.ac.WA('http://i.allslotscasino.com/offers.html',false,true);}}}};aa.ac.WA=function(url,aan,aai){if(aan){window.open(url,'_blank');}else{setTimeout("window.open( \'"+url+"\', \'_self\', '', "+ !aai+")",10);}};aa.ac.VL=function(){return window.parent.frames.length>0;};aa.ac.jC=function(){if(aa.ac.am('aj').length==0){return true;}if(typeof dN!='undefined'){return dN;}return false;};aa.ac.qP=function(mC,mb,count){var rN=aa.ac.mR(count+1)+count;for(var i=0;i<rN;i++){var mO=aa.ac.mR(count);var pD=(mO+1)%count;var a=mC[mb+mO];mC[mb+mO]=mC[mb+pD];mC[mb+pD]=a;}};aa.ac.mR=function(ro){return parseInt(Math.random()*ro);};aa.nr.ns=function(cr){if(typeof(_ucmd)=='undefined'){window.setTimeout(function(){aa.nr.ns(cr)},1000)}_ucmd=cr.sg;_ugifpath="http://urchin.i.spin3.com/__utm.gif";_ucsr="spin3_en";};aa.ab.uy=function(tz){this.Eh=aa.ab.jY(tz.Qn);this.yo=aa.ab.jY(tz.Rs);this.text=tz.text;this.xU=0;this.step=(tz.step)?tz.step:2;this.separator=' ***&nbsp;';this.EK=1;this.refresh=tz.refresh;this.hS=100;aa.ab.ap(this.Eh,this.hS,aa.ac.ak(this.Eh.style.top));aa.ab.ae(this.yo,true);this.fj=setTimeout(aa.ac.Ch(this,'zA'),this.refresh);};aa.ab.uy.prototype.Eh;aa.ab.uy.prototype.yo;aa.ab.uy.prototype.text;aa.ab.uy.prototype.xU;aa.ab.uy.prototype.fj;aa.ab.uy.prototype.refresh;aa.ab.uy.prototype.step;aa.ab.uy.prototype.EK;aa.ab.uy.prototype.hS;aa.ab.uy.prototype.Tg=function(tz){this.KB();this.xU=0;aa.ab.ap(this.Eh,this.hS,aa.ac.ak(this.Eh.style.top));aa.ab.ae(this.yo,true);this.fj=setTimeout(aa.ac.Ch(this,'zA'),this.refresh);};aa.ab.uy.prototype.EJ=function(tz){this.text=tz.text;aa.ab.ap(this.Eh,this.hS,aa.ac.ak(this.Eh.style.top));this.xU=0;};aa.ab.uy.prototype.zA=function(){var zA=true;if(this.xU==0){if(this.Eh.offsetWidth>0&&this.yo.offsetWidth>0){this.Eh.innerHTML=this.text;this.xU=this.Eh.offsetWidth;this.EK=Math.max(2,Math.floor((this.yo.offsetWidth/this.Eh.offsetWidth)+1)+1);var i=this.EK-1;do{this.Eh.innerHTML+=this.text;}while(--i);}else{zA=false;}}if(zA){var Hk=aa.ac.ak(this.Eh.style.left)-this.step;if(-Hk>this.xU){Hk=0;}aa.ab.ap(this.Eh,Hk,aa.ac.ak(this.Eh.style.top));}if(this.fj!=null){this.fj=setTimeout(aa.ac.Ch(this,'zA'),this.refresh);}};aa.ab.uy.prototype.KB=function(){if(this.fj!=null){clearTimeout(this.fj);}};aa.ab.uy.prototype.TD=function(){this.KB();aa.ab.ae(this.yo,false);};aa.ab.uX=function(ut){this.ut=ut;this.te=document.createElement('div');this.te.style.position='absolute';this.te.style.zIndex=this.ut.zIndex;aa.ab.ap(this.te,this.ut.X,this.ut.Y);this.nF=aa.Image.bI(this.ut.nF);this.nF.style.position='';aa.ab.ae(this.nF,true);aa.ab.addElement(this.te,this.nF);this.FI=aa.Image.bI(this.ut.FI);aa.ab.ap(this.FI,0,0);aa.ab.addElement(this.te,this.FI);var Eh=document.createElement('div');Eh.style.position='absolute';aa.ab.ap(Eh,0,0);Eh.style.width='100%';Eh.style.height='100%';aa.ab.addElement(this.te,Eh);var wT=document.createElement('table');wT.setAttribute('border','0');wT.setAttribute('cellPadding','0');wT.setAttribute('cellSpacing','0');wT.style.width='100%';wT.style.height='100%';this.Fr=wT;var Md=document.createElement('tbody');aa.ab.addElement(wT,Md);var LY=document.createElement('tr');aa.ab.addElement(Md,LY);this.Ag=document.createElement('td');this.Ag.style.textAlign='center';this.Ag.style.verticalAlign='middle';this.Ag.innerHTML=this.ut.label;aa.ab.addElement(LY,this.Ag);aa.ab.addElement(Eh,wT);this.wH(false);this.show(false);aa.ab.addElement(this.ut.RJ,this.te);};aa.ab.uX.prototype.ut;aa.ab.uX.prototype.te;aa.ab.uX.prototype.Fr;aa.ab.uX.prototype.nF;aa.ab.uX.prototype.FI;aa.ab.uX.prototype.Ag;aa.ab.uX.prototype.wH=function(gU){this.Ag.className=(gU)?this.ut.Qz:this.ut.Qw;aa.ab.ae(this.FI,!gU);this.te.style.cursor=(gU)?'pointer':'';this.te.onclick=(gU)?this.ut.action:null;if(this.nF.height>0){this.Fr.style.height=this.nF.height+'px';}};aa.ab.uX.prototype.show=function(QG){if(QG){aa.ab.aD(this.te,true);}else{aa.ab.aD(this.te,false);}};aa.ab.uX.prototype.Ty=function(Aq){var zo,AJ;if(Aq.QB){zo=aa.Image.bI(Aq.QB);AJ=aa.Image.bI(Aq.Uy);}else{zo=aa.Image.bI(Aq[0]);AJ=aa.Image.bI(Aq[1]);}aa.ab.ae(zo,true);zo.style.position='';aa.ab.ae(AJ,this.FI.style.display.length==0);this.te.replaceChild(zo,this.nF);this.te.replaceChild(AJ,this.FI);this.nF=zo;this.FI=AJ;if(this.nF.height>0){this.Fr.style.height=this.nF.height+'px';}};aa.ab.uX.prototype.moveTo=function(X,Y,anchor){this.ut.X=aa.ab.FL(X,this.nF.width,anchor);this.ut.Y=aa.ab.FG(Y,this.nF.height,anchor);aa.ab.ap(this.te,this.ut.X,this.ut.Y);};aa.ab.uX.prototype.Wn=function(){return this.nF.height;};aa.ab.uX.prototype.YJ=function(){return this.nF.width;};aa.ac.Ti=function(cr){var script=document.createElement('script');script.type='text/javascript';script.id='script';script.src=cr.URL;var sS=document.getElementsByTagName("head");if(sS[0]){sS[0].appendChild(script);}};aa.ac.Ch=function(an,GK,Ii){return function(){if(an===true)an=this;var f=typeof GK==="string"?an[GK]:GK;if(YAHOO.lang.isArray(Ii)){return f.apply(an,Array.prototype.slice.call(Ii||[]).concat(Array.prototype.slice.call(arguments)));}return f.apply(an,[Ii]);};};aa.ac.Pl=function(cr){var vr=new Array(cr.count);vr[0]=cr.xE;for(var i=1;i<vr.length;i++){vr[i]=vr[0].cloneNode(true);}return vr;};aa.ac.PM=function(cr){var vr=cr.vr;var Ez=cr.Ez;for(var i=0;i<vr.length;i++){var Io=aa.ab.OE(vr[i]);Io.push(vr[i]);while(Io.length>0){var GE=Io.shift();if(GE.id){if(aa.ac.indexOf(Ez,GE.id)> -1){GE.id+=(i+1);}}}}};aa.ac.akc='|';aa.ac.Xg=function(Ef){var Xp=aa.ac.akd();aa.ac.Xt(Xp,Ef);Xp.push(Ef);while(Xp.length>5){Xp.shift();}aa.ac.al('ahW',Xp.join(aa.ac.akc),365);};aa.ac.akd=function(Ef){var ahW=aa.ac.am('ahW');if(ahW.length==0){return[];}var ajx=ahW.split(aa.ac.akc);aa.ac.Xt(ajx,Ef);return ajx;};aa.ac.Xt=function(bP,value){while(true){var index=aa.ac.indexOf(bP,value);if(index<0){break;}bP.splice(index,1);}};aa.ab.FL=function(x,width,anchor){if(anchor){if((anchor&aa.ab.eC)==aa.ab.eC){return x-(width>>1);}if((anchor&aa.ab.oT)==aa.ab.oT){return x-width;}}return x;};aa.ab.FG=function(y,height,anchor){if(anchor){if((anchor&aa.ab.eF)==aa.ab.eF){return y-(height>>1);}if((anchor&aa.ab.oZ)==aa.ab.oZ){return y-height;}}return y;};aa.ab.Hs=function(Tu){Tu=aa.ab.jY(Tu);if(Tu.style.maxWidth.length==0&&Tu.style.width.length>0){Tu.style.maxWidth=Tu.style.width;}if(Tu.style.wordWrap!=undefined){Tu.style.wordWrap='break-word';}else{if(Tu.innerHTML!=undefined){Tu.innerHTML=Tu.innerHTML.split('').join('&#8203;');}else if(Tu.value){Tu.value=Tu.value.split('').join('&#8203;');}else if(Tu.text){Tu.text=Tu.text.split('').join('&#8203;');}}};aa.ab.layout.afb=function(aH){if(aH){aa.ab.layout.aH=aH;}var eU=(document.body.offsetWidth<aa.ab.eY())?0:1;var result={};result.ajK=false;if(eU!=aa.ab.layout.ag){aa.ab.layout.ag=eU;result.ajK=true;}result.ag=aa.ab.layout.ag;return result;};aa.ab.layout.ala=function(){return{width:aa.ab.layout.as[aa.ab.layout.ag][aa.ab.layout.fI],height:aa.ab.layout.as[aa.ab.layout.ag][aa.ab.layout.fV]};};aa.ab.DN=function(){this.zC=0;this.Ui=0;this.TK=0;this.zK=0;this.Cl();};aa.ab.DN.prototype.Cl=function(){var zB=this.Kn();if(zB>0){this.zK=(this.zK+zB)/2;}return this.zK;};aa.ab.DN.prototype.Kn=function(){if(this.zC==0){this.zC=new Date().getTime();}else{var dr=new Date().getTime();var Fm=(dr-this.zC)/1000;++this.Ui;if(Fm>0){this.TK=(this.TK+(this.Ui/Fm))/2;this.Ui=0;this.zC=dr;}}return this.TK;};aa.ab.uz=function(cr){this.uJ=document.createElement('canvas');this.uJ.width=cr.width;this.uJ.height=cr.height;this.width=cr.width;this.height=cr.height;if((!this.uJ.getContext)&&(typeof G_vmlCanvasManager!="undefined")){document.body.appendChild(this.uJ);this.uJ=G_vmlCanvasManager.initElement(this.uJ);document.body.removeChild(this.uJ);}this.To=null;var MK=(cr.Kl&&window.navigator.userAgent.search(/android/i)>0);if(MK){this.To=document.createElement('canvas');this.To.width=cr.width;this.To.height=cr.height;if((!this.To.getContext)&&(typeof G_vmlCanvasManager!="undefined")){this.To=G_vmlCanvasManager.initElement(this.To);}this.context2d=this.To.getContext('2d');this.Fn=this.uJ.getContext('2d');}else{this.context2d=this.uJ.getContext('2d');}};aa.ab.uz.prototype.uJ;aa.ab.uz.prototype.context2d;aa.ab.uz.prototype.width;aa.ab.uz.prototype.height;aa.ab.uz.prototype.To;aa.ab.uz.prototype.Fn;aa.ab.uz.prototype.drawImage=function(image,x,y,anchor){var XX=aa.ab.FL(x,image.width,anchor);var dz=aa.ab.FG(y,image.height,anchor);this.context2d.drawImage(image,XX,dz);};aa.ab.uz.prototype.Un=function(x,y,w,h){this.context2d.rect(x,y,w,h);this.context2d.clip();};aa.ab.uz.prototype.jl=function(font,index,x,y,anchor){var XX=aa.ab.FL(x,font.cK,anchor);var dz=aa.ab.FG(y,font.bZ,anchor);var eE=index%font.bf;var eT=aa.ac.ak(index/font.bf);this.context2d.drawImage(font.image,eE*font.cK,eT*font.bZ,font.cK,font.bZ,XX,dz,font.cK,font.bZ);};aa.ab.uz.prototype.Uu=function(){if(this.To){
		if (YAHOO.env.ua.ie) {
this.uJ.innerHTML=this.To.innerHTML;this.context2d.clearRect();}else{this.Fn.drawImage(this.To,0,0);}}};aa.ab.uz.prototype.IE=function(cr){this.width=cr.width;this.height=cr.height;this.uJ.width=cr.width;this.uJ.height=cr.height;if(this.uJ.style){this.uJ.style.width=this.width+'px';this.uJ.style.height=this.height+'px';}if(this.To){this.To.width=cr.width;this.To.height=cr.height;if(this.To.style){this.To.style.width=this.width+'px';this.To.style.height=this.height+'px';}}};aa.ab.uz.aN=function(image){
	if (YAHOO.env.ua.ie) {
return image;}else{var canvas=new aa.ab.uz({width:image.width,height:image.height});canvas.drawImage(image,0,0,aa.ab.vh|aa.ab.ve);return canvas.uJ;}};aa.ab.vT=function(image,bf,us){this.image=image;this.bf=bf;this.us=us;this.cK=this.image.width/this.bf;this.bZ=this.image.height/this.us;};aa.ab.vT.prototype.image;aa.ab.vT.prototype.bf;aa.ab.vT.prototype.us;aa.ab.vT.prototype.cK;aa.ab.vT.prototype.bZ;aa.ab.RE=function(RC){for(var i=0;i<document.styleSheets.length;i++){var Qs=document.styleSheets[i];var rules;if(Qs.cssRules!=undefined){rules=Qs.cssRules;}else{rules=Qs.rules;}for(var j=0;j<rules.length;j++){if(rules[j].selectorText==RC){return rules[j];}}}return null;};aa.menu=new Object();aa.menu.akU=0;aa.menu.ajj=1;aa.menu.akG=2;aa.menu.akV=3;aa.menu.zIndex=1001;aa.menu.Xi=function(cr){aa.ac.fy(cr,this);var Af=document.createElement('table');Af.cellPadding=0;Af.cellSpacing=0;Af.style.position='absolute';Af.style.width='100%';Af.style.zIndex=aa.menu.zIndex;Af.insertRow(0);aa.menu.Xi.akf=this.OX;this.OX=Af.rows[0];this.OX.vAlign='top';this.agz=this;aa.ab.addElement(aa.menu.Xi.akf,Af);this.type=aa.menu.akU;this.nx=[];this.pu=document.createElement('div');this.pu.style.position='absolute';this.pu.style.left='0px';this.pu.style.top='0px';this.pu.style.right='0px';this.pu.style.bottom='0px';this.pu.style.backgroundColor='#000000';this.pu.style.zIndex=aa.menu.zIndex-1;aa.ab.IY(this.pu,50);this.pu.onclick=aa.ac.Ch(this,'Pa',[]);aa.ab.aD(this.pu,false);aa.ab.addElement('at',this.pu);this.Pa=function(){var kM=this.nx;for(var i=0;i<kM.length;i++){if(kM[i]!=this&&kM[i].status&&kM[i].status.pF){kM[i].status.pF=false;aa.ac.Xe(kM[i],aa.menu.le);}}aa.ab.aD(this.agz.pu,false);};this.add=function(item){item.parent=this;item.OX=this.OX;item.agz=this;this.nx.push(item);};this.getByName=function(name){for(var i=0;i<this.nx.length;i++){if(this.nx[i].label==name){return this.nx[i];}}return null;};this.ji=function(code){for(var i=0;i<this.nx.length;i++){this.nx[i].ji(code);}}};aa.menu.kB=function(cr){aa.ac.fy(cr,this);this.gU=true;this.type=aa.menu.akV;this.wH=function(value){this.gU=value;this.ji();}};aa.menu.ajZ=function(cr){aa.ac.fy(cr,this);this.type=aa.menu.akG;};aa.menu.Zc=function(cr){aa.ac.fy(cr,this);this.type=aa.menu.ajj;this.status={};this.status.pF=false;this.nx=[];this.kV=document.createElement('table');this.kV.cellPadding=0;this.kV.cellSpacing=0;this.kV.style.position='absolute';this.kV.style.zIndex=aa.menu.zIndex+500;aa.ab.aD(this.kV,false);this.kV.className='akq akv';this.ajy=document.createElement('tbody');aa.ab.addElement(this.kV,this.ajy);this.add=function(item){item.parent=this;item.OX=this.JX;item.agz=this.agz;this.nx.push(item);if(!this.kV.parentElement){aa.ab.addElement(aa.menu.Xi.akf,this.kV);}item.ji(this.ajy);};this.ajz=function(eQ){aa.ab.aD(this.kV,true,false);var pos=aa.ab.alm(this.JX);var alf=Math.min(document.getElementById('at').offsetWidth-(pos.x+this.kV.offsetWidth),0);aa.ab.ap(this.kV,pos.x+alf,pos.y+this.JX.offsetHeight);aa.ab.aD(this.kV,eQ);}};aa.menu.akZ=function(JX){if(JX.type==aa.menu.ajj){return JX.status.pF?' &#9650;':' &#9660;';}return '';};aa.menu.akw=function(){var table=document.createElement('table');table.cellPadding=0;table.cellSpacing=0;var tbody=document.createElement('tbody');aa.ab.addElement(table,tbody);var tr=document.createElement('tr');aa.ab.addElement(tbody,tr);var ajt=document.createElement('td');aa.ab.addElement(tr,ajt);Xu=document.createElement('img');aa.ab.addElement(ajt,Xu);var Xa=document.createElement('td');aa.ab.addElement(tr,Xa);Xa.style.width='100%';var ajH=document.createElement('td');aa.ab.addElement(tr,ajH);XC=document.createElement('img');aa.ab.addElement(ajH,XC);var td=document.createElement('td');aa.ab.addElement(td,table);this.JX=td;this.JX.className=this.style;aa.ab.addElement(this.OX,td);if(this.action){this.JX.onclick=aa.ac.Ch(this,aa.menu.YS,[]);}this.Vv={};this.Vv.Xu=Xu;this.Vv.Xa=Xa;this.Vv.XC=XC;};aa.menu.le=function(code){if(!this.JX){aa.ac.Xe(this,aa.menu.akw);if(this.type==aa.menu.ajj){this.JX.onclick=aa.ac.Ch(this,aa.menu.akS,[]);}}if(code!=100){var YH=(this.status&&this.status.pF)?'_sel':'';this.JX.className=this.style+YH;this.Vv.Xa.innerHTML=this.label+aa.menu.akZ(this);this.Vv.Xu.src=this.nz+'lb'+YH+'.png';this.Vv.Xa.style.backgroundImage='url('+this.nz+'cb'+YH+'.png)';this.Vv.XC.src=this.nz+'rb'+YH+'.png';}if(this.ajz&&this.nx.length>0){this.ajz(this.status&&this.status.pF);}};aa.menu.oG=function(Wy){var tr=document.createElement('tr');aa.ab.addElement(Wy,tr);var td=document.createElement('td');td.innerHTML=this.label;td.className=this.style;td.onclick=aa.ac.Ch(this,aa.menu.YS,[]);aa.ab.addElement(tr,td);};aa.menu.ajl=function(Wy){var tr=document.createElement('tr');aa.ab.addElement(Wy,tr);var td=document.createElement('td');aa.ab.addElement(tr,td);td.className=this.style;td.onclick=aa.ac.Ch(this,aa.menu.YS,[]);var image=document.createElement('img');image.src=this.icon;aa.ab.addElement(td,image);var span=document.createElement('span');aa.ab.addElement(td,span);span.innerHTML=this.label;};aa.menu.akn=function(Wy){if(!this.JX){var tr=document.createElement('tr');var td=document.createElement('td');var Xd=document.createElement('table');Xd.cellPadding=0;Xd.cellSpacing=0;Xd.insertRow(0);Xd.style.width='100%';var XY=Xd.rows[0];XY.insertCell(0);XY.insertCell(0);var akt=XY.cells[0];var akk=XY.cells[1];akk.align='right';akt.innerHTML=this.label;this.ajI=document.createElement('img');aa.ab.addElement(akk,this.ajI);aa.ab.addElement(td,Xd);td.onclick=aa.ac.Ch(this,aa.menu.YS,[]);aa.ab.addElement(tr,td);aa.ab.addElement(Wy,tr);this.JX=tr;}this.ajI.src='images/lobby/OnOff_'+(this.adA?'On':'Off')+'.png';var pG=this.JX.firstChild;if(this.gU){pG.className=this.style;}else{pG.className=this.TW;}};aa.menu.ajE=function(Wy){var tr=document.createElement('tr');aa.ab.addElement(Wy,tr);var td=document.createElement('td');aa.ab.addElement(tr,td);td.innerHTML=this.label;td.className=this.style;};aa.menu.Pa=function(){var kM=this.parent.nx;for(var i=0;i<kM.length;i++){if(kM[i]!=this&&kM[i].status&&kM[i].status.pF){kM[i].status.pF=false;aa.ac.Xe(kM[i],aa.menu.le);}}};aa.menu.akS=function(e){aa.ac.Xe(this,aa.menu.Pa);this.status.pF= !this.status.pF;aa.ab.aD(this.agz.pu,this.status.pF);aa.ac.Xe(this,aa.menu.le);aa.ab.ajN(aa.ab.ajm(e));};aa.menu.YS=function(e){if(!this.gU){aa.ab.ajN(aa.ab.ajm(e));return;}var Pa=true;if(this.action){Pa= !this.action();}if(Pa){this.agz.Pa();}}
