function fnSetTopMenuEvent(){$(".softnyx_menu > li").off();var n=$(window).width()+14;n<1025?($("ul.sub").hide(),$(".menu_1th").css("color","#222"),$(".softnyx_menu > li").click(function(){$(".menu_1th").css("color","#222");$(this).find("ul.sub").css("display")==="block"?$("ul.sub").hide():($("ul.sub").hide(),$(this).find("span").eq(0).css("color","orange"),$(this).find("ul.sub").stop().slideToggle(300))})):($("ul.sub").hide(),$(".menu_1th").css("color","#fff"),$(".menu_2th").css("color","#fff"),$(".softnyx_menu > li").hover(function(){$("ul.sub").hide();$(this).find("ul.sub").stop().slideToggle(300)},function(){$("ul.sub").hide()}))}function goyoutube(){var n=window.location.href.toLowerCase();n.includes("wt")||n.includes("wolfteam")?window.open("https://www.youtube.com/c/WolfTeamLatinoOficial/featured","_blank"):n.includes("rk")||n.includes("rakion")?window.open("https://www.youtube.com/channel/UCH5PYPdfHbKxJLbGU4xaE6g","_blank"):n.includes("op7")||n.includes("operation7")?window.open("https://www.youtube.com/c/Operation7LatinoSoftnyx","_blank"):window.open("https://www.youtube.com/c/WolfTeamLatinoOficial/featured","_blank")}function fnLoginDisplay(n){n?($(".login_false").css("display","none"),$(".login_true").css("display","block"),$(".login_true").closest("div").addClass("on"),$(".login_false_m").css("display","none"),$(".login_true_m").css("display","inline-block")):($(".login_false").css("display","block"),$(".login_true").css("display","none"),$(".login_false").closest("div").removeClass("on"),$(".login_false_m").css("display","inline-block"),$(".login_true_m").css("display","none"))}function showGlobalMenu(){$("#globalMenuList").show()}function hideGlobalMenu(){$("#globalMenuList").hide()}function moveContent(){$("html, body").stop(!0,!0).animate({scrollTop:0},500,"swing")}function fnSetLogin(){var n=_global_url+"/member/login";fnPageMoveReturnGame(n)}function fnSetLogOut(){var n=_global_url+"/member/LogOut?prev_page="+encodeURIComponent(_global_url);location.href=n}function fnCallAjax(n,t,i,r){$.ajax({type:"POST",url:n,dataType:"json",data:t,global:r===undefined||r===null?!0:!1,success:function(n){n.Code===-8999?(alert(n.Message),fnSetLogin()):n.Code===-9e3?(alert(n.Message),fnSetLogOut()):i(n)},error:function(n,t,i){alert("code:"+n.status+"\nerror:"+i)}})}function fnDigitComma(n){var i=n.val().replace(/[^0-9.]/g,""),r=new RegExp(/(-?\d+)(\d{3})/),u=i.indexOf(".",0),t=i.split(".");for(t[0]=Number(t[0]).toString();r.test(t[0]);)t[0]=t[0].replace(r,"$1,$2");i=u>-1?t[0]+"."+t[1]:t[0];n.val(i)}function fnSetComma(n){var i=n.replace(/[^0-9.]/g,""),r=new RegExp(/(-?\d+)(\d{3})/),u=i.indexOf(".",0),t=i.split(".");for(t[0]=Number(t[0]).toString();r.test(t[0]);)t[0]=t[0].replace(r,"$1,$2");return u>-1?t[0]+"."+t[1]:t[0]}function fnPageMoveSetParam(n,t){location.href=n+"?"+fnSetPrevPage(t)}function fnPageMoveReturnGame(n){location.href=n+"?"+fnSetPrevPage("returngame")}function fnGetUrlParamDefault(n,t){var i=getUrlParameter(n.toLowerCase());return(i===undefined||i===null)&&(i=t),i}function fnSetPrevPage(n){return n+"="+encodeURIComponent(location.href)}function fnBackPage(n){var t=getUrlParameter(n);t!==null&&t!==undefined?location.href=t:history.back()}function fnBackPageWithUrl(n,t){var i=getUrlParameter(n);location.href=i!==null&&i!==undefined&&i!==""?i:t}function getUrlParameter(n){for(var u=window.location.search.substring(1),r=u.split("&"),t,i=0;i<r.length;i++)if(t=r[i].split("="),t[0].toLowerCase()===n)return t[1]===undefined?!0:decodeURIComponent(t[1])}function setCookie(n,t,i){var r=new Date,u;r.setTime(r.getTime()+i*864e5);u="expires="+r.toUTCString();document.cookie=n+"="+t+";"+u+";path=/"}function getCookie(n){for(var t,r=n+"=",u=document.cookie.split(";"),i=0;i<u.length;i++){for(t=u[i];t.charAt(0)==" ";)t=t.substring(1);if(t.indexOf(r)==0)return t.substring(r.length,t.length)}return""}function deleteCookie(n){var t=getCookie(n);t&&setCookie(n,t,new Date(1))}function fnCheckSpecial(n){return/[^A-Za-z0-9ㄱ-ㅎ가-힣ㅏ-ㅣ?¿]/gi.test(n)}function CheckPassword(n){let t=n.search(/[0-9]/g),i=n.search(/[a-z]/ig),r=n.search(/[`~!@@#$%^&*|₩₩₩'₩";:₩/?]/gi);return n.length<8||n.length>20?(alert("8자리 ~ 20자리 이내로 입력해주세요."),!1):n.search(/\s/)!=-1?(alert("비밀번호는 공백 없이 입력해주세요."),!1):t<0||i<0||r<0?(alert("영문,숫자,특수문자를 혼합하여 입력해주세요."),!1):t<0&&i<0||i<0&&r<0||r<0&&t<0?(alert("영문,숫자, 특수문자 중 2가지 이상을 혼합하여 입력해주세요."),!1):/(\w)\1\1\1/.test(n)?(alert("같은 문자를 4번 이상 사용하실 수 없습니다."),!1):!0}function fnCheckSpecialExceptionSpace(n){return/[^A-Za-z0-9ㄱ-ㅎ가-힣ㅏ-ㅣ\s]/gi.test(n)}function fnCheckPasswordPattern(n){return!/[0-9]/.test(n)||!/[a-zA-Z]/.test(n)||!/[~!@#$%^&*()_+|<>?:{}]/.test(n)||n.length<8?(alert("비밀번호는 8자리 이상 문자, 숫자, 특수문자로 구성하여야 합니다."),!1):!0}function validateEmail(n){return/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i.test(n)}function fnCheckNumberEngCombi(n){return/[0-9]/.test(n)&&/[a-zA-Z]/.test(n)&&!/[~!@#$%^&*()_+|<>?:{}]/.test(n)&&!/[ㄱ-ㅎ|ㅏ-ㅣ|가-힣]/.test(n)?!0:!1}function fnCheckOnlyNumberEng(n){return/^[A-Za-z0-9+]*$/.test(n)}function fnCheckOnlyEng(n){return/^[A-Za-z]*$/.test(n)}function fnHideString(n){var t="",r,i;if(n.indexOf("@")>-1){if(r=n.split("@"),r.length===2){for(t=r[0].substring(0,3),i=0;i<r[0].length-3;i++)t=t+"*";t=t+"@"+r[1]}}else for(t=n.substring(0,3),i=0;i<n.length-3;i++)t=t+"*";return t}function LoadPlugin(){return isOpera?Error_LoadPlugin:isChrome?Error_LoadPlugin:isIE||isIE11?LoadPluginIE():isFF?(navigator.plugins.refresh(!1),LoadPluginFF()):isSafari?(navigator.plugins.refresh(!1),LoadPluginFF()):Error_LoadPlugin}function RegeditCheck(){return isOpera?Error_LoadPlugin:isChrome?Error_LoadPlugin:isIE||isIE11?Regedit_CheckIE():isFF||isSafari?(navigator.plugins.refresh(!1),Regedit_CheckFF()):Error_LoadPlugin}function Regedit_CheckIE(){try{var n=document.myX.Check_Regedit();return n!==1?Error_LoadIE:Load_PluginSucess}catch(t){return Error_LoadIE}}function Regedit_CheckFF(){for(var n=0;n<navigator.mimeTypes.length;n++)if(FFID===navigator.mimeTypes[n].type&&navigator.mimeTypes[n].enabledPlugin!=null)return Load_PluginSucess;return Error_LoadIE}function LoadPluginIE(){var t='<OBJECT id="myX" CLASSID="'+ClassID+'" width="0" height="0"><\/OBJECT>',n=document.getElementById("hidIELauncher");if(n)document.getElementById("hidIELauncher").innerHTML="",n.innerHTML=t;else return Error_LoadIE;return LoadIE}function LoadPluginFF(){var t='<EMBED ID="myX" WIDTH="0" HEIGHT="0" TYPE="'+FFID+'"  style="visibility: hidden"> <\/EMBED>',n=document.getElementById("hidIELauncher");if(n)n.innerHTML="",n.innerHTML=t;else return Error_LoadFF;return LoadFF}function Start_GameLauncher(n,t,i,r,u){try{var e="",f=document.getElementById("myX");if((isIE||isIE11)&&(f=document.myX),f!==null&&f!=="")e=f.Load_Event(u,n,t,i,r);else return LauncherNotuse;return e==="1"||e===1?LauncherUser:LauncherNotuse}catch(o){return alert(o),LauncherNotuse}}function Check_Version(){var n,t;try{if(n=document.getElementById("myX"),t="",(isIE||isIE11)&&(n=document.myX),n!==null&&n!==""&&LauncherVersion===n.CheckVersion())return"T"}catch(i){return"F"}return"F"}function isWinDesktop(){if(navigator.platform)return"win16|win32|win64".indexOf(navigator.platform.toLowerCase())<0?!1:!0}function bar(){}function getProtocolLauncherUrl(n,t,i,r){return"softnyxweblauncher"+r+"://launcher_Start?INTID="+n+"?KEY="+t+"?GAME="+i}function Start_ProtocolLauncher(n,t,i,r,u,f){document.write('<input type="text" id="hidweblaunchstart" style="width:0px; height:0px"><\/input>');var o=getProtocolLauncherUrl(n,t,i,r),e=$("#hidweblaunchstart")[0];isSupported=!0;e.focus();e.onblur=function(){isSupported=!0};location.href=o;settiem=500;setTimeout(function(){e.onblur=null;protocolLauncherResult(u,f);$("#hidweblaunchstart").remove()},settiem)}function protocolLauncherResult(n,t){t.length>0&&alert(getMsg(COM_logoutfacebook));isSupported===!1&&(alert(getMsg(COM_closeprograms)),top.location.href=getLauncherUrl())}function getLauncherUrl(){var n=n=getPotalDomain()+"/support/lauhcherguide";return!isChrome||isOpera||isEdge||(n=n+"?type=CR"),n}function getPotalDomain(){var n=location.host.toLowerCase();return n.indexOf("softnyx.net")>=0?"//www.softnyx.net":n.indexOf("softnyx.com")>=0?"//www.softnyx.com":n.indexOf("softnyxbrasil.com")>=0?"//www.softnyxbrasil.com":n.indexOf("softnyx-korea.net")>=0?"//www.softnyx-korea.net":n.indexOf("softnyx-korea.com")>=0?"//www.softnyx-korea.com":n.indexOf("softnyx-mena.com")>=0?"//www.softnyx-mena.com":n.indexOf("softnyx-is.com")>=0?"//www.softnyx-is.com":"//112.175.228.40:8881"}function goWebLauncherStart(){var n,t;return isChrome||isEdge||isOpera?!0:(n=RegeditCheck(),n==="1"?(t=Check_Version(),t==="T"?!0:!1):!1)}function getWebLauncherUrl(n){var t="",i;return n==="Wolfteam"?t="WT":n==="Rakion"?t="RK":n==="Gunbound"?t="GB":n==="Lovebeat"?t="LB":n==="Operation7"&&(t="OP"),i=window.location.host,i.indexOf(":")>=0?getPotalDomain()+"/support/gamestart?g="+n+"&ReturnGame="+encodeURIComponent("https://"+window.location.host+"?weblauncher=true&g="+t):getPotalDomain()+"/support/gamestart?g="+n+"&ReturnGame="+encodeURIComponent("http://"+window.location.host+"?weblauncher=true&g="+t)}window.onload=function(){$(".lang").click(function(){$(".lang > .menu").slideToggle(300);$(".member > .menu").hide()});$(".member").click(function(){$(".member > .menu").slideToggle(300);$(".lang > .menu").hide()});$(".btn_top_allmenu").click(function(){$(".nav_area").fadeIn().css("display","flex");$("body, html").css("overflow","hidden")});$(".btn_nav_close").click(function(){$(".nav_area").fadeOut();$("body, html").css("overflow","inherit");$(".menu_1th").css("color","#222");$("ul.sub").hide()});fnSetTopMenuEvent();$(document).on("click",function(){var n=event.target.className;n!=="member"&&n!=="member on"&&n!=="lang"&&($(".member > .menu").hide(),$(".lang > .menu").hide())});$(window).resize(fnSetTopMenuEvent)};Number.prototype.SetComma=function(){return fnSetComma(this.toString())};String.prototype.SetComma=function(){return fnSetComma(this)};var isIE=navigator.userAgent.indexOf("MSIE")!==-1,isIE11=navigator.userAgent.indexOf("Trident")!==-1,isFF=navigator.userAgent.indexOf("Firefox")!==-1,isChrome=navigator.userAgent.indexOf("Chrome")!==-1,isSafari=navigator.userAgent.indexOf("Safari")!==-1,isOpera=navigator.userAgent.indexOf("OPR")!==-1,isEdge=navigator.userAgent.indexOf("Edge")!==-1,ClassID="CLSID:8F184CF0-0C87-4D4C-A343-355DE74E6BCC",FFID="application/softnyxlauncher,version=1.0",LauncherVersion="20121015_SoftnyxWeb",LoadIE="0",LoadFF="0",Load_PluginSucess="1",Error_LoadPlugin="2",Error_LoadIE="3",Error_LoadFF="3",LauncherUser="4",LauncherNotuse="5",Sucess="9",isSupported=!0;isChrome||LoadPlugin()