var rand_one = Math.floor(Math.random()*2) + 1;

var one_arr0 = Array("","_o","");
var one_arr1 = Array("","","_o");

function bestItemView(t)
{
  // t = parseInt(Math.random()*2) + 1;
 
	if(t == 1)
	{
		objbest1.src = "http://pics2.gundamshop.co.kr/home/tit_best_week_o.gif";		// ¿À¹öÀÌ¹ÌÁö
		bestItem1.style.display="";
 
		objbest2.src = "http://pics2.gundamshop.co.kr/home/tit_best_today.gif";
		bestItem2.style.display="none";
	}
	else
	{
		objbest1.src = "http://pics2.gundamshop.co.kr/home/tit_best_week.gif";		// ¿À¹öÀÌ¹ÌÁö
		bestItem1.style.display="none";
 
		objbest2.src = "http://pics2.gundamshop.co.kr/home/tit_best_today_o.gif";
		bestItem2.style.display="";
	}
}

document.write('	       <table width="200" border="0" cellspacing="0" cellpadding="0">');
document.write('        <tr>');
document.write('			<td><img id="objbest1" style=cursor:hand onClick="bestItemView(1)" src="http://pics2.gundamshop.co.kr/home/tit_best_week'+one_arr0[rand_one]+'.gif" width="100" height="24"></td>');
document.write('            <td><img id="objbest2" style=cursor:hand onClick="bestItemView(2)" src="http://pics2.gundamshop.co.kr/home/tit_best_today'+one_arr1[rand_one]+'.gif" width="100" height="24"></td>');
document.write('		</tr>');
document.write('      </table>');

document.write('	  <div id="bestItem1" style="display:none;">');
document.write('	  <table width="200" height="228" border="0" cellpadding="0" cellspacing="0" height=235>');
document.write('        <tr><td width=1 bgcolor="e3e3e3"></td>');
document.write('		      <td width="198" height="227" align="center" valign="top" style="padding:10 0 0 0">');
document.write('            <div id="bestItem11" style="">');
document.write('			  <table width="170" border="0" cellpadding="0" cellspacing="0" >');
document.write('              <tr><td bgcolor="e3e3e3"><a href="/GD_Front01.html?code=22_1080"><img title="[RG]1/144 RX-78-2 °Ç´ã - °­·ÂÃßÃµ" src="http://image2.gundamshop.co.kr/goods_IMG/sub22/200/22_1080.gif" width=170 height=170 style="border:1px #e3e3e3 solid;"></td></tr>');
document.write('              <tr><td height="30">');
document.write('                   <table width="170" height="30" border="0" cellpadding="0" cellspacing="0">');
document.write('                    <tr><td width="110" height="20" valign="bottom"><img src="http://pics2.gundamshop.co.kr/home/ic_best1.gif" width="62" height="14"></td>');
document.write('                         <td width="60" align="right" valign="bottom"> <img id="objbb11" style=cursor:hand onClick="ItemViewBLayer1(1)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_01.gif" width="13" height="13"> ');document.write('<img id="objbb12" style=cursor:hand onClick="ItemViewBLayer1(2)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_02.gif" width="13" height="13"> <img id="objbb13" style=cursor:hand onClick="ItemViewBLayer1(3)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_03.gif" width="13" height="13"></td></tr>');
document.write('                    <tr><td height="22" colspan="2"><a href="/GD_Front01.html?code=22_1080">[RG]1/144 RX-78-2 °Ç´ã -..11</td></tr>');
document.write('                  </table>');
document.write('				  </td></tr>');
document.write('              </table>');
document.write('              </div>');
document.write('            <div id="bestItem12" style="display:none;">');
document.write('			  <table width="170" border="0" cellpadding="0" cellspacing="0" >');
document.write('              <tr><td bgcolor="e3e3e3"><a href="/GD_Front01.html?code=1_1296"><img title="[HG]1/144 °Ç´ã ½º·Î³× Âê¹ÙÀÌ[12] - °­·ÂÃßÃµ" src="http://image2.gundamshop.co.kr/goods_IMG/sub1/200/1_1296.gif" width=170 height=170 style="border:1px #e3e3e3 solid;"></td></tr>');
document.write('              <tr><td height="30">');
document.write('                   <table width="170" height="30" border="0" cellpadding="0" cellspacing="0">');
document.write('                    <tr><td width="110" height="20" valign="bottom"><img src="http://pics2.gundamshop.co.kr/home/ic_best1.gif" width="62" height="14"></td>');
document.write('                         <td width="60" align="right" valign="bottom"> <img id="objbb11" style=cursor:hand onClick="ItemViewBLayer1(1)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_01.gif" width="13" height="13"> ');document.write('<img id="objbb12" style=cursor:hand onClick="ItemViewBLayer1(2)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_02.gif" width="13" height="13"> <img id="objbb13" style=cursor:hand onClick="ItemViewBLayer1(3)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_03.gif" width="13" height="13"></td></tr>');
document.write('                    <tr><td height="22" colspan="2"><a href="/GD_Front01.html?code=1_1296">[HG]1/144 °Ç´ã ½º·Î³× Âê..12</td></tr>');
document.write('                  </table>');
document.write('				  </td></tr>');
document.write('              </table>');
document.write('              </div>');
document.write('            <div id="bestItem13" style="display:none;">');
document.write('			  <table width="170" border="0" cellpadding="0" cellspacing="0" >');
document.write('              <tr><td bgcolor="e3e3e3"><a href="/GD_Front01.html?code=1_1271"><img title="[HG]1/144 °Ç´ã ½º·Î³× ¾ÆÀÎ[09] - °­·ÂÃßÃµ" src="http://image2.gundamshop.co.kr/goods_IMG/sub1/200/1_1271.gif" width=170 height=170 style="border:1px #e3e3e3 solid;"></td></tr>');
document.write('              <tr><td height="30">');
document.write('                   <table width="170" height="30" border="0" cellpadding="0" cellspacing="0">');
document.write('                    <tr><td width="110" height="20" valign="bottom"><img src="http://pics2.gundamshop.co.kr/home/ic_best1.gif" width="62" height="14"></td>');
document.write('                         <td width="60" align="right" valign="bottom"> <img id="objbb11" style=cursor:hand onClick="ItemViewBLayer1(1)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_01.gif" width="13" height="13"> ');document.write('<img id="objbb12" style=cursor:hand onClick="ItemViewBLayer1(2)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_02.gif" width="13" height="13"> <img id="objbb13" style=cursor:hand onClick="ItemViewBLayer1(3)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_03.gif" width="13" height="13"></td></tr>');
document.write('                    <tr><td height="22" colspan="2"><a href="/GD_Front01.html?code=1_1271">[HG]1/144 °Ç´ã ½º·Î³× ¾Æ..13</td></tr>');
document.write('                  </table>');
document.write('				  </td></tr>');
document.write('              </table>');
document.write('              </div>');
document.write('              </td>');
document.write('			  <td width=1 bgcolor="e3e3e3"></td>');
document.write('          </td></tr>');
document.write('	    <tr><td width=1 bgcolor="e3e3e3" colspan=3></td></tr>');
document.write('		</table>');
document.write('		</div>');


