

////////////////////////////////////////////////////////
var GNB = 'isLoaded';

// GNB ·¹ÀÌ¾î¿ë
var __GameLayer0;
var __GameLayer1;
var __GameLayer2;
var _inbox00Size;
var _inbox01Size;
var _inbox02Size;

//GNB ¿É¼Ç
var gnbProperties = {
	login : true,
	customer : false,
	align : 'center',
	ssl : false
}

var __userAge		=	getCookie(CK_AGE);

var GNBVER = 'INFORMALHEADER.20100305.BASE';



/////////////////////////// GNB º¸Á¶ °´Ã¼ ///////////////////////////

var GameLayerRobot = function(name){
	this.name = name;
	this.layerId = name;
	this.viewDelay = 100;
	this.closeDelay = 300;
	this.close_timer;
	this.view_timer;
	
	this.viewGameLayer = function(){
		clearTimeout(this.close_timer);
		this.view_timer = setTimeout(this.name+".viewGameLayerImpl()",this.viewDelay);
	}
	
	this.viewGameLayerImpl = function(){
		setLayerDisplay( this.layerId, "block");
		setLayerDisplay( this.name + "backframe1", "block", "red");
		setLayerDisplay( this.name + "backframe2", "block", "red");
		setLayerDisplay( this.name + "backframe3", "block", "red");
		setLayerDisplay( this.name + "backframe4", "block", "red");
	}
	
	this.closeGameLayer = function(){
		clearTimeout(this.view_timer);
		this.close_timer = setTimeout(this.name+".closeGameLayerImpl()",this.closeDelay);
	}
	
	this.closeGameLayerImpl = function(){
		setLayerDisplay( this.layerId, "none");
		setLayerDisplay( this.name + "backframe1", "none");
		setLayerDisplay( this.name + "backframe2", "none");
		setLayerDisplay( this.name + "backframe3", "none");
		setLayerDisplay( this.name + "backframe4", "none");
	}
	
	var setLayerDisplay = function( objname, state, bgColor ){
		var obj = document.getElementById( objname );
		if(obj != null){
			obj.style.display = state;
			if(bgColor != null){
				obj.style.background = bgColor;
			}
		}
	}
}


var GameLayerInfo = function(gamecode,gamename,url,ndsurl,linktarget,agetype){
	this.gamecode=gamecode;
	this.gamename = gamename;
	this.url = url;
	this.ndsurl = ndsurl;
	this.linktarget	= linktarget;
	this.agetype	= agetype;	
}
var GameLayerListSize=function(height,width,left,top)	{
	this.height=height;
	this.width=width;
	this.left=left;
	this.top=top;	
}



