(function(){function a(a){a=String(a);return a.charAt(0).toUpperCase()+a.slice(1)}function e(a,d){var f=-1,m=a?a.length:0;if("number"==typeof m&&-1c?1:532>c?2:532.05>c?3:533>c?4:534.03>c?5:534.07>c?6:534.1>c?7:534.13>c?8:534.16>c?9:534.24>c?10:534.3>c?11:535.01>c?12:535.02>c?"13+":535.07>c?15:535.11>c?16:535.19>c?17:536.05>c?18:536.1>c?19:537.01>c?20:537.11>c?"21+":537.13>c?23:537.18>c?24:537.24>c?25:537.36>c?26:"Blink"!= E?"27":"28")):(E&&(E[1]="like Safari"),c=(c=c[0],400>c?1:500>c?2:526>c?3:533>c?4:534>c?"4+":535>c?5:537>c?6:538>c?7:601>c?8:"8"));E&&(E[1]+=" "+(c+="number"==typeof c?".x":/[.+]/.test(c)?"":"+"));"Safari"==t&&(!v||45F.indexOf(K)&&p.push("on "+K);F&&p.push((/^on /.test(p[p.length- 1])?"":"on ")+F);if(u){var W=(c=/ ([\d.+]+)$/.exec(u))&&"/"==u.charAt(u.length-c[0].length-1);u={architecture:32,family:c&&!W?u.replace(c[0],""):u,version:c?c[1]:null,toString:function(){var a=this.version;return this.family+(a&&!W?" "+a:"")+(64==this.architecture?" 64-bit":"")}}}(c=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(U))&&!/\bi686\b/i.test(U)?(u&&(u.architecture=64,u.family=u.family.replace(RegExp(" *"+c),"")),t&&(/\bWOW64\b/i.test(a)||P&&/\w(?:86|32)$/.test(y.cpuClass||y.platform)&&!/\bWin64; x64\b/i.test(a))&& p.unshift("32-bit")):u&&/^OS X/.test(u.family)&&"Chrome"==t&&39<=parseFloat(v)&&(u.architecture=64);a||(a=null);h={};h.description=a;h.layout=E&&E[0];h.manufacturer=K;h.name=t;h.prerelease=V;h.product=F;h.ua=a;h.version=t&&v;h.os=u||{architecture:null,family:null,version:null,toString:function(){return"null"}};h.parse=l;h.toString=function(){return this.description||""};h.version&&p.unshift(v);h.name&&p.unshift(t);u&&t&&(u!=String(u).split(" ")[0]||u!=t.split(" ")[0]&&!F)&&p.push(F?"("+u+")":"on "+ u);p.length&&(h.description=p.join(" "));return h}var d={"function":!0,object:!0},m=d[typeof window]&&window||this,y=d[typeof exports]&&exports;d=d[typeof module]&&module&&!module.nodeType&&module;var h=y&&d&&"object"==typeof global&&global;!h||h.global!==h&&h.window!==h&&h.self!==h||(m=h);var p=Math.pow(2,53)-1,q=/\bOpera/;h=Object.prototype;var x=h.hasOwnProperty,D=h.toString,B=l();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(m.platform=B,define(function(){return B})):y&& d?b(B,function(a,d){y[d]=a}):m.platform=B}).call(this); function buildIOSMeta(){for(var a=[{name:"viewport",content:"width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"},{name:"apple-mobile-web-app-capable",content:"yes"},{name:"apple-mobile-web-app-status-bar-style",content:"black"}],e=0;e
')} function showIOSFullscreenPanel(){jQuery(".xxx-ios-fullscreen-message").css("display","block");jQuery(".xxx-ios-fullscreen-scroll").css("display","block")} function __iosResize(){window.scrollTo(0,0);console.log(window.devicePixelRatio);console.log(window.innerWidth);console.log(window.innerHeight);if("iPhone"===platform.product)switch(window.devicePixelRatio){case 2:switch(window.innerWidth){case 568:320!==window.innerHeight&&jQuery(".xxx-game-iframe-full").addClass("xxx-game-iframe-iphone-se");break;case 667:375===window.innerHeight?hideIOSFullscreenPanel():showIOSFullscreenPanel();break;case 808:414===window.innerHeight?hideIOSFullscreenPanel():showIOSFullscreenPanel(); break;default:hideIOSFullscreenPanel()}break;case 3:switch(window.innerWidth){case 736:414===window.innerHeight?hideIOSFullscreenPanel():showIOSFullscreenPanel();break;case 724:375===window.innerHeight?hideIOSFullscreenPanel():showIOSFullscreenPanel();break;case 808:414===window.innerHeight?hideIOSFullscreenPanel():showIOSFullscreenPanel();break;default:hideIOSFullscreenPanel()}break;default:hideIOSFullscreenPanel()}}function iosResize(){__iosResize();setTimeout(function(){__iosResize()},500)} function iosInIframe(){try{return window.self!==window.top}catch(a){return!0}}$(document).ready(function(){platform&&"iPhone"===platform.product&&"safari"!==platform.name.toLowerCase()&&(buildIOSFullscreenPanel(),buildIOSMeta())});jQuery(window).resize(function(){platform&&"iPhone"===platform.product&&"safari"!==platform.name.toLowerCase()&&iosResize()}); (function(){var a="undefined"!==typeof window&&"undefined"!==typeof window.document?window.document:{},e="undefined"!==typeof module&&module.exports,g="undefined"!==typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,b=function(){for(var b,f=["requestFullscreen exitFullscreen fullscreenElement fullscreenEnabled fullscreenchange fullscreenerror".split(" "),"webkitRequestFullscreen webkitExitFullscreen webkitFullscreenElement webkitFullscreenEnabled webkitfullscreenchange webkitfullscreenerror".split(" "), "webkitRequestFullScreen webkitCancelFullScreen webkitCurrentFullScreenElement webkitCancelFullScreen webkitfullscreenchange webkitfullscreenerror".split(" "),"mozRequestFullScreen mozCancelFullScreen mozFullScreenElement mozFullScreenEnabled mozfullscreenchange mozfullscreenerror".split(" "),"msRequestFullscreen msExitFullscreen msFullscreenElement msFullscreenEnabled MSFullscreenChange MSFullscreenError".split(" ")],l=0,d=f.length,m={};l@media("+e+":"+b["client"+a]+"px){body#vpw-test-b div#vpw-test-d{"+e+":7px!important}}";n.appendChild(k);b.insertBefore(n,g.head); a=7==k["offset"+a]?b["client"+a]:window["inner"+a];b.removeChild(n)}else a=window["inner"+a];return a}window.addEventListener("orientationchange",onOrientationChange);function onOrientationChange(){window.matchMedia("(orientation: portrait)").matches&&sizeHandler();window.matchMedia("(orientation: landscape)").matches&&sizeHandler()}function getIOSWindowHeight(){return document.documentElement.clientWidth/window.innerWidth*window.innerHeight} function getHeightOfIOSToolbars(){var a=(0===window.orientation?screen.height:screen.width)-getIOSWindowHeight();return 1n||(n=(a-g)/2);$("#canvas").css("top",n+"px");$("#canvas").css("left",k+"px");fullscreenHandler()}} function _checkOrientation(a,e){s_bMobile&&ENABLE_CHECK_ORIENTATION&&(a>e?"landscape"===$(".orientation-msg-container").attr("data-orientation")?($(".orientation-msg-container").css("display","none"),s_oMain.startUpdate()):($(".orientation-msg-container").css("display","block"),s_oMain.stopUpdate()):"portrait"===$(".orientation-msg-container").attr("data-orientation")?($(".orientation-msg-container").css("display","none"),s_oMain.startUpdate()):($(".orientation-msg-container").css("display","block"), s_oMain.stopUpdate()))}function createBitmap(a,e,g){var b=new createjs.Bitmap(a),n=new createjs.Shape;e&&g?n.graphics.beginFill("#fff").drawRect(0,0,e,g):n.graphics.beginFill("#ff0").drawRect(0,0,a.width,a.height);b.hitArea=n;return b}function createSprite(a,e,g,b,n,k){a=null!==e?new createjs.Sprite(a,e):new createjs.Sprite(a);e=new createjs.Shape;e.graphics.beginFill("#000000").drawRect(-g,-b,n,k);a.hitArea=e;return a} function randomFloatBetween(a,e,g){"undefined"===typeof g&&(g=2);return parseFloat(Math.min(a+Math.random()*(e-a),e).toFixed(g))}function shuffle(a){for(var e=a.length,g,b;0!==e;)b=Math.floor(Math.random()*e),--e,g=a[e],a[e]=a[b],a[b]=g;return a}function formatTime(a){a/=1E3;var e=Math.floor(a/60);a=parseFloat(a-60*e).toFixed(1);var g="";g=10>e?g+("0"+e+":"):g+(e+":");return 10>a?g+("0"+a):g+a} function NoClickDelay(a){this.element=a;window.Touch&&this.element.addEventListener("touchstart",this,!1)} NoClickDelay.prototype={handleEvent:function(a){switch(a.type){case "touchstart":this.onTouchStart(a);break;case "touchmove":this.onTouchMove(a);break;case "touchend":this.onTouchEnd(a)}},onTouchStart:function(a){a.preventDefault();this.moved=!1;this.element.addEventListener("touchmove",this,!1);this.element.addEventListener("touchend",this,!1)},onTouchMove:function(a){this.moved=!0},onTouchEnd:function(a){this.element.removeEventListener("touchmove",this,!1);this.element.removeEventListener("touchend", this,!1);if(!this.moved){a=document.elementFromPoint(a.changedTouches[0].clientX,a.changedTouches[0].clientY);3===a.nodeType&&(a=a.parentNode);var e=document.createEvent("MouseEvents");e.initEvent("click",!0,!0);a.dispatchEvent(e)}}};function ctlArcadeResume(){null!==s_oMain&&s_oMain.startUpdate()}function ctlArcadePause(){null!==s_oMain&&s_oMain.stopUpdate()} function getParamValue(a){for(var e=window.location.search.substring(1).split("&"),g=0;ga;a++)s_aRandSymbols.push(1);for(a=0;2>a;a++)s_aRandSymbols.push(2); for(a=0;3>a;a++)s_aRandSymbols.push(3);for(a=0;4>a;a++)s_aRandSymbols.push(4);for(a=0;4>a;a++)s_aRandSymbols.push(5);for(a=0;6>a;a++)s_aRandSymbols.push(6);for(a=0;7>a;a++)s_aRandSymbols.push(7);for(a=0;7>a;a++)s_aRandSymbols.push(8);for(a=0;2>a;a++)s_aRandSymbols.push(9);for(a=0;2>a;a++)s_aRandSymbols.push(10)};this._initBonus=function(){s_aPrizeOccurence=[];var a;for(a=0;al;l++)PAYTABLE_VALUES[l]=a["paytable_symbol_"+(l+1)];ENABLE_FULLSCREEN=a.fullscreen;ENABLE_CHECK_ORIENTATION=a.check_orientation; SHOW_CREDITS=f.show_credits;this.initContainer()}var s_bMobile,s_bAudioActive=!1,s_iCntTime=0,s_iTimeElaps=0,s_iPrevTime=0,s_iCntFps=0,s_iCurFps=0,s_oDrawLayer,s_oStage,s_oMain,s_oSpriteLibrary,s_oSoundTrack=null,s_bFullscreen=!1,s_aSoundsInfo; function CTextButton(a,e,g,b,n,k,r){var f,l,d,m,y,h,p,q,x,D;this._init=function(a,b,h,e,g,p,k){f=!1;m=[];y=[];D=createBitmap(h);l=h.width;d=h.height;x=new createjs.Text(e,k+"px "+g,p);x.textAlign="center";x.shadow=new createjs.Shadow("#000",2,2,2);x.textBaseline="middle";x.lineHeight=24;x.x=h.width/2;x.y=h.height/2;q=new createjs.Container;q.x=a;q.y=b;q.regX=h.width/2;q.regY=h.height/2;q.addChild(D,x);q.cursor="pointer";s_oStage.addChild(q);this._initListener()};this.unload=function(){q.off("mousedown", h);q.off("pressup",p);s_oStage.removeChild(q)};this.setVisible=function(a){q.visible=a};this.enable=function(){f=!1;D.filters=[];D.cache(0,0,l,d)};this.disable=function(){f=!0;var a=(new createjs.ColorMatrix).adjustSaturation(-100);D.filters=[new createjs.ColorMatrixFilter(a)];D.cache(0,0,l,d)};this._initListener=function(){h=q.on("mousedown",this.buttonDown);p=q.on("pressup",this.buttonRelease)};this.addEventListener=function(a,d,f){m[a]=d;y[a]=f};this.buttonRelease=function(){f||(playSound("press_but", 1,!1),q.scaleX=1,q.scaleY=1,m[ON_MOUSE_UP]&&m[ON_MOUSE_UP].call(y[ON_MOUSE_UP]))};this.buttonDown=function(){f||(q.scaleX=.9,q.scaleY=.9,m[ON_MOUSE_DOWN]&&m[ON_MOUSE_DOWN].call(y[ON_MOUSE_DOWN]))};this.setPosition=function(a,d){q.x=a;q.y=d};this.changeText=function(a){x.text=a};this.setX=function(a){q.x=a};this.setY=function(a){q.y=a};this.getButtonImage=function(){return q};this.getX=function(){return q.x};this.getY=function(){return q.y};this._init(a,e,g,b,n,k,r);return this} function CGfxButton(a,e,g,b){var n,k,r,f,l,d,m,y,h;this._init=function(a,d,b,m){n=!1;f=[];l=[];h=createBitmap(b);h.x=a;h.y=d;k=b.width;r=b.height;h.regX=b.width/2;h.regY=b.height/2;h.cursor="pointer";!1!==m&&s_oStage.addChild(h);this._initListener()};this.unload=function(){h.off("mousedown",m);h.off("pressup",y);s_oStage.removeChild(h)};this.setVisible=function(a){h.visible=a};this.enable=function(){n=!1;h.filters=[];h.cache(0,0,k,r)};this.disable=function(){n=!0;var a=(new createjs.ColorMatrix).adjustSaturation(-100).adjustBrightness(40); h.filters=[new createjs.ColorMatrixFilter(a)];h.cache(0,0,k,r)};this._initListener=function(){m=h.on("mousedown",this.buttonDown);y=h.on("pressup",this.buttonRelease)};this.addEventListener=function(a,d,b){f[a]=d;l[a]=b};this.addEventListenerWithParams=function(a,b,h,m){f[a]=b;l[a]=h;d=m};this.buttonRelease=function(){n||(playSound("press_but",1,!1),h.scaleX=1,h.scaleY=1,f[ON_MOUSE_UP]&&f[ON_MOUSE_UP].call(l[ON_MOUSE_UP],d))};this.buttonDown=function(){n||(h.scaleX=.9,h.scaleY=.9,f[ON_MOUSE_DOWN]&& f[ON_MOUSE_DOWN].call(l[ON_MOUSE_DOWN],d))};this.setPosition=function(a,d){h.x=a;h.y=d};this.setX=function(a){h.x=a};this.setY=function(a){h.y=a};this.getButtonImage=function(){return h};this.getX=function(){return h.x};this.getY=function(){return h.y};this.getSprite=function(){return h};this._init(a,e,g,b);return this} function CToggle(a,e,g,b,n){var k,r,f,l,d,m,y;this._init=function(a,d,b,m,e){y=void 0!==e?e:s_oStage;r=[];f=[];e=new createjs.SpriteSheet({images:[b],frames:{width:b.width/2,height:b.height,regX:b.width/2/2,regY:b.height/2},animations:{state_true:[0],state_false:[1]}});k=m;l=createSprite(e,"state_"+k,b.width/2/2,b.height/2,b.width/2,b.height);l.x=a;l.y=d;l.stop();s_bMobile||(l.cursor="pointer");y.addChild(l);this._initListener()};this.unload=function(){l.off("mousedown",d);l.off("pressup",m);y.removeChild(l)}; this._initListener=function(){d=l.on("mousedown",this.buttonDown);m=l.on("pressup",this.buttonRelease)};this.addEventListener=function(a,d,b){r[a]=d;f[a]=b};this.setCursorType=function(a){l.cursor=a};this.setActive=function(a){k=a;l.gotoAndStop("state_"+k)};this.buttonRelease=function(){l.scaleX=1;l.scaleY=1;playSound("press_but",1,!1);k=!k;l.gotoAndStop("state_"+k);r[ON_MOUSE_UP]&&r[ON_MOUSE_UP].call(f[ON_MOUSE_UP],k)};this.buttonDown=function(){l.scaleX=.9;l.scaleY=.9;r[ON_MOUSE_DOWN]&&r[ON_MOUSE_DOWN].call(f[ON_MOUSE_DOWN])}; this.setPosition=function(a,d){l.x=a;l.y=d};this._init(a,e,g,b,n)} function CBetBut(a,e,g){var b,n,k,r=[],f;this._init=function(a,d,m){b=!1;n=[];k=[];m=s_oSpriteLibrary.getSprite("bet_but");var e=new createjs.SpriteSheet({images:[m],frames:{width:m.width/2,height:m.height,regX:0,regY:0},animations:{on:[0,1],off:[1,2]}});f=createSprite(e,"on",0,0,m.width/2,m.height);f.stop();f.x=a;f.y=d;f.regX=m.width/2;f.regY=m.height/2;f.cursor="pointer";s_oStage.addChild(f);this._initListener()};this.unload=function(){f.off("mousedown",this.buttonDown);f.off("pressup",this.buttonRelease); s_oStage.removeChild(f)};this.disable=function(a){b=a};this.setVisible=function(a){f.visible=a};this.setOn=function(){f.gotoAndStop("on")};this.setOff=function(){f.gotoAndStop("off")};this._initListener=function(){f.on("mousedown",this.buttonDown);f.on("pressup",this.buttonRelease)};this.addEventListener=function(a,d,b){n[a]=d;k[a]=b};this.addEventListenerWithParams=function(a,d,b,f){n[a]=d;k[a]=b;r=f};this.buttonRelease=function(){n[ON_MOUSE_UP]&&!1===b&&(playSound("press_but",1,!1),n[ON_MOUSE_UP].call(k[ON_MOUSE_UP], r))};this.buttonDown=function(){n[ON_MOUSE_DOWN]&&!1===b&&n[ON_MOUSE_DOWN].call(k[ON_MOUSE_DOWN],r)};this.setPosition=function(a,d){f.x=a;f.y=d};this.setX=function(a){f.x=a};this.setY=function(a){f.y=a};this.getButtonImage=function(){return f};this.getX=function(){return f.x};this.getY=function(){return f.y};this._init(a,e,g)} function CMenu(){var a,e,g,b,n,k,r,f=null,l=null,d,m,y,h,p;this._init=function(){d=createBitmap(s_oSpriteLibrary.getSprite("bg_menu"));s_oStage.addChild(d);var q=s_oSpriteLibrary.getSprite("but_play_bg");m=new CTextButton(CANVAS_WIDTH/2,CANVAS_HEIGHT-80,q,TEXT_PLAY,FONT_GAME,"#ffde00",58);m.addEventListener(ON_MOUSE_UP,this._onButPlayRelease,this);if(!1===DISABLE_SOUND_MOBILE||!1===s_bMobile)q=s_oSpriteLibrary.getSprite("audio_icon"),n=CANVAS_WIDTH-q.width/4-10,k=q.height/2+10,h=new CToggle(n,k,q, s_bAudioActive,s_oStage),h.addEventListener(ON_MOUSE_UP,this._onAudioToggle,this),setVolume("soundtrack",1);SHOW_CREDITS?(q=s_oSpriteLibrary.getSprite("but_credits"),a=q.height/2+10,e=q.height/2+10,y=new CGfxButton(a,e,q,s_oStage),y.addEventListener(ON_MOUSE_UP,this._onButCreditsRelease,this),g=a+q.width+10,b=e):(g=q.height/2+10,b=q.height/2+10);q=window.document;var x=q.documentElement;f=x.requestFullscreen||x.mozRequestFullScreen||x.webkitRequestFullScreen||x.msRequestFullscreen;l=q.exitFullscreen|| q.mozCancelFullScreen||q.webkitExitFullscreen||q.msExitFullscreen;!1===ENABLE_FULLSCREEN&&(f=!1);f&&screenfull.enabled&&(q=s_oSpriteLibrary.getSprite("but_fullscreen"),r=new CToggle(g,b,q,s_bFullscreen,s_oStage),r.addEventListener(ON_MOUSE_UP,this._onFullscreenRelease,this));p=new createjs.Shape;p.graphics.beginFill("black").drawRect(0,0,CANVAS_WIDTH,CANVAS_HEIGHT);s_oStage.addChild(p);createjs.Tween.get(p).to({alpha:0},600).call(function(){p.visible=!1});this.refreshButtonPos(s_iOffsetX,s_iOffsetY)}; this.refreshButtonPos=function(d,m){!1!==DISABLE_SOUND_MOBILE&&!1!==s_bMobile||h.setPosition(n-d,m+k);f&&screenfull.enabled&&r.setPosition(g+d,b+m);SHOW_CREDITS&&y.setPosition(a+d,e+m)};this.unload=function(){m.unload();m=null;if(!1===DISABLE_SOUND_MOBILE||!1===s_bMobile)h.unload(),h=null;SHOW_CREDITS&&y.unload();f&&screenfull.enabled&&r.unload();s_oStage.removeAllChildren();s_oMenu=null};this._onButPlayRelease=function(){this.unload();s_oMain.gotoGame();$(s_oMain).trigger("start_session")};this._onAudioToggle= function(){Howler.mute(s_bAudioActive);s_bAudioActive=!s_bAudioActive};this._onButCreditsRelease=function(){new CCreditsPanel};this.resetFullscreenBut=function(){f&&screenfull.enabled&&r.setActive(s_bFullscreen)};this._onFullscreenRelease=function(){s_bFullscreen?l.call(window.document):f.call(window.document.documentElement);sizeHandler()};s_oMenu=this;this._init()}var s_oMenu=null; function CGame(a){var e=!1,g,b,n=!0,k,r,f,l,d,m,y,h,p,q,x,D=0,B,A,C,I,G,L,H,v,O,S,R,w,T,z,M=null,Q;this._init=function(){k=GAME_STATE_IDLE;g=!0;A=x=l=r=0;L=[0,1,2,3,4];f=L[0];d=NUM_PAYLINES;q=TOTAL_MONEY;h=MIN_BET;p=h*d;H=[];for(var a=0;ap?!0:!1};this._checkForBonus= function(){b=!1;D=0;for(var a=[],c=0;c=NUM_SYMBOLS_FOR_BONUS&&(G.push({line:-1,amount:0,num_win:D,value:BONUS_SYMBOL,list:a}),5MIN_REEL_LOOPS)if(f===c){if(!1===C[a].isReadyToStop()){var d=a; aq?z.disableSpin():z.enableSpin()};this.addLine=function(){d===NUM_PAYLINES?d=1:d++;var a=h*d;p=a;p=Math.floor(100*p)/100;z.refreshTotalBet(p);z.refreshNumLines(d);a>q?z.disableSpin():z.enableSpin()};this.changeCoinBet=function(){var a=Math.floor(100*(h+.05))/100;a>MAX_BET?(h=MIN_BET,p=h*d,p=Math.floor(100*p)/100,z.refreshBet(h),z.refreshTotalBet(p),a=p):(a*=d,h+=.05,h=Math.floor(100*h)/100, p=a,p=Math.floor(100*p)/100,z.refreshBet(h),z.refreshTotalBet(p));a>q?z.disableSpin():z.enableSpin()};this.onMaxBet=function(){var a=MAX_BET;d=NUM_PAYLINES;a*=d;h=MAX_BET;p=a;z.refreshBet(h);z.refreshTotalBet(p);z.refreshNumLines(d);a>q?z.disableSpin():(z.enableSpin(),this.onSpin())};this._onHitAreaCol=function(a){a=a.index;!0===R[a]?(R[a]=!1,S[a].visible=!1,v[a].visible=!0,x--,C[a].setHold(!1),C[a+NUM_REELS].setHold(!1)):x WIN_OCCURRENCE){do a=this.generateFinalSymbols();while(!0===a||b)}else this._assignWin();z.hideAllLines();z.disableGuiButtons();n=!1;k=GAME_STATE_SPINNING};this._assignWin=function(){if(SLOT_CASHSLOT_CASH||b)&&1E4>=a)}else if(Math.floor(100*Math.random())>=BONUS_OCCURRENCE){a=0;do c=this.generateFinalSymbols(),a++;while((!1===c||B*h>SLOT_CASH||b)&&1E4>=a)}else{a=0;do{c=this.generateFinalSymbols();var d=0;b&& (d=D-3);a++}while((!1===c||B*h+BONUS_PRIZE[d][0]*h>SLOT_CASH||!1===b)&&1E4>=a)}if(1E4TIME_SHOW_ALL_WINS&&this._hideAllWins();break;case GAME_STATE_SHOW_WIN:m+=s_iTimeElaps,m>TIME_SHOW_WIN&&(m=0,this._showWin())}};s_oGame=this;WIN_OCCURRENCE=a.win_occurrence;SLOT_CASH=a.slot_cash;BONUS_OCCURRENCE=a.bonus_occurrence;MIN_REEL_LOOPS=a.min_reel_loop;REEL_DELAY=a.reel_delay;TIME_SHOW_WIN=a.time_show_win;TIME_SHOW_ALL_WINS= a.time_show_all_wins;TOTAL_MONEY=a.money;MIN_BET=a.min_bet;MAX_BET=a.max_bet;MAX_NUM_HOLD=a.max_hold;BONUS_PRIZE[0]=a.bonus_prize_for_3_symbol;BONUS_PRIZE[1]=a.bonus_prize_for_4_symbol;BONUS_PRIZE[2]=a.bonus_prize_for_5_symbol;PERC_WIN_PRIZE_1=a.perc_win_prize_1;PERC_WIN_PRIZE_2=a.perc_win_prize_2;PERC_WIN_PRIZE_3=a.perc_win_prize_3;var N=a.num_spin_ads_showing;new CSlotSettings;this._init()}var s_oGame,s_oTweenController; function CReelColumn(a,e,g,b){var n,k,r,f,l,d,m,y,h,p,q,x,D,B,A;this._init=function(a,b,e,g){f=r=k=n=!1;y=0;l=a;m=g;d=lq&&(p=0,q/=2,h++,x=A.y,D=x+SYMBOL_SIZE*NUM_ROWS);var a=s_oTweenController.easeInBack(p, 0,1,q);a=s_oTweenController.tweenValue(x,D,a);A.y=a};this._updateMoving=function(){p++;p>q&&(p=0,x=A.y,D=x+SYMBOL_SIZE*NUM_ROWS);var a=s_oTweenController.easeLinear(p,0,1,q);a=s_oTweenController.tweenValue(x,D,a);A.y=a};this._updateStopping=function(){p++;if(p>=q)n=!1,p=0,q=MAX_FRAMES_REEL_EASE,h=REEL_STATE_START,y=0,k=!1,r&&(r=!1,A.y=REEL_OFFSET_Y),s_oGame.stopNextReel();else{var a=s_oTweenController.easeOutCubic(p,0,1,q);a=s_oTweenController.tweenValue(x,D,a);A.y=a}};this.update=function(a){if(!1!== n&&(y++,y>m))if(f)a===l&&(n=!1,s_oGame.stopNextReel(),s_oGame.stopNextReel(),0===l&&s_oGame.increaseReelLoops());else switch(!1===k&&A.y>REEL_ARRIVAL_Y&&s_oGame.reelArrived(l,d),h){case REEL_STATE_START:this._updateStart();break;case REEL_STATE_MOVING:this._updateMoving();break;case REEL_STATE_STOP:this._updateStopping()}};this._init(a,e,g,b)} function CInterface(a,e,g){var b,n,k,r,f,l,d,m,y,h,p,q,x,D,B,A,C,I,G,L,H=null,v=null;this._init=function(a,e,g){var w=s_oSpriteLibrary.getSprite("but_exit");k=CANVAS_WIDTH-w.width/2-10;r=w.height/2+10;y=new CGfxButton(k,r,w,!0);y.addEventListener(ON_MOUSE_UP,this._onExit,this);!1===DISABLE_SOUND_MOBILE||!1===s_bMobile?(f=y.getX()-w.width,l=w.height/2+10,x=new CToggle(f,l,s_oSpriteLibrary.getSprite("audio_icon"),s_bAudioActive,s_oStage),x.addEventListener(ON_MOUSE_UP,this._onAudioToggle,this),b=f- w.width):b=k-w.width;n=w.height/2+10;w=window.document;var O=w.documentElement;H=O.requestFullscreen||O.mozRequestFullScreen||O.webkitRequestFullScreen||O.msRequestFullscreen;v=w.exitFullscreen||w.mozCancelFullScreen||w.webkitExitFullscreen||w.msExitFullscreen;!1===ENABLE_FULLSCREEN&&(H=!1);H&&screenfull.enabled&&(w=s_oSpriteLibrary.getSprite("but_fullscreen"),L=new CToggle(b,n,w,s_bFullscreen,s_oStage),L.addEventListener(ON_MOUSE_UP,this._onFullscreenRelease,this));w=s_oSpriteLibrary.getSprite("spin_but"); h=new CTextButton(1094+w.width/2,CANVAS_HEIGHT-w.height/2-4,w,TEXT_WIN+"\n0.00",FONT_GAME,"#ffde00",26);h.addEventListener(ON_MOUSE_UP,this._onSpin,this);w=s_oSpriteLibrary.getSprite("info_but");p=new CTextButton(320+w.width/2,CANVAS_HEIGHT-w.height/2-4,w,TEXT_INFO,FONT_GAME,"#ffffff",32);p.addEventListener(ON_MOUSE_UP,this._onInfo,this);w=s_oSpriteLibrary.getSprite("but_lines_bg");q=new CTextButton(490+w.width/2,CANVAS_HEIGHT-w.height/2-4,w,TEXT_LINES,FONT_GAME,"#ffffff",32);q.addEventListener(ON_MOUSE_UP, this._onAddLine,this);w=s_oSpriteLibrary.getSprite("coin_but");D=new CTextButton(678+w.width/2,CANVAS_HEIGHT-w.height/2-4,w,TEXT_COIN,FONT_GAME,"#ffffff",32);D.addEventListener(ON_MOUSE_UP,this._onBet,this);w=s_oSpriteLibrary.getSprite("but_maxbet_bg");B=new CTextButton(866+w.width/2,CANVAS_HEIGHT-w.height/2-4,w,TEXT_MAX_BET,FONT_GAME,"#ffffff",32);B.addEventListener(ON_MOUSE_UP,this._onMaxBet,this);C=new createjs.Text(TEXT_MONEY+"\n"+g.toFixed(2)+TEXT_CURRENCY,"34px "+FONT_GAME,"#ffde00");C.x=450; C.y=46;C.textBaseline="alphabetic";C.lineHeight=28;C.textAlign="center";s_oStage.addChild(C);G=new createjs.Text(NUM_PAYLINES,"24px "+FONT_GAME,"#ffde00");G.x=584;G.y=CANVAS_HEIGHT-77;G.shadow=new createjs.Shadow("#000",2,2,2);G.textAlign="center";G.textBaseline="alphabetic";s_oStage.addChild(G);A=new createjs.Text(a.toFixed(2),"24px "+FONT_GAME,"#ffde00");A.x=776;A.y=CANVAS_HEIGHT-77;A.shadow=new createjs.Shadow("#000",2,2,2);A.textAlign="center";A.textBaseline="alphabetic";s_oStage.addChild(A); I=new createjs.Text(TEXT_BET+": "+e.toFixed(2),"24px "+FONT_GAME,"#ffde00");I.x=980;I.y=CANVAS_HEIGHT-77;I.shadow=new createjs.Shadow("#000",2,2,2);I.textAlign="center";I.textBaseline="alphabetic";s_oStage.addChild(I);w=s_oSpriteLibrary.getSprite("bet_but");d=[];a=new CBetBut(334+w.width/2,282+w.height/2,w,!0);a.addEventListenerWithParams(ON_MOUSE_UP,this._onBetLineClicked,this,1);d[0]=a;a=new CBetBut(334+w.width/2,180+w.height/2,w,!0);a.addEventListenerWithParams(ON_MOUSE_UP,this._onBetLineClicked, this,2);d[1]=a;a=new CBetBut(334+w.width/2,432+w.height/2,w,!0);a.addEventListenerWithParams(ON_MOUSE_UP,this._onBetLineClicked,this,3);d[2]=a;a=new CBetBut(334+w.width/2,114+w.height/2,w,!0);a.addEventListenerWithParams(ON_MOUSE_UP,this._onBetLineClicked,this,4);d[3]=a;a=new CBetBut(334+w.width/2,502+w.height/2,w,!0);a.addEventListenerWithParams(ON_MOUSE_UP,this._onBetLineClicked,this,5);d[4]=a;m=[];for(a=0;a g;g++){var h=createSprite(a,"idle",0,0,BONUS_ITEM_WIDTH,BONUS_ITEM_HEIGHT);h.on("click",this._onBonusItemReleased,this,!1,g);h.x=e[g].x;h.y=e[g].y;h.visible=!1;l.addChild(h);b[g]=h}a=s_oSpriteLibrary.getSprite("bonus_prize");k=[];r=[];k[0]=createBitmap(a);k[0].x=300;k[0].y=CANVAS_HEIGHT-90;l.addChild(k[0]);e=new createjs.Text("100","44px "+FONT_GAME,"#ffff00");e.textAlign="left";e.x=k[0].x+a.width+10;e.y=k[0].y+a.height/2;e.textBaseline="middle";l.addChild(e);r.push(e);k[1]=createBitmap(a);k[1].x= 600;k[1].y=CANVAS_HEIGHT-90;l.addChild(k[1]);e=new createjs.Text("200","44px "+FONT_GAME,"#ffff00");e.textAlign="left";e.x=k[1].x+a.width+10;e.y=k[1].y+a.height/2;e.textBaseline="middle";l.addChild(e);r.push(e);k[2]=createBitmap(a);k[2].x=900;k[2].y=CANVAS_HEIGHT-90;l.addChild(k[2]);e=new createjs.Text("300","44px "+FONT_GAME,"#ffff00");e.textAlign="left";e.x=k[2].x+a.width+10;e.y=k[2].y+a.height/2;e.textBaseline="middle";l.addChild(e);r.push(e);f=[{x:440,y:129},{x:765,y:219},{x:1134,y:129},{x:450, y:405},{x:1114,y:405}]};this.unload=function(){for(var a=0;5>a;a++)b[a].off("click",this._onBonusItemReleased)};this.show=function(d,f){$(s_oMain).trigger("bonus_start");g=f;a=!1;switch(d){case 3:n=BONUS_PRIZE[0];break;case 4:n=BONUS_PRIZE[1];break;case 5:n=BONUS_PRIZE[2];break;default:n=BONUS_PRIZE[0]}r[0].text="X"+n[0];r[1].text="X"+n[1];r[2].text="X"+n[2];for(var e=0;eSLOT_CASH);e=n[s_aPrizeOccurence[k]];b[f].gotoAndPlay("item_clicked");playSound("choose_bonus_item",1,!1);this.endBonus(f)}};this.endBonus=function(a){new CScoreText("X"+e,f[a].x,f[a].y);setTimeout(function(){l.alpha=0;l.visible=!1;for(var a=0;a