/* 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 +=
'
' +
/* [01] PC°ÔÀÓ ¸Þ´º*/
'- '+
'PC°ÔÀÓ'+
'
'+
'
'+
'
'+ /* °ÔÀÓ¸®½ºÆ® ¿µ¿ª */
'
'+
' '+
/* End Of [01] Àüü°ÔÀÓ ¸Þ´º*/
/* [02] ¸ð¹ÙÀϰÔÀÓ ¸Þ´º*/
'- '+
'¸ð¹ÙÀϰÔÀÓ'+
'
'+
'
'+
'
'+
'
'+
'
'+
'
'+ /* ½º¸¶Æ®Æù °øÁö ³ëÃâ ¿µ¿ª */
'
'+
'
'+
'
'+
'
'+
'
'+ /* ½º¸¶Æ®Æù°ÔÀÓ ¸®½ºÆ® ³ëÃâ ¿µ¿ª*/
'
'+
'
'+
' '+
/* End of [02] ½º¸¶Æ®°ÔÀÓ ¸Þ´º*/
/* [03~07] ¹æ¼Û~°í°´¼¾ÅÍ ¸Þ´º */
'- ' + this.CashButton() + '
'+
'- °í°´¼¾ÅÍ
'+
/* End Of [03~07] ¹æ¼Û~°í°´¼¾ÅÍ ¸Þ´º */
'
';
}
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 'Nate
'+
'°ÔÀÓ';
} else {
return 'Netmarble
'+
'À̺¥Æ®';
}
} else {
return 'Netmarble
';
}
},
/* °øÅëÆË¾÷ */
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 += ''+
'
';
}
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 = ''+
'
'+
'';
}
}
} 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 = ''+
'
'+
'';
}
}
}
// °ÔÀÓ°Ë»ö¹è³Ê
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 = ''+
'
'+
'
'+
/* [°ÔÀÓ°Ë»ö] */
'
'+
/* End Of [°ÔÀÓ°Ë»ö]*/
'
'+
'
'+
'
';
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 = '';
for ( var i = 0 ; i < aGameList.length ; i++ ) {
html += ''+
'- '+
( aGameList[i].icon == 'N' ? '' : ( aGameList[i].icon == 'H' ? '' : '' ) ) +
'
'+
''+aGameList[i].name+' '+
'- '+aGameList[i].name+'
'+
'- '+aGameList[i].title+'
'+
'
';
if ( i >= 15 ) { break; }
}
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 '';
}
},
/* 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 '' +
'';
},
/* ¹Ù·Î°¡±â °Ë»ö °á°ú ³ëÃâ */
ShowGameSearchResult : function( Resultlist ) {
/* Go ¹öư OFF */
/* °ÔÀÓ¸®½ºÆ® ±â´É ÃʱâÈ */
NetmarbleGNB.InitGameSelectButton();
/* °Ë»öµÈ °ÔÀÓ¿¡ ¼±ÅÃó¸® */
var selectedGameCount = 0; /* ¼±ÅÃµÈ °ÔÀÓ */
var selectedGameObj;
var objGame = document.getElementsByName('game');
if ( Resultlist != null && Resultlist.length != null ) {
for (var i = 0; i < Resultlist.length; i++) {
for ( var k = 0; k < objGame.length ; k++ ) {
if ( objGame[k].getAttribute('gamecode') == Resultlist[i][0] ) {
objGame[k].className = 'gnb_g_sch';
selectedGameCount++;
if ( selectedGameCount > 0 ) {
selectedGameObj = objGame[k];
}
}
}
}
}
/* °Ë»ö°á°ú°¡ 1°³À̸é Go ¹öư ON */
if ( selectedGameCount == 1 ) {
document.getElementById('btnNetmarbleGameSearchGo').click( function() { selectedGameObj.click(); });
document.getElementById('btnNetmarbleGameSearchGo').className = 'gnb_sch_on';
} else {
document.getElementById('btnNetmarbleGameSearchGo').click( function() { void(0); } );
document.getElementById('btnNetmarbleGameSearchGo').className = '';
}
}
}
/* [¹Ù·Î°¡±â °Ë»ö ¿ë º¯¼ö] */
var arrNetmarbleGame = new Array() ;
var strSchPromotionUrl = '';
var u_gnb_gameschban = 0; //¹è³Ê°¡ ¾øÀ» °æ¿ì '0', ÀÖÀ»°æ¿ì 1
var gnbGameSearch ; /* [¹Ù·Î°¡±â °Ë»ö] */
var NetmarbleGnbSearch = function() {
var NKS = this;
var NKS_inputId; /* Ű¿öµå¸¦ ÀÔ·ÂÇÏ´Â Input */
var NKS_resultId; /* °á°ú¸¦ Ãâ·ÂÇØÁÖ´Â ¿µ¿ª */
var NKS_ifrId; /* ifr */
var NKS_resultFunc; /* °á°ú¸¦ ³ëÃâÇÒ function */
var NKS_Keyword; /* »ç¿ëÀÚ°¡ ÀÔ·ÂÇÑ Å°¿öµå */
var NKS_KeyOri; /* »ç¿ëÀÚ°¡ ÀÔ·ÂÇÑ Å°¿öµå */
var NKS_KeyCng; /* º¯°æÇÑ Å°¿öµå */
var NKS_KeyLast; /* À̵¿ Á÷Àü Ű¿öµå*/
var NKS_errorCode; /* Àß ¸ø ÀÔ·ÂÇÒ °¡´É¼ºÀÌ Àִ Ű¿öµå */
var NKS_normalCode; /* °Ë»ö µ¥ÀÌÅÍ */
var NKS_specialCode; /* À̺¥Æ®¼º Ű¿öµå */
var NKS_errData = ''; /* °á°ú °ªÀÌ ¾øÀ» ¶§ Ãâ·Â ¹®±¸ */
var NKS_errKey = ''; /* ÀÔ·ÂÇÑ Å°¿öµå°¡ ¾ø´Â °æ¿ì */
var NKS_Rd = '';
var NKS_goUrl = ''; /* ¿£Å͸¦ ÀÌ¿ëÇØ À̵¿ÇÒ ÆäÀÌÁö*/
var NKS_PromoUrl = '';
var Resultlist = new Array();
var selectNo = -1;
var resultCnt = 0;
var isMouse = false; /* °Ë»ö °á°ú ¸¶¿ì½º À̺¥Æ® */
var iskey = false; /* °Ë»ö °á°ú Űº¸µå À̺¥Æ® */
/* Ãʼº°Ë»ö¿ë */
var INITIAL_KR = Array( '¤¡', '¤¢', '¤¤', '¤§', '¤¨','¤©', '¤±', '¤²', '¤³',
'¤µ', '¤¶', '¤·', '¤¸', '¤¹', '¤º', '¤»', '¤¼', '¤½', '¤¾' ); /*Ãʼº */
/* ¿µ¹®ÀÚÆÇ ÇѱÛÀÔ·Â º¯È¯¿ë */
var en_h = "rRseEfaqQtTdwWczxvg";
var reg_h = "[" + en_h + "]";
var en_b = { k:0,o:1,i:2,O:3,j:4,p:5,u:6,P:7,h:8,hk:9,ho:10,hl:11,y:12,n:13,nj:14,np:15,nl:16,b:17,m:18,ml:19,l:20 };
var reg_b = "hk|ho|hl|nj|np|nl|ml|k|o|i|O|j|p|u|P|h|y|n|b|m|l";
var en_f = { "":0,r:1,R:2,rt:3,s:4,sw:5,sg:6,e:7,f:8,fr:9,fa:10,fq:11,ft:12,fx:13,fv:14,fg:15,a:16,q:17,qt:18,t:19,T:20,d:21,w:22,c:23,z:24,x:25,v:26,g:27 };
var reg_f = "rt|sw|sg|fr|fa|fq|ft|fx|fv|fg|qt|r|R|s|e|f|a|q|t|T|d|w|c|z|x|v|g|";
var reg_exp = new RegExp("("+reg_h+")("+reg_b+")((?:"+reg_f+")(?=(?:"+reg_h+")(?:"+reg_b+"))|(?:"+reg_f+"))","g");
/* --------------------------------------------------------------------------------------------- */
this.setResultFunction = function ( resultFnc ) {
NKS_resultFunc = resultFnc;
},
this.setObj = function(objName, inputId, resultId, ifr) {
NKS_Name = objName;
NKS_inputId = document.getElementById(inputId);
if ( resultId != null && resultId != '' ) {
NKS_resultId = document.getElementById(resultId);
}
NKS_ifrId = document.getElementById(ifr);
NKS_inputId.onkeydown = function(event) { checkKeyDown(event); };
NKS_inputId.onkeyup = function(event) { checkKeyUp(event); };
NKS_inputId.onclick = function(event) { checkClick(event); };
NKS_inputId.onfocus = function(event) {
checkClick(event);
this.className='gnb_find_int bgnone';
};
NKS_inputId.onblur = function(event) {
checkBlur(event);
this.className= ((this.value!='') ? 'gnb_find_int bgnone' : 'gnb_find_int bgon');
};
if ( NKS_resultId != null ) {
NKS_resultId.onmouseover = function(event) { isMouse = true; }
NKS_resultId.onmouseout = function(event) { isMouse = false; }
}
}
this.setData = function(normalCode) {
NKS_errorCode = [['OZ','¿ÀÁîÅ©·Î´ÏŬ'], ['¹èƲ°¡·Î¼¼·Î','¹è°¡¼¼+'], ['ij¸¯ÃÂ','ij¸¯Ãª'], ['¹Ù´Ò¶óÄÏ','¹Ù´Ò¶óĹ'], ['¾î¼³Æ®±â¾î','¾î½äÆ®±â¾î'], ['YS','À̽º¿Â¶óÀÎ'], ['°Ç´ã','SD°Ç´ã'], ['Áø»ó±¹¹°»ê','Áø»ï±¹¹«½Ö'], ['¿ì°£´Ù','¿ì¸®°¡°£´Ù'], ['¼Å÷¾îÅÃ','¼µç¾îÅÃ'], ['½áµç','¼µç¾îÅÃ'], ['µ·±¸µ·±¸','¸¶±¸¸¶±¸'], ['º£Æ²½ºÅ¸','¹èƲ½ºÅ¸'], ['ÇÏÇÁÀèÆÌ','7Æ÷Ä¿'], ['oz','¿ÀÁîÅ©·Î´ÏŬ'], ['dbo','µå·¡°ïº¼¿Â¶óÀÎ'], ['¼Õ¿À°ø','µå·¡°ïº¼¿Â¶óÀÎ'], ['¿¡³×¸£±âÆÄ','µå·¡°ïº¼¿Â¶óÀÎ'],['°ÔÀÓÆå','°ÔÀÓÆÑ'], ['±×ü','±×·£µåüÀ̽º'], ['¹ÌÆÄ','¹Ì´ÏÆÄÀÌÅÍ'], ['¹ÙĹ','¹Ù´Ò¶óĹ'],['²á²áµû','ÆÄ¿öÄôÄôµû'], ['Åׯ®¸®½º','·ç¹Ì³×½º'], ['¾ßºÎ¸®','¾ßäºÎ¶ô¸®'], ['À¯Èñ¿Õ','¿¬±Ý¼ú»çTCG'],['¸À°í','¸Â°í2.0'], ['½Å¸Â°í','¸Â°í2.0'], ['ÇÎÅ©¸Â°í','¸Â°í2.0'], ['°Ö·¯±×','EX3'],['Ä¥·æ','Ä¥¿ëÀü¼³'], ['dho','´ëÇ×ÇØ½Ã´ë'],['wego','¿ì¸®°¡°£´Ù'],['ÆÐ¹Ð¸®','³Ý¸¶ºíÆÐ¹Ð¸®'],['Ç÷¡½Ã','Ç÷¡½Ã°ÔÀÓ'], ['ÄíŰ','¸Þ½ÅÀú'], ['µðºñ¿À','µå·¡°ïº¼¿Â¶óÀÎ'],['dragon','µå·¡°ïº¼¿Â¶óÀÎ'],['µå¿Â','µå·¡°ïº¼¿Â¶óÀÎ'],['¿¡ÀÌ¿ÀÁî','A.¿ÀÁî'],['¾ÖÇÁÅÍ 537','A.¿ÀÁî'], ['ºí·¯µå','ºí·¯µå¾Æ´Ï¸¶'],['¾Æ´Ï¸¶','ºí·¯µå¾Æ´Ï¸¶'], ['ºí·¯µå ¾Æ´Ï¸¶','ºí·¯µå¾Æ´Ï¸¶'], ['ÇÁ¸®¿ì½º¿Â¶óÀÎ','ÇÁ¸®¿ì½º Origin'] ];
NKS_normalCode = normalCode;
NKS_specialCode = [];
}
this.setErrData = function(text) { NKS_errData = text; }
this.setErrKey = function(text) { NKS_errKey = text; }
this.setGoUrl = function(url) { if (url.length > 0) { NKS_PromoUrl = url; NKS_goUrl = NKS_PromoUrl; } }
/* --------------------------------------------------------------------------------------------- */
this.goUrl = function(url) {
if (url != null) {
document.location.href = NKS_goUrl;
} else {
checkEnter();
}
}
this.selectRow = function(idx, flag) {
if ( NKS_resultId != null ) {
if (resultCnt == 0) { return; }
selectNo = idx;
for (var i = 0; i < resultCnt; i++) {
if (i == idx) {
if (flag == true) {
NKS_KeyCng = Resultlist[selectNo][1];
NKS_inputId.value = NKS_KeyCng;
NKS_goUrl = Resultlist[selectNo][2];
NKS_KeyLast = Resultlist[selectNo][1];
}
document.getElementById('NKS_' + i).className = 'over';
} else {
document.getElementById('NKS_' + i).className = '';
}
}
}
}
this.selectRowColor = function(idx) {
if ( NKS_resultId != null ) {
if (resultCnt == 0) { return; }
for (var i = 0; i < resultCnt; i++) {
if (i == idx) {
document.getElementById('NKS_' + i).className = 'over';
} else {
document.getElementById('NKS_' + i).className = '';
}
}
}
}
/* --------------------------------------------------------------------------------------------- */
var checkInput = function() {
if (NKS_inputId.value != '' ) {
goSearch();
}
}
var checkBlur = function(event) {
if (NKS_inputId.value == '') {
//NKS_inputId.className = 'gnb_find_int';
NKS_goUrl = NKS_PromoUrl;
}
if (isMouse == false) {
hiddenLayer();
}
}
var checkKeyDown = function(event) {
var e = getEvent(event);
var keycode = e.charCode ? e.charCode : e.keyCode;
iskey = false;
switch (keycode) {
case 38: /*ˤ*/
iskey = true;
selectNo--;
if (selectNo >= -1) { NKS.selectRow(selectNo, true); } else { selectNo = -1; }
break;
case 40: /*¾Æ·¡*/
iskey = true;
selectNo++;
if (resultCnt > 0) {
if (selectNo < resultCnt) { NKS.selectRow(selectNo, true); } else { selectNo = resultCnt - 1; }
} else {
selectNo = -1;
}
break;
case 13: /*¿£ÅÍ*/
checkEnter();
break;
}
}
var checkKeyUp = function(event) {
var e = getEvent(event);
var keycode = e.charCode ? e.charCode : e.keyCode;
// 107 +
// 8 BackSpace
// 32 SpaceBar
// 187 +
// 190 .
// 191 /
// 48~57 0~9
// 65~90 a~z
// 96~111 numpad
if (keycode == 8 || keycode == 32 || keycode == 187 || keycode == 190 || keycode == 191 || keycode == 229 || (keycode >= 48 && keycode <= 57) || (keycode >= 65 && keycode <= 90) || (keycode >= 96 && keycode <= 111)) {
if (iskey == true) { return; }
hiddenLayer();
clearValue();
if (NKS_inputId.value.length == 0) { return; }
goSearch();
}
}
var checkClick = function(event) {
//NKS_inputId.className = '';
NKS_goUrl = '';
hiddenLayer();
checkInput();
}
var checkEnter = function() {
/*
À̵¿ÇÒ °æ·Î°¡ ¾ø´Â °æ¿ì´Â?
[1] ÀÔ·ÂµÈ Å°¿öµå°¡ ¾ø±â ¶§¹®¿¡!
[2] °á°ú°¡ ¾ø±â ¶§¹®¿¡!
[3] °á°ú Áß¿¡¼ ¼±ÅÃÀ» ¾ÈÇ߱⠶§¹®¿¡! - ù¹øÂ° °á°ú °ª 1°³ ¼±ÅÃÇØ ÁÜ
*/
if (NKS_goUrl == '' || NKS_goUrl == null) {
if (NKS_inputId.value.length == 0) { viewLayer(NKS_errKey); insertLog('errKey'); return; } /* [1] */
if (Resultlist.length == 0) { viewLayer(NKS_errData); insertLog('errData'); return; } /* [2] */
/* [3]*/
NKS_Rd = Resultlist[0][3];
NKS_goUrl = Resultlist[0][2];
NKS_KeyLast = Resultlist[0][1];
}
insertLog('success');
insertRd();
top.document.location.href = NKS_goUrl; //URLÀ̵¿
return false;
}
var goSearch = function() {
NKS_KeyOri = NKS_inputId.value;
NKS_KeyCng = NKS_KeyOri;
/*
ÁÖ¾îÁø °ÔÀÓ ¸®½ºÆ®¿¡¼ °Ë»öÀ» ½ÃÀÛ
[1] À̺¥Æ®¼º Ű¿öµå 1°³
[2] Àß ¸ø ÀÔ·ÂÇÒ °¡´É¼ºÀÌ Àִ Ű¿öµå
[3] °Ë»ö µ¥ÀÌÅÍ
*/
if ( NKS_KeyOri == '') {
Resultlist = null;
displayResult();
} else {
if (!checkSpecial()) { /* [1] */
checkError(); /* [2] */
Resultlist = checkNormal(); /* [3] */
displayResult(); /* °á°ú Ãâ·Â */
}
}
}
var insertRd = function() {
if (NKS_Rd != null && NKS_Rd != '') {
NetmarbleGNB.clickrd(NKS_Rd); //RDÀ̵¿
}
}
var insertLog = function(result) {
try {
var logurl = 'http://gnb.netmarble.net/content/main/gamesearchlog.asp?';
logurl = logurl + 'keyori=' + NKS_KeyOri;
logurl = logurl + '&keycng=' + NKS_KeyCng;
logurl = logurl + '&keylast=' + NKS_KeyLast;
logurl = logurl + '&gourl=' + NKS_goUrl;
logurl = logurl + '&rd=' + NKS_Rd;
logurl = logurl + '&result=' + result;
NKS_ifrId.src = logurl;
} catch ( e ) {}
}
/* --------------------------------------------------------------------------------------------- */
var checkNormal = function() {
if (NKS_normalCode == null) { return; }
var temp_Resultlist = new Array();
var j = 0;
for (var i = 0; i < NKS_normalCode.length; i++) {
var NKS_ucCode = NKS_normalCode[i][1].toUpperCase();
var NKS_ucKeyCng = NKS_KeyCng.toUpperCase();
var NFS_ucCode_InitKr = getKoreanInitial( NKS_normalCode[i][1], NKS_KeyCng.length ); /* Ãʼº°Ë»ö */
var NKS_KeyCng_KR = toKorean(NKS_KeyCng ); /* ¿µ¹®ÀÚÆÇ ÇÑ±Û º¯È¯ */
if (NKS_ucCode.indexOf(NKS_ucKeyCng) >= 0) {
temp_Resultlist[j] = [NKS_normalCode[i][0], NKS_normalCode[i][1], NKS_normalCode[i][2], NKS_normalCode[i][3], NKS_ucCode.indexOf(NKS_KeyCng)];
j++;
} else if ( NKS_KeyCng == NFS_ucCode_InitKr ) { /* Ãʼº°Ë»ö ÀÏÄ¡ */
temp_Resultlist[j] = [NKS_normalCode[i][0], NKS_normalCode[i][1], NKS_normalCode[i][2], NKS_normalCode[i][3], NKS_ucCode.indexOf(NKS_KeyCng)];
j++;
} else if ( NKS_KeyCng_KR == NKS_normalCode[i][1].substr( 0, NKS_KeyCng_KR.length ) ){
temp_Resultlist[j] = [NKS_normalCode[i][0], NKS_normalCode[i][1], NKS_normalCode[i][2], NKS_normalCode[i][3], NKS_ucCode.indexOf(NKS_KeyCng)];
j++;
}
}
return temp_Resultlist;
}
var checkError = function() {
if (NKS_errorCode == null) { return; }
for (var i = 0; i < NKS_errorCode.length; i++) {
//»ç¿ëÀÚ°¡ ÀÔ·ÂÇÑ Å°¿öµå°¡ ¿À·ù Ű¿öµåÀ̸é ÁöÁ¤µÈ Ű¿öµå·Î º¯°æÇØÁÜ
if (NKS_errorCode[i][0].toUpperCase() == NKS_KeyOri.toUpperCase()) {
NKS_KeyCng = NKS_errorCode[i][1];
return;
}
}
}
var checkSpecial = function() {
if (NKS_specialCode == null) { return false; }
if (NKS_specialCode.length > 0) {
var NKS_ucSpecial1 = NKS_specialCode[0][0].toUpperCase();
var NKS_ucSpecial2 = NKS_specialCode[0][1].toUpperCase();
var NKS_ucKeyCng = NKS_KeyCng.toUpperCase();
if (NKS_ucSpecial2 == NKS_ucKeyCng || NKS_ucSpecial1 == NKS_ucKeyCng) {
NKS_goUrl = NKS_specialCode[0][2];
NKS_KeyCng = NKS_specialCode[0][1];
NKS_KeyLast = NKS_KeyCng;
NKS_inputId.value = NKS_KeyCng;
return true;
}
}
return false;
}
/* --------------------------------------------------------------------------------------------- */
var displayResult = function() {
var tempresult = new Array();
if (Resultlist != null && Resultlist.length > 0) {
for (var i = Resultlist.length - 1; i >= 0; i--) {
for (var j = 0; j < i; j++) {
if (Resultlist[j][4] > Resultlist[j + 1][4]) {
tempresult = Resultlist[j];
Resultlist[j] = Resultlist[j + 1];
Resultlist[j + 1] = [tempresult[0], tempresult[1], tempresult[2], tempresult[3], tempresult[4]];
}
}
}
for (var i = Resultlist.length - 1; i >= 0; i--) {
for (var j = 0; j < i; j++) {
tempresult = Resultlist[j];
Resultlist[j] = Resultlist[j + 1];
Resultlist[j + 1] = [tempresult[0], tempresult[1], tempresult[2], tempresult[3], tempresult[4]];
}
}
resultCnt = Resultlist.length;
eval( NKS_resultFunc + '( Resultlist )');
}else{
resultCnt = 0;
eval( NKS_resultFunc + '( Resultlist )');
}
}
var viewLayer = function(text) {
if ( NKS_resultId != null ) {
NKS_resultId.innerHTML = text;
NKS_resultId.style.display = 'block';
}
}
var hiddenLayer = function() {
selectNo = -1;
if ( NKS_resultId != null ) {
NKS_resultId.innerHTML = '';
NKS_resultId.style.display = 'none';
}
}
var clearValue = function() {
NKS_goUrl = '';
NKS_KeyOri = '';
NKS_KeyCng = '';
NKS_KeyLast = '';
NKS_Rd = '';
}
/* Ãʼº°Ë»ö¿ë - ÃʼºÃßÃâ ÇÔ¼ö */
var getKoreanInitial = function ( text, max_length ) {
var firstCharCode = ''
for ( var i = 0 ; i < text.length ; i++ ) {
var UniValue = ( text.substr( i, 1 ).charCodeAt(0) - 0xAC00) ;
var Cho = parseInt (( ( UniValue - ( UniValue % 28) ) / 28 ) / 21);
if ( INITIAL_KR[Cho] != null ) {
firstCharCode += INITIAL_KR[Cho];
}
if ( i == (max_length-1) ) {
return firstCharCode;
}
}
return firstCharCode;
}
/* ¿µ¹®ÀÚÆÇ ÇѱÛÀÔ·Â º¯È¯¿ë */
var toKorean = function (str) {
return str.replace(reg_exp,KR_Replace);
}
function KR_Replace(str,h,b,f) {
return String.fromCharCode(en_h.indexOf(h)*21*28 + en_b[b]*28 + en_f[f] + 44032);
}
/* --------------------------------------------------------------------------------------------- */
/*°øÅëÇÔ¼ö 1 - ºê¶ó¿ìÀú ±¸ºÐ */
var getBrowser = function() {
if (new RegExp(/MSIE/).test(navigator.userAgent)) return "ie";
else if (new RegExp(/Firefox/).test(navigator.userAgent)) return "ff";
else return 0;
}
/*°øÅëÇÔ¼ö 2 - ºê¶ó¿ìÀúº° À̺¥Æ® ±¸ºÐ*/
var getEvent = function(event) {
var e;
switch (getBrowser()) {
case "ie":
e = window.event;
break;
case "ff":
e = event;
break;
default:
e = window.event;
break;
}
return e;
}
}
if ( NetmarbleGNB.Init() ) { /* ÃʱâÈ */
NetmarbleGNB.Show(); /* GNB ³ëÃâ */
}
/* ±âŸ */
function clickrd(rdcode)
{
//try
//{
// if ( rdcode != null && rdcode != '' ) {
// if (__CRD_ENABLED__)
// {
// var clink, ifrm;
// clink = "http://nrd.netmarble.net/" + rdcode + ".cr";
// ifrm = document.getElementById( __CRD_ID );
// ifrm.src = clink;
// return true;
// }
// }
//}
//catch(x)
//{
//}
return true;
}
/* gnb °øÅëÆË¾÷¿ë callback function */
function GnbPopupCallBack( data ) {
try {
if ( data.popYn == 'True' ) {
window.open(n_gnb_popup_url, 'gnb_popup','resizable=no, scrollbars=no,toolbar=no, channelmode=no, location=no, directories=no, menubar=no, width='+n_gnb_popup_width+', height='+n_gnb_popup_height+', top=' + nPointH + ', left=' + nPointW );
}
} catch ( ex ) {
}
}
/* GTM Àû¿ë */
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-47776829-2', 'netmarble.net');
ga('send', 'pageview');
//GTM ½ºÅ©¸³Æ® »ðÀÔ (½Ç°è, TEST zone ±¸º°)
var GTMCode = "GTM-P7JWVDB";
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer',GTMCode);
window.gtmCD = {
'deviceType' : 'pc',
'platformType' : 'web',
'siteLanguage' : 'ko_KR',
'loginStatus' : 'N',
'id' : undefined,
'userType' : 'netmarble'
}