///////////////////////////µ¥ÀÌÅÍ ·Îµå///////////////////////////
//°ÔÀÓ ¸®½ºÆ® ¹è¿­
var __gameLayerList = {
	"mmorpg":[
		new GameLayerInfo("10","C9","http://" + __urlPrefix + "c9.hangame.com/","/i:1000017106/c:15360?http://c9.hangame.com/","_top","0"),
		new GameLayerInfo("11","R2","http://" + __urlPrefix + "r2.hangame.com","/i:1000005200/c:40518?http://gamelayer.hangame.com/r2","_top","0"),
		new GameLayerInfo("17","¾ÆÆ²¶õÆ¼Ä«","http://" + __urlPrefix + "atlantica.hangame.com/","/i:1000016137/c:29669?http://atlantica.hangame.com/","_top","0"),
		new GameLayerInfo("18","¾ÆÅ©·Îµå","http://" + __urlPrefix + "archlord.hangame.com/","/i:1000009453/c:39801?http://archlord.hangame.com","_top","0"),
		new GameLayerInfo("15","ÇÁ¸®½ºÅæÅ×ÀÏ","http://" + __urlPrefix + "pristontale.hangame.com/","/i:1000005203/c:18650?http://gamelayer.hangame.com/pristontale","_top","0"),
		new GameLayerInfo("83","Z9º°","http://" + __urlPrefix + "z9.hangame.com/","","_top","0"),
		new GameLayerInfo("93","TERA","http://" + __urlPrefix + "tera.hangame.com/","","_top","0"),
		new GameLayerInfo("21","½ÊÀÌÁöÃµ2","http://" + __urlPrefix + "12sky2.hangame.com/","","_top","0"),
		new GameLayerInfo("38","±ÍÈ¥","http://" + __urlPrefix + "hon.hangame.com","","_top","0"),
		new GameLayerInfo("91","¿öÇØ¸Ó ¿Â¶óÀÎ","http://" + __urlPrefix + "war.hangame.com/","","_top","0"),
		new GameLayerInfo("16","½ã:¿ùµå¿¡µð¼Ç","http://" + __urlPrefix + "sunonline.hangame.com/sitemain.asp","/i:1000017218/c:52142?http://sunonline.hangame.com/sitemain.asp","_top","0"),
		new GameLayerInfo("95","Ä«·Î½º¿Â¶óÀÎ","http://" + __urlPrefix + "karos.hangame.com","","_top","0"),
		new GameLayerInfo("33","±×¶û¿¡ÀÌÁö","http://" + __urlPrefix + "granage.hangame.com","","_top","0"),
		new GameLayerInfo("98","¼¼ºì¼Ò¿ïÁî","http://" + __urlPrefix + "7souls.hangame.com","","_top","0")
	],
	"actionfps":[
		new GameLayerInfo("20","Å×ÀÏÁî·±³Ê","http://" + __urlPrefix + "tr.hangame.com/","/i:1000007830/c:44382?http://tr.hangame.com","_top","0"),
		new GameLayerInfo("90","¸ó½ºÅÍÇåÅÍ F","http://" + __urlPrefix + "mhf.hangame.com","/i:1000013711/c:3602?http://mhf.hangame.com/","_top","0"),
		new GameLayerInfo("14","½ºÅ°µå·¯½¬","http://" + __urlPrefix + "skidrush.hangame.com","/i:1000005208/c:37316?http://gamelayer.hangame.com/skidrush","_top","0"),
		new GameLayerInfo("22","¿ïÇÁÆÀ","http://" + __urlPrefix + "wolfteam.hangame.com/","/i:1000005297/c:33525?http://gamelayer.hangame.com/wolfteam","_top","0"),
		new GameLayerInfo("24","Ä«¸£¸¶2","http://" + __urlPrefix + "karma2.hangame.com","","_top","0")
	],
	"sports":[
		new GameLayerInfo("97","ÆÎ¾ß","http://" + __urlPrefix + "pangya.hangame.com","","_top","0"),
		new GameLayerInfo("23","ÇÁ¸®½ºÅ¸ÀÏ","http://" + __urlPrefix + "fs.hangame.com","","_top","0"),
		new GameLayerInfo("85","¸¶±¸¸¶±¸","http://" + __urlPrefix + "ma9.hangame.com/ma9/main.asp","/i:1000017165/c:37283?http://ma9.hangame.com/ma9/intro.asp","_top","0"),
		new GameLayerInfo("80","´ç±¸¸Å´Ï¾Æ","http://" + __urlPrefix + "game1.hangame.com/billmania.nhn","/i:1000005190/c:22045?http://gamelayer.hangame.com/billmania","_top","0"),
		new GameLayerInfo("32","¼¦¿Â¶óÀÎ","http://" + __urlPrefix + "shotonline.hangame.com/","/i:1000016431/c:10577?http://shotonline.hangame.com/","_top","0"),
		new GameLayerInfo("94","ÃâÁ¶³¬½Ã¿Õ","http://" + __urlPrefix + "fh.hangame.com/","","_top","0")
	],
	"gostop":[
		new GameLayerInfo("40","½Å¸Â°í","http://" + __urlPrefix + "gostop.hangame.com/msduelgo.nhn","/i:1000005169/c:6270?http://gamelayer.hangame.com/msduelgo","_top","19"),
		new GameLayerInfo("49","¼¸´Ù","http://" + __urlPrefix + "gostop.hangame.com/gssudda.nhn ","/i:1000017196/c:14862?http://gostop.hangame.com/gssudda.nhn","_top","19"),
		new GameLayerInfo("41","¸Â°í","http://" + __urlPrefix + "gostop.hangame.com/duelgo.nhn","/i:1000005170/c:63877?http://gamelayer.hangame.com/duelgo","_top","19"),
		new GameLayerInfo("42","´õºí¸Â°í","http://" + __urlPrefix + "gostop.hangame.com/doublego.nhn","/i:1000005171/c:52351?http://gamelayer.hangame.com/doublego","_top","19"),
		new GameLayerInfo("44","°í½ºÅé","http://" + __urlPrefix + "gostop.hangame.com/gostop.nhn","/i:1000005173/c:17560?http://gamelayer.hangame.com/gostop","_top","19")
	],
	"poker":[
		new GameLayerInfo("55","7Æ÷Ä¿","http://" + __urlPrefix + "poker.hangame.com/poker7.nhn","/i:1000005177/c:41554?http://gamelayer.hangame.com/poker7","_top","19"),
		new GameLayerInfo("50","¶ó½ºº£°¡½ºÆ÷Ä¿","http://" + __urlPrefix + "poker.hangame.com/laspoker.nhn","/i:1000005178/c:38343?http://gamelayer.hangame.com/laspoker","_top","19"),
		new GameLayerInfo("51","ÇÏÀÌ·Î¿ì","http://" + __urlPrefix + "poker.hangame.com/highlow2.nhn","/i:1000005179/c:17563?http://gamelayer.hangame.com/highlow","_top","19"),
		new GameLayerInfo("52","¸ÂÆ÷Ä¿","http://" + __urlPrefix + "poker.hangame.com/duelpoker.nhn","/i:1000005180/c:57116?http://gamelayer.hangame.com/duelpoker","_top","19"),
		new GameLayerInfo("53","·Î¿ì¹ÙµÏÀÌ","http://" + __urlPrefix + "poker.hangame.com/baduki.nhn","/i:1000005181/c:5590?http://gamelayer.hangame.com/baduki","_top","19"),
		new GameLayerInfo("56","ÆÄÆ¼ÈÇ¶ó","http://" + __urlPrefix + "poker.hangame.com/hoola3.nhn","/i:1000005183/c:55083?http://gamelayer.hangame.com/hoola3","_top","19")
	],
	"board":[
		new GameLayerInfo("64","BATOO","http://" + __urlPrefix + "batoo.hangame.com","/i:1000017161/c:35600?http://batoo.hangame.com/","_top","0"),
		new GameLayerInfo("60","¹ÙµÏ","http://" + __urlPrefix + "baduk.hangame.com/","/i:1000005184/c:57692?http://gamelayer.hangame.com/baduk","_top","0"),
		new GameLayerInfo("61","Àå±â","http://" + __urlPrefix + "janggi.hangame.com/","/i:1000005185/c:54442?http://gamelayer.hangame.com/janggi","_top","0"),
		new GameLayerInfo("62","¿À¸ñ","http://" + __urlPrefix + "game1.hangame.com/omok.nhn","/i:1000005188/c:43737?http://gamelayer.hangame.com/omok","_top","0"),
		new GameLayerInfo("63","Ã¼½º","http://" + __urlPrefix + "game1.hangame.com/chess.nhn","/i:1000005189/c:52971?http://gamelayer.hangame.com/chess","_top","0"),
		new GameLayerInfo("78","Ä«µå³îÀÌ","http://" + __urlPrefix + "game1.hangame.com/solcard.nhn","/i:1000005199/c:16155?http://gamelayer.hangame.com/solcard","_top","0")
	],
	"puzzle":[
		new GameLayerInfo("82","Å×Æ®¸®½º","http://" + __urlPrefix + "tetris.hangame.com/","/i:1000016978/c:9277?http://tetris.hangame.com/","_top","0"),
		new GameLayerInfo("77","»çÃµ¼º","http://" + __urlPrefix + "game1.hangame.com/gmahjong.nhn","/i:1000005192/c:12348?http://gamelayer.hangame.com/gmahjong","_top","0"),
		new GameLayerInfo("70","½ÅÀ·³îÀÌ","http://" + __urlPrefix + "game1.hangame.com/sinyutnori.nhn","/i:1000005186/c:29045?http://gamelayer.hangame.com/hanyut","_top","0"),
		new GameLayerInfo("99","¹ÙÀÌ½ÃÆ¼","http://" + __urlPrefix + "buycity.hangame.com","","_top","0"),
		new GameLayerInfo("88","ÆÛÇÇ·¹µå","http://" + __urlPrefix + "puppyred.hangame.com/","/i:1000014810/c:17453?http://game1.hangame.com/red","_top","0"),
		new GameLayerInfo("76","ºù°í","http://" + __urlPrefix + "game1.hangame.com/bingo.nhn","/i:1000005197/c:18034?http://gamelayer.hangame.com/bingo","_top","0"),
		new GameLayerInfo("71","¼¼ÀÓÆÎÆÎ","http://" + __urlPrefix + "game1.hangame.com/same.nhn","/i:1000005196/c:12615?http://gamelayer.hangame.com/msame","_top","0"),
		new GameLayerInfo("72","Ã¼ÀÎÁöÆÎÆÎ","http://" + __urlPrefix + "game1.hangame.com/panpan.nhn","/i:1000005195/c:30460?http://gamelayer.hangame.com/panpan","_top","0"),
		new GameLayerInfo("74","½Ì±Û¸¶ÀÛ","http://" + __urlPrefix + "game1.hangame.com/solitaire.nhn","/i:1000005198/c:35104?http://gamelayer.hangame.com/solitaire","_top","0"),
		new GameLayerInfo("86","Æ÷Æ÷Á¶ÀÌ","http://" + __urlPrefix + "popozoy.hangame.com/ ","","_top","0"),
		new GameLayerInfo("87","¿ä¸®Á¶¸® 1È£Á¡","http://" + __urlPrefix + "yorijori.hangame.com/","","_top","0"),
		new GameLayerInfo("96","¿Àµð¼Ç","http://" + __urlPrefix + "audition.hangame.com","","_top","0")
	],
	"gamepack":[
		new GameLayerInfo("2764","¾ÆÆ²¶õÆ¼½ºÀÇ ºÎ¸§","http://" + __urlPrefix + "packgoon.hangame.com/gamepack/K_S_COATLANTIS1","","_top","0"),
		new GameLayerInfo("2817","Á¦4¿ø¼Ò","http://" + __urlPrefix + "packgoon.hangame.com/gamepack/K_S_4ELEMENTS1","/i:1000017250/c:13824?http://packgoon.hangame.com/gamepack/K_S_CAKEMANIA1","_top","0"),
		new GameLayerInfo("2814","Ãµ»óÀÇ ¸¶ÀÛ","http://" + __urlPrefix + "packgoon.hangame.com/gamepack/K_S_ARMAHJONG1","/i:1000017222/c:45859?http://packgoon.hangame.com/gamepack/K_S_YOUDAFARM1","_top","0"),
		new GameLayerInfo("2818","Ã³Áñ","http://" + __urlPrefix + "packgoon.hangame.com/gamepack/K_S_CHUZZLE1","","_top","0"),
		new GameLayerInfo("2102","½´ÆÛ¸¶ÄÏ ¸Å´Ï¾Æ","http://" + __urlPrefix + "packgoon.hangame.com/gamepack/K_S_SMMANIA1","/i:1000007530/c:7634?http://flash.hangame.com/fsabari?from=hgmain","_top","0"),
		new GameLayerInfo("2714","²¿²¿¾ß ²¿²¿","http://" + __urlPrefix + "packgoon.hangame.com/gamepack/K_F_KOKO","/i:1000017138/c:52810?http://www.hangame.com/farm2","_top","0"),
		new GameLayerInfo("2794","³»ÀÏÀº °ÝÆÄ¿Õ","http://" + __urlPrefix + "packgoon.hangame.com/gamepack/K_F_CRASH","","_top","0")
	],
	"mobilepack":[
		new GameLayerInfo("SKT","2010ÇÁ·Î¾ß±¸","http://mobilepack.hangame.com/skt/gameView.nhn?cid=01104820","/i:1000017294/c:65147?http://mobilepack.hangame.com/mini4","_top","0"),
		new GameLayerInfo("SKT","±ÍÈ¥ ÀÚ°´Æí","http://mobilepack.hangame.com/skt/gameView.nhn?cid=01104797","/i:1000017295/c:28709?http://mobilepack.hangame.com/demon","_top","0"),
		new GameLayerInfo("SKT","Á¦³ë´Ï¾Æ2","http://mobilepack.hangame.com/skt/gameView.nhn?cid=01104727","/i:1000017296/c:38147?http://mobilepack.hangame.com/maplesea","_top","0"),
		new GameLayerInfo("SKT","¶óÀÌ¿ÀÆ®","http://mobilepack.hangame.com/skt/gameView.nhn?cid=01104825","/i:1000017297/c:11353?http://mobilepack.hangame.com/nomzero","_top","0"),
		new GameLayerInfo("SKT","ºò¹ð Æ²¸°±×¸²Ã£±â","http://mobilepack.hangame.com/skt/gameView.nhn?cid=01104728","/i:1000017298/c:7721?http://mobilepack.hangame.com/regend","_top","0"),
		new GameLayerInfo("SKT","Å¸ÄÚ¾ßÅ°Å¸ÀÌÄï","http://mobilepack.hangame.com/skt/gameView.nhn?cid=01104818","/i:1000017256/c:57545?http://mobilepack.hangame.com/subway2009","_top","0"),
		new GameLayerInfo("SKT","¾å2 ½Ã°øÀÇ ±Õ¿­","http://mobilepack.hangame.com/skt/gameView.nhn?cid=01104829","/i:1000017299/c:27340?http://mobilepack.hangame.com/beathero","_top","0")
	]
};