var tOver1 = 1;
function ItemViewBLayer1(list)
{
	if(tOver1 != list)
	{
		var objImg = eval("objbb1"+list);
		objImg.src = "http://pics2.gundamshop.co.kr/submain/sub01/num_nw_0"+list+"o.gif";		// ¿À¹öÀÌ¹ÌÁö
		var objTable = document.getElementById("bestItem1"+list);
		objTable.style.display="";

		var oldobjImg = eval("objbb1"+tOver1);
		oldobjImg.src = "http://pics2.gundamshop.co.kr/submain/sub01/num_nw_0"+tOver1+".gif";		// ¾Æ¿ôÀÌ¹ÌÁö
		var objTable = document.getElementById("bestItem1"+tOver1);
		objTable.style.display="none";

		tOver1 = list;
	}
}

document.write('	  <div id="bestItem2" style="display:none;">');
document.write('	  <table width="200" height="228" border="0" cellpadding="0" cellspacing="0" height=235>');
document.write('        <tr><td width=1 bgcolor="e3e3e3"></td>');
document.write('		      <td width="198" height="227" align="center" valign="top" style="padding:10 0 0 0">');
document.write('            <div id="bestItem21" style="">');
document.write('			  <table width="170" border="0" cellpadding="0" cellspacing="0" >');
document.write('              <tr><td bgcolor="e3e3e3"><a href="/GD_Front01.html?code=1_1076"><img title="1/100 Gundam Astray Goldframe Amatsu °Ç´ã¾Æ½ºÆ®·¹ÀÌ °ñµåÇÁ·¹ÀÓ ¾Æ¸¶Ãò[13]-°­·ÂÃßÃµ" src="http://image2.gundamshop.co.kr/goods_IMG/sub1/200/1_1076.gif" width=170 height=170 style="border:1px #e3e3e3 solid;"></td></tr>');
document.write('              <tr><td height="30">');
document.write('                   <table width="170" height="30" border="0" cellpadding="0" cellspacing="0">');
document.write('                    <tr><td width="110" height="20" valign="bottom"><img src="http://pics2.gundamshop.co.kr/home/ic_best1.gif" width="62" height="14"></td>');
document.write('                         <td width="60" align="right" valign="bottom"> <img id="objbb21" style=cursor:hand onClick="ItemViewBLayer2(1)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_01.gif" width="13" height="13"> ');document.write('<img id="objbb22" style=cursor:hand onClick="ItemViewBLayer2(2)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_02.gif" width="13" height="13"> <img id="objbb23" style=cursor:hand onClick="ItemViewBLayer2(3)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_03.gif" width="13" height="13"></td></tr>');
document.write('                    <tr><td height="22" colspan="2"><a href="/GD_Front01.html?code=1_1076">1/100 Gundam Astray Gold..21</td></tr>');
document.write('                  </table>');
document.write('				  </td></tr>');
document.write('              </table>');
document.write('              </div>');
document.write('            <div id="bestItem22" style="display:none;">');
document.write('			  <table width="170" border="0" cellpadding="0" cellspacing="0" >');
document.write('              <tr><td bgcolor="e3e3e3"><a href="/GD_Front01.html?code=9_1753"><img title="°Ç´ã¼¥ ÇÁ¶ó¸ðµ¨ Àü¿ë Á¤¹Ð´ÏÆÛ" src="http://image2.gundamshop.co.kr/goods_IMG/sub9/200/9_1753.gif" width=170 height=170 style="border:1px #e3e3e3 solid;"></td></tr>');
document.write('              <tr><td height="30">');
document.write('                   <table width="170" height="30" border="0" cellpadding="0" cellspacing="0">');
document.write('                    <tr><td width="110" height="20" valign="bottom"><img src="http://pics2.gundamshop.co.kr/home/ic_best1.gif" width="62" height="14"></td>');
document.write('                         <td width="60" align="right" valign="bottom"> <img id="objbb21" style=cursor:hand onClick="ItemViewBLayer2(1)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_01.gif" width="13" height="13"> ');document.write('<img id="objbb22" style=cursor:hand onClick="ItemViewBLayer2(2)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_02.gif" width="13" height="13"> <img id="objbb23" style=cursor:hand onClick="ItemViewBLayer2(3)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_03.gif" width="13" height="13"></td></tr>');
document.write('                    <tr><td height="22" colspan="2"><a href="/GD_Front01.html?code=9_1753">°Ç´ã¼¥ ÇÁ¶ó¸ðµ¨ Àü¿ë Á¤..22</td></tr>');
document.write('                  </table>');
document.write('				  </td></tr>');
document.write('              </table>');
document.write('              </div>');
document.write('            <div id="bestItem23" style="display:none;">');
document.write('			  <table width="170" border="0" cellpadding="0" cellspacing="0" >');
document.write('              <tr><td bgcolor="e3e3e3"><a href="/GD_Front01.html?code=22_1080"><img title="[9¿ù 8ÀÏ ¹ß¼Û¿¹Á¤]|[RG]1/144 RX-78-2 °Ç´ã - °­·ÂÃßÃµ" src="http://image2.gundamshop.co.kr/goods_IMG/sub22/200/22_1080.gif" width=170 height=170 style="border:1px #e3e3e3 solid;"></td></tr>');
document.write('              <tr><td height="30">');
document.write('                   <table width="170" height="30" border="0" cellpadding="0" cellspacing="0">');
document.write('                    <tr><td width="110" height="20" valign="bottom"><img src="http://pics2.gundamshop.co.kr/home/ic_best1.gif" width="62" height="14"></td>');
document.write('                         <td width="60" align="right" valign="bottom"> <img id="objbb21" style=cursor:hand onClick="ItemViewBLayer2(1)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_01.gif" width="13" height="13"> ');document.write('<img id="objbb22" style=cursor:hand onClick="ItemViewBLayer2(2)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_02.gif" width="13" height="13"> <img id="objbb23" style=cursor:hand onClick="ItemViewBLayer2(3)" src="http://pics2.gundamshop.co.kr/submain/sub01/num_nw_03.gif" width="13" height="13"></td></tr>');
document.write('                    <tr><td height="22" colspan="2"><a href="/GD_Front01.html?code=22_1080">[9¿ù 8ÀÏ ¹ß¼Û¿¹Á¤]|[RG]1..23</td></tr>');
document.write('                  </table>');
document.write('				  </td></tr>');
document.write('              </table>');
document.write('              </div>');
document.write('              </td>');
document.write('			  <td width=1 bgcolor="e3e3e3"></td>');
document.write('          </td></tr>');
document.write('	    <tr><td width=1 bgcolor="e3e3e3" colspan=3></td></tr>');
document.write('		</table>');
document.write('		</div>');


var tOver2 = 1;
function ItemViewBLayer2(list)
{
	if(tOver2 != list)
	{
		var objImg = eval("objbb2"+list);
		objImg.src = "http://pics2.gundamshop.co.kr/submain/sub01/num_nw_0"+list+"o.gif";		// ¿À¹öÀÌ¹ÌÁö
		var objTable = document.getElementById("bestItem2"+list);
		objTable.style.display="";

		var oldobjImg = eval("objbb2"+tOver2);
		oldobjImg.src = "http://pics2.gundamshop.co.kr/submain/sub01/num_nw_0"+tOver2+".gif";		// ¾Æ¿ôÀÌ¹ÌÁö
		var objTable = document.getElementById("bestItem2"+tOver2);
		objTable.style.display="none";

		tOver2 = list;
	}
}


document.write('	<table height="10" border="0" cellpadding="0" cellspacing="0">');
document.write('		<tr><td></td></tr>');
document.write('    </table>');

document.getElementById('bestItem' + rand_one).style.display = "";

