//ºñÁ¤»óÀûÀÎ ·Î±×ÀÎ
if(getCookie("member_id")=='deleted')
{
	alert("ºñÁ¤»óÀûÀÎ ·Î±×ÀÎ »óÅÂÀÔ´Ï´Ù. \n\nÀÎÅÍ³Ý¿É¼Ç¿¡¼­ ÀÓ½ÃÀÎÅÍ³ÝÆÄÀÏ ¹× ÄíÅ°¸¦ ¸ðµÎ »èÁ¦ÇÏ½Ã°í ´Ù½Ã ½ÃµµÇØ ÁÖ¼¼¿ä!!");
	location.href = HttpDomain + '/member/Logout.html';
}
//ºñÁ¤»óÀûÀÎ ·Î±×ÀÎ



function frmcheck1()
{
	var fm = document.loginform1;

	if(fm.id.value.length <= 0 || fm.id.value.split(" ").join("") == "")
	 {
		alert("¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
	     fm.id.focus();
	     return false;
	}
	if (fm.id.value.length < 4  || fm.id.value.length > 15)
	{
		alert("6-15ÀÚÀÇ ¿µ¹® ¶Ç´Â ¼ýÀÚÀÇ Á¶ÇÕÀ¸·Î ¾ÆÀÌµð ÀÔ·ÂÇÏ¼¼¿ä");
		fm.id.focus();
		return false;
	}

	if(fm.passwd.value.length <= 0 || fm.passwd.value.split(" ").join("") == "")
	{
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		fm.passwd.focus();
		return false;
	}
	if (fm.passwd.value.length < 4 ||  fm.passwd.value.length > 15)
	{
		alert("6-15ÀÚÀÇ ¿µ¹® ¶Ç´Â ¼ýÀÚÀÇ Á¶ÇÕÀ¸·Î ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
		fm.passwd.focus();
		return false;
	}

	fm.action = "https://gundamshop.co.kr/member/Login_Pass.html";
	//fm.action = "http://gundamshop.co.kr/member/Login_Pass.html";
	fm.method = "POST";
	fm.submit();

}



// ÈñÁØ¼öÁ¤ - Æ¯Á¤±â°£¿¡¸¸ ³ëÃâµÇ°ÔÇÔ - Á¢¼ÓÀÚ °³ÀÎPC ½Ã°£ ±âÁØ
ymdh = y2+"/"+mm+"/"+dd+"-"+hh	// ³â/¿ù/ÀÏ-½Ã°£	// ¿À´Ã¸¸ 2¸¸¿ø ¼¼ÀÏ»óÇ°Æ÷ÇÔ - ±¸±Û Å©·ÒÀº Ò´ÀÚ¸®¸¦ µÚ¿¡ 2ÀÚ¸®¸¸ ±âÀÔ

if(ymdh >= "12/01/19-01" && ymdh <= "12/01/21-24") {	// Æ¯Á¤±â°£1
	document.write('<table cellpadding="0" cellspacing="0" width="100%" height="77">');	// 111/12/12-11
	document.write('    <tr>');
	document.write('        <td width="100%" height="93" align="center" valign="top" background="http://pics2.gundamshop.co.kr/n_main/2012_topbann_001.jpg">');
	document.write('            <table cellpadding="0" cellspacing="0" width="970" height="77">');
	document.write('                <tr>');
	document.write('                    <td valign="top"><img src="http://pics2.gundamshop.co.kr/n_main/top_2012_newyear_11.jpg" border="0"></td>');
	document.write('                    <td valign="top"><a href="http://www.gundamshop.co.kr/EVENT/2012/01/2012_newyear_main.html"><img src="http://pics2.gundamshop.co.kr/n_main/top_2012_newyear_12.jpg" border="0"></a></td>');
	document.write('				</tr>');
	document.write('            </table>');
	document.write('		</td>');
	document.write('    </tr>');
	document.write('</table>');
	}

else if(ymdh >= "10/10/10-09" && ymdh <= "10/10/10-23") {	// Æ¯Á¤±â°£2
	document.write('')
	}

else {
	// µðÆúÆ®
	document.write('<table cellpadding="0" cellspacing="0" width="100%" height="77">');	// 111/12/12-11
	document.write('    <tr>');
	document.write('        <td width="100%" height="93" align="center" valign="top" background="http://pics2.gundamshop.co.kr/n_main/2012_topbann_001.jpg">');
	document.write('            <table cellpadding="0" cellspacing="0" width="970" height="77">');
	document.write('                <tr>');
	document.write('                    <td valign="top"><a href="http://www.gundamshop.co.kr/EVENT/2012/01/2012_newyear_main.html"><img src="http://pics2.gundamshop.co.kr/n_main/top_2012_newyear_main.jpg" border="0"></a></td>');
	document.write('                    <td valign="top"><a href="http://www.gundamshop.co.kr/EVENT/2012/01/2012_newyear_gift.html"><img src="http://pics2.gundamshop.co.kr/n_main/top_2012_newyear_01.jpg" border="0"></a></td>');
	document.write('                    <td valign="top"><a href="http://www.gundamshop.co.kr/EVENT/2012/01/2012_newyear_yong.html"><img src="http://pics2.gundamshop.co.kr/n_main/top_2012_newyear_02.jpg" border="0"></a></td>');
	document.write('                    <td valign="top"><a href="http://www.gundamshop.co.kr/EVENT/2012/01/2012_newyear_mission.html"><img src="http://pics2.gundamshop.co.kr/n_main/top_2012_newyear_03.jpg" border="0"></a></td>');
	document.write('                    <td valign="top"><a href="http://www.gundamshop.co.kr/EVENT/2011/12/2011_goodbye.html"><img src="http://pics2.gundamshop.co.kr/n_main/top_2012_newyear_04.jpg" border="0"></a></td>');
	document.write('				</tr>');
	document.write('            </table>');
	document.write('		</td>');
	document.write('    </tr>');
	document.write('</table>');
	}





document.write('<center><table width="970" border="0" cellspacing="0" cellpadding="0">');
document.write('  <tr>');
document.write('    <td>');
document.write('        <table width="970" border="0" cellspacing="0" cellpadding="0">');
document.write('        <tr>');
document.write('          <td><a href="http://www.gundamshop.co.kr/EVENT/2011/11/first_gundam.html"><img src="'+Pics2Domain+'/n_main/bn_first_gundam.gif" border="0"></a>');
document.write('<a href="http://cafe.naver.com/gundamshopcafe" target=_blank><img src="'+Pics2Domain+'/n_main/gundamcafe.gif" border="0"></a></td>');
//document.write('          <td width="383" colspan="4" style=\'padding-left:5\'><img src="'+Pics2Domain+'/n_main/bn_div.gif"  height="22" border="0"></td>');
document.write('          <td width="204" rowspan="3"><table cellpadding=0 cellspacing=0><td><a href="' +HttpDomain+'"><img src="'+Pics2Domain+'/n_main/m_logo_2012.jpg" border="0"></a><td id=td_logo_side>'+browser_hstr+'</table></td>');


document.write('          <td width="383" align="right">');
document.write('          <table border="0" cellspacing="0" cellpadding="0">');
document.write('              <tr>');


// ÈñÁØ
if(1==2) {
	document.write('<td><A href=/EVENT/2010/04/Event_quick.html onclick=\'window.open("/html/batang/","_batang","width=250; height=200; toolbars=no")\'><img style="cursor:hand" src="'+Pics2Domain+'/n_main/t_go.gif" width="66" height="20" border=0></a></td>');
	}

else {
	// ¹Ù·Î°¡±â : ÈñÁØÁßÁö - /html/batang/ ÆË¾÷¿¡¼­ ÇÑ´Ù..
	//*
	document.write('                <td><img style="cursor:hand" onmouseover="batang_layer.style.display=\'\'" onmouseout="batang_layer.style.display=\'none\'" src="'+Pics2Domain+'/n_main/t_go.gif" width="66" height="20">');

	document.write('<span style="position:relative;z-index:20" onmouseover="batang_layer.style.display=\'\'" onmouseout="batang_layer.style.display=\'none\'">');
	document.write('<div id="batang_layer" style="position:absolute; left:-100px; top:20px; display:none;">');
	document.write('<table width="185" height="130" border="0" cellpadding="0" cellspacing="0">');
	document.write('  <tr>');
	document.write('    <td align="center" valign="top" background="'+Pics2Domain+'/home/top/t_go_bg.gif" style="padding:18 0 0 0 ">');
	document.write('      <table width="140" border="0" cellspacing="0" cellpadding="0">');
	document.write('        <tr>');
	document.write('          <td><img src="'+Pics2Domain+'/home/top/t_go_tx_'+((getCookie("partner_sid")=='batang')? "on":"off")+'.gif"></td>');
	document.write('        </tr>');
	document.write('        <tr>');
	document.write('          <td height="55">&nbsp;</td>');
	document.write('        </tr>');
	document.write('        <tr>');
	document.write('          <td align="center"><img style="cursor:hand" onclick="shortcutGS()" src="'+Pics2Domain+'/home/top/t_go_bt.gif" width="82" height="16" border="0"></a></td>');
	document.write('        </tr>');
	document.write('      </table>');
	document.write('    </td>');
	document.write('  </tr>');
	document.write('</table>');
	document.write('</div>');
	document.write('</span>');

	document.write('<div id="_batang_obj_"></div>');
	//*/
	// ¹Ù·Î°¡±â
	}

document.write('                </td>');
document.write('                <td><a href="javascript://" onClick="window.external.AddFavorite(\'' + HttpDomain + '/\',\'°Ç´ã¼¥(´ëÇÑ¹Î±¹ ´ëÇ¥°Ç´ã¼îÇÎ¸ô)\'); return false;"><img src="'+Pics2Domain+'/n_main/t_add.gif" width="86" height="16"></td>');




// RSSÇÇµå¹é // ÈñÁØ
document.write("<td style='padding:0 0 1 5'><A title='½Å»óÇ° RSSÃ¤³Î º¸±â' href=http://www.gundamshop.co.kr/search/rss/new.html target=_blank><img src=" + HttpDomain + "/pics2/n_main/icon_rss.gif border=0></a></td>")


document.write('              </tr>');
document.write('          </table></td>');
document.write('        </tr>');
document.write('        <tr>');
document.write('        <tr><td align=left>');
document.write('      <table  border="0" cellspacing="0" cellpadding="0"><tr>');
document.write('          <td><a href="' +HttpDomain+'/EVENT/limited/event_limited.html"><img src="'+Pics2Domain+'/n_main/t_s_menu01.gif" width="86" height="49" border="0"></a></td>');
document.write('          <td><a href="' +HttpDomain+'/EVENT/SALE/0909.html?tabmenu=1&cateCode=#E_ALL"><img src="'+Pics2Domain+'/n_main/t_s_menu02.gif" width="71" height="49" border="0"></a></td>');
document.write('          <td><a href="' +HttpDomain+'/theme/brandshop/?brandid=1278304827"><img src="'+Pics2Domain+'/n_main/t_s_menu03.gif" width="84" height="49" border="0"></a></td>');
document.write('          <td><a href="' +HttpDomain+'/theme/No1_Review50.html"><img src="'+Pics2Domain+'/n_main/t_s_menu04.gif" border="0"></a></td>');
document.write('      </td></tr></table></td>');
document.write('          <td width="383" align="right" valign="bottom">');
document.write('          <table width="252" border="0" cellspacing="0" cellpadding="0">');
document.write('              <tr>');
document.write('                <td height="20" colspan="6" align=right>');



//logout»óÅÂ
//if(GetLogin == "") {
if(!member_id) {
	document.write('                    <table width="252" height="13" border="0" cellpadding="0" cellspacing="0">');
	document.write('                    <form method=POST name=loginform1 onSubmit="return frmcheck1()">');
	document.write('                    <input type=hidden name=url value="'+escape(location_href)+'">');
	document.write('                    <input type=hidden name=ret_url value="">');
	document.write('                      <tr>');
	document.write('                        <td width="15"><img src="'+Pics2Domain+'/n_main/tx_id.gif" width="15" height="13"></td>');
	document.write('                        <td><input name="id" tabindex=1 type="text" maxlength="15" style="font-weight:bold;border:0;background-color:eeeeee; height:14px; width:79px;"></td>');
	document.write('                        <td width="22" ><img src="'+Pics2Domain+'/n_main/tx_pw.gif" width="22" height="13"></td>');
	document.write('                        <td><input tabindex=2 name="passwd" type="password" maxlength="15" style="font-weight:bold;border:0;background-color:eeeeee; height:14px; width:79px;"></td>');
	document.write('                        <td width="40" ><input type=image style=border:0 tabindex=3 src="'+Pics2Domain+'/n_main/t_bt_login.gif" width="37" height="14" style="margin-top:1;margin-left:2"></td>');
	document.write('                        <td width="18" align="right"><a href="http://www.gundamshop.co.kr/member/member_search.html" title="¾ÆÀÌµð ºñ¹Ð¹øÈ£ Ã£±â"><img src="'+Pics2Domain+'/n_main/t_bt_search.gif" width="16" height="14" style="margin-top:1;margin-left:2"></td>');
	document.write('                      </tr>');
	document.write('                    </form>');
	document.write('                    </table>');
}
else
{
	document.write('                    <table widthxx="252" height="13" border="0" cellpadding="0" cellspacing="0">');
	document.write('                      <tr>');
	document.write('                        <td align="right"><span style="font-size:120%; line-height:125%;"><b>');

	// ÈñÁØÃß°¡ - È¸¿øµî±Þ¾ÆÀÌÄÜ(¸ðµÎÃâ·ÂµÇ°Ô º¯°æÇÔ..Áø¿Ï)
	mgrade = getCookie("mgrade")
	if(mgrade>=0) document.write("<A href=http://happy.gundamshop.co.kr/happyzone.html><img src=http://www.gundamshop.co.kr/pics2/n_main/ic_grade_"+mgrade+".gif align=absmiddle hspace=5 border=0></a>")

	document.write(getCookie("member_id") +'</b>´Ô ¹Ý°©½À´Ï´Ù.</td><td width=37><a href="javascript:topnaviLogout()"><img src="'+Pics2Domain+'/n_main/t_bt_logout.gif" border=0 style="margin-left:2"></a></td>');
	document.write('                      </tr>');
	document.write('                    </table>');
}

document.write('                </td>');
document.write('              </tr>');
document.write('              <tr>');
document.write('                <td height="1" colspan="6" bgcolor="eaeaea"></td>');
document.write('              </tr>');
document.write('              <tr>');
document.write('                <td height="25"><a href="' +HttpDomain+'/member/become.asp"><img src="'+Pics2Domain+'/n_main/t_bt_r_01.gif" width="45" height="13" border="0"></a></td>');
document.write('                <td onmouseover="happy_shop_layer.style.display=\'\'" onmouseout="happy_shop_layer.style.display=\'none\'"><a href="' +HappyDomain+'/shop/"><img src="'+Pics2Domain+'/n_main/t_bt_r_02.gif" width="64" height="13" border="0"></a></td>');
document.write('                <td><a href="' +HttpDomain+'/Order/GD_Basket.html"><img src="'+Pics2Domain+'/n_main/t_bt_r_03.gif" width="45" height="13" border="0"></a></td>');
document.write('                <td><a href="'+HappyDomain+'/shop/OrderSearchList.html"><img src="'+Pics2Domain+'/n_main/t_bt_r_04.gif" width="63" height="13"></td>');
document.write('                <td><a href="'+CsDomain+'/"><img src="'+Pics2Domain+'/n_main/t_bt_r_06.gif" width="44" height="13"></td>');
document.write('                <td><a href="' + HttpDomain + '/community/"><img src="'+Pics2Domain+'/n_main/t_bt_r_05.gif" width="41" height="13" border="0"></a></td>');
document.write('              </tr>');
document.write('          </table></td>');
document.write('        </tr>');
document.write('    </table></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td>');

//Å©¸®½º¸¶½º ºÐÀ§±â 1/3
//document.write('<table cellpadding="0" cellspacing="0" width="970">');
//document.write('    <tr>');
//document.write('        <td width="970"><img src="http://pics2.gundamshop.co.kr/n_main/topxmas_001.jpg" border="0"></td>');
//document.write('    </tr>');
//document.write('</table>');


// ·¹ÀÌ¾î ¸Þ´º - ¸¶ÀÌÆäÀÌÁö
document.write('	<span style="position:relative;z-index:99;" onmouseover="happy_shop_layer.style.display=\'\'" onmouseout="happy_shop_layer.style.display=\'none\'">');
document.write('	<div id="happy_shop_layer" style="position:absolute;display:none;top:-5px; left:693px;">');
document.write('	<table width="98" border=0 cellpadding=0 cellspacing=0 bgcolor=FFFFFF style="border:2 #f0303d solid;">');
document.write('	<tr><td style="padding:8">');
document.write('	<table border=0 cellpadding=1 cellspacing=0>');
document.write('	<tr><td height="18"><a href="'+HappyDomain+'/shop/OrderSearchList.html"><img src="'+Pics2Domain+'/home/ic_r_dot.gif" width="2" height="2" border="0" align="absmiddle"> ÁÖ¹®¹è¼ÛÁ¶È¸</a></td>');
document.write('	<tr><td height="1" background="'+Pics2Domain+'/home/ic_line_dot.gif"></td>');
document.write('	<tr><td height="18" style="padding:2 0 0 0"><a href="'+HappyDomain+'/shop/OrderSearchList.html"><img src="'+Pics2Domain+'/home/ic_r_dot.gif" width="2" height="2" border="0" align="absmiddle"> </a><a href="'+HappyDomain+'/shop/OrderChange.html">±³È¯¹ÝÇ°È¯ºÒ</a></td>');
document.write('	<tr><td height="1" background="'+Pics2Domain+'/home/ic_line_dot.gif"></td>');
document.write('	<tr><td height="18" style="padding:2 0 0 0"><a href="'+HappyDomain+'/shop/OrderSearchList.html"><img src="'+Pics2Domain+'/home/ic_r_dot.gif" width="2" height="2" border="0" align="absmiddle"> </a><a href="'+HappyDomain+'/coupon/CouponDownload.html">ÄíÆù´Ù¿î¹Þ±â</a></td>');
document.write('	<tr><td height="1" background="'+Pics2Domain+'/home/ic_line_dot.gif"></td>');
document.write('	<tr><td height="18" style="padding:2 0 0 0"><a href="'+HappyDomain+'/shop/OrderSearchList.html"><img src="'+Pics2Domain+'/home/ic_r_dot.gif" width="2" height="2" border="0" align="absmiddle"> </a><a href="'+HappyDomain+'/member/memberInfo.html">°³ÀÎÁ¤º¸</a></td>');
document.write('	<tr><td height="1" background="'+Pics2Domain+'/home/ic_line_dot.gif"></td>');
document.write('	<tr><td height="18" style="padding:2 0 0 0"><a href="'+HappyDomain+'/shop/OrderSearchList.html"><img src="'+Pics2Domain+'/home/ic_r_dot.gif" width="2" height="2" border="0" align="absmiddle"> </a><a href="'+HappyDomain+'/happyzone.html">MyÇØÇÇÁ¸ÄíÆù</a></td>');
document.write('	</table>');
document.write('	</table>');
document.write('	</div>');
document.write('	</span>');
// ·¹ÀÌ¾î ¸Þ´º


// »ó´ÜÁÖ¸Þ´º
document.write('        <table width="970" border="0" cellspacing="0" cellpadding="0">');
document.write('          <tr>');
document.write('            <td height="33" background="'+Pics2Domain+'/n_main/t_bg_menu.gif">');
document.write('            <table border="0" cellspacing="0" cellpadding="0" align="center">');
document.write('                <tr>');
document.write('                  <td style="cursor:hand" onmouseover="if(web_browser) open_tmenu2(1)" onmouseout="if(web_browser) close_tmenu2(1)"><a href="' +HttpDomain+'/GD_Category01.html?CategoryID=0001"><img src="'+Pics2Domain+'/n_main/t_m_menu01.gif" width="95" height="18"></td>');
document.write('                  <td width="25" align="center"><img src="'+Pics2Domain+'/n_main/t_bg_bar.gif" width="7" height="33"></td>');
document.write('                  <td style="cursor:hand" onmouseover="if(web_browser) open_tmenu2(2)" onmouseout="if(web_browser) close_tmenu2(2)"><a href="' +HttpDomain+'/GD_Category01.html?CategoryID=0002"><img src="'+Pics2Domain+'/n_main/t_m_menu02.gif" width="94" height="18"></td>');
document.write('                  <td width="25" align="center"><img src="'+Pics2Domain+'/n_main/t_bg_bar.gif" width="7" height="33"></td>');
document.write('                  <td style="cursor:hand" onmouseover="if(web_browser) open_tmenu2(3)" onmouseout="if(web_browser) if(web_browser) close_tmenu2(3)"><a href="' +HttpDomain+'/GD_Category01.html?CategoryID=0003"><img src="'+Pics2Domain+'/n_main/t_m_menu03.gif" width="96" height="18"></td>');
document.write('                  <td width="25" align="center"><img src="'+Pics2Domain+'/n_main/t_bg_bar.gif" width="7" height="33"></td>');
document.write('                  <td style="cursor:hand" onmouseover="if(web_browser) open_tmenu2(4)" onmouseout="close_tmenu2(4)"><a href="' +HttpDomain+'/GD_Category01.html?CategoryID=0004"><img src="'+Pics2Domain+'/n_main/t_m_menu04.gif" width="110" height="18"></td>');
document.write('                  <td width="25" align="center"><img src="'+Pics2Domain+'/n_main/t_bg_bar.gif" width="7" height="33"></td>');
document.write('                  <td style="cursor:hand" onmouseover="if(web_browser) open_tmenu2(5)" onmouseout="if(web_browser) close_tmenu2(5)"><a href="' +HttpDomain+'/GD_Category01.html?CategoryID=0005"><img src="'+Pics2Domain+'/n_main/t_m_menu05.gif" width="128" height="18"></td>');
document.write('                </tr>');
document.write('            </table>');


var t_mn_xpos = new Array();
t_mn_xpos[0] = '';
t_mn_xpos[1] = '0';
t_mn_xpos[2] = '140';
t_mn_xpos[3] = '260';
t_mn_xpos[4] = '380';
t_mn_xpos[5] = '520';

// »ó´Ü ÁÖ¸Þ´º ·¹ÀÌ¾î
for(x=1; x<=5; x++) {
	document.write('<span style="position:relative;z-index:99" onmouseover="open_tmenu2('+x+')" onmouseout="close_tmenu2('+x+')">');
	document.write('<div id="tmenu'+x+'" style="display:none;position:absolute; left:'+ t_mn_xpos[x] +'px; top:0px; width:150;">');
	document.write('<table width="160" border="0" cellspacing="0" cellpadding="0" bgcolor="FFFFFF" style="border:0 solid #f9c9c9;">');
	document.write('<tr><td align="center" bgcolor=cdcdcd style="padding:5">');

	document.write('	<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="FFFFFF">');
	document.write('  	<tr><td height="10"></td>');

	var t_str_cate = eval("cate2_nm"+ x +"_arr");
	var t_str_gId2 = eval("cate2_id"+ x +"_arr");

	for(i=0; i<t_str_cate.length; i++) {
		text_color = ""
		if(t_str_cate[i]=="°Ç´ãÇÁ¶ó¸ðµ¨" || t_str_cate[i]=="°Ç´ã¿Ï¼ºÇ°") text_color = "<font color=#C60007><b>"
		document.write('<tr><td bgcolor="FFFFFF" onMouseOver="this.style.backgroundColor=\'efefef\'" onMouseOut="this.style.backgroundColor=\'\'" style="padding:3 10 3 10" style="cursor:hand" onclick=location.href="'+HttpDomain+'/GD_Category02.html?CategoryID='+ t_str_gId2[i].substring(0,6) +'"><a href="'+HttpDomain+'/GD_Category02.html?CategoryID='+ t_str_gId2[i].substring(0,6) +'"> '+text_color+ t_str_cate[i].substring(0,12) +'</b></td>');

		if (t_str_gId2[i].substring(0,6) == '000101') {
			for(s=0; s<cate3_nm1_1_arr.length; s++) {
				document.write('<tr><td bgcolor="FFFFFF" onMouseOver="this.style.backgroundColor=\'efefef\'" onMouseOut="this.style.backgroundColor=\'\'" style="padding:3 10 3 15" style="cursor:hand" onclick=location.href="'+HttpDomain+'/GD_Category03.html?CategoryID='+ cate3_id1_1_arr[s].substring(0,8) +'">&middot;<a href="'+HttpDomain+'/GD_Category03.html?CategoryID='+ cate3_id1_1_arr[s].substring(0,8) +'"> '+ cate3_nm1_1_arr[s].substring(0,14) +'</b></td>');
				}
			}
		}

	document.write('	<tr><td height="10"></td>');
	document.write('	</table>');

	document.write('</table>');
	document.write('</div>');
	document.write('</span>');
	}


function open_tmenu2(t) {
	var obj = eval("tmenu"+t);
	if(obj.style.display=='none') obj.style.display='block';
	}

function close_tmenu2(t) {
	var obj = eval("tmenu"+t);
	if(obj.style.display==''||obj.style.display=='block') obj.style.display='none';
	}





document.write('            <td width="40" background="'+Pics2Domain+'/n_main/t_bg_menumx.gif">&nbsp;</td>');
document.write('            <td width="227" align="right" background="'+Pics2Domain+'/n_main/t_bg_menub.gif">');
document.write('            <table border="0" cellspacing="0" cellpadding="0">');
document.write('            <tr>');
document.write('                  <td><a href="' +HttpDomain+'/theme/No1.html"><img src="'+Pics2Domain+'/n_main/t_m_r_menu01.gif" width="39" height="18"></td>');
document.write('                  <td width="18" align="center"><img src="'+Pics2Domain+'/n_main/t_bg_barm.gif" width="2" height="18"></td>');
document.write('                  <td><a href="' +HttpDomain+'/theme/New.html"><img src="'+Pics2Domain+'/n_main/t_m_r_menu02.gif" width="39" height="18"></td>');
document.write('                  <td width="18" align="center"><img src="'+Pics2Domain+'/n_main/t_bg_barm.gif" width="2" height="18"></td>');
document.write('                  <td><a href="' +HttpDomain+'/theme/Reserve.html"><img src="'+Pics2Domain+'/n_main/t_m_r_menu03.gif" width="51" height="18"></td>');
document.write('                  <td width="18" align="center"><img src="'+Pics2Domain+'/n_main/t_bg_barm.gif" width="2" height="18"></td>');
document.write('                  <td><a href="' +HttpDomain+'/EVENT/"><img src="'+Pics2Domain+'/n_main/t_m_r_menu04.gif" width="39" height="18"></td>');
document.write('                  <td>&nbsp;</td>');
document.write('            </table></td>');
document.write('        </table>');

//½ÃÁð ºÐÀ§±â 2/3 ½ÃÀÛ
/* 
document.write('<table cellpadding="0" cellspacing="0" width="970">');
document.write('    <tr>');
document.write('        <td width="970"><img src="http://pics2.gundamshop.co.kr/n_main/2012_welcome.gif" border="0" title="»õÇØ º¹ ¸¹ÀÌ ¹ÞÀ¸¼¼¿ä!"></td>');
document.write('    </tr>');
document.write('</table>');
*/
//½ÃÁð ºÐÀ§±â 2/3 ³¡

document.write('<tr><td height="30" bgcolor="f6f6f6">');

	var keycontent2=new Array();

	if(hotkey_arr.length>0)
	for(i=0; i<hotkey_arr.length; i++)
	{
		keycontent2[i] = "<table border=0 cellpadding=0 cellspacing=0><td><img src="+Pics2Domain+"/cs/faq/faq_num_"+(i+1)+".gif></td><td style='padding:3 0 0 5'><a href='"+HttpDomain+"/search/main.html?key="+hotkey_arr[i]+"'>" + hotkey_arr[i] + "</a></td></table>";
	}

//°Ë»ö ½ÃÀÛ
//ÀÎ±â °Ë»ö¾î ·£´ý Ç¥½Ã
var xKey_rand = Math.floor(Math.random() * 10);

document.write('        <table width="970" height="30" border="0" cellpadding="0" cellspacing="0">');
document.write('        <form name=search method=get action="'+HttpDomain+'/search/main.html">');
document.write('          <tr>');
document.write('            <td width="15">&nbsp;</td>');
document.write('            <td width="10"><img src="'+Pics2Domain+'/n_main/t_nav_ic.gif" width="10" height="9" align="absmiddle"></td>');
document.write('            <td>'); new pausescroller(keycontent1, "keyscroller1", "", 3000); document.write('</td>');
document.write('            <td width="90"><img src="'+Pics2Domain+'/n_main/tx_realtime.gif" width="82" height="10" style="margin-top:4"></td>');
document.write('            <td width="200" style="margin-top:5" onmouseover="key_layer.style.display=\'\'" onmouseout="key_layer.style.display=\'none\'">');
new pausescroller(keycontent2, "keyscroller2", "", 2000);

//½Ç½Ã°£ ÀÎ±â°Ë»ö¾î
if(hotkey_arr.length>0)
{
  document.write('    <span style="position:relative; z-index:99;">');
  document.write('    <div id="key_layer" style="position:absolute; background-color:FFFFFF; display:none; left:-2; top:-22px;">');

  document.write('		<table width="125" border=0 cellpadding=0 cellspacing=0 bgcolor=FFFFFF style="border:2 #f0303d solid;" onmouseover="key_layer.style.display=\'\'" onmouseout="">');

	for(i=0; i<hotkey_arr.length; i++)
	{
		document.write('  <tr><td onmouseover="this.style.backgroundColor=\'#fdeded\';" onmouseout="this.style.backgroundColor=\'\';" style="padding:3 5 2 5">' + keycontent2[i] + '</td></tr>');
	}

  document.write('		</table>');
  document.write('    </div>');
  document.write('    </span>');
}
//½Ç½Ã°£ ÀÎ±â°Ë»ö¾î

document.write('            </td>');
document.write('            <td width="5">&nbsp;</td>');
document.write('            <td width="167" background="'+Pics2Domain+'/n_main/t_bg_search.gif" style="background-repeat:no-repeat;padding:6 0 5 10;"><INPUT type=text name=key style="WIDTH: 150px; HEIGHT: 16px;font-weight:bold;color:black;font-size:9pt;font-family:arial;border:0;" size=16 maxlength="30" VALUE="' + hotkey_arr[xKey_rand] + '" onClick="rekeyF(\'' + hotkey_arr[xKey_rand] + '\')" onBlur="rekeyF(\'' + hotkey_arr[xKey_rand] + '\')" style="padding:3 0 0 0"></td>');
document.write('            <td width="24"><input type="image" style="border:0" src="'+Pics2Domain+'/n_main/t_bt_search_s.gif" width="25" height="24"></td>');
document.write('          </tr>');
document.write('          </form>');
document.write('        </table>');
//document.write('<tr><td height=10>');
document.write('</table>');





function rekeyF(val)
{
	var fm = document.search;
	if(fm.key.value == val)
	{
		fm.key.value = "";
	}
	else if(fm.key.value == "")
	{
		fm.key.value = hotkey_arr[xKey_rand];
	}

	if(fm.key.value == "\\" || fm.key.value == "'")
	{
		alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		fm.key.value = "";
		return false;
	}
}



//Å¾¸Þ´º -->


// Äü¸Þ´º
document.write('<div id="slidelayer_qm" style="position:absolute;visibility:visible;  z-index:2; top:-999px; Left:-999" onmouseout=close_qm()>');
document.write('<table border="0" cellpadding="0" cellspacing="0" >');
document.write('<tr><td id=td_qm></td>');
document.write('</table>');
document.write('</div>');

document.write('<div id="slidelayer1" style="position:absolute;visibility:visible;  z-index:1; top:-999px; Left:-999">');
document.write('<table width="40" border="0" cellpadding="0" cellspacing="0" >');
document.write('<td width=9 onmouseover=close_qm()></td>');
document.write('<td width=31>')

	document.write('<table cellpadding=0 cellspacing=0>');
// Å©¸®½º¸¶½º ºÐÀ§±â 3/3 ½ÃÀÛ
//	document.write('<tr><td><img src="http://pics2.gundamshop.co.kr/n_main/topxmas_002.jpg" border="0" onmouseover=close_qm() title="¸Þ¸® Å©¸®½º¸¶½º~"></a></tr>');
// Å©¸®½º¸¶½º ºÐÀ§±â 3/3 ³¡
	document.write('<tr><td><img src="http://www.gundamshop.co.kr/pics2/n_main/q_menu_top.gif" border="0" onmouseover=close_qm()></a></tr>');
	document.write('<tr><td><A onmouseover=show_qm(1,this.href) href="http://www.gundamshop.co.kr/GD_Category03.html?CategoryID=00010101"><img id=img_qm1 src="http://www.gundamshop.co.kr/pics2/n_main/q_menu_01.gif" border="0"></tr>');
	document.write('<tr><td><A onmouseover=show_qm(2,this.href) href="http://www.gundamshop.co.kr/GD_Category03.html?CategoryID=00010102"><img id=img_qm2 src="http://www.gundamshop.co.kr/pics2/n_main/q_menu_02.gif" border="0"></tr>');
	document.write('<tr><td><A onmouseover=show_qm(3,this.href) href="http://www.gundamshop.co.kr/GD_Category03.html?CategoryID=00010103"><img id=img_qm3 src="http://www.gundamshop.co.kr/pics2/n_main/q_menu_03.gif" border="0"></tr>');
	document.write('<tr><td><A onmouseover=show_qm(4,this.href) href="http://www.gundamshop.co.kr/GD_Category03.html?CategoryID=00010109"><img id=img_qm4 src="http://www.gundamshop.co.kr/pics2/n_main/q_menu_04.gif" border="0"></tr>');
	document.write('<tr><td><A onmouseover=show_qm(5,this.href) href="http://www.gundamshop.co.kr/GD_Category03.html?CategoryID=00010104"><img id=img_qm5 src="http://www.gundamshop.co.kr/pics2/n_main/q_menu_05.gif" border="0"></tr>');
	document.write('<tr><td><A onmouseover=show_qm(6,this.href) href="http://www.gundamshop.co.kr/GD_Category03.html?CategoryID=00010105"><img id=img_qm6 src="http://www.gundamshop.co.kr/pics2/n_main/q_menu_06.gif" border="0"></tr>');

	// ¾Æ·¡ÁÙÀº Äü¸Þ´º ÇÏ´Ü ¹è³Ê±¤°í (ÁßÁö½Ã // ÁÖ¼®Ã³¸®¸¸ ÇÏ¸é µÊ)
	document.write('<tr><td onmouseover=close_qm() style="padding-top:1px"><A href="http://www.gundamshop.co.kr/EVENT/2011/11/golpanzi.html"><img src="http://pics2.gundamshop.co.kr/n_main/golpanzi_q.jpg" border="0"></tr>');

	document.write('<tr><td onmouseover=close_qm()><img src="http://www.gundamshop.co.kr/pics2/n_main/q_menu_bott.gif" border="0"></tr>');
	document.write('</table>');

document.write('</table>');
document.write('</div>');






function show_qm(v,h) {
	close_qm_img()
	eval("img_qm"+v).src = eval("img_qm"+v).src.replace(v+".gif",v+"_over.gif")

	td_qm.innerHTML = "<A href="+h+"><img src=http://www.gundamshop.co.kr/pics2/n_main/q_menu_0"+v+"_con.png border=0></a>"

	slidelayer_qm.style.pixelLeft = slidelayer1.style.pixelLeft + 40
	slidelayer_qm.style.pixelTop = slidelayer1.style.pixelTop + (v*50) + 35
	slidelayer_qm.style.display = "inline"
	}
function close_qm() {
	slidelayer_qm.style.display = "none"
	close_qm_img()
	}
function close_qm_img() {
	for(v=1; v<=6; v++) if(eval("img_qm"+v).src.indexOf("_over")>-1) eval("img_qm"+v).src = eval("img_qm"+v).src.replace("_over.gif",".gif")
	}





// ¿À¸¥ÂÊ ¹è³Ê
// µ¥ÀÌÅ¸´Â /common/js/main/main_slideBanner.js ¿¡ ÀÖ°í... µ¥ÀÌÅ¸ È£ÃâÀº Header.js ¿¡¼­ ÇÑ´Ù.
temp = main_slideBanner.split("|")

document.write('<div id="slidelayer2" style="position:absolute; z-index:1; top:-999px; Left:-999" style="padding-top:0px">');
document.write('<table border="0" cellspacing="0" cellpadding="0">');
for(i=0; i<temp.length-1; i+=4) {
	date1 = temp[i+2]
	date2 = temp[i+3]

	if(temp[i+0].indexOf("http://")>-1 && temp[i+0].indexOf("gundamshop.co.kr")==-1) tget = "_blank"; else tget = "_self"

	if(dates_str >= date1 && dates_str <= date2) {
		document.write('<tr><td id=td_main_slideBanner_'+(i/4+1)+' '+atool+' date1='+date1+' date2='+date2+' align="center"><a href="'+temp[i+0]+'" target="'+tget+'"><img src="'+temp[i+1]+'" border="0"></a></td>');
		}
	else if(atool)
		document.write('<tr><td id=td_main_slideBanner_'+(i/4+1)+' '+atool+' date1='+date1+' date2='+date2+'><a href="'+temp[i+0]+'" target="'+tget+'"><img src="'+temp[i+1]+'" border="0" style="display:none"></td>');
	}

document.write('</table>');
document.write('</div>');


// ¿À¸¥ÂÊ,¿ÞÂÊ µû¶ó´Ù´Ï´Â ¹è³Ê ½ºÅ©·Ñ ¼³Á¤

var stmnGAP1 = 165; // ÆäÀÌÁö Çì´õºÎºÐÀÇ ¿©¹é (ÀÌº¸´Ù À§·Î´Â ¿Ã¶ó°¡Áö ¾ÊÀ½)
var stmnGAP2 = 3; // ½ºÅ©·Ñ½Ã ºê¶ó¿ìÀú »ó´Ü°ú ¾à°£ ¶ç¿ò. ÇÊ¿ä¾øÀ¸¸é 0À¸·Î ¼¼ÆÃ
var stmnActivateSpeed = 1; // ¿òÁ÷ÀÓÀ» °¨ÁöÇÏ´Â ¼Óµµ (¼ýÀÚ°¡ Å¬¼ö·Ï ´Ê°Ô ¾Ë¾ÆÂ÷¸²)
var stmnScrollSpeed = 1; // ½ºÅ©·ÑµÇ´Â ¼Óµµ (Å¬¼ö·Ï ´Ê°Ô ¿òÁ÷ÀÓ)

function RefreshStaticMenu() {
	var stmnStartPoint, stmnEndPoint, stmnRefreshTimer;

	stmnStartPoint = parseInt(slidelayer1.style.top, 10);
	stmnEndPoint = document.body.scrollTop + stmnGAP2;
	if (stmnEndPoint < stmnGAP1) stmnEndPoint = stmnGAP1;

	stmnRefreshTimer = stmnActivateSpeed;

	if ( stmnStartPoint != stmnEndPoint ) {
		stmnScrollAmount = Math.ceil( Math.abs( stmnEndPoint - stmnStartPoint ) / 6 );
		slidelayer1.style.top = parseInt(slidelayer1.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
		slidelayer2.style.top = parseInt(slidelayer2.style.top, 10) + ( ( stmnEndPoint<stmnStartPoint ) ? -stmnScrollAmount : stmnScrollAmount );
		stmnRefreshTimer = stmnScrollSpeed;
		}

        slidelayer1.style.pixelLeft = document.body.clientWidth / 2 - 526
        slidelayer2.style.pixelLeft = document.body.clientWidth / 2 + 486

	stmnTimer = setTimeout ("RefreshStaticMenu();", stmnRefreshTimer);
	}

if(web_browser) RefreshStaticMenu()	// ÀÍ½ºÇÃ·¯¸¸ ½ÇÇà





// µ¥ÀÌÅ¸´Â /common/js/main/main_topBanner.js ¿¡ ÀÖ°í... µ¥ÀÌÅ¸ È£ÃâÀº Header.js ¿¡¼­ ÇÑ´Ù.

// ¸ÞÀÎÅ¾ ¹Ù·Î¾Æ·¡ °¡·Îº£³Ê
function print_main_topBanner() {
	temp = main_topBanner.split("|")
	date1 = temp[2]
	date2 = temp[3]

	date3 = temp[6]
	date4 = temp[7]

	document.write('<table border=0 cellpadding=0 cellspacing=0 width="970">');

	if(atool) {
		document.write('<tr><td height=10></td><tr>');

		if(dates_str >= date1 && dates_str <= date2) document.write('<td id=td_main_topBanner_1 '+atool+' date1='+date1+' date2='+date2+'><a href="'+temp[0]+'"><img src="'+temp[1]+'"></td>');
		else					     document.write('<td id=td_main_topBanner_1 '+atool+' date1='+date1+' date2='+date2+' height=10 width=10><a href="'+temp[0]+'"><img src="'+temp[1]+'" style="display:none">&nbsp</td>');

		if(dates_str >= date3 && dates_str <= date4) document.write('<td id=td_main_topBanner_2 '+atool+' date1='+date3+' date2='+date4+'><a href="'+temp[4]+'"><img src="'+temp[5]+'"></td>');
		else					     document.write('<td id=td_main_topBanner_2 '+atool+' date1='+date3+' date2='+date4+' height=10 width=10><a href="'+temp[4]+'"><img src="'+temp[5]+'" style="display:none">&nbsp</td>');

		if(location.href.indexOf("/GD_Category0")==-1) document.write('<tr><td height=10></td>');
		}
	else {
		document.write('<tr><td height=10></td>');
		if(dates_str <= date2 || dates_str <= date4) {
			document.write('<tr>');

			if(dates_str >= date1 && dates_str <= date2) document.write('<td><a href="'+temp[0]+'"><img src="'+temp[1]+'"></td>');
			if(dates_str >= date3 && dates_str <= date4) document.write('<td><a href="'+temp[4]+'"><img src="'+temp[5]+'"></td>');
			}
		}

	document.write('</table>');
	}

//print_main_topBanner()



//<!-- º£³Ê±¤°í Æ®·¹Æå Ã¼Å© : ±â°£ 20110-07-31 -->
//document.write('<img src="http://mztag.ad-indicator.com/ant_ams?corpid=6628&secid=15507&spid=149444&adid=194417&tag=1" width=0 height=0 border=0 frameborder=0 scrolling=no marginheight=0 marginwidth=0>')

