<script src="<%=webSite %>inc/ad.js"  type="text/javascript">
</script>
<!--左边广告-->
<% if(XpShop.WebUI.WebUIBase.ADInfo(1).IsOpen) {%>
  <div id="leftADContent" style="position:absolute; clear:both; top:50px; left:5px;">
    <div>
      <img id="closeleft"  style='cursor:pointer' src='<%=webSite %>Template/<%=config.TemplateFolder%>/images/close.gif' border='0' vspace='3' title='关闭'>
      </div>
    <div>
      <%=XpShop.WebUI.WebUIBase.ADInfo(1).Content%>
    </div>
  </div>
  <script type="text/javascript">
    $(document).ready(function(){
    $('#leftADContent').setScrollAD();
    $('#closeleft').click(function(){
    $('#leftADContent').hide();
    });
    });

  </script>
  <% }%>


  <!--右边广告-->
  <% if(XpShop.WebUI.WebUIBase.ADInfo(2).IsOpen) {%>
    <div id="rightADContent" style="position:absolute; clear:both; top:50px; right:5px;">
      <div style="text-align:right;">
        <img id="closeright"  style='cursor:pointer' src='<%=webSite %>Template/<%=config.TemplateFolder%>/images/close.gif' border='0' vspace='3' title='关闭'>
        </div>
      <div>
        <%=XpShop.WebUI.WebUIBase.ADInfo(2).Content%>
        <div>
        </div>
        <script type="text/javascript">
          $(document).ready(function(){
          $('#rightADContent').setScrollAD();
          $('#closeright').click(function(){
          $('#rightADContent').hide();
          });
          });
        </script>
        <% }%>
          
        <% if(XpShop.WebUI.WebUIBase.ADInfo(3).IsOpen) {%>
          <script type="text/javascript">	
            window.open('PopAD.aspx','a','width=<%=XpShop.WebUI.WebUIBase.ADInfo(3).ADWidth%>,height=<%=XpShop.WebUI.WebUIBase.ADInfo(3).ADHight%>,top=<%=XpShop.WebUI.WebUIBase.ADInfo(3).ADTop%>,left=<%=XpShop.WebUI.WebUIBase.ADInfo(3).ADLeft%>')
    　　	</script>
          <% }%>
            
                    