/* GNB ±â´É ±¸ÇöÀ» À§ÇÑ function.*/ function uiGnbSet(){ if(!(document.compatMode && document.compatMode=="BackCompat")){ if ( document.getElementById('GNB') != null ) { document.getElementById('GNB').className = "gnb_dtd"; } } if ( document.getElementById('GNB_bx') != null ) { document.getElementById('GNB_bx').style.minWidth = document.getElementById('GNB').clientWidth + "px"; } } function uiGnbMnuOn(no){ for(var i=1;i<3;i++){ document.getElementById('GNB_mn0'+i).getElementsByTagName('a')[0].className = "gnb_m"; document.getElementById('GNB_mn0'+i).getElementsByTagName('div')[0].style.display = "none"; } document.getElementById('GNB_mn0'+no).getElementsByTagName('a')[0].className = "gnb_m on"; document.getElementById('GNB_mn0'+no).getElementsByTagName('div')[0].style.display = "block"; } function uiGnbMnuOff(no){ document.getElementById('GNB_mn0'+no).getElementsByTagName('a')[0].className = "gnb_m"; document.getElementById('GNB_mn0'+no).getElementsByTagName('div')[0].style.display = "none"; } var u_gnb_gameschban_tog = 1; function uiGnbGameSchBan() { if(u_gnb_gameschban == 1) { if(u_gnb_gameschban_tog == 1) { u_gnb_gameschban_tog = 0; document.getElementById('GNB_game_ban').style.display = "none"; document.getElementById('GNB_game_sch').getElementsByTagName('input')[0].focus(); } else { u_gnb_gameschban_tog = 1; document.getElementById('GNB_game_ban').style.display = "block"; } }else { try { if(u_gnb_gameschban_tog == 1) { document.getElementById('GNB_game_ban').style.display = "none"; } } catch ( e ) {} } }/* Netmarble Cookie */ NetmarbleCookie = { GetValue : 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; } return ""; }, GetSubValue : function ( realName, realValue ) { var strCookie = this.GetValue(realName, false); if(strCookie == "") return ""; var nPos = strCookie.indexOf(realValue+":"); var nLen = realValue.length + 1; var strTempName, strTempCookie; if(nPos != -1) { strTempName = strCookie.substring(nPos, nLen); strTempCookie = strCookie.substring(nPos+nLen, strCookie.length); nPos = strTempCookie.indexOf("|"); return unescape(strTempCookie.substring(0, nPos)); } else return ""; }, SetSubValue : function( name, subName, value ) { var todayDate = new Date(); todayDate.setHours(8); todayDate.setMinutes(59); todayDate.setSeconds(59); todayDate.setDate( todayDate.getDate() + 1 ); this.SetSubValueByExpireDate( name, subName, value, todayDate ); }, SetSubValueByExpireDate : function( name, subName, value, expire_date ) { if(name == '' || name == null) return; var strCookie = this.GetValue(name); var nPos = strCookie.indexOf(subName+":"); var nLen = subName.length + 1; var strTemp1, strTemp2; if(value == '' || value == null) { strTemp1 = strCookie.substring(0, nPos); strTemp2 = strCookie.substring(nPos+nLen, strCookie.length); nPos = strTemp2.indexOf("|") + 1; strTemp2 = strTemp2.substring(nPos, strCookie.length); strCookie = strTemp1 + strTemp2; } else { if(nPos != -1) { strTemp1 = strCookie.substring(0, nPos+nLen); strTemp2 = strCookie.substring(nPos+nLen, strCookie.length); nPos = strTemp2.indexOf("|"); strTemp2 = strTemp2.substring(nPos, strCookie.length); strCookie = strTemp1 + escape(escape(value)) +strTemp2; } else strCookie = strCookie + subName + ":" + escape(escape(value)) + "|"; } document.cookie = name+ "=" + strCookie + "; path=/; expires=" + expire_date.toGMTString() + "; domain=.netmarble.net"; }, SetValue : function( name, value ) { var todayDate = new Date(); todayDate.setHours(8); todayDate.setMinutes(59); todayDate.setSeconds(59); todayDate.setDate( todayDate.getDate() + 1 ); this.SetSubValueByExpireDate( name, '', value, todayDate ); }, SetValueByExpireDate : function ( name, expire_date ) { this.SetSubValue( name, '', 'y', expire_date ); } } /* rd È£Ãâ ±â´É ¼³Á¤ º¯¼ö */ var __NRD_ID = '__NRD_ID'; var __CRD_ID = '__CRD_ID'; var __CRD_ENABLED__ = true; var __NRD_ENABLED__ = true; var nSW = screen.width; var nSH = screen.height; var nPointW = nSW / 2; var nPointH = nSH / 2 - 40; var n_gnb_popup_url = ''; var n_gnb_popup_height = 0; var n_gnb_popup_width = 0; var wptg_tagscript_vars = wptg_tagscript_vars || []; var ggtg_tagscript_vars = ggtg_tagscript_vars || []; /* ³Ý¸¶ºí GNB */ var NetmarbleGNB = { RdCode : function ( ) { return { "BI" :"201304110065", "EventBI" :"", "Tving" :"201304110068", "Movie" :"201304110069", "Comix" :"201304110070", "Cash" :"201304110071", "CC" :"201304110072", "Logout" :"201304110074", "Login" :"201304110073", "SmartGame" :"201304110067 ", "WebGame" :"201304110066", "MyGameButton" :"201304110077", "CBTButton" :"201304110076", "OBTButton" :"201304110075" }; }, Init : function() { /* ¼­ºê µµ¸ÞÀÎÀ¸·Î »çÀÌÆ® ÄÚµå º¸Á¤ (Nate)*/ if( window.location.host == 'nate.netmarble.net') { NetmarbleGNB.SiteCode = '30'; } else { NetmarbleGNB.SiteCode = '-1'; } NetmarbleGNB.ServiceCode = 'error'; NetmarbleGNB.Type = ''; NetmarbleGNB.IsLogin = false; NetmarbleGNB.UserID = ''; NetmarbleGNB.Width = '980'; NetmarbleGNB.Align = 'center'; NetmarbleGNB.HubSiteCode = ''; /* CSS */ var gnb_css = document.createElement( 'link' ); gnb_css.setAttribute( 'rel','stylesheet' ); gnb_css.setAttribute( 'type','text/css' ); gnb_css.setAttribute( 'href','//c3.img.netmarble.kr/web/netmarble/gnb/v/css/gnb_v2.css' ); (document.getElementsByTagName('head')[0]).appendChild( gnb_css ); if ( NetmarbleGNB.Type == 'pop' ) { // none... } else { var div_GNB_bx = document.createElement( 'div' ); div_GNB_bx.setAttribute( 'id', 'GNB_bx' ); if ( NetmarbleGNB.Align == 'left' ) { div_GNB_bx.className = 'gnbAlignLeft'; } if ( document.body == null ) { document.lastChild.appendChild( div_GNB_bx ); } else { document.body.insertBefore(div_GNB_bx, document.body.firstChild); } } return true; }, /* ÀÎÁõ °øÅë Lib */ LoadSignJs : function() { var auth_js = document.createElement( 'script' ); auth_js.setAttribute( 'type','text/javascript' ); auth_js.setAttribute( 'src','//sign.netmarble.net/getBeacon' ); (document.getElementsByTagName('head')[0]).appendChild( auth_js ); }, /* gnb ³ëÃâ ½ÃÀÛ */ Show : function() { this.Layout(); /* gnb Layout */ this.LoadData(); /* Àüü°ÔÀÓ, ½º¸¶Æ®Æù°ÔÀÓ, ¹è³Ê µî ·Îµå */ this.LoadSignJs(); /* ÀÎÁõ js */ // ¹Ù·Î°¡±â °Ë»ö if ( NetmarbleGNB.Type == 'event' || NetmarbleGNB.Type == 'pop' || NetmarbleGNB.Type == 'simple' ) { // À̺¥Æ®Çü, ÆË¾÷Çü, ½ÉÇÃÇüÀº ³ëÃâX } else { gnbGameSearch = new NetmarbleGnbSearch(); gnbGameSearch.setObj('gnbGameSearch','txtNetmarbleGameSearch', '', 'ifrNetmarbleGameSearch'); gnbGameSearch.setResultFunction( 'NetmarbleGNB.ShowGameSearchResult' ); gnbGameSearch.setData(arrNetmarbleGame); gnbGameSearch.setErrData(''); gnbGameSearch.setErrKey(''); if ( strSchPromotionUrl != null && strSchPromotionUrl != '' ) { gnbGameSearch.setGoUrl(strSchPromotionUrl); } } try { uiGnbGameSet('bo'); } catch (e) {}; try { uiGnbGameSet('web');} catch (e) {}; try { uiGnbGameSchBan() } catch (e) {}; uiGnbSet(); return true; }, /* GNB ·¹À̾ƿô */ Layout : function() { if ( NetmarbleGNB.Type == 'pop') { // none } else { var htmlLayout = ''; htmlLayout= '
' + '
' + this.Logo() + ( NetmarbleGNB.Type == 'hub' ? '
' : '' ) + /* Çãºê»çÀÌÆ® °ÔÀÓ ¸Þ´º */ '
' + '
'; if ( NetmarbleGNB.Type == 'event' ) { /* ³ëÃâ³»¿ë ¾øÀ½ */ } else if ( NetmarbleGNB.Type == 'simple' ) { htmlLayout += ''; } else { htmlLayout += ''; } htmlLayout += this.LoginButton() + '
' + /* [GNB À̹ÌÁö ¹è³Ê] : ½ÉÇÃÇü,À̺¥Æ®Çü,ÇãºêÇüÀÇ °æ¿ì ³ëÃâÇÏÁö ¾ÊÀ½. */ (( NetmarbleGNB.Type == 'simple' || NetmarbleGNB.Type == 'event' ) ? '' : '
' ); /* End of [GNB À̹ÌÁö ¹è³Ê] */ '
'; var objGNB_bx = document.getElementById('GNB_bx') if ( objGNB_bx == null ) { objGNB_bx = document.createElement('GNB_bx'); objGNB_bx.setAttribute('id','GNB_bx'); if ( document.body == null ) { document.lastChild.appendChild( objGNB_bx ); } else { document.body.insertBefore( objGNB_bx, document.body.firstChild ); } } objGNB_bx.innerHTML = (htmlLayout + this.RD() ); /* º» »çÀÌÆ® ¹Ù·Î°¡±â */ var goBody = document.createElement('a'); goBody.href = '#sub_contents'; goBody.className = 'gnb_hide'; goBody.setAttribute('alt','º» »çÀÌÆ® ¹Ù·Î°¡±â'); document.body.insertBefore( goBody, document.body.firstChild ); } /* PV */ document.body.insertBefore( this.PV(), document.body.firstChild ); /* Creteo */ /* if ( NetmarbleGNB.Type == '' ) { var creteo_id = 8448; if ( creteo_id != null && creteo_id != 0 ) { document.body.insertBefore( this.Creteo( creteo_id ), document.body.firstChild ); } } */ /* Ÿ°ÔÆÃ °ÔÀÌÃ÷ ¸®Å¸°ÔÆÃ ÄÚµå ¼³Á¤ */ if ( NetmarbleGNB.Type == '' ) { var tgStart = null; // ³ëÃâ½ÃÀÛÀÏ var tgEnd = null; // ³ëÃâÁ¾·áÀÏ var tgTi = null; // ±¤°íÁÖ ÄÚµå var tgService = '*'; // Ÿ°ÔÆÃ ³ëÃâÇÒ ¼­ºñ½º : Àüü(*), ƯÁ¤¼­ºñ½º(±¸ºÐÀÚ´Â|) tgStart = new Date( 2015, 0, 11); // ³ëÃâ½ÃÀÛÀÏ tgEnd = new Date( 2015, 8, 30) ; // ³ëÃâÁ¾·áÀÏ(2015³â 2¿ù28ÀϱîÁö) tgTi = "20220"; // ±¤°íÁÖ ÄÚµå tgService = "*"; if ( tgStart != null && tgEnd != null && tgTi != null ) { if ( tgService == '*' || (('|'+tgService+'|').indexOf( '|'+ NetmarbleGNB.ServiceCode +'|' ) >= 0) ) { var now = new Date(); if ( now >= tgStart && now <= tgEnd ) { var rtScript = this.RetargetingScript(); var rtTag = this.Retargeting(); wptg_tagscript_vars.push( (function() { return { ti : tgTi, /*±¤°íÁÖ ÄÚµå*/ ty : "Home", /*Æ®·¡Å·ÅÂ±× Å¸ÀÔ*/ device: "web" /*µð¹ÙÀ̽º Á¾·ù (web ¶Ç´Â mobile)*/ }; })); document.body.insertBefore( rtScript, document.body.firstChild ); document.body.insertBefore( rtTag, rtScript ); } } } } /* ±¸±Û ¸®Å¸°ÔÆÃ ÄÚµå ¼³Á¤ */ if ( NetmarbleGNB.Type == '' ) { var ggStart = null; // ³ëÃâ½ÃÀÛÀÏ var ggEnd = null; // ³ëÃâÁ¾·áÀÏ var ggTi = null; // ±¤°íÁÖ ÄÚµå var ggService = '*'; // Ÿ°ÔÆÃ ³ëÃâÇÒ ¼­ºñ½º : Àüü(*), ƯÁ¤¼­ºñ½º(±¸ºÐÀÚ´Â|) ggStart = new Date( 2015, 2, 16); // ³ëÃâ½ÃÀÛÀÏ ggEnd = new Date( 2016, 2, 16) ; // ³ëÃâÁ¾·áÀÏ ggTi = "963395494"; // ±¤°íÁÖ ÄÚµå ggService = "*"; if ( ggStart != null && ggEnd != null && ggTi != null ) { if ( ggService == '*' || (('|'+ggService+'|').indexOf( '|'+ NetmarbleGNB.ServiceCode +'|' ) >= 0) ) { var now = new Date(); if ( now >= ggStart && now <= ggEnd ) { var ggrtScript = this.GoogleRetargetingScript(); var ggrtTag = this.GoogleRetargeting(); ggtg_tagscript_vars.push( (function() { return { ti : ggTi, /*±¤°íÁÖ ÄÚµå*/ ty : "Home", /*Æ®·¡Å·ÅÂ±× Å¸ÀÔ*/ device: "web" /*µð¹ÙÀ̽º Á¾·ù (web ¶Ç´Â mobile)*/ }; })); document.getElementsByTagName('head')[0].appendChild(ggrtScript); document.getElementsByTagName('head')[0].appendChild(ggrtTag); } } } } } , LoadData : function () { var Now = new Date('2023', '5','25','23','21','21' ); var WebGameList = { "layout_display_type":"round", /* 2´ÜÀ¸·Î ³ëÃâµÇ´Â À帣 : ceil, round, floor */ "adult": [ { "id":"1", "name":"RPG", "css":"rpg", "layout":"1", "hidden_layout":"false", "game": [ { "id":"dho", "name":"´ëÇ×ÇØ½Ã´ë", "desc":"Ǫ¸¥ ´ë¾ç¿¡ ÆîÃÄÁö´Â ´ç½Å¸¸ÀÇ ¸ðÇè°ú ³¶¸¸!", "url":"http://dho.netmarble.net/", "target":"_top", "rdcode":"201405260184", "icon":"N" } , { "id":"yaburi", "name":"¾ßäºÎ¶ô¸®", "desc":"ÀÚ¿¬À» ¹è°æÀ¸·Î ÆîÃÄÁö´Â ÇÑÆíÀÇ µ¿È­ °°Àº ijÁÖ¾ó RPG", "url":"http://yaburi.netmarble.net/main.asp", "target":"_top", "rdcode":"201405260245", "icon":"" } ], "sub": { } } , { "id":"2", "name":"¾×¼Ç", "css":"ac", "layout":"1", "hidden_layout":"false", "game": [ { "id":"mstar", "name":"Ŭ·´¿¥½ºÅ¸", "desc":"365ÀÏ ³í½ºÅé Ŭ·´ÆÄƼ°¡ ¿­¸°´Ù! Ŭ·´ ¿¥½ºÅ¸!", "url":"http://mstar.netmarble.net/", "target":"_top", "rdcode":"201405260157", "icon":"N" } ], "sub": { } } , { "id":"16", "name":"½ºÆ÷Ã÷/FPS", "css":"sports", "layout":"1", "hidden_layout":"false", "game": [ { "id":"overprime", "name":"ÆÄ¶ó°ï:µð¿À¹öÇÁ¶óÀÓ", "desc":"ÆÄ¶ó°ï: µð ¿À¹öÇÁ¶óÀÓ", "url":"https://paragon.netmarble.com", "target":"_top", "rdcode":"202212280003", "icon":"" } , { "id":"ma9", "name":"¸¶±¸¸¶±¸", "desc":"´ëÇѹα¹ No1 ¾ß±¸°ÔÀÓ!", "url":"http://ma9.netmarble.net", "target":"_top", "rdcode":"201405260166", "icon":"N" } , { "id":"sf2", "name":"½ºÆä¼ÈÆ÷½º2", "desc":"THE FPS RELOADED ½ºÆä¼ÈÆ÷½º2", "url":"http://sf2.netmarble.net/", "target":"_top", "rdcode":"201405260218", "icon":"N" } , { "id":"bill4", "name":"´ç±¸/Æ÷ÄϺ¼", "desc":"ÃÖ°íÀÇ Çã½½·¯µéÀÌ ¸ð¿´´Ù", "url":"http://game2.netmarble.net/igame/bill4/", "target":"_top", "rdcode":"202005110012", "icon":"" } ], "sub": { } } , { "id":"4", "name":"Æ÷Ä¿", "css":"poker", "layout":"1", "hidden_layout":"false", "game": [ { "id":"newpoker", "name":"´ºÆ÷Ä¿", "desc":"7+1ÀÇ Â¥¸´ÇÑ ½ÂºÎ", "url":"https://poker.winjoygame.com/poker?gameEname=newpoker", "target":"_blank", "rdcode":"201405260154", "icon":"" } , { "id":"low", "name":"·Î¿ì¹ÙµÏÀÌ", "desc":"ºí·¯ÇÎÀÇ Áø¼ö", "url":" https://poker.winjoygame.com/poker?gameEname=low", "target":"_blank", "rdcode":"201405260181", "icon":"N" } , { "id":"spoker2", "name":"7Æ÷Ä¿", "desc":"Á¤Åë Æ÷Ä¿ÀÇ ¹¦¹Ì", "url":"https://poker.winjoygame.com/poker?gameEname=spoker2", "target":"_blank", "rdcode":"201405260206", "icon":"N" } , { "id":"highlow", "name":"ÇÏÀ̷οì", "desc":"ÇÏÀÌ! ·Î¿ì! 2¸íÀÇ ½ÂºÎ", "url":" https://poker.winjoygame.com/poker?gameEname=7cardhighlow", "target":"_blank", "rdcode":"201405260227", "icon":"" } , { "id":"sutda", "name":"¼¸´Ù", "desc":"1940 ÇÑÆÇ½ÂºÎ ½ºÅ丮", "url":"https://poker.winjoygame.com/poker?gameEname=sutda", "target":"_blank", "rdcode":"201405260239", "icon":"" } , { "id":"hoola", "name":"ÈǶó", "desc":"½±°í, Àç¹ÌÀÖ´Â ¸ÅÁ÷Ä«µå", "url":"https://poker.winjoygame.com/poker?gameEname=hoola", "target":"_blank", "rdcode":"201405260266", "icon":"" } ], "sub": { } } , { "id":"3", "name":"°í½ºÅé", "css":"gostop", "layout":"1", "hidden_layout":"false", "game": [ { "id":"dbmatgo", "name":"´ë¹Ú¸Â°í", "desc":"»ýȰÇü ¸Â°í, ´ë¹Ú¸Â°í", "url":" https://gostop.winjoygame.com/gostop?gameEname=dbmatgo", "target":"_blank", "rdcode":"201405260160", "icon":"N" } , { "id":"tazza", "name":"Ÿ¥", "desc":"À̹ø¿£ °ÔÀÓÀÌ´Ù!", "url":" https://gostop.winjoygame.com/gostop?gameEname=tazza", "target":"_blank", "rdcode":"201405260191", "icon":"" } , { "id":"gostop", "name":"°í½ºÅé", "desc":"»ö´Ù¸¥ °í½ºÅéÀÇ »õ·Î¿î Àç¹Ì", "url":"https://gostop.winjoygame.com/gostop?gameEname=gostop", "target":"_blank", "rdcode":"201405260203", "icon":"" } , { "id":"mdgoplus", "name":"Ç÷¯½º¸Â°í", "desc":"À°±¤? º¹ºÒº¹? ¹«¾ùÀÌ °É·Áµµ ´ë¹Ú!", "url":"https://gostop.winjoygame.com/gostop?gameEname=mdgostopplus", "target":"_blank", "rdcode":"201405260233", "icon":"" } ], "sub": { } } , { "id":"5", "name":"º¸µå/ijÁÖ¾ó", "css":"board", "layout":"2", "hidden_layout":"false", "game": [ { "id":"baduk", "name":"¹ÙµÏ", "desc":"¹ÙµÏÀÇ ¸ðµç°Í ¹ÙµÏnTV", "url":"http://baduk.netmarble.net/", "target":"_top", "rdcode":"202009210012", "icon":"N" } , { "id":"moma", "name":"¸ðµÎÀǸ¶ºí", "desc":"Ãß¾ïÀÇ ±¹¹Î°ÔÀÓ, ¸ðµÎÀǸ¶ºí!", "url":"http://modoo.netmarble.net/", "target":"_top", "rdcode":"201405260178", "icon":"N" } , { "id":"yutgame", "name":"À·³îÀÌ", "desc":"ÆÀÀüÀ¸·Î ´õ¿í Áñ°Å¿öÁø õ»óÀÇ", "url":"http://game2.netmarble.net/igame/yutgame/", "target":"_top", "rdcode":"201405260200", "icon":"" } , { "id":"n_sachunsung", "name":"»çõ¼º", "desc":"¸Ó¸®°¡ ÁÁ¾ÆÁö´Â À¯ÄèÇÑ Å¬¸¯! New »çõ¼º", "url":"http://game2.netmarble.net/Sachunsung/", "target":"_top", "rdcode":"201405260221", "icon":"" } , { "id":"janggi2", "name":"Àå±â", "desc":"´ëÇѹα¹ Ç¥ÁØ Àå±â·ê äÅÃ! ³Ý¸¶ºíÀå±â", "url":"http://game2.netmarble.net/igame/janggi/", "target":"_top", "rdcode":"201405260248", "icon":"" } , { "id":"famchat", "name":"ij¸¯Ãª", "desc":"Music! Talk! Love! °íǰ°Ý À½¾Ç¹æ¼Û äÆÃ", "url":"https://chat.netmarble.net/famchat/", "target":"_top", "rdcode":"201405260257", "icon":"" } , { "id":"cmind", "name":"ijġ¸¶Àεå", "desc":"±×¸²À¸·Î ÅëÇÏ´Â »ö´Ù¸¥ Àç¹Ì! ijġ¸¶Àεå", "url":"https://cmind.netmarble.net/main.asp", "target":"_top", "rdcode":"201405260275", "icon":"" } , { "id":"picture", "name":"Ʋ¸°±×¸²Ã£±â", "desc":"²ÄÁî¿Í ÇÔ²²Çϴ Ʋ¸°±×¸²Ã£±â", "url":"http://game2.netmarble.net/igame/picture/", "target":"_top", "rdcode":"201405260290", "icon":"" } , { "id":"assult", "name":"¾î½äÆ®±â¾î", "desc":"·Îº¿µéÀÇ ÆÄ¿ö ÀüÅõ. ¾î½äÆ®±â¾î", "url":"http://game3.netmarble.net/cp_site/assult/", "target":"_top", "rdcode":"201405260293", "icon":"" } , { "id":"shanghai", "name":"»óÇÏÀÌ", "desc":"µÎ³ú ´Ü·Ã Ŭ¸¯ »óÇÏÀÌ", "url":"http://game2.netmarble.net/igame/shanghai/", "target":"_top", "rdcode":"201405260296", "icon":"" } , { "id":"bcrossplus", "name":"¹èƲ°¡·Î¼¼·Î+", "desc":"³¹¸»ÄûÁîÀÇ Áø¼ö! ¹èƲ°¡·Î", "url":"http://game2.netmarble.net/igame/bcrossplus", "target":"_top", "rdcode":"201405260299", "icon":"" } , { "id":"richmarble", "name":"¸®Ä¡¸¶ºí", "desc":"10¾ï ¸¸µé±â ÁÖ»çÀ§ º¸µå°ÔÀÓ! ¸®Ä¡¸¶ºí", "url":"http://game2.netmarble.net/igame/richmarble/", "target":"_top", "rdcode":"202211170005", "icon":"" } , { "id":"omok", "name":"¿À¸ñ", "desc":"´Ù¼¸ ¾ËÀÇ Ä¡¿­ÇÑ µÎ³ú ½Î¿ò ¿À¸ñ", "url":"http://game2.netmarble.net/igame/omok/", "target":"_top", "rdcode":"201405260305", "icon":"" } , { "id":"avatar", "name":"¾Æ¹ÙŸ", "desc":"¹«ÇÑ º¯½ÅÀÇ Áñ°Å¿ò", "url":"http://avatar.netmarble.net/", "target":"_top", "rdcode":"201405260308", "icon":"" } , { "id":"poweral", "name":"ÆÄ¿ö¾Ë±î±â", "desc":"ÀÏŸÀ̵æÀÇ ½ÂºÎ ÆÄ¿ö ¾Ë±î±â", "url":"http://game2.netmarble.net/igame/poweral/", "target":"_top", "rdcode":"201405260311", "icon":"" } , { "id":"kkoonda", "name":"ÆÄ¿öÄôÄôµû", "desc":"»ç¶ûÀÇ ³¡¸»ÀÕ±â", "url":"http://game2.netmarble.net/kkoongda/", "target":"_top", "rdcode":"201407310062", "icon":"" } ], "sub": { } } ], "child": [ { "id":"1", "name":"RPG", "css":"rpg", "layout":"1", "hidden_layout":"false", "game": [ { "id":"dho", "name":"´ëÇ×ÇØ½Ã´ë", "desc":"Ǫ¸¥ ´ë¾ç¿¡ ÆîÃÄÁö´Â ´ç½Å¸¸ÀÇ ¸ðÇè°ú ³¶¸¸!", "url":"http://dho.netmarble.net/", "target":"_top", "rdcode":"201405260184", "icon":"N" } , { "id":"yaburi", "name":"¾ßäºÎ¶ô¸®", "desc":"ÀÚ¿¬À» ¹è°æÀ¸·Î ÆîÃÄÁö´Â ÇÑÆíÀÇ µ¿È­ °°Àº ijÁÖ¾ó RPG", "url":"http://yaburi.netmarble.net/main.asp", "target":"_top", "rdcode":"201405260245", "icon":"" } ], "sub": { } } , { "id":"2", "name":"¾×¼Ç", "css":"ac", "layout":"1", "hidden_layout":"false", "game": [ { "id":"mstar", "name":"Ŭ·´¿¥½ºÅ¸", "desc":"365ÀÏ ³í½ºÅé Ŭ·´ÆÄƼ°¡ ¿­¸°´Ù! Ŭ·´ ¿¥½ºÅ¸!", "url":"http://mstar.netmarble.net/", "target":"_top", "rdcode":"201405260157", "icon":"N" } ], "sub": { } } , { "id":"16", "name":"½ºÆ÷Ã÷/FPS", "css":"sports", "layout":"1", "hidden_layout":"false", "game": [ { "id":"overprime", "name":"ÆÄ¶ó°ï:µð¿À¹öÇÁ¶óÀÓ", "desc":"ÆÄ¶ó°ï: µð ¿À¹öÇÁ¶óÀÓ", "url":"https://paragon.netmarble.com", "target":"_top", "rdcode":"202212280003", "icon":"" } , { "id":"ma9", "name":"¸¶±¸¸¶±¸", "desc":"´ëÇѹα¹ No1 ¾ß±¸°ÔÀÓ!", "url":"http://ma9.netmarble.net", "target":"_top", "rdcode":"201405260166", "icon":"N" } , { "id":"sf2", "name":"½ºÆä¼ÈÆ÷½º2", "desc":"THE FPS RELOADED ½ºÆä¼ÈÆ÷½º2", "url":"http://sf2.netmarble.net/", "target":"_top", "rdcode":"201405260218", "icon":"N" } , { "id":"bill4", "name":"´ç±¸/Æ÷ÄϺ¼", "desc":"ÃÖ°íÀÇ Çã½½·¯µéÀÌ ¸ð¿´´Ù", "url":"http://game2.netmarble.net/igame/bill4/", "target":"_top", "rdcode":"202005110012", "icon":"" } ], "sub": { } } , { "id":"5", "name":"º¸µå/ijÁÖ¾ó", "css":"board", "layout":"2", "hidden_layout":"false", "game": [ { "id":"baduk", "name":"¹ÙµÏ", "desc":"¹ÙµÏÀÇ ¸ðµç°Í ¹ÙµÏnTV", "url":"http://baduk.netmarble.net/", "target":"_top", "rdcode":"202009210012", "icon":"N" } , { "id":"moma", "name":"¸ðµÎÀǸ¶ºí", "desc":"Ãß¾ïÀÇ ±¹¹Î°ÔÀÓ, ¸ðµÎÀǸ¶ºí!", "url":"http://modoo.netmarble.net/", "target":"_top", "rdcode":"201405260178", "icon":"N" } , { "id":"yutgame", "name":"À·³îÀÌ", "desc":"ÆÀÀüÀ¸·Î ´õ¿í Áñ°Å¿öÁø õ»óÀÇ", "url":"http://game2.netmarble.net/igame/yutgame/", "target":"_top", "rdcode":"201405260200", "icon":"" } , { "id":"n_sachunsung", "name":"»çõ¼º", "desc":"¸Ó¸®°¡ ÁÁ¾ÆÁö´Â À¯ÄèÇÑ Å¬¸¯! New »çõ¼º", "url":"http://game2.netmarble.net/Sachunsung/", "target":"_top", "rdcode":"201405260221", "icon":"" } , { "id":"janggi2", "name":"Àå±â", "desc":"´ëÇѹα¹ Ç¥ÁØ Àå±â·ê äÅÃ! ³Ý¸¶ºíÀå±â", "url":"http://game2.netmarble.net/igame/janggi/", "target":"_top", "rdcode":"201405260248", "icon":"" } , { "id":"famchat", "name":"ij¸¯Ãª", "desc":"Music! Talk! Love! °íǰ°Ý À½¾Ç¹æ¼Û äÆÃ", "url":"https://chat.netmarble.net/famchat/", "target":"_top", "rdcode":"201405260257", "icon":"" } , { "id":"cmind", "name":"ijġ¸¶Àεå", "desc":"±×¸²À¸·Î ÅëÇÏ´Â »ö´Ù¸¥ Àç¹Ì! ijġ¸¶Àεå", "url":"https://cmind.netmarble.net/main.asp", "target":"_top", "rdcode":"201405260275", "icon":"" } , { "id":"picture", "name":"Ʋ¸°±×¸²Ã£±â", "desc":"²ÄÁî¿Í ÇÔ²²Çϴ Ʋ¸°±×¸²Ã£±â", "url":"http://game2.netmarble.net/igame/picture/", "target":"_top", "rdcode":"201405260290", "icon":"" } , { "id":"assult", "name":"¾î½äÆ®±â¾î", "desc":"·Îº¿µéÀÇ ÆÄ¿ö ÀüÅõ. ¾î½äÆ®±â¾î", "url":"http://game3.netmarble.net/cp_site/assult/", "target":"_top", "rdcode":"201405260293", "icon":"" } , { "id":"shanghai", "name":"»óÇÏÀÌ", "desc":"µÎ³ú ´Ü·Ã Ŭ¸¯ »óÇÏÀÌ", "url":"http://game2.netmarble.net/igame/shanghai/", "target":"_top", "rdcode":"201405260296", "icon":"" } , { "id":"bcrossplus", "name":"¹èƲ°¡·Î¼¼·Î+", "desc":"³¹¸»ÄûÁîÀÇ Áø¼ö! ¹èƲ°¡·Î", "url":"http://game2.netmarble.net/igame/bcrossplus", "target":"_top", "rdcode":"201405260299", "icon":"" } , { "id":"richmarble", "name":"¸®Ä¡¸¶ºí", "desc":"10¾ï ¸¸µé±â ÁÖ»çÀ§ º¸µå°ÔÀÓ! ¸®Ä¡¸¶ºí", "url":"http://game2.netmarble.net/igame/richmarble/", "target":"_top", "rdcode":"202211170005", "icon":"" } , { "id":"omok", "name":"¿À¸ñ", "desc":"´Ù¼¸ ¾ËÀÇ Ä¡¿­ÇÑ µÎ³ú ½Î¿ò ¿À¸ñ", "url":"http://game2.netmarble.net/igame/omok/", "target":"_top", "rdcode":"201405260305", "icon":"" } , { "id":"avatar", "name":"¾Æ¹ÙŸ", "desc":"¹«ÇÑ º¯½ÅÀÇ Áñ°Å¿ò", "url":"http://avatar.netmarble.net/", "target":"_top", "rdcode":"201405260308", "icon":"" } , { "id":"poweral", "name":"ÆÄ¿ö¾Ë±î±â", "desc":"ÀÏŸÀ̵æÀÇ ½ÂºÎ ÆÄ¿ö ¾Ë±î±â", "url":"http://game2.netmarble.net/igame/poweral/", "target":"_top", "rdcode":"201405260311", "icon":"" } , { "id":"kkoonda", "name":"ÆÄ¿öÄôÄôµû", "desc":"»ç¶ûÀÇ ³¡¸»ÀÕ±â", "url":"http://game2.netmarble.net/kkoongda/", "target":"_top", "rdcode":"201407310062", "icon":"" } ], "sub": { } } ] } ; var SmartGameList = [ { "id" : "", "name" : "¼£·ÔÀÇ Å×À̺í", "title":"ÆÛÁñ", "rdcode" : "202212190001", "url" : "https://www.netmarble.net/mobile/tab?tab=popular&page=1", "target" : "_blank", "image" : "https://sgimage.netmarble.com/web/6N/2022/11/091537/APPICO.jpg", "icon" : "N" } , { "id" : "", "name" : "¸ÓÁö Äô¾ß ¾ÆÀÏ·£µå", "title":"ijÁÖ¾ó", "rdcode" : "202212190002", "url" : "https://www.netmarble.net/mobile/mkgb?tab=popular&page=1", "target" : "_blank", "image" : "https://sgimage.netmarble.com/images/netmarble/mkgb/20220907/tgse1662540626002.png", "icon" : "N" } , { "id" : "", "name" : "¼¼ºì³ªÀÌÃ÷ ·¹º¼·ç¼Ç", "title":"MMORPG", "rdcode" : "202212190003", "url" : "https://www.netmarble.net/mobile/skrv?tab=popular&page=1", "target" : "_blank", "image" : "https://sgimage.netmarble.com/web/6N/2022/07/271112/iOS_152.png", "icon" : "H" } , { "id" : "", "name" : "Á¦2ÀÇ ³ª¶ó: Cross Worlds", "title":"MMORPG", "rdcode" : "202212190011", "url" : "https://www.netmarble.net/mobile/enn?tab=popular&page=1", "target" : "_blank", "image" : "https://sgimage.netmarble.com/web/6N/2022/08/121540/Android_Market_512.png", "icon" : "H" } , { "id" : "", "name" : "¸ðµÎÀǸ¶ºí", "title":"ijÁÖ¾ó", "rdcode" : "201405150359", "url" : "http://www.netmarble.net/mobile/momak", "target" : "_top", "image" : "http://sgimage.netmarble.com/images/netmarble/COMMON/20170310/1489116083508.png", "icon" : "" } , { "id" : "", "name" : "¸®´ÏÁö2 ·¹º¼·ç¼Ç", "title":"MMORPG", "rdcode" : "201703100031", "url" : "http://www.netmarble.net/mobile/lineageII?tab=popular&page=1", "target" : "_top", "image" : "http://sgimage.netmarble.com/images/netmarble/COMMON/20170310/1489116348442.png", "icon" : "" } , { "id" : "", "name" : "ºí·¹À̵壦¼Ò¿ï ·¹º¼·ç¼Ç", "title":"MMORPG", "rdcode" : "201812180034", "url" : "http://www.netmarble.net/mobile/bnsmkr?tab=popular&page=1", "target" : "_top", "image" : "https://c2.img.netmarble.kr/web/6N/2018/12/181533/180x180.jpg", "icon" : "" } , { "id" : "", "name" : "Àϰö °³ÀÇ ´ëÁË", "title":"RPG", "rdcode" : "201907150001", "url" : "http://www.netmarble.net/mobile/nanakr?tab=popular&page=1", "target" : "_top", "image" : "https://c2.img.netmarble.kr/web/6N/2019/07/151019/200_rx2v1551766793452.png", "icon" : "" } , { "id" : "", "name" : "A3: ½ºÆ¿¾ó¶óÀ̺ê", "title":"MMORPG", "rdcode" : "202212190005", "url" : "https://www.netmarble.net/mobile/survival?tab=popular&page=1", "target" : "_blank", "image" : "https://c2.img.netmarble.kr/web/6N/2020/03/111720/180_191022_A3_512.jpg", "icon" : "" } , { "id" : "", "name" : "³Ý¸¶ºí ÇÁ·Î¾ß±¸ 2022", "title":"½ºÆ÷Ã÷", "rdcode" : "202212190006", "url" : "https://www.netmarble.net/mobile/ma9rekr", "target" : "_blank", "image" : "https://sgimage.netmarble.com/web/6N/2022/08/041011/1_ios_1024.jpg", "icon" : "" } , { "id" : "", "name" : "¸¶±¸¸¶±¸ 2022", "title":"½ºÆ÷Ã÷", "rdcode" : "202212190007", "url" : "https://www.netmarble.net/mobile/ma9bkr", "target" : "_blank", "image" : "https://sgimage.netmarble.com/web/6N/2022/03/241114/ios_180.png", "icon" : "" } , { "id" : "", "name" : "¸ó½ºÅͱæµéÀ̱â", "title":"¾×¼ÇRPG", "rdcode" : "201405150358", "url" : "http://www.netmarble.net/mobile/monster", "target" : "_top", "image" : "https://c3.img.netmarble.kr/web/6N/2018/02/231838/200x200.jpg", "icon" : "" } , { "id" : "", "name" : "ÆäÀÌÆ®/±×·£µå¿À´õ", "title":"¼öÁýÇüRPG", "rdcode" : "201711200057", "url" : "http://www.netmarble.net/mobile/fgok", "target" : "_top", "image" : "https://c3.img.netmarble.kr/web/6N/2017/11/201000/1_appicon_AOS_512.png", "icon" : "" } , { "id" : "", "name" : "Å· ¿Àºê ÆÄÀÌÅÍ ¿Ã½ºÅ¸", "title":"RPG", "rdcode" : "201905200029", "url" : "http://www.netmarble.net/mobile/kofkr?tab=popular&page=1", "target" : "_top", "image" : "https://c2.img.netmarble.kr/web/6N/2019/05/201703/200_rh3k1554707791393.png", "icon" : "" } , { "id" : "", "name" : "Äô¾ß ijġ¸¶Àεå", "title":"ÆÛÁñ", "rdcode" : "201908080006", "url" : "http://www.netmarble.net/mobile/koongyacm?tab=new&page=1", "target" : "_blank", "image" : "https://c2.img.netmarble.kr/web/6N/2019/08/071531/200_yrzo1563958278171.png", "icon" : "" } , { "id" : "", "name" : "¼¼ºì³ªÀÌÃ÷2", "title":"¼öÁýÇü MMORPG", "rdcode" : "202011200001", "url" : "https://sk2.netmarble.com/", "target" : "_blank", "image" : "http://sgimage.netmarble.com/web/6N/2020/11/180949/1_SK2_iCON_iOS_1024x1024.jpg", "icon" : "" } , { "id" : "", "name" : "¼¼ºì³ªÀÌÃ÷", "title":"¾×¼ÇRPG", "rdcode" : "201405150363", "url" : "http://www.netmarble.net/mobile/sknights", "target" : "_top", "image" : "https://c3.img.netmarble.kr/web/6N/2018/04/111654/200.jpg", "icon" : "" } , { "id" : "", "name" : "¸¶ºíǻóÆÄÀÌÆ®", "title":"¾×¼ÇRPG", "rdcode" : "201703100033", "url" : "http://www.netmarble.net/mobile/mherosgb", "target" : "_top", "image" : "https://c3.img.netmarble.kr/web/6N/2015/12/161925/mherosgb_pc.png", "icon" : "" } , { "id" : "", "name" : "Å×¶óM", "title":"MMORPG", "rdcode" : "201711300058", "url" : "http://www.netmarble.net/mobile/tera?tab=popular&page=1", "target" : "_top", "image" : "https://c3.img.netmarble.kr/web/6N/2017/11/301233/512x512.png", "icon" : "" } , { "id" : "", "name" : "³ªÀÌÃ÷Å©·Î´ÏŬ", "title":"RPG", "rdcode" : "201806140058", "url" : "http://www.netmarble.net/mobile/knightsgb?tab=new&page=1", "target" : "_blank", "image" : "https://c3.img.netmarble.kr/web/6N/2018/06/141245/192.png", "icon" : "" } , { "id" : "", "name" : "BTS WORLD", "title":"RPG", "rdcode" : "201907150002", "url" : "http://www.netmarble.net/mobile/btsw?tab=popular&page=1", "target" : "_top", "image" : "https://c2.img.netmarble.kr/web/6N/2019/07/151022/200_AOS_512.png", "icon" : "" } , { "id" : "", "name" : "·¹À̺ì : BLESS", "title":"¾×¼ÇRPG", "rdcode" : "202212190009", "url" : "http://www.netmarble.net/mobile/rav", "target" : "_top", "image" : "https://c3.img.netmarble.kr/web/6N/2018/04/111843/200.png", "icon" : "" } ]; var HubGameList = [ { "id":"21","game": [ { "area":"21", "areaname":"FPS", "name":"½ºÆä¼ÈÆ÷½º2", "rdcode":"201103300021", "image":"http://c1.img.netmarble.kr/web/6N/2013/04/2228/sf2.gif", "url":"http://sf2.netmarble.net", "target":"_top" } , { "area":"21", "areaname":"FPS", "name":"½¦µµ¿ìÄÄÆÛ´Ï", "rdcode":"201110040014", "image":"http://c1.img.netmarble.kr/web/6N/2013/04/2228/shadow.gif", "url":"http://shadow.netmarble.net/", "target":"_top" } ] }, { "id":"22","game": [ ] }, { "id":"25","game": [ ] }, { "id":"54","game": [ { "area":"54", "areaname":"¸¶±¸¸¶±¸", "name":"¸¶±¸¸¶±¸", "rdcode":"201204030142", "image":"http://c1.img.netmarble.kr/web/6N/2013/04/2230/ma9.gif", "url":"http://ma9.netmarble.net", "target":"_top" } , { "area":"54", "areaname":"¸¶±¸¸¶±¸", "name":"¸¶±¸´õ¸®¾ó", "rdcode":"201204030144", "image":"http://c1.img.netmarble.kr/web/6N/2013/04/2230/ma9real.gif", "url":"http://ma9real.netmarble.net/", "target":"_top" } , { "area":"54", "areaname":"¸¶±¸¸¶±¸", "name":"¸¶±¸:°¨µ¶À̵ÇÀÚ", "rdcode":"201204030145", "image":"http://c1.img.netmarble.kr/web/6N/2013/04/2230/ma9gm.gif", "url":"http://ma9gm.netmarble.net", "target":"_top" } ] } ]; var BannerList = [ {"GnbBanner" : [ ] , "HubBanner" : [ ] , "SmartGameNotice": [ ] , "WebGameNotice" : [ ] , "SearchBanner" : [ ] } ]; var BestGameList = { "moma": { "name" : "¸ðµÎÀǸ¶ºí", "rdcode" : "201203050092", "url" : "http://modoo.netmarble.net/", "target" : "_top" } , "bf": { "name" : "ºê¸¯Æ÷½º", "rdcode" : "201312300127", "url" : "http://bf.netmarble.net/", "target" : "_top" } , "ma9": { "name" : "¸¶±¸¸¶±¸", "rdcode" : "201312300128", "url" : "http://ma9.netmarble.net/ma9/", "target" : "_top" } , "mstar": { "name" : "Ŭ·´¿¥½ºÅ¸", "rdcode" : "201312300129", "url" : "http://mstar.netmarble.net/", "target" : "_top" } , "dho": { "name" : "´ëÇ×ÇØ½Ã´ë", "rdcode" : "201312300130", "url" : "http://dho.netmarble.net/", "target" : "_top" } }; var Popup = [ { id:'0', startDate:'2015-10-30 11:00', finishDate:'2017-02-28 00:00', login_yn:'n', url:'http://gnb.netmarble.net/event/2015/1030_windowsxp/index.asp', width:'542', height:'369', cookie:'gnb20151102', autoCookie:'N', externalCheck:'Y', externalCheckUrl:'http://gnb.netmarble.net/event/2015/1030_windowsxp/windowsxp_check.asp'} ]; /* Çãºê»çÀÌÆ® °ÔÀÓ¸®½ºÆ® */ NetmarbleGNB.ShowHubSiteMenu( HubGameList ); /* Àüü°ÔÀÓ ¸®½ºÆ® */ NetmarbleGNB.ShowWebGameList( WebGameList, BestGameList ); /* ½º¸¶Æ®Æù°ÔÀÓ ¸®½ºÆ® */ NetmarbleGNB.ShowSmartGameList( SmartGameList ); /* Àüü°ÔÀÓ °øÁö, ½º¸¶Æ®Æù°ÔÀÓ °øÁö, ÀϹÝGNB¹è³Ê, ÇãºêGNB¹è³Ê, °ÔÀÓ°Ë»ö¹è³Ê */ NetmarbleGNB.ShowBanner( BannerList[0] ); /* TODO : GNB ÆË¾÷ */ NetmarbleGNB.ShowPopup( Now, Popup ); } , /* ·£´ý Á¤¼ö ÃßÃâ */ GetRandom : function ( iMin, iMax ) { return Math.floor(Math.random() * (iMax - iMin + 1)) + iMin; }, /* ³¯Â¥ Object ¹Ýȯ */ GetDate : function ( pDateStr ) { if ( pDateStr == null ) { return new Date(); } else { var tempStr = pDateStr.split('-'); var tempDate = new Date(); tempDate.setYear( tempStr[0] ); tempDate.setMonth( eval(tempStr[1])-1 ); tempStr = tempStr[2].split(' '); tempDate.setDate( tempStr[0] ); if ( tempStr.length < 3 ) { /* '2010-11-23' Çü½Ä */ tempDate.setHours( 0 ); tempDate.setMinutes( 0 ); tempDate.setSeconds( 0 ); } else if ( tempStr.length == 3 ) { /* '2010-11-23 ¿ÀÈÄ 4:00:00' Çü½Ä */ if ( tempStr[1] == '¿ÀÈÄ' ) { tempStr = tempStr[2].split(':'); if ( eval(tempStr[0]) == 12 ) { /* ¿ÀÈÄ 12½Ã */ tempDate.setHours( eval(tempStr[0])); } else { tempDate.setHours( 12 + eval(tempStr[0])); } } else { tempStr = tempStr[2].split(':'); if ( eval(tempStr[0]) == 12 ) { /* ¿ÀÀü 12½Ã */ tempDate.setHours( eval(tempStr[0]) - 12); } else { tempDate.setHours( eval(tempStr[0])); } } tempDate.setMinutes( eval(tempStr[1])); tempDate.setSeconds( eval(tempStr[2])); } else { /* '2010-11-23 16:00' Çü½Ä */ tempStr = tempStr[1].split(':'); tempDate.setMinutes( eval(tempStr[0])); tempDate.setSeconds( eval(tempStr[1])); } return tempDate; } }, /* ³Ý¸¶ºí BI */ Logo : function() { if ( NetmarbleGNB.Type == 'pop') { return ''; } else if ( NetmarbleGNB.Type == 'event' ) { if ( NetmarbleGNB.SiteCode == 30 ) { return ''+ '°ÔÀÓ'; } else { return ''+ 'À̺¥Æ®'; } } else { return ''; } }, /* °øÅëÆË¾÷ */ ShowPopup : function( dtNow, aPopupList ) { if ( aPopupList != null && aPopupList.length != null ) { for ( var i = 0 ; i < aPopupList.length; i++ ) { if ( this.GetDate(aPopupList[i].startDate) <= dtNow && this.GetDate(aPopupList[i].finishDate) > dtNow ) { if (( aPopupList[i].login_yn == 'y' && true == NetmarbleGNB.IsLogin ) || ( aPopupList[i].login_yn == 'n' && false== NetmarbleGNB.IsLogin )) { //cookie check var gnb_cookie_value = NetmarbleCookie.GetSubValue( 'netmarble_gnb_popup', aPopupList[i].cookie ); var check_cookie = false; if (aPopupList[i].login_yn == 'y' ) { if ( gnb_cookie_value != NetmarbleGNB.UserID ) { check_cookie = true; } } else { if ( gnb_cookie_value != 'y' ) { check_cookie = true ; } } if ( check_cookie ) { // 1¹ø¸¸ ³ëÃâ if ( aPopupList[i].autoCookie.toLowerCase() == 'y' ) { var exp_date = this.GetDate( aPopupList[i].finishDate ); exp_date.setFullYear( exp_date.getFullYear()+1 ); if ( aPopupList[i].login_yn == 'y' ) { NetmarbleCookie.SetSubValueByExpireDate( 'netmarble_gnb_popup', aPopupList[i].cookie, NetmarbleGNB.UserID, exp_date ); } else { NetmarbleCookie.SetSubValueByExpireDate( 'netmarble_gnb_popup', aPopupList[i].cookie, 'y', exp_date ); } } else { if ( aPopupList[i].login_yn == 'y' ) { NetmarbleCookie.SetSubValue( 'netmarble_gnb_popup', aPopupList[i].cookie, NetmarbleGNB.UserID ); } else { NetmarbleCookie.SetSubValue( 'netmarble_gnb_popup', aPopupList[i].cookie, 'y' ); } } if ( aPopupList[i].externalCheck != null && aPopupList[i].externalCheck == 'Y' ) { var check_js = document.createElement('script'); check_js.setAttribute( 'type','text/javascript' ); check_js.setAttribute( 'charset', 'euc-kr' ); check_js.setAttribute( 'src', aPopupList[i].externalCheckUrl+"?callback=GnbPopupCallBack" ); (document.getElementsByTagName('head')[0]).appendChild( check_js ); n_gnb_popup_url = aPopupList[i].url; n_gnb_popup_height = aPopupList[i].height; n_gnb_popup_width= aPopupList[i].width; } else { // open window window.open( aPopupList[i].url, 'gnb_popup','resizable=no, scrollbars=no,toolbar=no, channelmode=no, location=no, directories=no, menubar=no, width='+aPopupList[i].width+', height='+aPopupList[i].height+', top=' + nPointH + ', left=' + nPointW ); } break; } } } } } }, /* Çãºê»çÀÌÆ® °ÔÀÓ¸®½ºÆ® */ ShowHubSiteMenu : function( aGameList ) { if ( NetmarbleGNB.Type == 'hub') { var oHubGnbGameList = document.getElementById('HubGnbGameList'); if ( oHubGnbGameList != null ) { if ( aGameList != null && aGameList.length != null ) { for ( var i = 0 ; i < aGameList.length ; i++ ) { if ( aGameList[i].id == NetmarbleGNB.HubSiteCode ) { var html = ''; for ( var j = 0 ; j < aGameList[i].game.length ; j++ ) { html += '
  • '+ ''+aGameList[i].game[j].name+'
  • '; } oHubGnbGameList.innerHTML = ''; break; } } } } } }, /* Àüü°ÔÀÓ °øÁö, ½º¸¶Æ®Æù°ÔÀÓ °øÁö, ÀϹÝGNB¹è³Ê, ÇãºêGNB¹è³Ê, °ÔÀÓ°Ë»ö¹è³Ê */ ShowBanner : function( aBannerList ) { var objShow; var intRand; // Àüü°ÔÀÓ °øÁö if ( aBannerList.WebGameNotice != null && aBannerList.WebGameNotice.length != null && aBannerList.WebGameNotice.length > 0 ) { objShow = document.getElementById('WebGameNotice'); if ( objShow != null ) { intRand = this.GetRandom( 0,aBannerList.WebGameNotice.length - 1 ); NetmarbleGNB.DefaultWebGameNotice = ''+ aBannerList.WebGameNotice[intRand].title + ''; objShow.innerHTML = NetmarbleGNB.DefaultWebGameNotice ; } } // ½º¸¶Æ®Æù°ÔÀÓ °øÁö if ( aBannerList.SmartGameNotice != null && aBannerList.SmartGameNotice.length != null && aBannerList.SmartGameNotice.length > 0 ) { objShow = document.getElementById('SmartGameNotice'); if ( objShow != null ) { intRand = this.GetRandom( 0,aBannerList.SmartGameNotice.length - 1 ); objShow.innerHTML = ''+ aBannerList.SmartGameNotice[intRand].title + ''; } } // ÇãºêGNB¹è³Ê if ( NetmarbleGNB.Type == 'hub' ) { if ( aBannerList.HubBanner != null && aBannerList.HubBanner.length != null && aBannerList.HubBanner.length > 0 ) { if ( objShow != null ) { intRand = this.GetRandom( 0,aBannerList.HubBanner.length - 1 ); objShow.innerHTML = ''+ ''+ aBannerList.HubBanner[intRand].title + ''+ ''; } } } else { // ÀϹÝGNB¹è³Ê if ( aBannerList.GnbBanner != null && aBannerList.GnbBanner.length != null && aBannerList.GnbBanner.length > 0 ) { objShow = document.getElementById('GnbBanner'); if ( objShow != null ) { intRand = this.GetRandom( 0,aBannerList.GnbBanner.length - 1 ); objShow.innerHTML = ''+ ''+ aBannerList.GnbBanner[intRand].title + ''+ ''; } } } // °ÔÀÓ°Ë»ö¹è³Ê if ( aBannerList.SearchBanner != null && aBannerList.SearchBanner.length != null && aBannerList.SearchBanner.length > 0) { objShow = document.getElementById('GNB_game_ban'); if ( objShow != null ) { intRand = this.GetRandom( 0,aBannerList.SearchBanner.length - 1 ); objShow.style.backgroundImage = "url(\'" + aBannerList.SearchBanner[intRand].image + "\')"; objShow.style.backgroundRepeat = "no-repeat"; objShow.innerHTML = (''+aBannerList.SearchBanner[intRand].title+''+ 'GO'); u_gnb_gameschban = 1; /* ¹Ù·Î°¡±â°Ë»ö ÀÖÀ½. */ } } }, /* Àüü°ÔÀÓ »ó´Ü [OBT],[CBT],[³»°ÔÀÓ] ¹öư Ŭ¸¯ ÃʱâÈ­ */ InitGameSelectButton : function () { /* ¹öư OFF */ var objList = document.getElementsByName('ButtonGameSelect'); for ( var i = 0; i < objList.length ; i++ ) { objList[i].className = ''; } /* °ÔÀÓ¿¡ Àû¿ëµÈ class Á¦°Å */ objList = document.getElementsByName( 'game' ); for ( var i = 0; i < objList.length ; i++ ) { objList[i].className = ''; } /* Àüü°ÔÀÓ °øÁö */ if ( NetmarbleGNB.DefaultWebGameNotice == null ) { NetmarbleGNB.DefaultWebGameNotice = ''; } document.getElementById('WebGameNotice').innerHTML = NetmarbleGNB.DefaultWebGameNotice; }, /* Àüü°ÔÀÓ »ó´Ü [OBT],[CBT],[³»°ÔÀÓ] ¹öư Ŭ¸¯ À̺¥Æ® */ ClickGameSelectButton : function ( pType ) { /* ÃʱâÈ­ */ this.InitGameSelectButton(); /* ¼±ÅÃÇÑ ¹öư on */ var objButton = document.getElementById(pType); objButton.className = 'gnb_gm_on'; var classType = 'gnb_g_'+ pType; var noticeMessage = ''; // class Àû¿ë var objGameList = document.getElementsByName('game'); var iTrueCount = 0; for ( var i = 0; i < objGameList.length ; i++ ) { if ( objGameList[i].getAttribute( pType ) == 'true') { objGameList[i].className = classType; iTrueCount++; } } if ( iTrueCount == 0 ) { if ( pType == 'my' ) { pType ='issue'; /* ºñ·Î±×ÀÎ/³»°ÔÀÓÀÌ ¾ø´Ù.-->À̽´°ÔÀÓÀ¸·Î Àû¿ë */ noticeMessage = '·Î±×ÀÎÇÏ¸é ³»°ÔÀÓÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.'; classType = 'gnb_g_'+ pType; // Css ÀçÀû¿ë for ( var i = 0; i < objGameList.length ; i++ ) { if ( objGameList[i].getAttribute( pType ) == 'true') { objGameList[i].className = classType; iTrueCount++; } } } else if ( pType == 'obt' ) { noticeMessage = 'OBT ÁßÀÎ °ÔÀÓÀÌ ¾ø¾î¿ä.'; } else if ( pType == 'cbt' ) { noticeMessage = 'CBT ÁßÀÎ °ÔÀÓÀÌ ¾ø¾î¿ä.'; } } if ( noticeMessage != '' ) { document.getElementById('WebGameNotice').innerHTML = noticeMessage; } }, /* Àüü°ÔÀÓ ¸®½ºÆ® */ Game : function( gameInfo, aBestGameList ) { /* ¹Ù·Î°¡±â °Ë»öÀ» À§ÇØ °ÔÀÓ¸®½ºÆ® º¯¼ö ¼¼ÆÃ */ arrNetmarbleGame[ arrNetmarbleGame.length ] = [ gameInfo.id, gameInfo.name, gameInfo.url, gameInfo.rdcode ]; /* TODO : °Ë»ö¿ë RDCODE */ var obt = ''; /* OBT */ var cbt = ''; /* CBT */ var issue = ''; /* issue : ºñ·Î±×Àνà µðÆúÆ® ¼¼ÆÃ */ var best = ''; /* Ãßõ°ÔÀÓ */ if ( gameInfo.icon == 'B') { cbt = 'true'; } else if ( gameInfo.icon == 'N' || gameInfo.icon == 'S' ) { obt = 'true'; } else if ( gameInfo.icon == 'H' ) { issue = 'true'; } best = (eval('aBestGameList.'+gameInfo.id ) == null ? '' : 'true' ); return '
  • '+ ''+ gameInfo.name + ''+ '
  • '; }, ShowWebGameList : function ( pWebGameList, aBestGameList ) { var objWebGameList = document.getElementById('WebGameList') ; if ( objWebGameList != null ) { var html = '
    '+ '
    '+ '

    '+ '
    '+ '
    '+ /* [°ÔÀÓ°Ë»ö] */ '
    '+ '°ÔÀӹٷΰ¡±â'+ '
    '+ ''+ 'GO'+ '
    '+ ''+ '
    '+ /* End Of [°ÔÀÓ°Ë»ö]*/ '
    '+ '
    PC°ÔÀÓ ´Ý±â
    '+ '
    '; aWebGameList = pWebGameList.adult; html += '
    '; html += '
    '; var ac_dp_count = 0; /* ¾×¼ÇRPG/¾×¼Ç½ºÆ÷Ã÷ À帣ÀÇ °ÔÀÓ¸®½ºÆ® °¹¼ö¿¡ µû¶ó 2´ÜÀ¸·Î ºÐ¸®Çϱâ À§ÇØ... */ if ( aWebGameList != null && aWebGameList.length != null ) { for ( var i = 0; i < aWebGameList.length ; i++ ) { html += '
    '+ '
    '+ aWebGameList[i].name +'
    '; /* 1´ÜÀ¸·Î ³ëÃâµÇ´Â À帣 */ if ( aWebGameList[i].layout == 1 ) { html += '
      '; for ( var j = 0; j < aWebGameList[i].game.length ; j++ ) { html += this.Game( aWebGameList[i].game[j], aBestGameList ); } if( aWebGameList[i].sub.id != null ) { html += '
    • '+ aWebGameList[i].sub.name +'
    • '; for ( var j = 0 ; j < aWebGameList[i].sub.game.length ; j++ ) { html += this.Game( aWebGameList[i].sub.game[j], aBestGameList ); } } html += '
    '; /* 2´ÜÀ¸·Î ³ëÃâµÇ´Â À帣 */ } else { var dp_count = aWebGameList[i].game.length; /* Àüü °ÔÀÓ °¹¼ö */ if ( pWebGameList.layout_display_type != null && pWebGameList.layout_display_type == 'ceil' ) { dp_count = Math.ceil( (dp_count / 2.0)); /* 2´ÜÀ¸·Î ³ëÃâ -> ¿Ã¸² */ } else if ( pWebGameList.layout_display_type != null && pWebGameList.layout_display_type == 'floor' ) { dp_count = Math.floor( (dp_count / 2.0)); /* 2´ÜÀ¸·Î ³ëÃâ -> ¹ö¸² */ } else { dp_count = Math.round( (dp_count / 2.0)); /* 2´ÜÀ¸·Î ³ëÃâ -> ¹Ý¿Ã¸² */ } /* 1´Ü */ html += '
      '; for ( var j = 0; j < dp_count ; j++ ) { html +=this.Game( aWebGameList[i].game[j], aBestGameList ); } /* 2´Ü */ html += '
      '; for ( var j = dp_count ; j < aWebGameList[i].game.length ; j++ ) { html +=this.Game( aWebGameList[i].game[j], aBestGameList ); } html += '
    '; } html += '
    '; } } html += '
    '; objWebGameList.innerHTML = html; } }, /* ½º¸¶Æ®Æù °ÔÀÓ ¸®½ºÆ® */ ShowSmartGameList : function ( aGameList ) { var objSmartGameList = document.getElementById('SmartGameList'); if ( objSmartGameList != null && aGameList!= null && aGameList.length != null ) { var html = ''; objSmartGameList.innerHTML = html; } }, /* ij½¬ÃæÀü¹öư */ CashButton : function() { if ( NetmarbleGNB.IsLogin ) { return 'ij½¬ÃæÀü'; } else { return 'ij½¬ÃæÀü'; } }, /* ·Î±×ÀÎ ¹öư */ LoginButton : function () { if ( NetmarbleGNB.Type == 'event' && NetmarbleGNB.SiteCode == '30' ) { return ''; } else { var loginText = '·Î±×ÀÎ'; var loginClass = 'gnb_bt_login'; var loginUrl = 'https://login.netmarble.net/login/login.asp?l_url='; var loginClick = 'javascript:void(0);'; var loginRdCode = this.RdCode().Login; var loginTarget = ''; if ( NetmarbleGNB.IsLogin ) { loginText = '·Î±×¾Æ¿ô'; loginClass = 'gnb_bt_logout'; loginRdCode = this.RdCode().Logout; if ( NetmarbleGNB.Type == 'event') { loginTarget = __CRD_ID; if ( loginUrl.indexOf( 'r_url=' ) >= 0 ) { var start_idx = loginUrl.indexOf( 'r_url=' )+6; var last_idx = loginUrl.indexOf( '&', start_idx ); if ( last_idx < 0 ) { last_idx = loginUrl.length; } loginUrl = loginUrl.substring( 0,start_idx ) + encodeURIComponent( 'https://'+location.hostname+'/nmasp/gnb/LogoutEnd.asp')+ loginUrl.substring( last_idx, loginUrl.length ) ; } } } else { var l_url = ''; if ( NetmarbleGNB.Type == 'simple') { l_url = 'https://www.netmarble.net'; loginUrl = 'https://login.netmarble.net/login/login.asp?l_url='+ encodeURIComponent(l_url); } else if ( NetmarbleGNB.Type == 'event') { l_url = ''; loginUrl = 'https://login.netmarble.net/popuplogin/PopupLogin.Asp?returnURL=' + encodeURIComponent( 'https://'+location.hostname+'/nmasp/gnb/LoginEnd.asp') + '&IsNewWindow=Y'; } else { try { l_url = top.location.href; } catch ( e ) { l_url = document.location.href; } if ( l_url.indexOf( 'l_url=' ) >= 0 ) { var start_idx = l_url.indexOf( 'l_url=' )+6; var last_idx = l_url.indexOf( '&', start_idx ); if ( last_idx < 0 ) { last_idx = l_url.length; } l_url = l_url.substring( start_idx,last_idx ); } else { l_url = encodeURIComponent(l_url); } loginUrl = 'https://login.netmarble.net/login/login.asp?l_url='+ encodeURIComponent(l_url); } } return '
    '+ ''+loginText+''+ '
    '; } }, /* PV Áý°è¿ë iframe */ PV : function() { var pvUrl = '//nls.netmarble.net/pv.asp?nls_site='+NetmarbleGNB.SiteCode +'&nls_cate='+NetmarbleGNB.ServiceCode +'&nls_url='+document.URL+'&nls_ref='+document.referrer+'&nls_screen='+screen.availWidth+'_'+screen.availHeight ; var goPV = document.createElement('iframe'); goPV.setAttribute('src',pvUrl); goPV.setAttribute('width',0); goPV.setAttribute('height',0); goPV.setAttribute('frameborder',0); goPV.setAttribute('style','display:none;position:absolute;left:0;top:-100px;width:0;height:0;border:0px solid #f00;'); return goPV; }, Creteo : function( id ) { var ifr = document.createElement('iframe'); ifr.setAttribute('src', 'https://gnb.netmarble.net/gnb/creteo.asp?id='+id ); ifr.setAttribute('width',0); ifr.setAttribute('height',0); ifr.setAttribute('frameborder',0); ifr.setAttribute('style','display:none;position:absolute;left:0;top:-100px;width:0;height:0;border:0px solid #f00;'); return ifr; }, Retargeting : function( ) { var tag = document.createElement('div'); tag.setAttribute('id', 'wp_tg_cts' ); tag.setAttribute('style','display:none;position:absolute;left:0;top:-100px;width:0;height:0;border:0px solid #f00;'); return tag; }, RetargetingScript : function () { var js = document.createElement( 'script' ); js.setAttribute( 'type','text/javascript' ); js.setAttribute( 'src','//astg.widerplanet.com/js/wp_astg_3.0.js' ); js.async = true; js.defer = true; return js; }, GoogleRetargeting : function( ) { var tag = document.createElement('div'); tag.setAttribute('style','display:inline;'); var tag_img = document.createElement('img'); tag_img.setAttribute('height','1'); tag_img.setAttribute('width','1'); tag_img.setAttribute('style','border-style:none;'); tag_img.setAttribute('src','//googleads.g.doubleclick.net/pagead/viewthroughconversion/963395494/?value=0&guid=ON&script=0'); return tag.appendChild(tag_img); }, GoogleRetargetingScript : function () { var js = document.createElement( 'script' ); js.setAttribute( 'type','text/javascript' ); js.setAttribute( 'src','//www.googleadservices.com/pagead/conversion.js' ); js.async = true; js.defer = true; return js; }, /* RD È£Ãâ¿ë iframe */ nrd : function (rdcode,elem,target) { try { if (__NRD_ENABLED__) { var frm = document.getElementById( __NRD_ID ); frm.action = "http://nrd.netmarble.net/" + rdcode + ".rd"; frm.url.value = (elem != null ? elem.href : ""); frm.target = (target == null ? "_self" : target); frm.submit(); return false; } } catch(x) { } return true; }, clickrd : function ( rdcode ) { //try //{ // if ( rdcode != null && rdcode != '' ) { // if (__CRD_ENABLED__) // { // var clink, ifrm; // clink = "//nrd.netmarble.net/" + rdcode + ".cr"; // ifrm = document.getElementById( __CRD_ID ); // ifrm.src = clink; // return true; // } // } //} catch(x) { } return true; }, RD : function() { return '