<table width="446" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="39"><table width="446" border="0" cellpadding="0" cellspacing="0">
<div id=AryTmpMM55 style="DISPLAY: block"></div><div id=AryTmpMM55 style="DISPLAY: none"></div><div id=AryTmpMM55 style="DISPLAY: none"></div><div id=AryTmpMM55 style="DISPLAY: none"></div><div id=AryTmpMM55 style="DISPLAY: none"></div>
<tr>
<td width="16" height="39"></td>
<td width="87"><a href="list_bestprice.php?cpage=pricebest"><img src="/images/main/price_6_on.gif" alt="6만이하" width="87" height="39" border="0" id=btnMM55 name=Image6 onMouseOver="javascript:p_ImgMM2item(btnMM55,AryTmpMM55,AryTmpMM56,0); btnMM55Over();" onMouseOut="javascript:btnMM55Out();"
style="CURSOR: hand" /></a></td>
<td width="5"></td>
<td width="87"><a href="list_bestprice.php?cpage=pricebest"><img src="/images/main/price_8_off.gif" alt="8만이하" width="87" height="39" border="0" id=btnMM55 name=Image7 onMouseOver="javascript:p_ImgMM2item(btnMM55,AryTmpMM55,AryTmpMM56,1); btnMM55Over();" onMouseOut="javascript:btnMM55Out();"
style="CURSOR: hand" /></a></td>
<td width="5"></td>
<td width="87"><a href="list_bestprice.php?cpage=pricebest"><img src="/images/main/price_10_off.gif" alt="10만이하" width="87" height="39" border="0" id=btnMM55 name=Image8 onMouseOver="javascript:p_ImgMM2item(btnMM55,AryTmpMM55,AryTmpMM56,2); btnMM55Over();" onMouseOut="javascript:btnMM55Out();"
style="CURSOR: hand" /></a></td>
<td width="5"></td>
<td width="87"><a href="list_bestprice.php?cpage=pricebest"><img src="/images/main/price_102_off.gif" alt="10만이상" width="87" height="39" border="0" id=btnMM55 name=Image9 onMouseOver="javascript:p_ImgMM2item(btnMM55,AryTmpMM55,AryTmpMM56,3); btnMM55Over();" onMouseOut="javascript:btnMM55Out();"
style="CURSOR: hand" /></a></td>
<td width="67"></td>
</tr>
</table></td>
</tr>
<tr>
<td height="3"></td>
</tr>
<?
$price_arr=array("PBEST_6D","PBEST_8D","PBEST_10D","PBEST_10U");
for($j=0; $j<4; $j++)
{
$query = "SELECT a.$field_str FROM goods AS a, groups_goods AS b WHERE a.no>1 AND a.goods_code=b.goods_code AND a.goods_view='Y' ";
$query .= "AND b.root_folder='price' AND b.groups_code='$price_arr[$j]' ORDER BY b.groups_goods_idx LIMIT 1";
$result = mysql_query($query);
if(!$j) $_display = "block";
else $_display = "none";
?>
<!-- 가격대별 베스트 상품 -->
<tr id="AryTmpMM56" style="DISPLAY: <?=$_display?>" onMouseOver="javascript:p_ImgMM2item(btnMM55,AryTmpMM55,AryTmpMM56,<?=$j?>); btnMM55Over();" onMouseOut="javascript:btnMM55Out();">
<?
while($row = mysql_fetch_array($result)) {
$goods_name = strip_tags($row[goods_name]);
#####__회원가격 및 마일리지.
$min_price = number_format($row[minprice]); //제일 작은가격
$goods_mileage = number_format($row[minprice] * ($row[goods_mileage]+($member_mileage/100)));
$member_price = number_format($row[minprice] - (floor($row[minprice] / 10000 * $member_discount) * 100) );
#####__상품 이미지
$goods_imgs = "/prog/goods/imgs/$row[goods_imgs]";
$dt_link = "goods_detail.php?goods_code=$row[goods_code]&sub_folder_code=$sub_folder_code&root_folder_code=$grp_row[root_folder_code]&mode=$mode&keyword=$keyword&cpage=mbest&head_tf=$head_tf#$row[goods_code]";
$zoom_link = "javascript:MM_openBrWindow('zoomImg.php?imgfile_name=prog/goods/imgb/$row[goods_imgb]', 'bigPhoto$row[no]', 'width=710, height=730, resizeable=yes');";
?>
<td height="210">
<table width="446" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="18" height="210"></td>
<td width="180"><?=$target_link?><img src="<?=$goods_imgs?>" width="180" height="210" border="0" /></a></td>
<td width="180"><table width="180" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2"><div align="center" class="style_99_04"><?=$target_link?><?=$row[goods_name]?></a> <a href="<?=$zoom_link?>"><img src="/images/main/bt_zoom.gif" alt="크게보기" width="35" height="11" border="0" /></a></div></td>
</tr>
<tr>
<td height="5" colspan="2"></td>
</tr>
<tr>
<td width="90"><div align="center"><img src="/images/main/blit_price_nomal.gif" width="62" height="13" /><br />
<span class="style_99_05"><?=$min_price?></span><span class="style1"><span class="style_99_06">원</span></span></div></td>
<td width="90"><div align="center"><img src="<?=$img_server_url?>/images/main/blit_price_member.gif" width="62" height="13" /><br />
<span class="style_99_07"><?=$member_price?></span><span class="style_99_08">원</span></div></td>
</tr>
<tr>
<td colspan="2"><div align="center"><img src="/images/main/blit_price_point.gif" width="25" height="12" /> <span class="style_99_09"><?=$goods_mileage?>원</span></div></td>
</tr>
</table></td>
<td width="68"></td>
</tr>
</table>
</td>
<?
}
?>
</tr>
<!-- 가격대별 베스트 상품 끝 -->
<?
}
?>
<tr>
<td height="23"></td>
</tr>
</table>
</tr>
</table></td>
</tr>
</table>
</div>
<SCRIPT language=JavaScript type=text/JavaScript>
<!--//
// 이미지 선택이미지 변경
function p_ImgMM2item(p_ids,p_changeImg,p_changeImg2,p_Cnt,p_Slt)
{
var p_count;
p_count = p_ids.length;
if (p_changeImg.length < p_count)
{
p_count = p_changeImg.length;
}
if (p_changeImg2.length < p_count)
{
p_count = p_changeImg2.length;
}
if (p_Cnt >= p_count)
{
p_Cnt = p_count-1;
}
for(i=0;i<p_count;i++)
{
p_ids[i].src = p_ids[i].src.replace("_on", "_off");
p_changeImg[i].style.display = "none"
if (p_Cnt == i)
{
p_ids[i].src = p_ids[i].src.replace("_off", "_on");
p_changeImg[i].style.display = "block"
}
}
var p_PrdCnt = parseInt("20");
if ( (p_Cnt+1)*4 > (p_PrdCnt+1) )
{
return;
}
for(i=0;i<p_count;i++)
{
p_changeImg2[i].style.display = "none"
if (p_Cnt == i)
{
p_changeImg2[i].style.display = "block"
}
}
}
// 1.5초 간격으로 롤링
var cntMM56;
cntMM56 = 0;
function LayerMoveMM56()
{
if (cntMM56 >= 5 )
{
cntMM56 =0;
}
p_ImgMM2item(btnMM55,AryTmpMM55,AryTmpMM56,cntMM56);
cntMM56++;
//window.setTimeout(LayerMoveM56, 1500);
}
var p_idname2 = document.getElementById('AryTmpMM55');
function btnMM55Over()
{
clearInterval(p_idname2.move);
}
function btnMM55Out()
{
p_idname2.move = setInterval(function () { LayerMoveMM56(); }, 2000);
}
btnMM55Out();
//-->
</SCRIPT>