// GNB CSS ½ºÅ¸ÀÏ.

function setHeaderCSS(){
	var __s = "";
	__s += "<style>\n";
	
	__s += "/*edit_0911_m*/";
	__s += "#global {width:100%; height:36px; z-index:25555; background:url(http://images.hangame.co.kr/hangame/renewal_2007/common/g_bg01.gif) repeat-x; text-align:center;}";
	__s += "#global02 {width:100%; height:36px; z-index:25555; background:url(http://images.hangame.co.kr/hangame/renewal_2007/common/g_bg02.gif) repeat-x; text-align:center;}";
	__s += "#global .set_top, #global02 .set_top {position:relative; width:960px; height:36px; margin:0 auto; text-align:left; ;font-family:dotum;z-index:25555;}";
	__s += "/*edit_0911_m*/";
	__s += "	";
	__s += "#gnb_p {position:relative; width:100%;z-index:25555;text-align:center; background:url(http://images.hangame.co.kr/hangame/renewal_2007/common/g_bg02.gif) repeat-x; letter-spacing:0 !important;}";
	__s += "#gnb_p #global {clear:both; position:relative; width:960px; min-width:860px; margin:0 auto; z-index:25555; height:36px; text-align:left; font-family:dotum; background:none !important;}";
	__s += "";
	__s += "#gnb_p_l {position:relative; width:100%;z-index:25555; text-align:left; background:url(http://images.hangame.co.kr/hangame/renewal_2007/common/g_bg02.gif) repeat-x;margin-left:0;letter-spacing:0 !important;}";
	__s += "#gnb_p_l #global {clear:both; position:relative; width:960px; min-width:860px; margin:0 auto; z-index:25555; height:36px; text-align:left; font-family:dotum; background:none !important;}";
	__s += "";
	__s += "#gnb_p_l #global a:link, #gnb_p #global a:link{color:#666; text-decoration:none;}/*edit_0710*/";
	__s += "#gnb_p_l #global a:visited, #gnb_p #global a:visited {color:#666; text-decoration:none;}/*edit_0710*/";
	__s += "#gnb_p_l #global a:hover, #gnb_p #global a:hover {color:#FF7800 !important; text-decoration:underline;}";
	__s += "#gnb_p_l #global a:active, #gnb_p #global a:active {color:#666; text-decoration:underline;}/*edit_0710*/";
	__s += "#glogo {position:absolute; top:2px; left:8px;}";
	__s += "#gnb01 {position:absolute; top:2px; left:147px; display:inline;margin:0;}";
	__s += "#gnb01 li {float:left; display:inline;}";
	__s += "#gnb02 {position:relative; z-index:100000; float:right; margin:9px 6px 0 0; display:inline;}/*edit_0722*/";
	__s += "#gnb02 li {float:left;display:inline;}";
	__s += "#gnb02 img.log {margin-left:5px;}";
	__s += "#gnb03 {float:right; margin:2px 6px 0 0; width:168px; height:32px; display:inline;}";
	__s += "#global .g_game, #gnb_p .g_game, #gnb_p_l .g_game {left:-4px; top:30px;}";
	__s += "#global .g_pack , #gnb_p .g_pack, #gnb_p_l .g_pack {left:200px; top:30px;}";
	__s += "#global .g_pack2 , #gnb_p .g_pack2, #gnb_p_l .g_pack2 {left:271px; top:30px;}/*add_090210*/";
	__s += "/*edit_090422*/";
	__s += "#global .g_pack3 , #gnb_p .g_pack3, #gnb_p_l .g_pack3 {left:144px; top:30px;}/*add_090422*/";
	__s += "#global .g_flash, #gnb_p .g_flash, #gnb_p_l .g_flash {left:248px; top:30px;}";
	__s += "#global .g_mobile, #gnb_p .g_mobile, #gnb_p_l .g_mobile {left:318px; top:30px;}/*add_m_0225*/";
	__s += "/*edit_0909*/";
	__s += "#glayer_game {position:absolute; z-index:55555; margin-left:10px;}";
	__s += "#glayer_game dl {float:left; width:117px; height:220px; margin:13px 0 0 0; ine-height:1.2em; font-weight:normal; border-left:1px solid #ededed;}";
	__s += "#glayer_game dl.pf {display:inline; width:130px !important; height:167px; margin-left:6px !important; padding:0; border:0 !important;}";
	__s += "#glayer_game dl.pf dd span {width:25px !important;}";
	__s += "#glayer_game dl dd .p9 {font-family:tahoma !important; color:#B5B5B5; font-size:9px;}";
	__s += "#glayer_game dl.long {width:200px !important;border:0 !important;}";
	__s += "#glayer_game dl.first {display:inline;margin-left:7px; border-left:0;}";
	__s += "#glayer_game dl.second {display:inline; width:118px ;}";
	__s += "#glayer_game dl.long dd {float:left; width:99px;}";
	__s += "#glayer_game dl.long dd.long {clear:both;}";
	__s += "#glayer_game dt {height:22px; text-align:left; padding-left:8px;}";
	__s += "#glayer_game dt img {margin-top:3px;}";
	__s += "#glayer_game dd {margin:0;  padding-left:8px;  font-size:11px; line-height:14px; text-align:left;}";
	__s += "#glayer_game dd span {display:inline; float:left; width:13px; margin:-1px 0 0; padding:0; font-family:tahoma !important; *vertical-align:0.1em;}";
	__s += "#glayer_game dl a {position:relative; font-size:11px !important;}/*0111*/";
	__s += "#glayer_game dl a:hover {color:#FF7800;}";
	__s += "#glayer_game dd.img_go {position:relative; z-index:500; width:135px; height:44px; margin:2px -11px 0 -2px; padding:0;}";
	__s += "#glayer_game .glayer_close {display:block; position:absolute; top:11px; right:10px; z-index:100; width:12px; height:12px;}";
	__s += "#glayer_game .inbox01 {width:844px;height:239px; background:url('http://images.hangame.co.kr/hangame/renewal_2007/common/layer_game_best_.gif') no-repeat;}";
	__s += "#glayer_game .inbox02 {width:145px;height:185px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://images.hangame.co.kr/hangame/renewal_2007/common/layer_02.png',sizingMethod='image');}";
	__s += "html>body #glayer_game .inbox02  {background:url('http://images.hangame.co.kr/hangame/renewal_2007/common/layer_02.png') transparent;}";
	__s += "#glayer_game .inbox03 {width:279px;height:183px; background:url('http://images.hangame.co.kr/hangame/renewal_2007/common/layer_packgun.gif') no-repeat;}";
	__s += "/*edit_0909*/";
	__s += "";
	__s += "#glayer_game .gray05, #global a.gray05:link, #glayer_game a.gray05:visited, #glayer_game a.gray05:hover, #glayer_game a.gray05:active {color:#B5B5B5;}/*0110*/";
	__s += "#gnb_sub {position:relative; height:28px; background:url(http://images.hangame.co.kr/hangame/renewal_2007/common/g_bg_sub.gif) repeat-x; z-index:550;}/*070326*/";
	__s += "*body #gnb_sub {width:expression(document.body.clientWidth <= 860 ? '860px' : '100%')}";
	__s += "#gnb_sub .event {position:absolute; top:9px; left:20px; background:url(http://images.hangame.co.kr/hangame/renewal_2007/common/sq_gray.gif) no-repeat 0 4px; font-size:11px; padding-left:7px;}";
	__s += "#gnb_sub .myguild {position:absolute; top:3px; right:10px;}";
	__s += "#gnb_sub .myguild .home {float:right; margin:7px 9px 0 0; padding-left:6px; background:url(http://images.hangame.co.kr/hangame/renewal_2007/common/bu_arw08.gif) no-repeat 0 2px; font-size:11px;}";
	__s += "#gnb_sub .myguild .go {float:right;}";
	__s += "/*add_0710*/ ";
	__s += "#global .g_more, #gnb_p .g_more, #gnb_p_l .g_more {left:87px; top:18px; z-index:200000;}/*edit_0722*/";
	__s += "#global .g_more_no, #gnb_p .g_more_no, #gnb_p_l .g_more_no {left:140px; top:18px; z-index:200000;}/*edit_0722*/";
	__s += "#glayer_game .inbox_more_bg {position:absolute; left:0; top:0; z-index:0; width:119px;height:165px; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://images.hangame.co.kr/hangame/renewal_2007/common/layer_03.png',sizingMethod='scale');}";
	__s += "html>body #glayer_game .inbox_more_bg {background:url('http://images.hangame.co.kr/hangame/renewal_2007/common/layer_03.png') transparent;}";
	__s += "#glayer_game .inbox_more {position:relative; z-index:200000; width:119px;height:165px;}/*add_0710*/ ";
	__s += "#glayer_game .inbox_more dl {float:none; width:101px !important; height:140px; margin-left:13px; margin-top:15px; border:none !important;}";
	__s += "html>body #glayer_game .inbox_more dl {float:left;}";
	__s += "#glayer_game .inbox_more dt {display:none;}";
	__s += "#glayer_game .inbox_more dd {padding:0 0 2px 0;letter-spacing:-1px;}";
	__s += "#glayer_game .inbox_more dd.spc {padding:1px 0 2px 14px; background:url(http://images.hangame.co.kr/hangame/renewal_2007/common/gnb_spc.gif) 0 1px no-repeat;}";
	__s += "#glayer_game .inbox_more dd.view_all {position:absolute; left:0; bottom:3px; clear:both; width:101px; margin:3px 9px 0 9px; background:url(http://images.hangame.co.kr/hangame/renewal_2007/common/gnb_more_li.gif) 0 0 repeat-x;}";
	__s += "#glayer_game .inbox_more dd.view_all a {float:right; margin:6px 0 0 0; padding:0 7px 0 0; background:url(http://images.hangame.co.kr/hangame/renewal_2007/common/gnb_ico_org.gif) 100% 2px no-repeat;}";
	__s += "html>body #glayer_game .inbox_more dd.view_all a {padding:0 7px 0 0;}";
	__s += "#glayer_game .org05, #glayer_game a.org05:link, #glayer_game a.org05:visited, #glayer_game a.org05:hover, #glayer_game a.org05:active {color:#ff6600 !important;}";
	__s += "#glayer_game .gray03, #glayer_game a.gray03:link, #glayer_game a.gray03:visited, #glayer_game a.gray03:hover, #glayer_game a.gray03:active {color:#888 !important;}";
	__s += "/* //add_0710*/";
	
	__s += "</style>\n";
	gnbWrite(__s);
}



