document.addEventListener("DOMContentLoaded",function(){let e=window.location.search;""===e?e="?show_popup_reg=1&lp=game":e+="&show_popup_reg=1&lp=game";const o="https://"+window.location.hostname.replace("promo.","")+e;document.querySelectorAll("a").forEach(n=>{n.href=o,n.addEventListener("click",function(){document.cookie="offer_last_point="+e+"; max-age=2592000"})});const n=["diPYKe***","vasyap***","luckyw***","zanzee***","oiloil***","thiisr***","antoni***","rockca***","gooOOO***","esmus3***","jackie***","madluc***","nikkko***","sempai***","niconi***","Stefan***","elisin***","laurah***","matej_***","fortun***","pandem***","casini***","margos***","merio7***","Alessa***","nicola***","mirkor***","giovan***","nicole***","jessie***","damian***","valter***","alexet***","diegos***","carmel***","giovan***","massim***","marcor***","alicer***","monica***","SANJIS***","giorgi***","unapas***","nicole***","valeri***","CARMEL***","chiara***","emanue***","adamma***","famigl***","massim***","fabiog***","daniel***","giovan***","aleand***","alessi***","salvat***","orazio***","bordad***","matteo***","marcoc***","amerig***","marcel***","lucabr***","gianma***","marioi***"],a=["Book of Ra 6 deluxe","Book of Dead","Starburst","Book of Ra Deluxe","Gonzo's Quest","Just Jewels Deluxe","Sizzling Hot Deluxe","100 Joker Staxx","Dead or Alive 2","Dolphin`s Pearl Deluxe","Allways Fruits","Blood Suckers touch","Book of Ra Classic","Reel Steal","Piggy Riches touch","Fruit Shop touch","Lord of the Ocean Deluxe","Pyramid","Goldilocks & Wild Bears"];for(let m=0;m<20;m++){function i(){let e=n[Math.floor(Math.random()*Math.floor(n.length))],o=Math.floor(440*Math.random())+10,i=a[Math.floor(Math.random()*Math.floor(a.length))];return o>=100&&(o=10*Math.round(o/10)),'<div class="swiper-slide"><div>'+e+"&nbsp</div><div>"+o+"C$&nbsp</div><div> in "+i+"</div></div>"}document.querySelector(".swiper-wrapper").insertAdjacentHTML("beforeend",i())}const t=new URLSearchParams(window.location.search).get("lang");let r;function l(e){let o=null,n=[];const a=location.search.substr(1).split("&");for(let i=0;i<a.length;i++)n=a[i].split("="),n[0]===e&&(o=decodeURIComponent(n[1]));return o}r=t||navigator.language,console.log("Browser language:",r),new Swiper(".swiper-container",{slidesPerView:"auto",speed:1e3,autoplay:{delay:3e3,disableOnInteraction:!1},on:{init:function(){const e=document.querySelector(".swiper-wrapper");"en-NZ"===r?e&&(e.innerHTML=e.innerHTML.replace(/AUD/g,"NZD")):"cs"===r.slice(.2)?e&&(e.innerHTML=e.innerHTML.replace(/€/g,"Kč")):["de-CH","it-CH","fr-CH"].includes(r)&&e&&(e.innerHTML=e.innerHTML.replace(/€/g,"CHF"))}}}).init();const s=l("game"),c=-1!==["sb","bord","bod","buffalo","gq","fpg","hh","hhrip","dp","fss","wolfgold","hlw2022","hh","hhrip","fss"].indexOf(s)?s:"sb";var d=window.innerWidth<768?"mobile":"desktop";const u=document.querySelector(".banner");u.style.backgroundImage=`url(img/banners/${c}/${d}.webp)`,window.addEventListener("resize",function(){d=window.innerWidth<768?"mobile":"desktop",u.style.backgroundImage=`url(img/banners/${c}/${d}.webp)`});let p=l("app_name");if(null!==p&&p.length){document.getElementById("app_name").innerHTML=p+" <span>da</span>";const g=document.getElementById("content_app_name");g.innerHTML="<span>Solo applicazione</span> "+p,g.style.display="block"}});