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=21_3466"><img title="[¡ÚÇØ¿ÜÆ¯ÀüÆÇ(¼±ÅÃ)¡Ú][MG]¾Æ½ºÆ®·¹ÀÌ ·¹µåÇÁ·¹ÀÓ ËÇ(°³)[ÇÃ·¯½º Å¬¸®¾î¿ÜÀå]- °­·ÂÃßÃµ" src="http://image2.gundamshop.co.kr/goods_IMG/sub21/200/21_3466.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=21_3466">[¡ÚÇØ¿ÜÆ¯ÀüÆÇ(¼±ÅÃ)¡Ú][M..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=16_4441"><img title="¡Ú[1+1ÀÌº¥Æ®(´ÏÆÛ+¸Ô¼±ÆæÁõÁ¤)]¡Ú[°Ç´ã¼¥]ÇÁ¶ó¸ðµ¨ Àü¿ë °í±Þ/Á¤¹Ð´ÏÆÛ[GSN110]-°­·ÂÃßÃµ" src="http://image2.gundamshop.co.kr/goods_IMG/sub16/200/16_4441.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=16_4441">¡Ú[1+1ÀÌº¥Æ®(´ÏÆÛ+¸Ô¼±Ææ..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=20_9692"><img title="BB.360 À¯´ÏÄÜ °Ç´ã -°­·ÂÃßÃµ" src="http://image2.gundamshop.co.kr/goods_IMG/sub20/200/20_9692.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=20_9692">BB.360 À¯´ÏÄÜ °Ç´ã -°­·Â..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=16_4441"><img title="¡Ú[1+1ÀÌº¥Æ®(´ÏÆÛ+¸Ô¼±ÆæÁõÁ¤)]¡Ú[°Ç´ã¼¥]ÇÁ¶ó¸ðµ¨ Àü¿ë °í±Þ/Á¤¹Ð´ÏÆÛ[GSN110]-°­·ÂÃßÃµ" src="http://image2.gundamshop.co.kr/goods_IMG/sub16/200/16_4441.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=16_4441">¡Ú[1+1ÀÌº¥Æ®(´ÏÆÛ+¸Ô¼±Ææ..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_3466"><img title="[¡ÚÇØ¿ÜÆ¯ÀüÆÇ(¼±ÅÃ)¡Ú][MG]¾Æ½ºÆ®·¹ÀÌ ·¹µåÇÁ·¹ÀÓ ËÇ(°³)[ÇÃ·¯½º Å¬¸®¾î¿ÜÀå]- °­·ÂÃßÃµ" src="http://image2.gundamshop.co.kr/goods_IMG/sub21/200/21_3466.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_3466">[¡ÚÇØ¿ÜÆ¯ÀüÆÇ(¼±ÅÃ)¡Ú][M..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=21_9871"><img title="[È­ÀÌÆ®µ¥ÀÌ¼±¹°]»ç¶û½º·±±×´ë¿¡°Ô04-¹Ì´Ï¾îÃÄ Çâ¼öÁõÁ¤! - °­·ÂÃßÃµ" src="http://image2.gundamshop.co.kr/goods_IMG/sub21/200/21_9871.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_9871">[È­ÀÌÆ®µ¥ÀÌ¼±¹°]»ç¶û½º·±..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 = "";

