<div class="top">
	<div id="top">
		<div id="logo">
			<img class="logo" src="{$domain}/{$setting->site_logo}" style="max-width:300px;" />
		</div>		
		<div id="search">			
			<form target="_black" action="{$domain}/index.php?a=search" id="search" method="get">	
				<input type="hidden" value="search" name="a">			
				<div class="slt">
				<span>
				<a id="ish_1" onclick="SearchSelect(1,'');" class="on">宝贝</a>				
				</span></div>

				<input type="text" name="q" id="kw" onfocus="this.className='on';" value="{if $q}{$q}{else}热销女装{/if}" autocomplete="off" />
				<button type="submit" class="search">搜 索</button>
			</form>
			<p>热搜：{foreach from=$KeyWords item=value name=keywords}
				{if $rewrite}
					<a href="{$domain}/{$search}-{$value.encode_keywords}{$suffix}" style="color:{$value.color}" target="_black">{$value.keywords}</a>
				{else}
					<a href="./index.php?a=search&q={$value.encode_keywords}" style="color:{$value.color}" target="_black">{$value.keywords}</a>
				{/if}
							
			{/foreach}
			</p>
		</div>
		{literal}
		    <script language="javascript">	
				 var keywords=document.getElementById("kw");
					keywords.onclick=function()
					{
						if(this.defaultValue==this.value)
						{
							this.value="";
						}	
					}
					keywords.onblur=function(){
						if(this.value==""){
							this.value="热销女装";
						}
				}
			</script>
		{/literal}				
	</div>
	<div style="height:46px;">
		<div id="nav">
			<ul>
				{if $smarty.get.a}
					{if $smarty.get.a=='category' || $smarty.get.a=='bitem'|| $smarty.get.a=='item' || $smarty.get.a=='search' || $smarty.get.a==sellerinfo}
						<li class="hover"><a href="{$domain}">首页</a></li>
					{else}						
						<li><a href="{$domain}">首页</a></li>
					{/if}
				{else}					
					<li class="hover"><a href="{$domain}">首页</a></li>
				{/if}	
				{foreach from=$AllNav item=value name=allnav}
					{if $value->tab==$smarty.get.a}
						<li class="hover"><a href="{$value->url}" title="{$value->name}" target="{$value->target}">{$value->name}</a></li>
					{else}						
						<li><a href="{$value->url}" title="{$value->name}" target="{$value->target}">{$value->name}</a></li>							
					{/if}
				{/foreach}
			</ul>
		</div>
	</div>
</div>