<%@ page language="C#" autoeventwireup="true" inherits="ShowProduct, WebApp_deploy" title="商品详情页" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <%=keyword %>
    <%=description %>
    <title></title>
    <!--头部底部-->
    <%--<link href="Store/CSS/css3/base-min.css" rel="stylesheet" type="text/css" />--%>
    <%--<link href="Skin/TopStyle/Basic.css" rel="stylesheet" type="text/css" />--%>
    <link href="Skin/Default/Member/Red.css" rel="stylesheet" type="text/css" />
    <link href="Skin/ShowProductStyle/base.css" rel="stylesheet" type="text/css" />
    <link href="Skin/ShowProductStyle/common_shop.css" rel="stylesheet" type="text/css" />
    <link href="Skin/ShowProductStyle/bdsstyle.css" rel="stylesheet" type="text/css" />
    <link href="Skin/ShowProductStyle/style.css" rel="stylesheet" type="text/css" />
    <link href="Skin/ShowProductStyle/dialog.css" rel="stylesheet" type="text/css" />
    <link href="Skin/ShowProductStyle/dialog2.2.css" rel="stylesheet" type="text/css" />
    <link href="Skin/ShowProductStyle/public.css" rel="stylesheet" type="text/css" />
    <script src="Skin/CommStyle/js/jquery-1.8.3.min.js" type="text/javascript"></script>
    <link href="Member/Js/jquery-ui-1.8.2.custom.css" rel="stylesheet" type="text/css" />
    <script src="Skin/ShowProductStyle/js/jquery.ajaxContent.pack.js" type="text/javascript"></script>
    <script src="Skin/ShowProductStyle/js/jquery.charCount.js" type="text/javascript"></script>
    <script src="Member/Js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
    <!--<script src="Skin/ShowProductStyle/js/jquery.ui.js" type="text/javascript"></script>-->
    <script src="Skin/ShowProductStyle/js/jquery.validation.min.js" type="text/javascript"></script>
    <script src="Skin/ShowProductStyle/js/member.js" type="text/javascript"></script>
    <script src="Skin/ShowProductStyle/js/shop.js" type="text/javascript"></script>
    <script src="Skin/ShowProductStyle/js/nc-zoom.js" type="text/javascript"></script>
    <script src="Skin/ShowProductStyle/js/sns.js" type="text/javascript"></script>
    <script src="Skin/ShowProductStyle/js/utils.js" type="text/javascript"></script>
    <script src="Skin/ShowProductStyle/js/html5.js" type="text/javascript"></script>
    <script src="Skin/ShowProductStyle/js/common.js" type="text/javascript"></script>
    <script src="Js/HoWave_Cookie.js" type="text/javascript"></script>
    <link href="Store/CSS/css3/blue2.css" rel="stylesheet" type="text/css" />
    <%--<link href="Store/CSS/css3/c2c-head-v2-min.css" rel="stylesheet" type="text/css" />--%>
    <link href="Store/CSS/css3/shop-mods-min.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .pagination
        {
            float: right;
            padding: 6px 2px;
        }
        .pagination a
        {
            float: left;
            height: auto;
            width: auto;
            text-decoration: none;
            background-color: #fff;
            color: #999;
            border-color: #AEB9B9;
            padding: 2px 7px;
            margin: 0px 2px;
            border: 1px solid #CCC;
        }
        .pagination a:hover
        {
            color: #DB7C1E;
            background-color: #f57202;
            border-color: #DB7C1E;
        }
        .st1, .st1 td
        {
            border-width: 1px;
            border-color: Red;
            border-style: dotted;
            border-collapse: collapse;
        }
        .st2
        {
            margin: 2px 2px 2px 2px;
            display: inline;
            float: left;
            position: relative;
            width: 60px;
            height: 25px;
            text-align: center;
            border-width: 1px;
            border-color: Gray;
            border-style: solid;
        }
        .left_title
        {
            margin: 2px 2px 2px 4px;
            display: inline;
            float: left;
            position: relative;
            width: 50px;
            height: 25px;
            text-align: center;
            border-width: 1px;
            border-color: Gray;
            border-style: solid;
        }
        .text
        {
            width: 59px;
        }
        .tit
        {
            background-color: #F4FAFE;
            padding: 4px;
        }
        #tbPara1 td
        {
            border-width: 1px;
            border-style: solid;
            border-color: #dddddd #777777 #777777 #dddddd;
        }
        #11tbPara1
        {
            border-width: 1px;
            border-style: solid;
            border-color: #777777 #dddddd #dddddd #777777;
            background: #ffcccc;
        }
        .out
        {
            border-width: 1px;
            border-style: solid;
            border-color: #dddddd #777777 #777777 #dddddd;
        }
        .in
        {
            border-width: 1px;
            border-style: solid;
            border-color: #777777 #dddddd #dddddd #777777;
            background: #ffcccc;
        }
        .needPresentExp
        {
            background-image: url(Images/btn.png);
            background-repeat: no-repeat;
            width: 155px;
            height: 45px;
            cursor: pointer;
            color: White;
            font-size: 20px;
            font-weight: bolder;
            font-family: @楷体_GB2312;
            text-align: center;
        }
    </style>
    <%--<script type="text/javascript">
        $(function () {
            $('a[nctype="search_in_store"]').click(function () {
                $('#search_act').val('show_store');
                $('<input type="hidden" value="70" name="id" /> <input type="hidden" name="op" value="goods_all" />').appendTo("#formSearch");
                $('#formSearch').submit();
            });
            $('a[nctype="search_in_shop"]').click(function () {
                $('#formSearch').submit();
            });
        });
    </script>--%>
