var popupExpect=null,popupLogin=null,popupIntegral=null;(function(c,g){a();e();b();f();function a(){popupLogin=new Popup({name:"login",type:"other",system:"pc",openButton:".menu .login-box .button",callback:function(){$(".menu .menu-login .button").on("click",function(){$(".menu .menu-left .close").click()})}});popupIntegral=new Popup({name:"integral",type:"other",system:"pc",openButton:".menu .logined-box .button",callback:function(){$(".menu .menu-login .button").on("click",function(){});$("#integral .button").on("click",function(){popupIntegral.close()})}});popupExpect=new Popup({name:"expect",type:"other",system:"pc",openButton:".expect",callback:function(){}})}function e(){var i=$("#float .bg-music-btn");var h=g.getElementById("bg-music-btn-svg");var d=g.getElementById("bg-music");d.volume=0.3;i.on("click",function(){if($(this).hasClass("active")){$(this).removeClass("active").children("span").html("OFF");d.pause()}else{$(this).addClass("active").children("span").html("ON");d.play()}h.onclick()})}function b(){var d=$(".menu");$(".menu-btn").on("click",function(){d.addClass("active")});$(".menu .close").on("click",function(){d.removeClass("active")});$(".logined-box .button").on("click",function(){popupIntegral.open()})}function f(){var h=$("#float .float-bottom .provision");var d=$("#float .float-bottom");h.on("click",function(){d.addClass("active")});d.find(".terms").on("click",function(){if(d.hasClass("active")){d.removeClass("active")}});$("#body").on("click",function(){if(d.hasClass("active")){d.removeClass("active")}})}})(window,document);$(window).on("load",function(){transferParams()});function transferParams(){$("a").on("click",function(){var b="",a=$(this).attr("href");if(a.indexOf("void(0)")==-1){if((a.indexOf("http://")>-1||a.indexOf("https://")>-1)&&(a.indexOf("el.gaeamobile.com")==-1)){return}a=a.split("#");if(a.length>1){b=a[0]+window.location.search+"#"+a[1]}else{b=a[0]+window.location.search}$(this).attr("href",b)}})}function getUrlParam(a){var d=window.location.search.substr(1);var b=new RegExp("(^|&)"+a+"=([^&]*)(&|$)","i");var c=d.match(b);if(c!=null){return decodeURI(c[2])}return null};