///////////////////////////°ÔÀÓ ·¹ÀÌ¾î///////////////////////////

function generateGnbGameLayers(){
	__GameLayer0=new GameLayerRobot("__GameLayer0");
	__GameLayer1=new GameLayerRobot("__GameLayer1");
	__GameLayer2=new GameLayerRobot("__GameLayer2");

	// height, width, left, top
	if(gnbProperties.login && gnbProperties.customer){	// ·Î±×ÀÎ ÀÖ°í, °í°´¼¾ÅÍ ÀÖÀ» ¶§
		_inbox00Size=new GameLayerListSize(156,117,151,25);
	}else{	// ·Î±×ÀÎ ¾øÀ» ¶§
		_inbox00Size=new GameLayerListSize(156,117,98,25);
	}	
	
	_inbox01Size=new GameLayerListSize(232,843,6,36);
	_inbox02Size=new GameLayerListSize(177,279,154,36);
}

function allLayerClose()	{
	__GameLayer0.closeGameLayerImpl();
	__GameLayer1.closeGameLayerImpl();
	__GameLayer2.closeGameLayerImpl();
}

var generateGameLayerHtml=function(group)	{
	var __s = "";
	for(var i=0;i<__gameLayerList[group].length;i++){
		if(__userAge=='' || __userAge >= parseInt(__gameLayerList[group][i].agetype))	{
			__s += '<dd '

			__s += '><span class="gray05 p9">' + __gameLayerList[group][i].gamecode + '</span><a href="' + __gameLayerList[group][i].url + '"';
			if(__gameLayerList[group][i].linktarget!="")	{
				__s += ' target="' + __gameLayerList[group][i].linktarget + '" ';
			}		
			__s += '  onclick="setNdsClickTag(\''+__gameLayerList[group][i].ndsurl+'\');" ';
			__s += '  onfocus="this.blur()" >' + __gameLayerList[group][i].gamename + ' </a></dd>\n';
		}	else	{
			__s += '<dd class="gray05"><span class="gray05 p9">' + __gameLayerList[group][i].gamecode + '</span>' + __gameLayerList[group][i].gamename + '</dd>\n';
		}

	}
	return __s;
}
var initGameLayer=function()	{

	__s ='';
	
	// <!-- gnb_layer_01 -->
	__s +='<iframe src="" name="__GameLayer1backframe1" frameborder="0" width="' + _inbox01Size.width + '" height="' + (_inbox01Size.height-3) + '" style="position:absolute;top:' + _inbox01Size.top + 'px; display:none;left:' + (_inbox01Size.left) + 'px; z-index:55555" ></iframe>';
	__s +='<iframe src="" name="__GameLayer1backframe2" frameborder="0" width="' + (_inbox01Size.width-2) + '" height="' + (_inbox01Size.height-2) + '" style="position:absolute;top:' + _inbox01Size.top + 'px; display:none;left:' + (_inbox01Size.left+1) + 'px; z-index:55555;" ></iframe>';
	__s +='<iframe src="" name="__GameLayer1backframe3" frameborder="0" width="' + (_inbox01Size.width-4) + '" height="' + (_inbox01Size.height-1) + '" style="position:absolute;top:' + _inbox01Size.top + 'px; display:none;left:' + (_inbox01Size.left+2) + 'px; z-index:55555;" ></iframe>';
	__s +='<iframe src="" name="__GameLayer1backframe4" frameborder="0" width="' + (_inbox01Size.width-6) + '" height="' + (_inbox01Size.height) + '" style="position:absolute;top:' + _inbox01Size.top + 'px; display:none;left:' + (_inbox01Size.left+3) + 'px; z-index:55555" ></iframe>';
	__s +='<div id="__GameLayer1" style="display:none"><div id="glayer_game" class="g_game" onmouseover="__GameLayer1.viewGameLayer();" onmouseout="__GameLayer1.closeGameLayer();" >\n';
	__s +='		<div class="inbox01">\n';
	__s +='			<dl class="first">\n';
	__s +='			<dt><img src="' + __headerImgUrl + '/common/layer_tg_0101.gif" width="19" height="11" alt="RPG"></dt>\n';
	__s +=			generateGameLayerHtml("mmorpg");
	__s +='			</dl>\n';
	__s +='			<dl>\n';
	__s +='			<dt><img src="' + __headerImgUrl + '/common/layer_tg_0201.gif" width="74" height="11" alt="¾×¼Ç/FPS/·¹ÀÌ½Ì"></dt>\n';
	__s +=			generateGameLayerHtml("actionfps");
	__s +='			</dl>\n';
	__s +='			<dl>\n';
	__s +='			<dt><img src="' + __headerImgUrl + '/common/layer_tg_13.gif" width="52" height="12" alt="½ºÆ÷Ã÷/½´ÆÃ"></dt>\n';
	__s +=			generateGameLayerHtml("sports");
	__s +='			</dl>\n';	
	__s +='			<dl>\n';
	__s +='			<dt><img src="' + __headerImgUrl + '/common/layer_tg_04.gif" width="48" height="11" alt="°í½ºÅé°ÔÀÓ"></dt>\n';
	__s +=			generateGameLayerHtml("gostop");
	__s +='			</dl>\n';
	__s +='			<dl>\n';
	__s +='			<dt><img src="' + __headerImgUrl + '/common/layer_tg_05.gif" width="40" height="11" alt="Æ÷Ä¿°ÔÀÓ"></dt>\n';
	__s +=			generateGameLayerHtml("poker");
	__s +='			</dl>\n';
	__s +='			<dl>\n';
	__s +='			<dt><img src="' + __headerImgUrl + '/common/layer_tg_06.gif" width="38" height="11" alt="º¸µå°ÔÀÓ"></dt>\n';
	__s +=			generateGameLayerHtml("board");
	__s +='			</dl>\n';
	__s +='			<dl>\n';
	__s +='			<dt><img src="' + __headerImgUrl + '/common/layer_tg_14_2.gif" width="86" height="12" alt="ÆÛÁñ/¾ÆÄÉÀÌµå/°æ¿µ"></dt>\n';
	__s +=			generateGameLayerHtml("puzzle");
	__s +='			</dl>\n';
	__s +='			<a href="javascript:__GameLayer1.closeGameLayer();" onfocus="this.blur()" class="glayer_close"><img src="' + __headerImgUrl + '/common/btn_close_gnb.gif" width="12" height="12" alt="close"></a>';
	__s +='		</div>\n';			
	__s +='	</div></div>\n';	

	// <!-- gnb_layer_packgun -->
	__s +='<iframe src="" name="__GameLayer2backframe1" frameborder="0" width="' + _inbox02Size.width + '" height="' + (_inbox02Size.height-3) + '" style="position:absolute;top:' + _inbox02Size.top + 'px; display:none;left:' + (_inbox02Size.left) + 'px; z-index:55555;" ></iframe>';
	__s +='<iframe src="" name="__GameLayer2backframe2" frameborder="0" width="' + (_inbox02Size.width-2) + '" height="' + (_inbox02Size.height-2) + '" style="position:absolute;top:' + _inbox02Size.top + 'px; display:none;left:' + (_inbox02Size.left+1) + 'px; z-index:55555;" ></iframe>';
	__s +='<iframe src="" name="__GameLayer2backframe3" frameborder="0" width="' + (_inbox02Size.width-4) + '" height="' + (_inbox02Size.height-1) + '" style="position:absolute;top:' + _inbox02Size.top + 'px; display:none;left:' + (_inbox02Size.left+2) + 'px; z-index:55555;" ></iframe>';
	__s +='<iframe src="" name="__GameLayer2backframe4" frameborder="0" width="' + (_inbox02Size.width-6) + '" height="' + (_inbox02Size.height) + '" style="position:absolute;top:' + _inbox02Size.top + 'px; display:none;left:' + (_inbox02Size.left+3) + 'px; z-index:55555;" ></iframe>';
	__s +='<div id="__GameLayer2" style="display:none">\n';
	__s +='<div id="glayer_game" class="g_pack3" onmouseover="__GameLayer2.viewGameLayer();" onmouseout="__GameLayer2.closeGameLayer();">\n';
	__s +='		<div class="inbox03">\n';
	__s +='			<dl class="pf">\n';
	__s +='			<dt><a href="http://' + __urlPrefix + 'packgoon.hangame.com"  onclick="setNdsClickTag(\'/i:1000017121/c:33220?http://packgoon.hangame.com/layer\');" onfocus="this.blur()" target="_top"><img src="' + __headerImgUrl + '/common/layer_tg_11.gif" width="70" height="11" alt="ÆÑ±º °ÔÀÓÆÑ È¨"></a></dt>\n';
	__s +=			generateGameLayerHtml("gamepack");
	__s +='			<dd class="img_go"><iframe src="http://ad2.nbms.hangame.com/adshow?slot=S100045" frameborder="0" scrolling="no" height="44" width="135" marginheight="0" marginwidth="0" ></iframe></dd>';
	__s +='			</dl>\n';

	__s +='			<dl class="pf">\n';
	__s +='			<dt><a href="javascript:go_top_page(\'mobile\')"  onclick="setNdsClickTag(\'/i:1000012423/c:23159?http://mgame.hangame.com\');" onfocus="this.blur()"><img src="' + __headerImgUrl + '/common/layer_tg_10.gif" width="68" height="11" alt="¸ð¹ÙÀÏ°ÔÀÓÈ¨"></a></dt>\n';
	__s +=			generateGameLayerHtml("mobilepack");
	__s +='			<dd class="img_go"><iframe src="http://ad2.nbms.hangame.com/adshow?slot=S100046" frameborder="0" scrolling="no" height="44" width="135" marginheight="0" marginwidth="0"  ></iframe></dd>';
	__s +='			</dl>\n';
	
	__s +='			<a href="javascript:__GameLayer2.closeGameLayer();" onfocus="this.blur()" class="glayer_close"><img src="' + __headerImgUrl + '/common/btn_close_gnb.gif" width="12" height="12" alt="close"></a>';
	__s +='		</div>\n';
	__s +='	</div></div>\n';

	return __s;		
}