</head>
<body id="goheader" name="goheader">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:Panel ID="pnlTopOld" runat="server">
        <hl:Top ID="Top1" runat="server" />
    </asp:Panel>
    <asp:Panel ID="pnlTopNew" runat="server" Visible="false">
        <hl:ProductDetailTopUC ID="topUc" runat="server" />
        <%--店铺 begin--%>
        <div class="w980">
            <div class="tb-shop head-expand eshop layout grid-m col-main main-wrap J_TRegion box J_TBox shop-banner">
                <%--<div id="Div1"  data-cat="J_Cat0">
                <div id="hd">
                <div class="layout grid-m">
                <div class="col-main">
                <div class="main-wrap J_TRegion" data-width="h950" data-modules="main">
                <div class="box J_TBox">filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='rain1977.gif',sizingMethod='scale')
                <div class="shop-banner">--%>
                <div class="shop-header " id="shopbiaozhi" style="height: 150px;">
                    <table style="margin-left: 20px; margin-top: 28px; width: 950px">
                        <tr>
                            <td style="width: auto;">
                                <img id="dianbiaoImg" src="" width="80px" height="78px" style="display: none" alt="" />
                                <asp:HiddenField ID="Hiddendianbiao" runat="server" Value="" />
                            </td>
                            <td class="shop-title" style="width: auto">
                                <h2 id="ShopTitle" style="margin-left: 7px; margin-top: 10px; display: none; color: Black;
                                    text-align: center;">
                                </h2>
                                <asp:HiddenField ID="HiddenShopTitle" runat="server" Value="" />
                                <asp:HiddenField ID="HiddenBackGroundImage" runat="server" Value="" />
                                <asp:HiddenField ID="HiddenShowType" runat="server" Value="" />
                            </td>
                        </tr>
                    </table>
                    <div class="nav">
                        <ul>
                            <li id="liCurrent1" title="首页" style=""><a href="Store/ShopIndex.aspx?ShopID=<%=ShopID %>&ColumnTag=HomePage"
                                title="首页"><em>首页</em></a> </li>
                            <li id="liCurrent2"><a href="Store/ShopIndex.aspx?ShopID=<%=ShopID %>&ColumnTag=CreditStatus">
                                <em>信用评价</em></a></li>
                            <li id="liCurrent3" class="" title="交流区"><a href="Store/ShopIndex.aspx?ShopID=<%=ShopID %>&ColumnTag=ExchangeArea"
                                title="交流区"><em>交流区</em></a> </li>
                            <li id="liCurrent4" class="" title=""><a href="Store/ShopIndex.aspx?ShopID=<%=ShopID %>&ColumnTag=ProductList"
                                title=""><em>全部商品</em></a> </li>
                            <li id="liCurrent5" class="" title="店铺介绍"><a href="Store/ShopIndex.aspx?ShopID=<%=ShopID %>&ColumnTag=ShopInfo"
                                title="店铺介绍"><em>店铺介绍</em></a> </li>
                        </ul>
                    </div>
                </div>
                <%--</div></div></div></div></div></div></div>--%>
            </div>
        </div>
        <%--店铺 end--%>
    </asp:Panel>
    <div id="append_parent">
    </div>
    <div id="ajaxwaitid">
    </div>
    <div class="background clearfix">
        <article id="content">
    <section class="nc-detail">
      <header class="nc-detail-hd clearfix">
        <h3 style="text-indent:0px;"> <font style=" font-size:large;"><asp:Literal ID="ltrProductName" runat="server"></asp:Literal> </font></h3>
        <div class="nc-inform" style="display:none;"><span><a href="javascript:void(0)" title="举报中心">举报中心<i></i></a></span>
          <ul>
            <li><a href="" title="举报该商品">举报该商品</a></li>
          </ul>
        </div>
     </header>
      <div class="nc-detail-bd" style=""> 
        <!-- S 商品图片及收藏分享 -->
        <aside class="nc-gallery">
          <div class="zoom-section"> 
            <!-- S 默认图片触及显示放大镜效果 -->
            <div class="zoom-small-image" style="border:1px solid #E7E7E7;" ><span class="thumb size310">
            <div id="wrap" style="top: 0px;  position: relative;">
            <a style="position: relative; display: block;" href="<%=ChangeBigImg %>"  class="nc-zoom" id="zoom1" rel="position: 'inside' , showTitle: false">
            <asp:Image ID="BigImg" Width="310px" Height="310px" style="display: block;" runat="server"></asp:Image>
            </a>
            <div  class="mousetrap" id="ViewDiv" title="" 
                    style="background-image: url(&quot;.&quot;) no-repeat scroll 0 transparent; position: absolute; width: 309px; height: 310px; left: 0px; top: 0px;">
            </div>
            </div>
            </span>
            </div>
            <!-- S 默认图片触及显示放大镜效果 --> 
            
            <!-- S 关联默认图片的缩略图 -->
            <nav class="zoom-desc">
              <ul>
              
              <asp:Literal ID="ltrSmallPicCollection" runat="server"></asp:Literal>
            
            </ul>
            </nav>
            <!-- E 关联默认图片的缩略图 --> 
          </div>
          <!-- S 收藏与分享 -->
          <div class="ncs_share">
          <script type="text/javascript">
              function AddFav(sen) {
                  var userid = '<%=user.UserID %>';
                  if (userid < 1) {
                      alert('请先登录！');
                      return;
                  }
                  $.post("WebService/ShopService.ashx", { 'Action': 'AddFav', 'UserID': userid, 'ProductID': '<%=ProductID %>',
                      'ShopID': -1, 'Type': 0
                  }, function (data, state) {
                      if (state == "success") {
                          if (parseInt(data) == -1) {
                              alert('已经关注过');
                          } else if (parseInt(data) == -2) {
                              alert('请先登录！');
                          } else if (parseInt(data) < 1) {
                              alert('收藏失败！');
                          } else {
                              var $em = $(sen).children("em");
                              $em.text(parseInt($em.text()) + 1);
                          }
                          return false;
                      }
                  });
                  return false;
              }
              
          </script><input id="h_bodysizeconfirm" type="hidden" value="0" />
            <div class="ncs-goods-share fl mr10">
            <span class="goods-favorite"><a href="javascript:;" onclick="return AddFav(this)" title="收藏">收藏
            <em title="加入收藏" nctype="goods_collect"> <asp:Literal ID="ltrProductFav" runat="server"></asp:Literal> </em></a></span>

            </div>
            <div id="bdshare" class="bdshare_b fl" style="line-height: 12px;"><img src="Skin/ShowProductStyle/images/fx.jpg"> <a title="累计分享0次" class="shareCount">0</a> </div>
          </div>
          
          <!-- E 收藏与分享 --> 
        </aside>

        <!-- E 商品图片及收藏分享 --> 
        <!-- S 商品基本信息 -->
        <article class="nc-wrap">

          <div class="nc-meta"> 
            <!-- S 商品发布价格 -->
            <dl class="nc-detail-price" id="CustomPriceDIV" runat="server">
              <dt>参 考 价：</dt><!-- <strong nctype="goods_price"></strong>-->
              <dd><b><%=CustomPrice%></b>&nbsp;元</dd>
              
            </dl>
            <!--一口价-->
            <asp:Literal ID="ltrMarket" Visible="false" runat="server"></asp:Literal>
            <!--秒杀-->
            <asp:Literal ID="ltrPromote" Visible="false"  runat="server"></asp:Literal>
            <!--拍卖-->
            <asp:Literal ID="ltrAuctionMall" Visible="false"  runat="server"></asp:Literal>
            <%--积分商品--%>
            <asp:Literal ID="ltrNeedPresentExp" Visible="false" runat="server"></asp:Literal>
            <asp:Literal ID="ltrTuan" Visible="false" runat="server"></asp:Literal>
            <!-- E 商品发布价格 --> 
            <!-- S 商品促销价格 --> 
            <!-- S 团购 -->
                        <!-- E 团购 --> 
            <!-- S 限时折扣 -->
                        <!-- E 限时折扣 --> 
            <!-- E 商品促销价格 -->
            
      <script type="text/javascript">
          //deliver_area[0]=[["平邮","其它",18],["福建,广东,广西,海南",16],["云南,山西,山东",20]];
          var deliver_area = [["平邮", "其它", 18], ["福建,广东,广西,海南", 16], ["云南,山西,山东", 20]];
          function setAreaPrice(area) {
              var top_select_area = document.getElementById("top_select_area");
              var str = "";
              var topListStr = ""
              for (var i = 0; i < deliver_area.length; i++) {
                  topListStr += deliver_area[i][0][0] + ":"
                  var area_in = false;
                  for (var j = 1; j < deliver_area[i].length; j++) {
                      if (deliver_area[i][j][0].indexOf(area) > -1) {
                          topListStr += deliver_area[i][j][1] + "元&nbsp;&nbsp;";
                          area_in = true;
                          break;
                      }

                  }
                  if (!area_in) {
                      topListStr += deliver_area[i][0][2] + "元&nbsp;&nbsp;";
                  }


              }

              if (top_select_area) {
                  top_select_area.innerHTML = area;
              }


              $("#deliver_top_list").html(topListStr);

          }
          function ShowArea(sen) {
              var devlier_area_listObj = document.getElementById("deliver_area_list");
              if (devlier_area_listObj) {
                  devlier_area_listObj.style.display = "block";
                  //var showDiv = e.target || e.srcElement;
                  devlier_area_listObj.style.left = $(sen).offset().left - 30 + "px";
                  devlier_area_listObj.style.top = $(sen).offset().top + 8 + "px";
              }

          }

          $(function () {
              var top_select_area = document.getElementById("top_select_area");
              var topListStr = "";
              if (deliver_area.length) {
                  for (var i = 0; i < deliver_area.length; i++) {
                      topListStr += deliver_area[i][0][0] + ":" + deliver_area[i][0][2] + "元&nbsp;&nbsp;"

                  }
              }

              $("#deliver_top_list").html("&nbsp;&nbsp;&nbsp;" + topListStr);
              if (top_select_area) {
                  top_select_area.innerHTML = "全国";
              }
          });
            </script> 
           
            <!-- S 物流运费 -->
            <dl class="ncs-freight">
              <dt>   运　　费：  </dt>
              <dd id="transport_price">
               <%=showDeliverPayTypeDetail%>
              <asp:Literal ID="ltrDeliverPay" runat="server"></asp:Literal>
              </dd>
              <dd style="color: red; display: none;" id="loading_price">  loading.....<%=showDeliverPayTypeDetail%></dd>
            </dl>
            <!-- E 物流运费 ---> 
            <!-- S 累计售出数量 -->
            <dl>
              <dt>累计售出：</dt>
              <dd><em><a href="javascript:;"><%=BuyTimes%></a></em>&nbsp;(<%=PUnit %>)</dd>
            </dl>
            <!-- E 累计售出数量 --> 
            <!-- S 描述相符评分及评价数量 -->
            <dl>
              <dt>评　　价：</dt>

              <dd><span class="rate-star"><%--<em><i style=""></i></em></span>0分<i class="ver-line"></i>--%>
              <a href="javascript:;"><%=CommentPageCount%>条评论</a></dd>
            </dl>
            <!-- E 描述相符评分及评价数量 --> 
            <!-- S 商品类型及浏览数-->
            <dl class="ncs-other">
              <dt>商品类型：</dt>
              <dd> <span style="width:200px;">
               <asp:Literal ID="ltrProType" runat="server"></asp:Literal> 
              <i class="ver-line"></i> <%=(Convert.ToInt32(Hits) + 1)%> 次浏览</span><!-- <span class=" ml100">：<em>陕西省	西安市	周至县 </em></span> 商品所在地 --></dd>
            </dl>
            <!-- E 商品类型及浏览数--> 
          </div>
          <div class="sep-line"></div>
                    <div class="nc-key"> 
            <!-- S 商品规格值-->

            <asp:Literal ID="ltrGuige" runat="server"></asp:Literal>
            <!-- E 商品规格值--> 
            <!-- S 购买数量及库存 -->
            <dl ctype="stock">
              <dt>购买数量：</dt>
              <script type="text/javascript">
                  //                  $(function () {
                  //                      var $figure = $("#ddCount");
                  //                      $figure.children("a").eq(0).mouseenter(function () {
                  //                          $(this).css("background", "url(Skin/ShowProductStyle/images/jian2.bmp) no-repeat scroll 0 0 transparent");
                  //                      }).mouseleave(function () {
                  //                          $(this).css("background", "url(Skin/ShowProductStyle/images/jian1.bmp) no-repeat scroll 0 0 transparent");
                  //                      });
                  //                      $figure.children("a").eq(1).mouseenter(function () {
                  //                          $(this).css("background", "url(Skin/ShowProductStyle/images/jia2.bmp) no-repeat scroll 0 0 transparent");
                  //                      }).mouseleave(function () {
                  //                          $(this).css("background", "url(Skin/ShowProductStyle/images/jia1.bmp) no-repeat scroll 0 0 transparent");
                  //                      });
                  //                  });
                  //判断购买数量
                  function ChangeBuyNumber(sen, labl) {
                      var currentEle = $(sen).siblings("input").eq(0);
                      var currVal = currentEle.val();
                      if (currVal == "NaN") {
                          currentEle.val("1");
                          return;
                      }
                      //加
                      if (labl == "add") {
                          if (parseInt(currVal) < 1 || parseInt(currVal) === NaN) {
                              currentEle.val("1");
                              return;
                          } else if (parseInt(currVal) >= parseInt($(sen).siblings("em").children("strong").text())) {
                              alert('不能超过当前库存的数量！');
                              return;
                          } else {
                              //currentEle.val(parseInt(currVal) + 1);
                          }
                      }
                      else if (labl == "remove") {//减
                          if (parseInt(currVal) >= parseInt($(sen).siblings("em").children("strong").text())) {
                              currentEle.val($(sen).siblings("em").children("strong").text());
                              return;
                          }
                          if (parseInt(currVal) <= 1) {
                              return;
                          } else {
                              //currentEle.val(parseInt(currentEle.val()) - 1);
                          }
                      }
                  }
                  //判断输入的商品数量
                  function WriteBuyNumber(sen) {
                      var shuLiang = $(sen);
                      var quantityVal = shuLiang.val();
                      if (quantityVal == null || quantityVal == "") {
                          alert("请您输入购买的商品数量");
                          shuLiang.focus();
                          return;
                      }
                      if ((isNaN(quantityVal) == true)) {//判断输入的是否为数字
                          alert("请您输入0~9之间的数字！");
                          shuLiang.focus();
                          return;
                      }
                      var allShuliang = parseInt($(sen).siblings("em").children("strong").text()); //库存量

                      if (parseInt(quantityVal) < 1) {
                          alert('您输入的商品数量不能小于0！');
                          shuLiang.focus();
                          return;
                      }
                      if (parseInt(quantityVal) > allShuliang) {
                          alert('您输入的商品数量不能超过当前库存的数量！');
                          shuLiang.focus();
                          shuLiang.attr("value", "1");
                          return;
                      }
                  }
              </script>
              <dd id="ddCount" class="nc-figure-input"> 
              <a  href="javascript:void(0)"  onclick="ChangeBuyNumber(this,'remove')" class="decrease  fl text-hidden">-</a>
                <input  id="quantity" value="1" size="3" onblur="WriteBuyNumber(this)" maxlength="6" class="fl" type="text" runat="server" />
                <a href="javascript:void(0)"    onclick="ChangeBuyNumber(this,'add')" class="increase fl text-hidden">+</a> 
                <em class="fl ml20" style="width:200px;">
                (当前库存<strong nctype="goods_stock"><%=int.Parse(Stocks) <= 0 ? "0" : Stocks%></strong>件)</em> </dd>

            </dl>
            <asp:Literal ID="ltrTuanExplain" runat="server"></asp:Literal>
            <!-- E 购买数量及库存 --> 
            <!-- S 提示已选规格及库存不足无法购买 -->
            <dl class="nc-point" nctype="goods_prompt" style="display: none;">
            </dl>
            <!-- E 提示已选规格及库存不足无法购买 --> 
            <!-- S 购买按钮 -->
            <div class="nc-btn clearfix" style=" display: inline-block;">
            <!--颜色及尺寸属性 begin-->
            <input  runat="server" id="GuiGeValue" type="hidden" value=""/>
            <!--颜色及尺寸属性 end-->
              <asp:ImageButton ID="BuyImage" CssClass="fl text-hidden" OnClientClick="return CheckSelectData(this);" OnClick="BuyImage_Click" title="立即购买" ImageUrl="~/Skin/ShowProductStyle/images/2.jpg" runat="server"></asp:ImageButton> 
              <%-- <a href="javascript:buy('buynow');" class="buynow " title="立即购买"></a>--%><!-- 立即购买-->
              <asp:ImageButton ID="WaitingImage" CssClass="fl text-hidden" Visible="false"  Enabled="false"  title="即将开始..." ImageUrl="~/Skin/ShowProductStyle/images/T1srRKXkJMXXXXXXXX-635-36_Ready.png" runat="server"></asp:ImageButton>
              
              <asp:ImageButton ID="ShoppingCartImage" CssClass="fl ml10 text-hidden"  OnClientClick="return CheckSelectData(this);"  OnClick="ShoppingCartImage_Click" ImageUrl="~/Skin/ShowProductStyle/images/3.jpg"  runat="server"></asp:ImageButton>
             
             <asp:ImageButton ID="OutStockImage" CssClass="fl text-hidden" Visible="false"  OnClientClick="return CheckSelectData(this);"  OnClick="OutStockImage_Click" title="到货通知" ImageUrl="~/Skin/ShowProductStyle/images/4.png" runat="server" />

             <%--<asp:Button ID="btnNeedPresentExp" Visible="false" runat="server" Text="积分换购" CssClass="needPresentExp"  OnClientClick="return CheckSelectData(this);" OnClick="btnNeedPresentExp_Click" />--%>
             <asp:ImageButton ID="btnNeedPresentExp" CssClass="fl text-hidden" Visible="false"  OnClientClick="return CheckSelectData(this);" OnClick="btnNeedPresentExp_Click"  runat="server" ImageUrl="~/Skin/ShowProductStyle/images/btnScore3.jpg"></asp:ImageButton>
              <%--<a href="javascript:buy('');" class="addcart fl ml10 text-hidden" title="添加到购物车"><!-- 加入购物车--></a>--%> 
              <!-- S 加入购物车弹出提示框 -->
             <%-- <div class="ncs_cart_popup" style="display:none">
                <dl>       
                  <dt>
                    <h3>成功添加到购物车</h3>
                    <a title="关闭" onClick="$('.ncs_cart_popup').css({'display':'none'});">关闭</a></dt>
                  <dd>
                    <p class="mb5">购物车共有 <strong id="bold_num"></strong> 种商品 总金额为：<em id="bold_mly" class="price"></em></p>
                    <p>
                      <input class="btn1" name="" value="查看购物车" onClick="location.href='http://www.shopnctest.com/index.php?act=cart'" type="submit">
                      <input class="btn2" name="" value="继续购物" onClick="$('.ncs_cart_popup').css({'display':'none'});" type="submit">
                    </p>
                  </dd>
                </dl>
              </div>--%>
              <!-- E 加入购物车弹出提示框 -->
                          </div>

            <!-- E 购买按钮 --> 
          </div>
                  </article>
        <!--E 商品信息 --> 
        <!--S 店铺信息-->
        <div class="ncg-info">
          <!--店铺基本信息 S-->
          <%--HiddenField2 价格--%>
    <asp:HiddenField ID="HiddenField2" runat="server" />
    <%--HiddenField3  保存商品类型：一口价，拍卖，团购，促销--%>
    <asp:HiddenField ID="HiddenField3" runat="server" />
     <asp:HiddenField ID="HiddenField4" runat="server" />     
    <asp:HiddenField ID="hfStocks" runat="server" Value="" />
    <asp:HiddenField ID="hfNeedPresentExp" runat="server" Value="" /><%--换购积分--%>
