document.write('<script type="text/javascript" src="http://static.mgame.com/common_js/write_embed_v2.js"></script>');
document.write('<style type="text/css">');
document.write('.footerdefault01 a:visited { text-decoration:none;}');
document.write('.footerdefault01 a:link {text-decoration:none; }');
document.write('.footerdefault01 a:hover { text-decoration:underline; }');
document.write('.footerdefault01 { font-family:  "µ¸¿ò", "Arial"; letter-spacing: -1px; font-size:12px; color: #555555; line-height: 140%;}');
document.write('</style>');
document.write('<table width="970" border="0" cellspacing="0" cellpadding="0">');
document.write('  <tr>');
document.write('    <td width="11">&nbsp;</td>');
document.write('    <td height="100" align="center" valign="middle" ><table width="959" border="0" cellspacing="0" cellpadding="0">');
document.write('      <tr>');
document.write('        <td>');
document.write('            <table width="100%" border="0" cellspacing="0" cellpadding="0">');
document.write('              <tr>');
document.write('                <td class="line_footer01"></td>');
document.write('              </tr>');
document.write('              <tr>');
document.write('                <td height="35" align="center"><a href="http://www.mgamecorp.com/" target="_blank" class="footerdefault01">È¸»ç¼Ò°³</a><img src="http://image.mgame.com/mgamezzang/contents/main_2007/footer/0706_company_line.gif" width="17" height="11" align="absmiddle"><a href="http://www.mgamecorp.com/careers/careers_main.php" target="_blank" class="footerdefault01">ÀÎÀçÃ¤¿ë</a><img src="http://image.mgame.com/mgamezzang/contents/main_2007/footer/0706_company_line.gif" width="17" height="11" align="absmiddle"><a href="http://www.mgamecorp.com/partner/ad.php" target="_blank" class="footerdefault01">±¤°í¹®ÀÇ</a><img src="http://image.mgame.com/mgamezzang/contents/main_2007/footer/0706_company_line.gif" width="17" height="11" align="absmiddle"><a href="http://www.mgame.com/member/mgame_policy/policy_agreement.mgame" target="_blank" class="footerdefault01">ÀÌ¿ë¾à°ü</a><img src="http://image.mgame.com/mgamezzang/contents/main_2007/footer/0706_company_line.gif" width="17" height="11" align="absmiddle"><a href="http://www.mgame.com/member/mgame_policy/policy_service.mgame" target="_blank" class="footerdefault01">¼­ºñ½º ¿î¿µÁ¤Ã¥</a><img src="http://image.mgame.com/mgamezzang/contents/main_2007/footer/0706_company_line.gif" width="17" height="11" align="absmiddle"><a href="http://www.mgame.com/member/mgame_policy/policy_mcash.mgame" target="_blank" class="footerdefault01">¿¥Ä³½¬¾à°ü</a><img src="http://image.mgame.com/mgamezzang/contents/main_2007/footer/0706_company_line.gif" width="17" height="11" align="absmiddle"><a href="http://www.mgame.com/member/mgame_policy/policy_personinfo.mgame" target="_blank" class="footerdefault01"><b>°³ÀÎÁ¤º¸Ãë±Þ¹æÄ§</b></a><img src="http://image.mgame.com/mgamezzang/contents/main_2007/footer/0706_company_line.gif" width="17" height="11" align="absmiddle"><a href="http://www.mgame.com/member/mgame_policy/policy_teenager.mgame" target="_blank" class="footerdefault01">Ã»¼Ò³âº¸È£Á¤Ã¥</a> <img src="http://image.mgame.com/mgamezzang/contents/main_2007/footer/0706_company_line.gif" width="17" height="11" align="absmiddle"><a href="http://www.mgame.com/member/mgame_policy/sitemap.mgame" target="_top" class="footerdefault01">»çÀÌÆ®¸Ê</a><img src="http://image.mgame.com/mgamezzang/contents/main_2007/footer/0706_company_line.gif" width="17" height="11" align="absmiddle"><a href="#" onclick="window.open(\'http://www.mgame.com/member/pop_mudansujip.htm\',\'\',\'scrollbars=no,width=400,height=205,left=10,top=10\');" class="footerdefault01">ÀÌ¸ÞÀÏÁÖ¼Ò ¹«´Ü¼öÁý°ÅºÎ</a></td>');
document.write('              </tr>');
document.write('              <tr>');
document.write('                <td class="line_footer02"></td>');
document.write('              </tr>');
document.write('            </table>');
document.write('           </td>');
document.write('      </tr>');
document.write('      <tr>');
document.write('        <td width="100%" height="100" align="center" valign="middle" ><img src="http://image.mgame.com/mgamezzang/contents/main_2008/20100618150710_1028_sub_footer_copyright_2.gif" width="840" height="73" border="0" usemap="#footer_email">');
document.write('          <map name="footer_email" id="footer_email">');
document.write('            <area shape="rect" coords="413,39,506,51" href="http://csweb.mgame.com/csagent/helpdesk/guest/index.jsp">');
document.write('            <area shape="rect" coords="564,17,591,45" href="http://www.kait.or.kr/" target="_blank">');
document.write('            <area shape="rect" coords="605,17,635,48" href="http://www.kait.or.kr/" target="_blank">');
document.write('            <area shape="rect" coords="647,17,676,45" href="http://www.software.or.kr/" target="_blank">');
document.write('            <area shape="rect" coords="687,16,718,47" href="http://www.spc.or.kr" target="_blank">');
document.write('            <area shape="rect" coords="728,17,756,46" href="http://www.kisa.or.kr" target="_blank">');
document.write ("				<area shape='rect' coords='251,56,331,69' href='http://www.mgamecorp.com' target='_blank'>");
document.write ("				<area shape='rect' coords='765,18,794,48' href='http://www.safenet.ne.kr/' target='_blank'>");
document.write ("				<area shape='rect' coords='799,16,833,49' href='http://www.grb.or.kr/' target='_blank' />");
document.write('          </map></td>');
document.write('          ');
document.write('      </tr>');
document.write('    </table>');
document.write('      </td>');
document.write('  </tr>');
document.write('</table>');

