var Loader = function () { }; Loader.prototype = { require: function (scripts, callback) { this.loadCount = 0; this.totalRequired = scripts.length; this.callback = callback; for (var i = 0; i < scripts.length; i++) { this.writeScript(scripts[i]); } }, loaded: function (evt) { this.loadCount++; if (this.loadCount == this.totalRequired && typeof this.callback == 'function') this.callback.call(); }, calls: function() { this.loadCount++; if (this.loadCount == this.totalRequired && typeof this.callback == 'function') this.callback.call(); }, writeScript: function (src) { var self = this; var s = document.createElement('script'); s.type = "text/javascript"; s.async = true; s.src = src; if(s.addEventListener) s.addEventListener('load', function (e) { self.loaded(e); }, false); else { s.attachEvent('onload', self.calls); this.loadCount++; if (this.loadCount == this.totalRequired && typeof this.callback == 'function') this.callback.call(); } var head = document.getElementsByTagName('head')[0]; head.appendChild(s); } } function nsv_loader_script(srcURL, loadFunction) { var script = document.createElement('script'); script.type = 'text/javascript'; script.charset = "utf-8"; script.src = srcURL; document.getElementsByTagName('head')[0].appendChild(script); }; var neoStartURL = "//nscreen.neoebiz.co.kr/xJqScreenView.php?data=ilyo_s&2019120308"; neoStartURL += (document.referrer!="")?"&ref="+encodeURIComponent(document.referrer):""; var neoCookieSet = new function() { this.cReset = function(cPID){ this.cSetting(cPID, '', 0); }; this.cSetting = function(cKey, cValue, cTime) { var todayDate = new Date(); todayDate.setTime( todayDate.getTime() + cTime ); document.cookie = cKey + "=" + escape( cValue ) + "; path=/; expires=" + todayDate.toGMTString() + ";"; }; this.cGetValue = function(name) { var nameOfCookie = name + "="; var x = 0; while ( x <= document.cookie.length ) { var y = (x+nameOfCookie.length); if ( document.cookie.substring( x, y ) == nameOfCookie ) { if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) endOfCookie = document.cookie.length; return unescape( document.cookie.substring( y, endOfCookie ) ); } x = document.cookie.indexOf( " ", x ) + 1; if ( x == 0 ) break; } }; if(this.cGetValue("nsOpen")!="Y") { nsv_loader_script(neoStartURL); }; }; var neoLoadScript = new function() { this.createScript = function(srcURL, loadFunction) { var script = document.createElement('script'); script.type = 'text/javascript'; script.charset = "utf-8"; script.src = srcURL; document.getElementsByTagName('head')[0].appendChild(script); }; this.createScript("//nscreen.neoebiz.co.kr/xCDataD.php"); };