<%@ Control Language="c#" AutoEventWireup="true" Codebehind="Header.ascx.cs" Inherits="XpShop.WebUI.Modules.Header" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<%@ Register TagPrefix="uc1" TagName="NavBar" Src="NavBar.ascx" %>
<%@ Register TagPrefix="uc1" TagName="HomeSearch" Src="HomeSearch.ascx" %>
<%@ Register TagPrefix="uc1" TagName="HeaderAd" Src="HeaderAd.ascx" %>
<%@ Register TagPrefix="uc1" TagName="UserNewlyViewProducts1" Src="UserNewlyViewProducts1.ascx" %>
<div id="xp-header-top"><a id="top1"></a>
    <div class="xp-w">
        <div id="xp-header-top-left">
            <div id="xp-header-login">
	            您好，欢迎您来到商城！<a href="<%=webSite%>login.<%=config.html %>">[请登录]</a>，新用户？<a class="header-reg-link" href="<%=webSite%>login.<%=config.html %>">[免费注册]</a>
            </div>
        </div>
        <div id="xp-header-top-right">
        <div class="xp-header-top-right-right">
            <ul>
                <li><a href="<%=webSite %>center.<%=config.html %>" target="_blank">会员中心</a></li>
                <li class="sapce">|</li>
                <li><a href="<%=webSite %>myorders.<%=config.html %>" target="_blank">我的订单</a></li>
                <li class="sapce">|</li>
                <li><a href="<%=webSite %>MyFavorite.<%=config.html %>" target="_blank">我的收藏</a></li>
                <li class="sapce">|</li>
                <li class="view">
                    浏览记录
                    <div class="view-div" style="display:none;">
                        <uc1:UserNewlyViewProducts1 id="UserNewlyViewProducts1" runat="server"></uc1:UserNewlyViewProducts1>
                    </div>
                </li>
                <li class="sapce">|</li>
                <li><a href="<%=webSite %>Help.<%=config.html %>" target="_blank">帮助中心</a></li>
            </ul>
            <script type="text/javascript">
                $(document).ready(function(){
	               $(".view").hover(function(){
		                $(this).removeClass("view").addClass("viewon");
		                $(this).find(".view-div").show();
		                if($(this).find('ul.newview li.newview-li').length == 0){
		                    $(this).parent().parent().find(".view-no").show();
		                }
		            },function(){
		                $(this).removeClass("viewon").addClass("view");
		                $(this).find(".view-div").hide();
		            });     
                });
            </script>
        </div>
        </div>
    </div>
</div>
<%--<%if(Request.Url.AbsolutePath.ToLower().IndexOf("default.aspx") != -1) {%>
<div class="xp-w"><uc1:HeaderAd id="HeaderAd1" runat="server"></uc1:HeaderAd></div>
<%} %>--%>
<div id="xp-header">
    <div id="xp-head-left"><%=config.SiteLogo %></div>
    <div id="xp-head-right">
        <uc1:NavBar id="NavBar" runat="server"></uc1:NavBar>
    </div>
</div>
<uc1:HomeSearch id="HomeSearch1" runat="server"></uc1:HomeSearch>