var thisDomain			=	location.host.split(".");

if(thisDomain[0] != "sign" && thisDomain[0] != "liveimg" && thisDomain[0] != "chat" && location.href.indexOf("www.mgame.com/myinfo/") <= -1) {
	/*
	var eventEmbed		=	document.createElement("script");
	eventEmbed.src		=	"http://www.mgame.com/common_js/write_embed.js";
	
	document.getElementsByTagName("head")[0].appendChild(eventEmbed);
	*/
	document.write ('<script language="javascript" type="text/javascript" src="http://www.mgame.com/common_js/write_embed.js"></script>');

	var eventScript			=	document.createElement("script");
	eventScript.src			=	"http://event.mgame.com/200708/14_open/coupon.mgame";
	
	document.getElementsByTagName("head")[0].appendChild(eventScript);
	
	var showOpenEvent	=	parseInt(Math.random()*2)+1;
	var showRandChar		=	parseInt(Math.random()*3)+1;
	var charXpos			=	(window.screen.width-90)/2;
	var charYpos			=	(window.screen.height-200)/2;
	
	document.write('<div id="divOpenEvent" style="position:absolute;z-index:1165;left:'+ parseInt(charXpos-150) +'px;top:'+ parseInt(charYpos-150) +'px;display:none">');
	document.write('	<iframe name="mainOpenEvent" width="400" height="600" frameborder="0" allowtransparency="true"></iframe>');
	document.write('</div>');
	
	document.write('<div id="divOpenEventChar" style="width:120px;height:150px;position:absolute;z-index:1164;left:'+ charXpos +'px;top:'+ charYpos +'px;display:none"><div>');
	
	function showEventChar(idx) {
		var flashDiv			=	"divOpenEventChar";
		var flashURL		=	"http://image.mgame.com/mgamezzang/contents/openevent/char"+ idx +".swf?linkURL=http://guild.mgame.com";
		var flashId			=	"divOpenEventChar";
		var flashCid			=	"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
		var flashWidth		=	120;
		var flashHeight		=	150;
		var flashAlign		=	"";
		var flashWmode	=	"transparent";
		var flashBgcolor	=	"";
		viewFlash(flashDiv,flashURL,flashId,flashCid,flashWidth,flashHeight,flashAlign,flashWmode,flashBgcolor);
		
		document.getElementById("divOpenEventChar").style.display	=	"block";
	}
	
	function closeWin() {
		document.getElementById("divOpenEventChar").style.display	=	"none";
	}
	
	//if(showOpenEvent == 1) setTimeout("showEventChar(showRandChar)",1000);
	
	function takWook(v) {
		mainOpenEvent.location.href	=	"http://event.mgame.com/200708/14_open/friend_popup.mgame?eventcode="+v;
		document.getElementById("divOpenEvent").style.display		=	"block";
		
		document.body.scrollTop	=	0;
	}
}


document.write('<iframe name="mgamepage" src="http://www.mgame.com/empty.html"  width="0" height="0"></iframe>');