<!-start->
<link href="css/shopcontent_1.css" rel="stylesheet" type="text/css" />
<script src="{#CP#}js/shopcontent_1.js" type="text/javascript"></script>
<script type="text/javascript">
/*****************************
图像按给定宽度或高度自动适应显示
例子：<img src="my.gif" onload="javascript:fitimg(this,100,150)" />
*****************************/

function fitimg(ImgD,iwidth,iheight)
{
    var flag=false;
    var image=new Image();
    image.src=ImgD.src;
    if(image.width>0 && image.height>0)
    {
        flag=true;
        if(image.width/image.height>= iwidth/iheight)
        {
            if(image.width>iwidth)
            {
                ImgD.width=iwidth;
                ImgD.height=(image.height*iwidth)/image.width;
				if(ImgD.height<iheight){
					var xh=(iheight-ImgD.height)/2;
					ImgD.style.marginTop=xh+"px";
					ImgD.style.marginBottom=xh+"px";
				}
            }
            else
            {
                ImgD.width=image.width;
                ImgD.height=image.height;
				if(image.width<iwidth){
					var xw=(iwidth-image.width)/2;
					ImgD.style.marginLeft=xw+"px";
					ImgD.style.marginRight=xw+"px";
				}
				if(image.height<iheight){
					var xh=(iheight-image.height)/2;
					ImgD.style.marginTop=xh+"px";
					ImgD.style.marginBottom=xh+"px";
				}
            }
        }
        else
        {
            if(image.height>iheight)
            {
                ImgD.height=iheight;
                ImgD.width=(image.width*iheight)/image.height;
				if(ImgD.width<iwidth){
					var xw=(iwidth-ImgD.width)/2;
					ImgD.style.marginLeft=xw+"px";
					ImgD.style.marginRight=xw+"px";
				}
            }
            else
            {
                ImgD.width=image.width;
                ImgD.height=image.height;
				if(image.width<iwidth){
					var xw=(iwidth-image.width)/2;
					ImgD.style.marginLeft=xw+"px";
					ImgD.style.marginRight=xw+"px";
				}
				if(image.height<iheight){
					var xh=(iheight-image.height)/2;
					ImgD.style.marginTop=xh+"px";
					ImgD.style.marginBottom=xh+"px";
				}
            }
        }
    }
}
</script>
<!--判断是否隐藏翻页信息-->
<script type='text/javascript'> 
function changeHp(hp){
	if(hp=="yes"){
		document.getElementById("contentpages").style.display="block";
	}else{
		document.getElementById("contentpages").style.display="none";
	}
}
</script>
<script type=text/javascript src="{#CP#}js/shopcontent_roll.js"></script>
<script src="{#CP#}js/ajax.js" type="text/javascript"></script>
<div id="shopcontent">
		<input type="hidden" id="shopid" value="{#id#}">
		<input type="hidden" id="nums" value="{#nums#}">
	  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="268" valign="top">
		  <div class="piczone">
				<table align="center" cellpadding="0" cellspacing="0">
				<tr>
				<td align="center">
				<div id="shopview">
					<img src="images/loading.gif" border="0" id="shoploading" class="shoploading">
				</div>
				</td>
				</tr>
				</table>
			</div>
			<div id="contentpages">
				<div class="shoplistx">
		<div class="rollshoplists">
			<div class="blkshoplistx">
				<div class="LeftButton" id="LeftArr1"></div>
				<div class="Cont" id="ISL_Cont_11">
				{#pics#}
				</div>
				<div class="RightButton" id="RightArr1"></div>
				<script language="javascript" type="text/javascript">

				var scrollPic_03 = new ScrollPic();
				scrollPic_03.scrollContId   = "ISL_Cont_11"; 
				scrollPic_03.arrLeftId      = "LeftArr1";
				scrollPic_03.arrRightId     = "RightArr1"; 
				
				scrollPic_03.frameWidth     = 286;
				scrollPic_03.pageWidth      = 65; 
				
				scrollPic_03.speed          = 10; 
				scrollPic_03.space          = 10; 
				scrollPic_03.autoPlay       = false; 
				scrollPic_03.autoPlayTime   = 3; 
				
				scrollPic_03.initialize();
											

				</script>
			</div>
		</div>
			</div>
		  </td>
          <td>
		  <div id="prodtitle">{#title#}</div>
			<div id="prop">
				编号：{#bn#}<br />
				品牌：{#brand#} &nbsp; <span style="font:12px simsun">[<a href='{#CP#}class/?showbrandid={#brandid#}' >查询该品牌全部商品]</a></span><br />
				单位：{#danwei#}<br />
				重量：{#weight#} 克<br />
				{#propstr#}
				
				<div id="memo" class="memo" style="display:{#showmemo#}">{#memo#}</div>
			</div>
			<div style="padding:5px 0px;">
			商品售价：<span class="price">￥{#price#}</span><br />
			</div>
			<div id="prop">
			订购数量：
              <input name="buynums" type="text" class="input" id="buynums" style="height:18px;background:#fff;" value="1" size="3" maxlength="6" /> 
              <input name="gid" type="hidden" id="gid" value="{#gid#}" />
              {#danwei#}
</div>
			
			<div class="buttonzone"> 
			<img src="images/car.jpg" alt="订购" width="125" height="40" border="0" class="addtocart"  id="addtocart" >
			<img src="images/add.jpg" alt="加入收藏" width="116" height="40" border="0" class="addtofav"  id="addtofav" >
			</div>
			
		  </td>
        </tr>
      </table>

	
	<br clear="all" />

	<div class="bodyzone_cap">
	<div class="bodyzone_cap_left"></div>
	<div id="switch_body" class="bodyzone_cap_now">商品介绍</div>
	<div id="switch_canshu" class="bodyzone_cap_list">详细资料</div>
	<div class="bodyzone_cap_right"></div>
	
	
	</div>

	<div id="bodyzone" class="bodyzone">{#body#}</div>
	<div id="canshuzone" class="canshuzone">{#canshu#}</div>
	<input type="hidden" id="shopid" value="{#id#}"> 

</div>
<!-start->
<!-list->
{#propname#}：{#prop#}<br>
<!-list->

<!-end->
<!-end->
<!-err1-><div class="notice">当前ID不存在或尚未发布</div><!-err1->
<!-err2-><div class="notice">对不起,本内容设置了阅读权限,您无权访问当前内容</div><!-err2->
