var casinoWin=null;function openLiveCasino(url,pff){var xposition=(screen.width-800)/2;var yposition=(screen.height-600)/2;var args="toolbar=no,location=no,directories=no, status=yes,menubar=no,scrollbars=no,resizable=yes,width=800,height=600,"+"screenx="+xposition+","+"screeny="+yposition+","+"left="+xposition+","+"top="+yposition;url='redirLiveCasino.aspx?game='+url+"&pff="+pff;if(!casinoWin||casinoWin.closed){casinoWin=window.open(url,'liveflashcasino',args);}else{casinoWin=window.open(url,'liveflashcasino',args);casinoWin.focus();}}var casinoWinWidth;var casinoWinHeight;function openNetentCasino(url,playForFun){var xposition=(screen.width-910)/2;var yposition=(screen.height-600)/2;casinoWinWidth=910;casinoWinHeight=505;var pff=false;if(playForFun){pff=playForFun;}else{var elemReal=getElem('id','NetentMenu_rbRealMoney',0);var elemFun=getElem('id','NetentMenu_rbVirtualMoney',0);if(elemReal&&elemReal.checked==false||elemFun&&elemFun.checked==true)pff=true;}if(url=='tribble'){yposition=(screen.height-780)/2;casinoWinWidth=910;casinoWinHeight=780;}else if(url=='luckydouble'){yposition=(screen.height-630)/2;casinoWinWidth=1070;casinoWinHeight=630;}var args="toolbar=no,location=no,directories=no, status=yes,menubar=no,scrollbars=no,resizable=yes,"+"width="+casinoWinWidth+","+"height="+casinoWinHeight+","+"screenx="+xposition+","+"screeny="+yposition+","+"left="+xposition+","+"top="+yposition;url='redirNetentCasino.aspx?game='+url+"&pff="+pff;if(!casinoWin||casinoWin.closed){casinoWin=window.open(url,'NetentCasino',args);}else{casinoWin.location.replace(url);casinoWin.focus();}}function initCasinoWindow(){var width=opener.casinoWinWidth;var height=opener.casinoWinHeight;if(!firefox){self.resizeIn=resizeCasinoWindow(width,height);}else{var oldInnerWindowDimensions=getInnerWindowDimensions();if(oldInnerWindowDimensions['width']!=width&&oldInnerWindowDimensions['height']!=height)setInnerWindowDimensions(width,height);}}function resizeCasinoWindow(new_w,new_h){var old_w=this.innerWidth||this.document.body.offsetWidth;var old_h=this.innerHeight||this.document.body.offsetHeight;if(!new_w){new_w=old_w;}if(!new_h){new_h=old_h;}new_w-=old_w;new_h-=old_h;try{self.resizeBy(new_w,new_h);}catch(e){self.location.reload();}}function getInnerWindowDimensions(){var myWidth=0,myHeight=0;if(typeof(window.innerWidth)=='number'){myWidth=window.innerWidth;myHeight=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){myWidth=document.documentElement.clientWidth;myHeight=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){myWidth=document.body.clientWidth;myHeight=document.body.clientHeight;}return({width:myWidth,height:myHeight});}function setInnerWindowDimensions(width,height){if(typeof(window.innerWidth)=='number'){window.innerWidth=width;window.innerHeight=height;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){document.documentElement.clientWidth=width;document.documentElement.clientHeight=height;}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){document.body.clientWidth=width;document.body.clientHeight=height;}}function OpenPayIn(){if(window.parent.opener&&!window.parent.opener.closed){window.parent.opener.top.location.href='default.aspx?action=liveBetRedir&page=deposit';window.parent.opener.top.focus();}}function PFRReminder(isUserLoggedIn){if(opener.window.parent.opener&&!opener.window.parent.opener.closed){if(isUserLoggedIn){opener.window.parent.opener.location.href='accountPaymentOverview.aspx';opener.window.parent.opener.focus();opener.window.parent.close();self.close();}else{opener.window.parent.opener.parent.location.href='default.aspx?action=pfrReminder';opener.window.parent.opener.parent.focus();opener.window.parent.parent.close();self.close();}}}function CloseCasino(){if(window.parent.opener&&!window.parent.opener.closed){window.parent.opener.focus();}window.parent.close();}function casinoMenu(menuID,menuCalling){var menuObj=document.getElementById(menuID);if(menuObj.style.display=="none"||menuObj.style.display==""){menuObj.style.display="block";menuCalling.className="Opened";}else{menuObj.style.display="none";menuCalling.className="";}}function casinoGameSelection(){var gameSelection=document.getElementById("dropDownCasinoGames");if(gameSelection!=null){var selectedValue=gameSelection.options[gameSelection.selectedIndex].value;if(selectedValue!='')window.location.href=selectedValue;}}function casinoMinigameSelection(){var minigameSelection=document.getElementById("dropDownMinigames");if(minigameSelection!=null){var i=0;while(i<minigameSelection.options.length){casinoShowHide('minigame',i+1,minigameSelection.selectedIndex+1);i=i+1;}if(minigameSelection[minigameSelection.selectedIndex].value=='vault'){sovault.write("flashcontent_vault");}if(minigameSelection[minigameSelection.selectedIndex].value=='cashbomb'){socashbomb.write("flashcontent_cashbomb");}if(minigameSelection[minigameSelection.selectedIndex].value=='blackjackmini'){soblackjackmini.write("flashcontent_blackjackmini");}}}function casinoPreview(gameID){var casinoFlash=window.document["casinoFlashObj"];if(casinoFlash!=null){window.document["casinoFlashObj"].SetVariable("_root.params",gameID);window.document["casinoFlashObj"].SetVariable("_root.functionSet",'previewImage');}}var jackPotNavCounter=0;function casinoJackpot(direction){jackPotNavCounter++;var jackpotFlash=window.document["jackpotFlashContainerObj"];if(jackpotFlash!=null){window.document["jackpotFlashContainerObj"].SetVariable("_root.params",direction);window.document["jackpotFlashContainerObj"].SetVariable("_root.functionSet",'jackpotSwitch');}}function casinoShowHide(objType,hideID,showID){document.getElementById(objType+'-'+hideID).className="Hide";document.getElementById(objType+'-'+showID).className="Show";}function rules(url){var features="directories=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no,width=440,height=420";var remote=open(url,"rules",features);}function launchGame(url){var elem=getElem('id','rbFullScreen',0);if(elem&&elem.checked){url=url.replace(/redirNetentCasino/i,"redirNetentCasinoFull");}location.href=url;}function casinohistory(url,sessionId,lang,gameId){var features="directories=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no,width=550,height=640";url=url+'/game/history?sessionId='+sessionId+'&lang='+lang;if(!remote==null&&!remote.closed){remote.close();}var remote=open(url,"history",features);remote.focus();}function rng(url){var features="directories=no,location=no,menubar=no,resizable=no,scrollbars=yes,status=no,toolbar=no,width=440,height=420";var remote=open(url,"RNG",features);}function PFF_Show_LoggedIn(){var obj=document.getElementById("PFFShowLoggedIn");obj.style.display="block";}function PFF_Hide_LoggedIn(){var obj=document.getElementById("PFFShowLoggedIn");obj.style.display="none";window.setTimeout('PFF_Show_LoggedIn()',5*60*1000);}function PFF_Show(){var obj=document.getElementById("PFFShow");obj.style.display="block";}function PFF_Hide(){var obj=document.getElementById("PFFShow");obj.style.display="none";window.setTimeout('PFF_Show()',5*60*1000);}function PFF_Login(){if(window.parent.opener&&!window.parent.opener.closed){window.parent.opener.focus();}self.close();}function PFF_Register(){if(window.parent.opener&&!window.parent.opener.closed){window.parent.opener.location.href='default.aspx?action=liveBetRedir&page=register';window.parent.opener.focus();}self.close();}