///////////////////////////GNB È£ÃâºÎ///////////////////////////

function setTopMenu( arg ) {
	if(typeof(arg) != 'undefined' && typeof(arg) == 'object'){
		for(var aa in arg){
			gnbProperties[aa] = arg[aa];
		}
	}
	
	var currentUrl = location.href;
	
	if (arguments.length >= 1){
		if(arguments[0] == "noLogin"){
			// °í°´¼¾ÅÍ ¾ø°í, ·Î±×ÀÎ ¾ø´Â ¹öÀü(in 'more')
			gnbProperties.login = false;
			gnbProperties.customer = false;
		}
	} else if(currentUrl.indexOf("pcbang.hangame.com")>-1 ){
		gnbProperties.login = false;
		gnbProperties.customer = false;
	} else if(currentUrl.indexOf("r2.hangame.com")>-1 || currentUrl.indexOf("pristontale.hangame.com")>-1 ){
		gnbProperties.align = "left";
	}

	setHeader();
}

function setGameMenu(){
	setHeader();
}

function setGameHeader(){
	setHeader();
}

function setHeader()	{
	__gnbLoaded=true;
	var class_g_more = "g_more";

	if(gnbProperties.login && gnbProperties.customer){
		// ·Î±×ÀÎµµ ÀÖ°í °í°´¼¾ÅÍµµ ÀÖÀ» ¶§.
		class_g_more = "g_more_no";
	} else {
		class_g_more = "g_more";
	}
	
	generateGnbGameLayers();
	setHeaderCSS();
	
	var __s="";
	
	var globalDiv = {
			header : "",
			tail : ""
	};
	
	var gnbAlign = gnbProperties.align.toUpperCase();
	var divSetTopStyle = '';
	
	if(gnbAlign=='CENTER')	{
		globalDiv.header = "<div id='gnb_p'>";
		globalDiv.tail = "</div>";
	} else if(gnbAlign=='LEFT'){
		globalDiv.header = "<div id='gnb_p_l'>";
		globalDiv.tail = "</div>"
		divSetTopStyle = " style='float:left;'";
	}
	__s += globalDiv.header;
	__s+="<div id=\"global\">\n";
	
	__s+="<div class='set_top'" + divSetTopStyle + ">";
	
	__s+="	<div id=\"glogo\"><a href=\"javascript:go_top_page('hangamelogo');\" onclick=\"setNdsClickTag('/i:1000002011/c:59408?http://game.hangame.com/gnb_bi');\" onfocus=\"this.blur()\"><img src=\"" + __headerImgUrl + "/common/gnb_logo.gif\" width=\"112\" height=\"33\" alt=\"\"></a></div>\n";
	__s+="	<ul id=\"gnb01\">\n";
	__s+="		<li><a href=\"javascript:go_top_page('hangamelogo');\" onclick=\"setNdsClickTag('/i:1000002011/c:59408?http://game.hangame.com/gnb_bi');\" onfocus=\"this.blur()\"><img src=\"" + __headerImgUrl + "/common/gnb_home.gif\" width=\"31\" height=\"33\" alt=\"È¨\"></a></li>\n";
	__s+="		<li  onmouseover=\"allLayerClose();__GameLayer1.viewGameLayer();\" onmouseout=\"__GameLayer1.closeGameLayer();\"><a onfocus='this.blur()' style='cursor:hand' ><img src=\"" + __headerImgUrl + "/common/gnb_game.gif\" width=\"37\" height=\"33\" alt=\"°ÔÀÓ\"></a></li>\n";
	__s+="		<li  onmouseover=\"allLayerClose();__GameLayer2.viewGameLayer();\" onmouseout=\"__GameLayer2.closeGameLayer();\"><a href='http://" + __urlPrefix + "packgoon.hangame.com' onfocus='this.blur()' target='_top'><img src=\"" + __headerImgUrl + "common/gnb_packgun.gif\" width=\"39\" height=\"33\" alt=\"ÆÑ±º\"></a></li>\n";
//	__s+="		<li><a href='http://" + __urlPrefix + "www.hangame.com/preview.nhn' onfocus='this.blur()' onclick=\"setNdsClickTag(\'/i:1000017120/c:24846?http://www.hangame.com/preview.nhn\');\" target='_top'><img src=\"" + __headerImgUrl + "common/gnb_preview2009_2.gif\" width=\"80\" height=\"33\" alt=\"ÇÁ¸®ºä! 2009\"></a></li>\n";
	__s+="		<li><a href='http://" + __urlPrefix + "idogame.hangame.com' onfocus='this.blur()' onclick=\"setNdsClickTag(\'/i:1000017264/c:63973?http://idogame.hangame.com/\');\" target='_top'><img src=\"" + __headerImgUrl + "common/gnb_idogame.gif\" width=\"94\" height=\"33\" alt=\"¾ÆÀÌµÎ°ÔÀÓ:Lab\"></a></li>\n";
	__s+="	</ul>\n";
	__s+="	<ul id=\"gnb02\">\n";
	__s+="		<li><a href='http://" + __urlPrefix + "avatar.hangame.com' onclick=\"setNdsClickTag('/i:1000005220/c:27412?http://www.hangame.com/gnb_shop');\" onfocus=\"this.blur()\"><img src=\"" + __headerImgUrl + "/common/gnb_r_shop.gif\" width=\"67\" height=\"18\" alt=\"ÇÑ°ÔÀÓ»óÁ¡\"></a></li>\n";
	__s+="		<li><a href='http://" + __urlPrefix + "gametalk.hangame.com' onclick=\"setNdsClickTag('/i:1000017390/c:25498?http://gametalk.hangame.com/');\" onfocus=\"this.blur()\" target='_top'><img src=\"" + __headerImgUrl + "common/gnb_r_gametalk.gif\" width=\"44\" height=\"18\" alt=\"°ÔÀÓÅå\"></a></li>\n";

	if(gnbProperties.customer)	{
		__s+="		<li><a href='http://" + __urlPrefix + "cs.hangame.com' onclick=\"setNdsClickTag('/i:1000002021/c:55372?http://game.hangame.com/gnb_cs');\" onfocus=\"this.blur()\"><img src=\"" + __headerImgUrl + "/common/gnb_r_center2.gif\" width=\"53\" height=\"18\" alt=\"°í°´¼¾ÅÍ\"></a></li>\n";
	}
	
	// ´õº¸±â
	__s+="		<li><a onfocus='this.blur()' style='cursor:hand' onmouseover=\"allLayerClose();__GameLayer0.viewGameLayer();\" onmouseout=\"__GameLayer0.closeGameLayer();\" onclick=\"setNdsClickTag('/i:1000015940/c:21655?http://www.hangame.com/more');\"><img src=\"" + __headerImgUrl + "common/gnb_r_more.gif\" width=\"54\" height=\"18\" alt=\"´õº¸±â\"></a>\n";
	__s += "<iframe src='' name='__GameLayer0backframe1' frameborder='0' width='" + _inbox00Size.width + "' height='" + (_inbox00Size.height-3) + "' style='position:absolute;top:" + _inbox00Size.top + "px; display:none;left:" + (_inbox00Size.left) + "px; z-index:55555' ></iframe>";
	__s += "<iframe src='' name='__GameLayer0backframe2' frameborder='0' width='" + (_inbox00Size.width-2) + "' height='" + (_inbox00Size.height-2) + "' style='position:absolute;top:" + _inbox00Size.top + "px; display:none;left:" + (_inbox00Size.left+1) + "px; z-index:55555' ></iframe>";
	__s += "<iframe src='' name='__GameLayer0backframe3' frameborder='0' width='" + (_inbox00Size.width-4) + "' height='" + (_inbox00Size.height-1) + "' style='position:absolute;top:" + _inbox00Size.top + "px; display:none;left:" + (_inbox00Size.left+2) + "px; z-index:55555' ></iframe>";
	__s += "<iframe src='' name='__GameLayer0backframe4' frameborder='0' width='" + (_inbox00Size.width-6) + "' height='" + (_inbox00Size.height) + "' style='position:absolute;top:" + _inbox00Size.top + "px; display:none;left:" + (_inbox00Size.left+3) + "px; z-index:55555' ></iframe>";
	__s += "<div id='__GameLayer0' style='display:none'>\n";
	__s += "<div id='glayer_game' class='" + class_g_more + "' onmouseover='__GameLayer0.viewGameLayer();' onmouseout='__GameLayer0.closeGameLayer();' >\n";
	__s += "	<div class='inbox_more'>\n";
	__s += "		<dl>\n";
	__s += "		<dt>ÇÑ°ÔÀÓ¼­ºñ½º´õº¸±â</dt>\n";
	
	__s += "		<dd><a class='gray03' href='http://" + __urlPrefix + "happybean.hangame.com' onclick=\"setNdsClickTag('/i:1000015941/c:19564?http://happybean.hangame.com');\" target='_top'>ÇÑ°ÔÀÓ ÇØÇÇºó</a></dd>\n";
	__s += "		<dd><a class='gray03' href='http://" + __urlPrefix + "guild.hangame.com/index.nhn' onclick=\"setNdsClickTag('/i:1000015943/c:22014?http://guild.hangame.com/index.nhn');\" target='_top'>±æµå</a></dd>\n";
	__s += "		<dd><a class='gray03' href='http://" + __urlPrefix + "member.hangame.com/myinfo/exfriend.nhn' onclick=\"setNdsClickTag('/i:1000015944/c:15737?http://member.hangame.com/myinfo/exfriend.nhn');\" target='_top'>Ä£±¸ÃÊ´ë</a></dd>\n";
	__s += "		<dd><a class='gray03' href='http://" + __urlPrefix + "coupons.hangame.com/service/intro.nhn' onclick=\"setNdsClickTag('/i:1000015946/c:21188?http://coupons.hangame.com/service/intro.nhn');\" target='_top'>ÇÑ°ÔÀÓ ÄíÆù</a></dd>\n";
	__s += "		<dd><a class='gray03' href='http://" + __urlPrefix + "story.hangame.com/' onclick=\"setNdsClickTag('');\" target='_top'>ÀÌ¾ß±â</a></dd>\n";

	
	__s += "		<dd class='spc'><a class='org05' href='http://" + __urlPrefix + "pcbang.hangame.com/bridge.nhn' onclick=\"setNdsClickTag('/i:1000015947/c:25078?http://pcbang.hangame.com/intro.nhn');\" target='_top'>¡®S¡¯PC¹æ</a></dd>\n";
	__s += "		<dd class='view_all'><a class='gray03' href='http://" + __urlPrefix + "www.hangame.com/help/sitemap.htm' onclick=\"setNdsClickTag('/i:1000015948/c:36354?http://www.hangame.com/help/sitemap.htm');\" target='_top'>¼­ºñ½º ´õº¸±â</a></dd>\n";			
	__s += "		</dl>\n";
	__s += "	</div>\n";
	__s += "	<div class='inbox_more_bg'></div>\n";
	__s += "</div>\n";
	__s += "</div>\n";
	__s += "</li>\n";
	

	// ·Î±×ÀÎ.
	if(gnbProperties.login){
		if(__bLogin){
			__s+="		<li><a href=\"javascript:go_top_page('logout');\" onclick=\"setNdsClickTag('/i:1000002022/c:24699?http://game.hangame.com/gnb_logout');\" onfocus=\"this.blur()\"><img src=\"" + __headerImgUrl + "/common/btn_t_logout.gif\"  height=\"19\" class=\"log\" alt=\"·Î±×¾Æ¿ô\"></a></li>\n";
		}else{
			__s+="		<li><a href=\"javascript:go_top_page('login');\" onclick=\"setNdsClickTag('/i:1000002621/c:25896?http://game.hangame.com/gnb_login');\" onfocus=\"this.blur()\"><img src=\"" + __headerImgUrl + "/common/btn_t_login.gif\"  height=\"19\" class=\"log\" alt=\"·Î±×ÀÎ\"></a></li>\n";
		}
	}

	__s+="	</ul>\n";
		
	__s+="	<iframe id=\"gnb03\" title=\"GNB¹è³Ê±¤°í\" src=\"http://ad2.nbms.hangame.com/adshow?slot=S100047\" border=\"0\" frameborder=\"0\" scrolling=\"no\" marginheight=\"0\" marginwidth=\"0\"></iframe>\n";
	__s+="	<!-- gnb_layer_01 -->\n";
	__s+=initGameLayer();
	__s+="</div>\n";	// set_top
	__s+="</div>\n";	// global
	__s+=globalDiv.tail;
	
	if (typeof(__ndsFrame)=="undefined") {
		__s += "<img id='__ndsIframe' width=0 height=0 frameborder=0 style='display:none'>\n";
		__ndsFrame = "set";
	}

	gnbWrite(__s);
	setTimeout("__ndsLoadIHeader()",500);
	loadSmartPopup();
}	

var gnbWrite = function( content ){
	document.write( content );
}
