<%@ Control Language="c#" AutoEventWireup="true" Codebehind="NavBar.ascx.cs" Inherits="XpShop.WebUI.Modules.NavBar" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
<div id="navbar">
    <div class="xp-w">
	    <ul id="nbar">
            <asp:Repeater runat="server" ID="rptNavBar">
                <ItemTemplate>
                    <li>
                        <div class="on-l"></div>
                        <div class="on-m">
                            <a href="<%# DataBinder.Eval(Container.DataItem,"Inside").ToString()=="1"?webSite+DataBinder.Eval(Container.DataItem,"Link"):DataBinder.Eval(Container.DataItem,"Link") %>" target="<%# DataBinder.Eval(Container.DataItem,"Target") %>"><%# DataBinder.Eval(Container.DataItem,"NavBarName")%></a>
                            <div class="hot-none"></div>
                        </div>
                        <div class="on-r"></div>
                    </li>
                    <li class="space"></li>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
        <ul id="nbarblank">
            
            <%--<li><a class="funcLink" style="cursor:pointer;" onclick="javascript:window.open(' http://b.qq.com/webc.htm?new=0&sid=4001685151&eid=218808P8z8p8Q8x8x8q8P&o=www.100yue.com&q=7', '_blank', 'height=544, width=644,toolbar=no,scrollbars=no,menubar=no,status=no');"><img src="<%=webSite %>Template/<%=config.TemplateFolder%>/images/11.png" /></a></li>--%>
        </ul>
        <div class="search_cart">
            <div class="l"></div>
            <div class="m"><a href="<%=webSite %>cart.html" style="text-decoration:none;">购物车<span name="sQuantity" id="sQuantity" style="color:#2173fb; padding:0px 2px;">0</span>件 </a></div>
            <div class="r"><a href="<%=webSite %>cart.<%=config.html%>"></a></div>
        </div>
    </div>
</div>


<script type="text/javascript">
    $(document).ready(function(){
        var curUrl = window.location.href.toLowerCase(); 
        $('#nbar a').each(function(){
            var obj = $(this);
            if(obj.attr('href').toLowerCase() == curUrl){$(this).parent().parent().addClass('on')}
        });
        $("#nbar li:eq(10)").addClass('zsyh')
        $(".zsyh").children(".on-m").children(".hot-none").removeClass("hot-none").addClass("hot-block")
        
    });
</script>