<div class="ncs-info clearfix">
  <div class="shop-card">
    <h4><%=ShopName%></h4>

    <dl>
      <dt><a href="store/shopindex.aspx?shopid=<%=ShopID %>"><img style=" margin:2px;" src="<%=ShopImageUrl %>"  height="55px" width="55px" onerror="this.onerror=null;this.src='Skin/ShowProductStyle/images/default_store_logo.gif'"></a></dt>
      <dd><a href="store/shopindex.aspx?shopid=<%=ShopID %>" class="shopkeeper"><%=SalerName %></a> <a href="Member/Shop_Message.aspx" target="_blank" class="message text-hidden" title="发站内信">发站内信</a></dd>
      <dd class="ncs-level">
        卖家信用：<asp:Literal ID="ltrSaleCrediet" runat="server"></asp:Literal>    </dd>

      <dd><span class="span">好评率：</span> <asp:Literal ID="ltrGoodPercent" runat="server"></asp:Literal> </dd>

    </dl>
  </div>
  <div class="shop-rate">
    <%--<h4>动态评价</h4>
    <dl class="rate">
      <dt>描述相符：</dt>
      <dd class="rate-star"><em><i style=""></i></em><span>0分</span></dd>

      <dt>服务态度：</dt>
      <dd class="rate-star"><em><i style=""></i></em><span>0分</span></dd>
      <dt>发货速度：</dt>
      <dd class="rate-star"><em><i style=""></i></em><span>0分</span></dd>
    </dl>--%>
  </div>
  <div class="shop-detail">

    <h4>店铺信息</h4>
    <!-- 店铺信息 -->
    <dl>
      <dt>创店时间：</dt>
      <dd> <asp:Literal ID="ltrShopRegDate" runat="server"></asp:Literal> </dd>
      <dt>所&nbsp;在&nbsp;&nbsp;地：</dt>

      <dd><%=ProvinceAndCity %>	</dd>
      <dt>商品数量：</dt>
      <dd><strong> <asp:Literal ID="ltrProCount" runat="server"></asp:Literal> </strong>件商品</dd>
      <dt>店铺收藏：</dt>
      <dd><strong nctype="store_collect"> <asp:Literal ID="ltrFavouriteCou" runat="server"></asp:Literal> </strong>人收藏</dd>
            <!--详细地址       <dt>详细地址：</dt>
      <dd>dsfsd</dd>
      --> 
      <!--联系电话       <dt>联系电话：</dt>
      <dd>132252552252</dd>
      -->
    </dl>
  </div>
  <div class="shop-im">
    <h4>联系方式</h4>
    <p> <a  style=" <%= string.IsNullOrEmpty(Taobaowangwang)?"display:none":""%>"  href="http://amos.im.alisoft.com/msg.aw?v=2&site=cntaobao&s=1&charset=utf-8&uid=<%=Taobaowangwang %>" target="_blank"  class="m_shopname" >
        <img src="Skin/productlistStyle/images/list_list_22.png"  alt="点击这里给我发消息" />
        </a>
        <a style=" <%= string.IsNullOrEmpty(OICQ)?"display:none":""%>" class="m_shopname" href="http://wpa.qq.com/msgrd?V=1&Uin=<%=OICQ %>&Site=&Menu=yes" target="_blank">
        <img border="0" src="http://wpa.qq.com/pa?p=1:34552468:4" onerror="this.src='../Images/QQerror.gif'" title="QQ">
        </a>

     </p>
  </div>

  <div class="shop-other">
    <ul>
      <li class="ncs-info-btn-map"><a href="javascript:void(0)" class="pngFix"><span>店铺地图</span><b></b> <!-- 店铺地图 -->
        <div class="ncs-info-map" id="map_container" style="width: 188px; height: 320px;">地图加载中... </div>
        </a></li>
      <%--<li class="ncs-info-btn-qrcode"><a href="javascript:void(0)" class="pngFix"><span>进入店铺</span><b></b> <!-- 进入店铺 -->
        <p class="ncs-info-qrcode"><img src="Skin/ShowProductStyle/images/try/2wm.png" onerror="this.src=''" title="店铺地址:l" onload="javascript:DrawImage(this,150,150);" height="123" width="123"><em>手机扫描二维码<br>快速收藏店铺</em> </p>
        </a> </li>--%>
        <li class="ncs-info-btn-qrcode"><a href="store/shopindex.aspx?shopid=<%=ShopID %>" class="pngFix"><span>进入店铺</span><b></b> <!-- 进入店铺 -->        
        </a> </li>
    </ul>
  </div>
