var hT=0;var Wv=9;function Gr(){hT++;if((hT%Wv)==0){og();return true;}return false;};function YL(value){hT=value;};function YU(){return hT;};function YT(){return Wv;};function YQ(value){Wv=value;};var cP=document.createElement('img');cP.src='images/bj/game_offer_fire.png';cP.style.position='absolute';cP.style.zIndex= -1;cP.style.left='0px';cP.style.top='0px';function og(){var bM=document.getElementById('hI');or();bM.style.display='';bM.style.visibility='';};function wl(){var bM=document.getElementById('hI');bM.style.display='none';bm.stop();bm.bj.image.style.display='none';hT=0;spinAction();};var bm=null;function or(){if(bm==null){var jc=new bC(cP,1,3);var bM=document.getElementById('ls');bm=new aX(jc,200,parseInt(bM.style.left),parseInt(bM.style.top)-jc.bZ);bm.bj.image.style.zIndex=bM.style.zIndex;}ic();bm.start();};function ic(){if(bm!=null){var div=document.getElementById('hI');var alB=(typeof as!='undefined')?as[ag]:Display.as[Display.ag];var akQ=(typeof ag!='undefined')?ag:Display.ag;div.style.width=alB[0]+'px';div.style.height=alB[1]+'px';var div=document.getElementById('ls');div.style.left=ff[akQ][0]+'px';div.style.top=ff[akQ][1]+'px';bm.x=ff[akQ][0];bm.y=ff[akQ][1]-bm.bj.bZ;}};var ff=[[45,120],[120,80]];function bC(IMAGE,kI,jz){this.image=IMAGE;this.bf=kI;this.dC=jz;this.bd=0;this.cK=this.image.width/this.bf;this.bZ=this.image.height/this.dC;};bC.prototype.fT=function(ck){if(ck<0||ck>=this.dC*this.bf){return;}var eE=ck%this.bf;var eT=parseInt(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)";};bC.prototype.drawImage=function(X,Y){var eE=this.bd%this.bf;var eT=parseInt(this.bd/this.bf);var dn=eE*this.cK;var dh=eT*this.bZ;ap(this.image,X-dn,Y-dh);};bC.prototype.image;bC.prototype.bf;bC.prototype.dC;bC.prototype.bd;bC.prototype.cK;bC.prototype.bZ;function aX(gR,ot,X,Y){this.bj=gR;this.eb=ot;this.x=X;this.y=Y;this.index= -1;this.size=gR.bf*gR.dC;this.bj.image.style.display='none';var parentElement=document.getElementById('at')||document.body;parentElement.appendChild(this.bj.image);this.cx=false;};aX.prototype.start=function(){this.index= -1;this.cx=true;hp(jm,this.eb,[this]);};aX.prototype.stop=function(){this.cx=false;};aX.prototype.bj;aX.prototype.eb;aX.prototype.x;aX.prototype.y;aX.prototype.index;aX.prototype.size;aX.prototype.cx;function jm(param){var image=param[0];image.index++;image.index%=image.size;image.bj.fT(image.index);image.bj.drawImage(image.x,image.y);if(image.cx){if(image.bj.image.style.display='none'){image.bj.image.style.display='';image.bj.image.style.visibility='';}hp(jm,image.eb,param);}}