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=23_9846"><img title="[GSÇÏºñ]°ÇÇÁ¶óÀü¿ë´ÏÆÛ(GSN-112)" src="http://image2.gundamshop.co.kr/goods_IMG/sub23/200/23_9846.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=23_9846">[GSÇÏºñ]°ÇÇÁ¶óÀü¿ë´ÏÆÛ(G..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=23_9845"><img title="[GSÇÏºñ]°øÀÛ¿ë½ºÆ½»çÆ÷3Á¾set" src="http://image2.gundamshop.co.kr/goods_IMG/sub23/200/23_9845.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=23_9845">[GSÇÏºñ]°øÀÛ¿ë½ºÆ½»çÆ÷3..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=24_2597"><img title="[GSÇÏºñ]µðÀÚÀÎ ³ªÀÌÇÁ(¸®ÇÊÄ®³¯ 12°³Æ÷ÇÔ)[GSK100]-ÃßÃµ½ÅÁ¦Ç°" src="http://image2.gundamshop.co.kr/goods_IMG/sub24/200/24_2597.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=24_2597">[GSÇÏºñ]µðÀÚÀÎ ³ªÀÌÇÁ(¸®..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=23_9846"><img title="[GSÇÏºñ]°ÇÇÁ¶óÀü¿ë´ÏÆÛ(GSN-112)" src="http://image2.gundamshop.co.kr/goods_IMG/sub23/200/23_9846.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=23_9846">[GSÇÏºñ]°ÇÇÁ¶óÀü¿ë´ÏÆÛ(G..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=21_9574"><img title="[¼­Àû]°ÇÇÁ¶óÀÔ¹® ¡Ú°Ç´ã¼¥ Æ¯º°ÆÇ¡Ú ±âÃÊºÎÅÍ °í±Þ±îÁö ½±°Ô ¹è¿ì´Â ¸ðÇü°­ÁÂ ÇÊµ¶¼­!" src="http://image2.gundamshop.co.kr/goods_IMG/sub21/200/21_9574.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=21_9574">[¼­Àû]°ÇÇÁ¶óÀÔ¹® ¡Ú°Ç´ã..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=24_2597"><img title="[GSÇÏºñ]¾ÆÆ®³ªÀÌÇÁ" src="http://image2.gundamshop.co.kr/goods_IMG/sub24/200/24_2597.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=24_2597">[GSÇÏºñ]¾ÆÆ®³ªÀÌÇÁ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 = "";