</div>
<div class="clear"></div>
<!--店铺基本信息 E--> 
<script type="text/javascript">
    // var pAndC = "<%=ProvinceAndCity %>";

    var cityName = "<%=ShopCity %>";
    var address = "<%=ShopAddress %>";
    var store_name = "<%=ShopName%>";
    var map = "";
    var localCity = "";
    function initialize() {
        map = new BMap.Map("map_container");
        localCity = new BMap.LocalCity();

        map.enableScrollWheelZoom();
        localCity.get(function (cityResult) {
            if (cityResult) {
                var level = cityResult.level;
                if (level < 13) level = 13;
                map.centerAndZoom(cityResult.center, level);
                cityResultName = cityResult.name;
                if (cityResultName.indexOf(cityName) >= 0) cityName = cityResult.name;
                getPoint();
            }
        });
    }

    function loadScript() {
        var script = document.createElement("script");
        script.src = "http://api.map.baidu.com/api?v=1.2&callback=initialize";
        document.body.appendChild(script);
    }
    function getPoint() {
        var myGeo = new BMap.Geocoder();
        myGeo.getPoint(address, function (point) {
            if (point) {
                setPoint(point);
            }
        }, cityName);
    }
    function setPoint(point) {
        if (point) {
            map.centerAndZoom(point, 16);
            var marker = new BMap.Marker(point);
            map.addOverlay(marker);
        }
    }

    // 当鼠标放在店铺地图上再加载百度地图。
    $(function () {
        $('.ncs-info-btn-map').one('mouseover', function () {
            loadScript();
        });
    });
</script>
         </div>

        <!--E 店铺信息 --> 
      </div>
      <div class="clear"></div>
    </section>
    
    <!--S 满就送 -->
        <!--E 满就送 -->

    <section class="layout expanded" style="width: 1000px;">
      <article class="nc-goods-main" id="main-nav-holder">
        <nav class="tabbar pngFix" id="main-nav">
          <div class="pr" style="">
            <ul id="categorymenu">
              <li class="current"><a id="tabGoodsIntro" href="javascript:void(0)"><span>商品详情</span></a></li>
              <li><a id="tabGoodsRate" href="javascript:void(0)"><span>商品评论</span></a></li>
              <li><a id="tabGoodsTraded" href="javascript:void(0)"><span>销售记录</span></a></li>
              <li><a id="tabGuestbook" href="javascript:void(0)"><span>产品咨询</span></a></li>
            </ul>
            <div class="switch-bar" style="position:absolute; top:100px;"><a href="javascript:void(0)" id="abc">&nbsp;</a></div>
            <div class="gotop"><a href="#goheader">&nbsp;</a></div>
          </div>
        </nav>
        <%--商品详情 begin--%>
        <section class="nc-s-c-s4 ncg-intro">
          <div class="content bd" id="ncGoodsIntro" style=" margin-bottom:20px;">
          <UL class="nc-goods-sort">
          <asp:Literal ID="ltrProductAttribute" runat="server"></asp:Literal>
            </UL>
            
             <div class="default" style="width:auto">
                <asp:Literal ID="ltrProductIntro" runat="server"></asp:Literal>
             </div>
          </div>
        </section>
        <%--商品详情 end--%>
        <asp:Panel ID="pnlDetailContent" runat="server">
        <section class="nc-s-c-s4 nc-comment" style="width:100%">
        <div class="title hd">
          <%--<div class="title hd" style="display:inline-block; width:100%">--%>
            <h4>商品评论</h4>
          </div>
          <div class="content bd" id="ncGoodsRate">
            <table id="t1" class="nc-g-r" border="0" cellpadding="0" cellspacing="0" width="100%">
              <tbody><tr>
                <th><p>描述相符<em>0</em>分</p>
                  <dl class="ncs-rate-column">
                    <dt><em style="">0</em></dt>

                    <dd>非常不满</dd>
                    <dd>不满意</dd>
                    <dd>一般</dd>
                    <dd>满意</dd>
                    <dd>非常满意</dd>
                  </dl></th>

                <td>
                <%--<a href="store/ShopIndex.aspx?ShopID=<%=ShopID %>&ColumnTag=CreditStatus" target="_blank">店铺评价</a>--%>
                
                <a href="Member/Index.aspx?mainurl=Shop_myRate.aspx" target="_blank">店铺评价</a>
                </td>
              </tr>
            </tbody></table>
            <!-- 商品评价内容部分 -->
            <div id="goodseval"><meta content="text/html;" http-equiv="Content-Type">
                <table width="100%" cellspacing="0" cellpadding="0" border="0" id="t" class="nc-comment">
                   <thead class="type">
    <tr>
      <th colspan="2" id="commentTypeTh"><div>
          <asp:RadioButton ID="AllComment"  AutoPostBack="true" OnCheckedChanged="AllComment_CheckedChanged"  GroupName="CType" runat="server"></asp:RadioButton>
          <label for="allRate">全部评价</label>
           <asp:RadioButton ID="GoodComment" AutoPostBack="true" OnCheckedChanged="GoodComment_CheckedChanged"  GroupName="CType"  runat="server"></asp:RadioButton>
          <label for="goodRate">好评</label>
           <asp:RadioButton ID="MiddleComment"  AutoPostBack="true" OnCheckedChanged="MiddleComment_CheckedChanged"  GroupName="CType"  runat="server"></asp:RadioButton>
          <label for="mediumRate">中评</label>
           <asp:RadioButton ID="BadComment"  AutoPostBack="true" OnCheckedChanged="BadComment_CheckedChanged"   GroupName="CType"  runat="server"></asp:RadioButton>
          <label for="worstRate">差评</label>
        </div></th>
      <td><div>
          <asp:CheckBox ID="cbHasContent" AutoPostBack="true" OnCheckedChanged="cbHasContent_CheckedChanged" runat="server"></asp:CheckBox>
          显示有内容的评价</div></td>
    </tr>
  </thead>
  <script type="text/javascript">
      $(function () {
          var _page = '<%=Request.QueryString["page"] %>';
          // 点击评价隐藏其他以及其标题栏
          if (_page != '') {
              $('#tabGoodsRate').click();
          }
      });
  </script>
      <tbody class="detail" id="CommentList">        
          <asp:Repeater ID="tptProductComment" runat="server">
              <ItemTemplate>
                <tr>
                      <th class="w40"><em style="background:url(<%#Eval("CreditScore").ToString()=="1"?"Skin/CommStyle/images/comment/rate-ok.gif":(Eval("CreditScore").ToString()=="0"?"Skin/CommStyle/images/comment/rate-normal.gif":"Skin/CommStyle/images/comment/rate-bad.gif") %>) no-repeat scroll 0 0 transparent" 
                      title="<%#Eval("CreditScore").ToString()=="1"?"好评":(Eval("CreditScore").ToString()=="0"?"中评":"差评") %>" class="ncse-good"></em></th>
                      <td><p> <%#Eval("Comment") %></p>
                                <time pubdate="pubdate"><%#Eval("CreateTime") %></time>
                       </td>
                      <td class="w150"><dl>
                          <dt><span class="thumb size40"><img width="40" height="40" onerror="this.error=null;this.src='Skin/CommStyle/images/head/default_user_portrait.gif'" src="<%#string.IsNullOrEmpty(Eval("CM_MyHead").ToString())?"Skin/CommStyle/images/head/default_user_portrait.gif":Eval("CM_MyHead").ToString() %>"></span></dt>
                          <dd><%#Eval("ValuerName") %></dd>
                          <dd>
                            <span class="buyer-heart level-1"></span>
                                      </dd>
                        </dl></td>
                    </tr>   
              </ItemTemplate>
          </asp:Repeater>
      </tbody>
  
    <tfoot>
    <tr>
      <td colspan="3"><%--<div class="pagination"> <ul id="PageUL">
      <li><a  runat="server" id="FirstLink"><span>首页</span></a></li><li><a  onserverclick="LastLink_Click"  runat="server" id="LastLink"><span style="width:auto;">上一页</span></a></li><li id="commetnPage" currentpage="1">
      <span   class="currentpage" runat="server" id="currentPage">1</span></li>
      <li><a   onserverclick="NextLink_Click"  runat="server" id="NextLink"><span style="width:auto;">下一页</span></a></li>
      <li><a  runat="server" id="EndLink" ><span>末页</span></a></li></ul></div>--%>
      
      <div class="pagination"> <ul id="PageUL">
      <li><a  runat="server" id="FirstLink">首页</a></li>
      <li><a  onserverclick="LastLink_Click"  runat="server" id="LastLink">上一页</a></li>
      <li id="commetnPage" currentpage="1">
      <span   class="currentpage" runat="server" id="currentPage">1</span></li>
      <li><a   onserverclick="NextLink_Click"  runat="server" id="NextLink">下一页</a></li>
      <li><a  runat="server" id="EndLink">末页</a></li></ul></div>
      </td>
    </tr>
  </tfoot>
  </table>
            </div>
          </div>
        </section>
        <section class="nc-s-c-s4 ncg-salelog">

          <div class="title hd">
            <h4 class="tooltip">销售记录</h4>
          </div>
          <div class="content bd" id="ncGoodsTraded">
            <div class="note">
              <p><em style="width:100px; display:inline-block;">原价<strong class="price"><%=Price %></strong>元</em><em style="display:inline-block; width:auto;"><span class="ml50" style="width:auto;">购买的价格不同可能是由于店铺往期促销活动引起的，详情可以咨询卖家</span></em></p>
            </div>
            <!-- 成交记录内容部分 -->
            <div id="salelog_demo" class="ncs-loading"><meta http-equiv="Content-Type" content="text/html; ">
                <table class=" mt10" border="0" cellpadding="0" cellspacing="0" width="100%">
                 <thead>
    <tr>

      <th class="w200">买家</th>
      <th class="w100">购买价</th>
      <th class="w100">购买数量</th>
      <th class="w200">购买时间</th>
    </tr>

  </thead>
    
       <tbody id="buyRecordList">   
             <asp:Repeater ID="rptBuyRecord" runat="server">
             <ItemTemplate>
              <tr>
                  <td><%#Eval("BuyerName") %></td>
                  <td>
                      <em class="price"><%#Eval("Price")%></em>
                  </td>
                  <td><%#Eval("Quantity") %></td>
                  <td><time><%#Eval("InputTime") %></time></td>
                </tr> 
             </ItemTemplate>
             </asp:Repeater>
    </tbody>
    
  <tfoot>
  <script src="Skin/CommStyle/js/jquery-1.8.3.min.js" type="text/javascript"></script>
  <script type="text/javascript" src="Member/Js/jquery-ui-1.8.2.custom.min.js"></script>
  <script type="text/javascript">
           
        $(function(){
            $("#commentTypeTh div input[name='evalscore']").eq(0).attr("checked","true");
                $("#showParaResult").dialog({//init dialog login start
                dialogClass: "my-dialog",
                resizable: true,
                draggable: true,
                modal: true,
                autoOpen: false,
                width: 700,
                height: 400,
                buttons: {
                    "关闭": function () {
                        $(this).dialog("close");
                    }
                }
            }); //init dialog login end
            $("#div_wish_go").dialog({//init dialog login start
                dialogClass: "my-dialog",
                resizable: true,
                draggable: true,
                modal: true,
                autoOpen: false,
                width: 400,
                height: 260,
                buttons: {
                    "确定": function () {
                        var words=$("#wish_words").val();
                        var go=true;
                        if(words=="")
                        {
                        go=false;
                        if(confirm("您还没有写上愿望哦\n点击‘是’继续，点击‘否’填写愿望")) go=true;
                        }
                        if(go)
                        {
                        //post-start
                            $.post("WebService/MBFmember.ashx", { 'action': 'AddUserWish', 'ProductID': '<%=ProductID %>', 'WishWords': words, d: new Date }, function (data) {
                            if (data != "") {
                                if(data=='1')
                                {
                                $("#div_wish_go").dialog("close");
                                alert("许愿成功！");
                                }
                                else
                                {
                                 alert(data);
                                }
                                // showPara();
                            }
                            else {
                                alert("请求数据失败！");
                            }
                        });//post-end
                        
                        }
                    }
                }
            }); //init dialog login end
            
        });
        function openwishwin()
        {
            <%=logstr %>
           $("#div_wish_go").dialog("open");
        }
        
        function GetBuyRecord(sen, act) {
            var allPageCount=parseInt('<%=(BuyRecordCount+EveryPageSizeForBuyRecord-1)/EveryPageSizeForBuyRecord  %>');
            var currentPage =parseInt($(sen).siblings("#buyRecord").attr("currentpage"));
            var temp;
            if (act == "first") {
                if (currentPage == "1") {
                    return;
                }
                currentPage=1;
            }else if (act == "last") {
                temp=currentPage;
                if (--temp <= 0 ) {
                    return;
                }
                currentPage--;
            }else if (act == "next") {
                temp=currentPage;
                if (++temp > allPageCount ) {
                    return;
                }
                currentPage++;
            } 
            else if (act == "end") {
                if (currentPage == allPageCount) {
                    return;
                }
                currentPage=allPageCount;
            }
            var $BuyRecList = $("#buyRecordList")
            $BuyRecList.html("<li style='width:500px; text-align:center;'><img src='Skin/ShowProductStyle/images/Loading.gif' />正在加载，请稍候...</li>");
            $.post("WebService/ShopService.ashx", { 'Action': 'GetBuyRecord', 'WhichPage': currentPage, 'ProductID':'<%=ProductID %>','PageSize':<%=EveryPageSizeForBuyRecord %> },
                function (data, state) {
                    if(state=="success"){
                        $BuyRecList.html(data);
                        $(sen).siblings("#buyRecord").attr("currentpage",currentPage);
                        $(sen).siblings("#buyRecord").children("span").html(currentPage);
                    }
                },true);

         }

         $(function(){
            $(".pagination ul li span").not(".currentpage").mouseenter(function(){
            
                $(this).css("backgroundColor","#F57202").css("cursor","pointer");
            }).mouseleave(function(){
                $(this).css("backgroundColor","White");
            });

         });
    </script>
  <tr>

  <td colspan="5">
  
	<div class="pagination"> <ul>
    <li  onclick="GetBuyRecord(this, 'first')"><span>首页</span></li>
    <li  onclick="GetBuyRecord(this, 'last')"><span style="width:auto;">上一页</span></li>
    <li currentpage="1" id="buyRecord"><span class="currentpage">1</span></li>
    <li  onclick="GetBuyRecord(this, 'next')"><span style="width:auto;">下一页</span></li>
    <li  onclick="GetBuyRecord(this, 'end')"><span>末页</span></li></ul> </div></td></tr></tfoot>
  </table>
            </div>
          </div>
        </section>
        <section class="nc-s-c-s4 ncg-guestbook">
          <div class="title hd">

            <h4 class="titbar">产品咨询</h4>
          </div>
    <div class="content bd" id="ncGuestbook"> 
    <!-- 咨询留言内容部分 begin -->
    <asp:UpdatePanel ID="UpMsg" runat="server">
    <ContentTemplate>
    <div class="ncg-guestbook">
    <%--<div id="cosulting_demo" class="ncs-loading" style="background-image:none;">--%>
    <div id="cosulting_demo">
    <ul id="MsgList">
    <asp:Repeater ID="Repeater3" runat="server">
    <ItemTemplate>
         <li>
          <dl class="ask">
          <dt>咨询内容：</dt>
          <dd>
            <p><%#Eval("M_Content")%></p>
            <span class="mr10">
            <span title="dqw"><%#Eval("M_SenderName")%></span></span>
            <time datetime="<%#Eval("M_DateTime")%>" pubdate="pubdate">[<%#Eval("M_DateTime")%>]</time>
          </dd>
        </dl>
        <asp:Panel ID="replyMessageList" runat="server">
                <%#ShowReplyMessage(Eval("M_ID").ToString())%>
        </asp:Panel>
          </li>
    </ItemTemplate>
    </asp:Repeater>
    </ul>
    <script type="text/javascript">
        function GetMessage(sen, act) {
            var allPageCount=<%=(MessageCount+EveryPageForMessage-1)/EveryPageForMessage  %>;
            var currentPage =parseInt($(sen).siblings("#MsgRecord").attr("currentpage"));
            var temp;
            if (act == "first") {
                if (currentPage == "1") {
                    return;
                }
                currentPage=1;
            }else if (act == "last") {
                temp=currentPage;
                if (--temp <= 0 ) {
                    return;
                }
                currentPage--;
            }else if (act == "next") {
                temp=currentPage;
                if (++temp > allPageCount ) {
                    return;
                }
                currentPage++;
            } 
            else if (act == "end") {
                if (currentPage == allPageCount) {
                    return;
                }
                currentPage=allPageCount;
            }
            var $MsgList = $("#MsgList");
            //$MsgList.html("<li style='width:500px; text-align:center;'><img src='Skin/ShowProductStyle/images/Loading.gif' />正在加载，请稍候...</li>");
            $.post("WebService/ShopService.ashx", { 'Action': 'GetMessage', 'WhichPage': currentPage, 'ProductID':'<%=ProductID %>','PageSize':'<%=EveryPageForMessage %>' },
                function (data, state) {
                    if(state=="success"){
                        $MsgList.html(data);
                        $(sen).siblings("#MsgRecord").attr("currentpage",currentPage);
                        $(sen).siblings("#MsgRecord").children("span").html(currentPage);
                    }
                },true);

         }
    </script>
    <div class="pagination"> 
        <ul><li  onclick="GetMessage(this, 'first')"><span>首页</span></li>
            <li  onclick="GetMessage(this, 'last')"><span style="width:auto;">上一页</span></li>
            <li currentpage="1" id="MsgRecord"><span class="currentpage">1</span></li>
            <li  onclick="GetMessage(this, 'next')"><span style="width:auto;">下一页</span></li>
            <li  onclick="GetMessage(this, 'end')"><span>末页</span></li>
        </ul>                                                                                                            
         </div>
     <asp:PlaceHolder ID="MessageFrom" runat="server">
        <asp:Panel ID="Message_Panel1" runat="server" Height="50px" Width="99%" CssClass="ncs-loading">
            <br />
            <div class="login_tips">
                你需要先<a href="javascript:{var comeurl=location.href;location.href='Passport/Login.aspx?ComeUrl='+comeurl;}">登录</a>才能给卖家留言哦！</div>
        </asp:Panel>
        <asp:Panel ID="Message_Panel2" runat="server" Width="95%" Visible="false">
            <div style="margin: 10px" id="leave_message_box">
                <div id="leave_message_title">
                   在此输入留言：
                <br />
                <textarea id="Message_Content"  runat="server" name="Message_Content" rows="6" cols="80"></textarea>(注：限字数400字)               
                <div id="btn_confirm">
                    验证码：<input size="10" maxlength="10" runat="server" id="CheckCode" name="CheckCode" />
                    <img src="Passport/CheckCode.aspx" id="imgValidate" alt="验证码" />
                    <input type="button" value="发表留言"  onserverclick="SubmitMsg" runat="server" id="btnCommitComment" name="btnCommitComment" />
                <asp:Label ID="err_tips" ForeColor="Red" runat="server" Width="100%" />
                </div>
                <asp:HiddenField ID="HiddenField1" runat="server"></asp:HiddenField>
            </div>
            </div>
        </asp:Panel>
    </asp:PlaceHolder>        
    <div class="clear"></div>
    </div>
    </div>
    </ContentTemplate>
    </asp:UpdatePanel>    
    <!-- 咨询留言内容部分 end -->
    </div>
        </section>
        </asp:Panel>
         <section class="nc-s-c-s2 ncg-com-list">
         <script type="text/javascript">
             $(function () {
                $.post("WebService/ShopService.ashx", { 'Action': 'ShowSalerRecommendProduct','SalerID':<%=SalerID %>,'ShowProType':"<%=ShowProType %>" },
                function (data, state) {
                    if(state=="success"){
                        $("#RecomunProduct").html(data);
                    }
                });
              });
              
         </script>
          <div class="title">
            <h4>推荐商品</h4></div>
          <div class="content">
            <ul id="RecomunProduct">
           </ul>
            <div class="clear"></div>
          </div>
        </section>

              </article>

      <aside class="nc-sidebar">
        
<div class="nc-s-c-s1 ncs-search-bar">
  <div class="title">
    <h4>店内搜索</h4>
  </div>
  <div class="content">
    <form id="" name="searchShop" method="get" action="detail.html">

      <input name="act" value="show_store" type="hidden">
      <input name="op" value="goods_all" type="hidden">
      <input name="id" value="70" type="hidden">
      <table class="ncs-search">
        <tbody><tr>
          <th>关键字：</th>
          <td> <asp:TextBox ID="txtKeyW" CssClass="w90" runat="server"></asp:TextBox> </td>
        </tr>

        <tr>
          <th>价格：</th>
          <td> <asp:TextBox ID="txtBeginP" CssClass="w30" runat="server"></asp:TextBox>
            -
            <asp:TextBox ID="txtEndP" CssClass="w30"  runat="server"></asp:TextBox> </td>
        </tr>
        <tr>
        <script type="text/javascript">
            function RedirectProductL() {
                var _tPrice = $("#txtBeginP").val();
                _tPrice = (_tPrice == "" ? "0" : _tPrice);
                location.href = "ProductList.aspx?productname=" + $("#txtKeyW").val() + "&sellprice=" + _tPrice + "|" + $("#txtEndP").val() + "&showProType=<%=ShowProType %>";
            }
        </script>
          <th>&nbsp;</th>
          <td><a href="javascript:RedirectProductL();">搜索</a></td>

        </tr>
      </tbody></table>
    </form>
  </div>
</div>
<div class="nc-s-c-s1 ncs-class-bar mt10">
  <div class="title">
    <h4>商品分类</h4>
  </div>
  <div class="content">
    <%--<p><span><a href="">按新品</a></span><span><a href="">按价格</a></span><span><a href="">按销量</a></span><span><a href="">按人气</a></span></p>--%>
    <ul class="ncs-submenu">
 
      <asp:DataList ID="DataClassList" runat="server" RepeatColumns="1">
        <ItemTemplate>
            &nbsp;<a href="Store/ShopIndex.aspx?ShopID=<%=ShopID %>&ColumnTag=ProductList&ClassID=<%#Eval("ShopProductClassID") %>"><%#Eval("ShopProductClassName")%></a>&nbsp;&nbsp;
        </ItemTemplate>
    </asp:DataList>
      <li><span class="ico-none"><em>-</em></span><a href="Store/ShopIndex.aspx?ShopID=<%=ShopID %>&ColumnTag=ProductList">全部商品</a></li>
          </ul>
    <div class="clear mb10"></div>

  </div>
</div>

<asp:Panel ID="pnlContentLeft" runat="server">
<div class="nc-s-c-s1 ncs-top-bar mt10">
  <div class="title">
    <h4>商品排行</h4>
  </div>
  <div class="content">
    <ul class="ncs-top-tab pngFix">
      <li class="current"><a href="javascript:">热销商品排行</a></li>
      <li><a href="javascript:">热门收藏排行</a></li>
    </ul>
    <div class="ncs-top-panel">
       <ol>
            <asp:Repeater ID="Repeater1" runat="server">
            <ItemTemplate>
            <li>
              <dl>
                <dt><a href='?productid=<%#Eval("ProductID") %>'><%#Eval("ProductName") %></a></dt>
                <dd class="goods-pic"><a href='?productid=<%#Eval("ProductID") %>'><i></i><img style="vertical-align:middle; text-align:center; padding:0px; margin:0px;" width="40" height="39" onload="javascript:DrawImage(this,40,40);" src='<%#Eval("ImgPath1") %>' onerror="this.onerror;this.src='Skin/CommStyle/images/noneimg.jpg'"></a>

                  <p><span class="thumb size100" style="vertical-align:middle; text-align:center; padding:0px; margin:0px;">
                  <img width="100" height="99" title="44444" onload="javascript:DrawImage(this,100,100);" src='<%#Eval("ImgPath1") %>' alt="" onerror="this.onerror;this.src='Skin/CommStyle/images/noneimg.jpg'"/><big></big><small></small></span></p>
                </dd>
                <dd class="price pngFix"><%#Eval("StandPrice")%></dd>
                <dd class="selled pngFix">售出：<strong><%#Eval("BuyTimes") == DBNull.Value ? "0" : Eval("BuyTimes")%></strong><%#Eval("PUnit")%></dd>
              </dl>
            </li>
            </ItemTemplate>
            </asp:Repeater>
       </ol>
    </div>
    <div class="ncs-top-panel hide">
            <ol>
        <asp:Repeater ID="Repeater2" runat="server">
        <ItemTemplate>
         <li>
          <dl>
            <dt><a  href="?productid=<%#Eval("ProductID") %>"><%#Eval("ProductName") %></a></dt>
            <dd class="goods-pic"><a  href="?productid=<%#Eval("ProductID") %>" title=""><span class="thumb size40" style=" vertical-align:middle; text-align:center; padding:0px; margin:0px"><i></i> 
            <img src="<%#Eval("ImgPath1") %>" onload="javascript:DrawImage(this,40,40);" height="40" width="39" onerror="this.onerror;this.src='Skin/CommStyle/images/noneimg.jpg'"></span></a>
              <p><span class="thumb size100" style="vertical-align:middle; text-align:center; padding:0px; margin:0px;"><img src="<%#Eval("ImgPath1") %>" onload="javascript:DrawImage(this,100,100);" title="" alt="" height="100" width="99" onerror="this.onerror;this.src='Skin/CommStyle/images/noneimg.jpg'"><big></big><small></small></span></p>
            </dd>
            <dd class="price pngFix"><%#Eval("StandPrice")%></dd>
            <dd class="collection pngFix">收藏人气：<strong><%#Eval("Num")%></strong></dd>
          </dl>
        </li>

        </ItemTemplate>
        </asp:Repeater>
              </ol>
          </div>
    <p><a href="store/shopindex.aspx?shopid=<%=ShopID %>">查看本店其他商品</a></p>

  </div>
</div>
</asp:Panel>

      </aside>
    </section>

  </article>
        <div class="clear">
            &nbsp;</div>
    </div>
    <hl:Foot ID="Foot1" runat="server" />
    </form>
    <script type="text/javascript">
        $(function () {
            var ShowProType = "<%=ShowProType %>";
            if (ShowProType == "5") {
                var tabGoodsRateli = document.getElementById("tabGoodsRate"); //商品评论
                var tabGoodsTradedli = document.getElementById("tabGoodsTraded"); //销售记录
                var tabGuestbookli = document.getElementById("tabGuestbook"); //产品咨询
                tabGoodsRateli.style.display = "none";
                tabGoodsTradedli.style.display = "none";
                tabGuestbookli.style.display = "none";
            }
        });
    </script>
    <script type="text/javascript" language="javascript">

        var searchTxt = '搜索其实很容易！';
        function searchFocus(e) {
            if (e.value == searchTxt) {
                e.value = '';
                $('#keyword').css("color", "");
            }
        }
        function searchBlur(e) {
            if (e.value == '') {
                e.value = searchTxt;
                $('#keyword').css("color", "#999999");
            }
        }
        function searchInput() {
            if ($('#keyword').val() == searchTxt)
                $('#keyword').attr("value", "");
            return true;
        }
        $('#keyword').css("color", "#999999");
        // 加载购物车信息
        function load_cart_information() {
            //            $.getJSON('detail.html?act=cart&op=ajaxcart', function (result) {
            //                if (result) {
            //                    var result = result;
            //                    $('.goods_num').html(result.goods_all_num);
            //                    var html = '';
            //                    if (result.goods_all_num > 0) {
            //                        html += "<div class='order'><table border='0' cellpadding='0' cellspacing='0'>";
            //                        var i = 0;
            //                        var data = result['goodslist'];
            //                        for (i = 0; i < data.length; i++) {
            //                            html += "<tr id='cart_item_" + data[i]['specid'] + "' count='" + data[i]['num'] + "'>";
            //                            html += "<td class='picture'><span class='thumb size40'><i></i><img src='" + data[i]['images'] + "' title='" + data[i]['gname'] + "' onload='javascript:DrawImage(this,40,40);' ></span></td>";
            //                            html += "<td class='name'><a href='http://www.shopnctest.com/detail.html?act=goods&goods_id=" + data[i]['goodsid'] + "&id=" + data[i]['storeid'] + "' title='" + data[i]['gname'] + "' target='_top'>" + data[i]['gname'] + "</a></td>";
            //                            html += "<td class='price'><p>&yen;" + data[i]['price'] + "×" + data[i]['num'] + "</p><p><a href='javascript:void(0)' onClick='drop_topcart_item(" + data[i]['storeid'] + "," + data[i]['specid'] + ");' style='color: #999;'>删除</a></p></td>";
            //                            html += "</tr>";
            //                        }
            //                        html += "<tr><td colspan='3' class='no-border'><span class='all'>共<strong class='goods_num'>" + result.goods_all_num + "</strong>种商品   金额总计：<strong id='cart_amount'>&yen;" + result.goods_all_price + "</strong></span><span class='button' ><a href='http://www.shopnctest.com/detail.html?act=cart' target='_top' title='结算商品' style='color: #FFF;' >结算商品</a></span></td></tr>";
            //                    } else {
            //                        html = "<div class='no-order'><span>您的购物车中暂无商品，赶快选择心爱的商品吧！</span><a href='http://www.shopnctest.com/detail.html?act=cart' class='button' target='_top' title='查看购物车' style=' color: #FFF;' >查看购物车</a></div>";
            //                    }
            //                    $("#top_cartlist").html(html);
            //                }
            //            });
        }

        // 运行加载购物车
        //load_cart_information();


        //头部删除购物车信息
        function drop_topcart_item(store_id, spec_id) {
            //            var tr = $('#cart_item_' + spec_id);
            //            var amount_span = $('#cart_amount');
            //            var cart_goods_kinds = $('.goods_num');
            //            $.getJSON('detail.html?act=cart&op=drop&specid=' + spec_id + '&storeid=' + store_id, function (result) {
            //                if (result.done) {
            //                    //删除成功
            //                    if (result.quantity == 0) {
            //                        $('.goods_num').html('0');
            //                        var html = '';
            //                        html = "<div class='no-order'><span>您的购物车中暂无商品，赶快选择心爱的商品吧！</span><a href='http://www.shopnctest.com/detail.html?act=cart' class='button' target='_top' title='查看购物车' style=' color: #FFF;' >查看购物车</a></div>";
            //                        $("#top_cartlist").html(html);
            //                    }
            //                    else {
            //                        tr.remove();        //移除
            //                        amount_span.html(price_format(result.amount));  //刷新总费用
            //                        cart_goods_kinds.html(result.quantity);       //刷新商品种类
            //                    }
            //                } else {
            //                    alert(result.msg);
            //                }
            //            });
        }

    </script>
    <script type="text/javascript">
        // 商品规格选择js部分
        var SITE_URL = "http://www.multibuy.cn";

        /* spec对象 */
        function spec(id, spec, price, stock) {
            this.id = id;
            this.spec = spec;
            this.price = price;
            this.stock = stock;
        }
        /* goodsspec对象 */
        function goodsspec(specs, specQty, defSpec) {
            this.specs = specs;
            this.specQty = specQty;
            this.defSpec = defSpec;
            this.spec1 = null;
            this.spec2 = null;
            if (this.specQty >= 1) {
                for (var i = 0; i < this.specs.length; i++) {
                    if (this.specs[i].id == this.defSpec) {
                        this.spec1 = this.specs[i].spec[0];
                        this.spec2 = this.specs[i].spec[1];
                        break;
                    }
                }
            }


            // 取得选中的spec
            this.getSpec = function () {
                for (var i = 0; i < this.specs.length; i++) {
                    if (this.specs[i].spec[0] != this.spec1) continue;
                    if (this.specs[i].spec[1] != this.spec2) continue;
                    return this.specs[i];
                }
                return null;
            }

        }

        /* 选中某规格 num=1,2 */
        function selectSpec(num, liObj) {
            $(liObj).addClass("hovered");
            $(liObj).parents('li').siblings().find('a').removeClass("hovered");
            var i = 0;
            //显示规格项
            var selectC = $(liObj).parent().parent().parent().parent().parent().children('dl[ctype="guig"]').length;
            $(liObj).parent().parent().parent().parent().parent().children('dl[ctype="guig"]').find("dd ul li a").each(function () {
                var _tempC = $(this).attr("class");
                if (_tempC != "" && _tempC.indexOf("hovered") > -1) {
                    i++;
                }
            });
            if (i == selectC) {
                var selectTextColl = "";
                var _v = new Array();

                $(liObj).parent().parents().parent().parent().parent().children('dl[ctype="guig"]').find("dd ul li a").each(function () {
                    var _tempC = $(this).attr("class");
                    if (_tempC != "" && _tempC.indexOf("hovered") > -1) {
                        selectTextColl += $(this).html() + ",";
                        _v.push(parseInt($(this).attr("ctype")));
                    }
                });



                var flag = true;
                var realV = 0;
                var newPrice = 0; //价格
                var newStock = 0; //库存
                var specValueDetial = "<%=prc_sp_valueDetail %>"; // [[2,16,31,123.0,12,2234],[2,16,32,123.0,12,2234]]
                var vdpofirst = specValueDetial.indexOf('[[');
                var vdplast = specValueDetial.lastIndexOf(']]');
                var newSpecValueDetail = specValueDetial;
                if (vdpofirst >= 0 && vdplast > 0) {
                    var vd = specValueDetial.replace('[[', '');
                    newSpecValueDetail = vd.replace(']]', '');
                }
                var specvdsplit = newSpecValueDetail.split('],['); //分割字符
                var array1 = new Array();
                for (var vdi = 0; vdi < specvdsplit.length; vdi++) {
                    array1.push(specvdsplit[vdi]);
                }
                for (var vdi = 0; vdi < array1.length; vdi++) {
                    var arrayad = (array1[vdi]).split(','); //分割字符
                    var array2 = new Array();
                    for (var newvdi = 0; newvdi < arrayad.length; newvdi++) {
                        array2.push(arrayad[newvdi]); //数组重新组合
                    }
                    if (array2.length > 0) {
                        var newvalue = "";
                        if (array2.length > _v.length) {
                            var vstr = "";
                            for (var vnewindexed = 0; vnewindexed < _v.length; vnewindexed++) {
                                vstr += array2[vnewindexed] + ",";
                            }
                            newvalue = vstr.substring(0, vstr.lastIndexOf(','));
                        }
                        if (newvalue == _v) {
                            newPrice = array2[_v.length];
                            newStock = array2[_v.length + 1];
                            break;
                        }
                    }
                }


                var type = "<%=IntProductType %>";
                if (type == "1") {
                    //                    var flag = true;
                    //                    var realV = 0;
                    //                    var arrPrice = "<%=prc_sp_valueDetail %>";// [[2,16,31,123.0,12,2234],[2,16,32,123.0,12,2234]]
                    //                    for (var k = 0; k < arrPrice.length; k++) {
                    //                        for (var m = 0; m < arrPrice[k].length; m++) {
                    //                            if (_v[m] != arrPrice[k][m]) {
                    //                                break;
                    //                            }
                    //                            if (m == _v.length - 1) {
                    //                                flag = false;
                    //                                realV = k;
                    //                                break;
                    //                            }
                    //                        }
                    //                    }
                    //                    var h =arrPrice[realV].length - 3;
                    //                    var newPrices = arrPrice[realV][h++];
                    //                    $("#HiddenField2").val(newPrices);//规格价格
                    //                    $(".nc-detail-price[ctype='market']").find("dd strong").text(newPrices);
                    //                    $("#ddCount").find("em strong").html(arrPrice[realV][h++]);

                    $("#HiddenField2").val(newPrice); //价格
                    $(".nc-detail-price[ctype='market']").find("dd strong").text(newPrice); //价格
                    $("#ddCount").find("em strong").html(newStock); //库存
                    $("#ddCount").find("input[id='quantity']").attr("value", "1"); //商品购买数量默认1
                    $("#ncGoodsTraded").find("em strong").html(newPrice); //销售记录原价
                    $("#hfStocks").val(newStock); //库存
                }
                $("#GuiGeValue").val(selectTextColl);
                $('[nctype="goods_prompt"]').show().html('<dt>提示：</dt><dd><em class="yes fl" style="width:150px;">您选择了：' + selectTextColl + '</em></dd>');
            } //if (i == selectC) end
        }

        function CheckSelectData(sen) {
            var arrPrice = "<%=prc_sp_valueDetail %>";
            var type = "<%=IntProductType %>";
            if (type == "1") {
                if (arrPrice.length != 0) {
                    var i = 0;
                    var selectC = $(sen).parent().parent().children('dl[ctype="guig"]').length;
                    var _guige = "";
                    $(sen).parent().parent().children('dl[ctype="guig"]').find("dd ul li a").each(function () {
                        var _tempC = $(this).attr("class");
                        if (_tempC != "" && _tempC.indexOf("hovered") > -1) {
                            i++;
                            _guige += $(this).attr("ctype") + ",";
                        }
                    });
                    if (i != selectC) {
                        alert('请选择完整规格。');
                        return false;
                    }
                    else {
                        $("#HiddenField4").val(_guige);
                    }
                }
            }
            return true;
        }


        var specs = new Array();
        var source_goods_price = 104.00;
        //       specs.push(new spec(232, ['白色', 'XS/155'], 104.00, 9));
        //       specs.push(new spec(233, ['白色', 'S/160'], 104.00, 10));
        //       specs.push(new spec(234, ['白色', 'M/165'], 104.00, 10));
        //       specs.push(new spec(235, ['白色', 'L/170'], 104.00, 10));
        //       specs.push(new spec(236, ['白色', 'XL/175'], 104.00, 9));
        //       specs.push(new spec(237, ['黑色', 'XS/155'], 104.00, 10));
        //       specs.push(new spec(238, ['黑色', 'S/160'], 104.00, 3));
        //       specs.push(new spec(239, ['黑色', 'M/165'], 104.00, 10));
        //       specs.push(new spec(240, ['黑色', 'L/170'], 104.00, 10));
        //       specs.push(new spec(241, ['黑色', 'XL/175'], 104.00, 10));
        //       specs.push(new spec(242, ['肉色', 'XS/155'], 104.00, 10));
        //       specs.push(new spec(243, ['肉色', 'S/160'], 104.00, 9));
        //       specs.push(new spec(244, ['肉色', 'M/165'], 104.00, 10));
        //       specs.push(new spec(245, ['肉色', 'L/170'], 104.00, 10));
        //       specs.push(new spec(246, ['肉色', 'XL/175'], 104.00, 10));
        //       specs.push(new spec(247, ['灰色', 'XS/155'], 104.00, 10));
        //       specs.push(new spec(248, ['灰色', 'S/160'], 104.00, 10));
        //       specs.push(new spec(249, ['灰色', 'M/165'], 104.00, 8));
        //       specs.push(new spec(250, ['灰色', 'L/170'], 104.00, 10));
        //       specs.push(new spec(251, ['灰色', 'XL/175'], 104.00, 10));
        var specQty = 2;
        var defSpec = 232;
        var goodsspec = new goodsspec(specs, specQty, defSpec);
    </script>
    <script type="text/javascript">
        //浮动导航  waypoints.js
        //        $('#main-nav-holder').waypoint(function (event, direction) {
        //            $(this).parent().toggleClass('sticky', direction === "down");
        //            event.stopPropagation();
        //        });

        // 立即购买js
        function buynow(spec_id, quantity, type) {
            CUR_DIALOG = ajax_form('login', '登录', 'detail.html?act=login&inajax=1', 500);
        }
        $(function () {

            //选择地区查看运费
            //            $('#transport_pannel>a').click(function () {
            //                var id = $(this).attr('nctype');
            //                if (id == 'undefined') return false;
            //                var _self = this, tpl_id = '0';
            //                var url = 'detail.html?act=goods&op=calc&rand=' + Math.random();
            //                $('#transport_price').css('display', 'none');
            //                $('#loading_price').css('display', '');
            //                $.getJSON(url, { 'id': id, 'tid': tpl_id }, function (data) {
            //                    if (data == null) return false;
            //                    if (data.kd != 'undefined') { $('#nc_kd').html(data.kd); } else { $('#nc_kd').html(''); }
            //                    if (data.py != 'undefined') { $('#nc_py').html(data.py); } else { $('#nc_py').html(''); }
            //                    if (data.es != 'undefined') { $('#nc_es').html(data.es); } else { $('#nc_es').html(''); }
            //                    $('#transport_price').css('display', '');
            //                    $('#loading_price').css('display', 'none');
            //                    $('#ncrecive').html($(_self).html());
            //                });
            //            });

            //            $("#goodseval").load('detail.html?act=goods&op=comments&goods_id=237&id=70');
            //            $("#salelog_demo").load('detail.html?act=goods&op=salelog&goods_id=237&id=70');
            //            $("#cosulting_demo").load('detail.html?act=goods&op=cosulting&goods_id=237&id=70');
        });
    </script>
    <div id="deliver_area_list" class="ncs-freight-list" style="display: none; position: absolute;">
    </div>
    <script type="text/javascript">
    $("#deliver_area_list").mouseout(function(){
        $(this).slideUp();
        
    }).mousemove(function(){
        $(this).stop().slideDown();
    });
    // JScript 文件
var chinaDivision = {
		110000:"北京",
		120000:"天津",
		130000:"河北",
		140000:"山西",
		150000:"内蒙古",
		210000:"辽宁",
		220000:"吉林",
		230000:"黑龙江",
		310000:"上海",
		320000:"江苏",
		330000:"浙江",
		340000:"安徽",
		350000:"福建",
		360000:"江西",
		370000:"山东",
		410000:"河南",
		420000:"湖北",
		430000:"湖南",
		440000:"广东",
		450000:"广西",
		460000:"海南",
		500000:"重庆",
		510000:"四川",
		520000:"贵州",
		530000:"云南",
		540000:"西藏",
		610000:"陕西",
		620000:"甘肃",
		630000:"青海",
		640000:"宁夏",
		650000:"新疆",
		710000:"台湾",
		810000:"香港",
		820000:"澳门",
		990000:"海外",
	    1:"全部",
	    2:"同城"}

     function CreateAreaList(id){
         var listObj=document.getElementById(id);
         var area_str="";
         var i=1;
         for(var x in chinaDivision){
             if(i++ > 7){
                area_str+="<a href=\"javascript:void(0)\"   onclick=\"setAreaPrice('"+chinaDivision[x]+"');\">"+chinaDivision[x]+"</a><br/>";
                i=1;
             }else{
                area_str+="<a href=\"javascript:void(0)\"   onclick=\"setAreaPrice('"+chinaDivision[x]+"');\">"+chinaDivision[x]+"</a>&nbsp;&nbsp;&nbsp;";
             }             
         }
        

         listObj.innerHTML=area_str;
         $("#"+id).find("a").each(function(){
            var _this=$(this);
            $(this).mouseenter(function(){
                _this.css("color","Red");
             }).mouseleave(function(){
                _this.css("color","Black");
             })
         });
     }   
     CreateAreaList("deliver_area_list");
        var auctionDate = <%=LeftTime %>;
        var showTimeElement = new Array();
        showTimeElement[0] = "leftTime1";
        showTimeElement[1] = "leftTime2";
        
        var _day = '天';
        var _hour = '小时';
        var _minute = '分钟';
        var _second = '秒';
        var _end = '交易结束';
        
    </script>
    <script src="Js/left_time.js" type="text/javascript"></script>
    <script src="Skin/ShowProductStyle/js/waypoints.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            //浮动导航  waypoints.js
            $('#main-nav-holder').waypoint(function (event, direction) {
                $(this).parent().toggleClass('sticky', direction === "down");
                event.stopPropagation();
            });
        });
    </script>
    <script id="bdshare_js" data="type=button&mini=1" type="text/javascript" src="http://bdimg.share.baidu.com/static/js/bds_s_v2.js?cdnversion=20120821"></script>
    <script src="Skin/ShowProductStyle/js/bdshare.js" type="text/javascript"></script>
    <script id="bdshell_js" type="text/javascript" src="http://bdimg.share.baidu.com/static/js/shell_v2.js?t=11">
        var bdShare = bdShare || {}; bdShare.loadTime = +new Date; document.getElementById("bdshare_js").src = "http://bdimg.share.baidu.com/static/js/bds_s_v2.js?cdnversion=20120821";
    </script>
    <script type="text/javascript">
        document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?t=" + new Date().getHours();
    </script>
    <script type="text/javascript">
        var money = document.getElementById("HiddenField2");
        //  SaveLastVisit('<%=ProductID %>', '<%=ChangeBigImg %>', '<%=ProductName %>', '<%=CustomPrice %>'); //访问的商品
        SaveLastVisit('<%=ProductID %>', '<%=ChangeBigImg %>', '<%=ProductName %>', money.value); //访问的商品
    </script>
    <%--店铺 begin--%>
    <script type="text/javascript">
        //function PageLoad() {
        $(function () {
            var ShopInfoPower = "<%=ShowShopInfoPower %>";

            if (ShopInfoPower.toLowerCase().toString() == "true") {
                var shopbiaozhi = document.getElementById("shopbiaozhi"); //背景图
                var dianbiaoImg = document.getElementById("dianbiaoImg"); //店标图
                var ShopTitle = document.getElementById("ShopTitle"); //店铺标题

                var HiddenShowType = document.getElementById("HiddenShowType").value; //显示类型
                var BackGround = document.getElementById("HiddenBackGroundImage").value; //背景图片./UpLoadFile/ShopBackground/80.gif

                var backGr = BackGround.substring(0, 1); //首位
                if (backGr == ".") {
                    var backG = BackGround.substring(1);
                    BackGround = "Store" + backG;
                } else if (backGr == "/") {
                    BackGround = "Store" + backG;
                }

                var dianbiao = document.getElementById("Hiddendianbiao").value; //店标
                $("#dianbiaoImg").attr("src", dianbiao);
                var HiddenShopTitle = document.getElementById("HiddenShopTitle").value;
                document.getElementById("ShopTitle").innerHTML = HiddenShopTitle;
                var ShowTypeValue = HiddenShowType.substring(0, HiddenShowType.length - 1).split(',');
                for (var i = 0; i < ShowTypeValue.length; i++) {
                    if (ShowTypeValue[i] == "1") {
                        dianbiaoImg.style.display = "block";
                    }
                    else if (ShowTypeValue[i] == "2") {
                        ShopTitle.style.display = "block";
                    }
                    else {
                        $("#shopbiaozhi").css("background-image", "url(" + BackGround + ")");
                        $("#shopbiaozhi").css("background-repeat", "no-repeat");
                    }
                }
            }
            // });


        });
    </script>
    <div id="showParaResult" title="您的试衣结果" style="width: 700px; height: 300px; display: none;">
        <div id="typediv" style="width: 100%; color: Red;">
        </div>
        <div id="showPara1" style="width: 100%;">
            <table id="tbPara1" style="width: 100%; border-spacing: 6px; border-spacing: expression(this.cellSpacing=6);
                border-collapse: separate;">
            </table>
        </div>
        <div style="clear: both; margin: 2px 2px 2px 4px;">
            第1行数值为<em>商品尺寸</em><br />
            第2行数值为<em>用户尺寸</em><br />
        </div>
    </div>
    
    <div id="div_wish_go" title="您正在许愿" style="width: 400px; height: 260px; display: none;">
        <div style="width: 100%;">
            <b>商品：</b><span id="wish_product_name" runat="server"></span></div>
        <br />
        <div style="width: 100%; margin-top: 4px;">
            <div style="float: left; width: 30%;">
                <img alt="许愿商品" id="wish_pro_img" runat="server" style="height: 110px; width: 75px;
                    border-width: 0px; display: block;" />
            </div>
            <div style="float: left; width: 70%;">
                想要说点什么<br />
                <textarea id="wish_words" style="height: 94px; width: 236px;"></textarea>
            </div>
        </div>
    </div>
    <%--店铺 end--%>
</body>
</html>
