<!-- maintop -->
		<div class="maintop">
			<div class="maintopshow">
				<div class="left">
				    <a onclick="this.style.behavior='url(#default#homepage)';
this.setHomePage(document.location.href);" href="#">设为首页</a> 
                  | <a href="javascript:void(0);" onClick="window.external.AddFavorite(document.location.href,document.title)">加入收藏</a>
				</div>
			</div>
		</div>
		<!--/maintop -->
		<!-- header -->
		<div class="header">
		    <img class="logo" src="{$domain}/{$setting->site_logo}" style="max-width:300px;" />
		        <div class="right">
		<!-- search -->
		            <div class="search">
		                <div class="top">
		                     <div class="bgl">
								<div class="bgr">&nbsp;</div>
							 </div>
						</div>
						<div class="schshow">
						  <form id="search" method="get" action="index.php?a=search" onSubmit="return checkSearchForm()"> 
						        <input type="hidden" value="search" name="a">
						       <div class="left"> <input id="textfield" onfocus="this.className='on';" value="请输入您想要的宝贝" name="q"></div>
							   <div class="btn"><input id="imageField" type="image" src="{$domain}/view/tenlongs/images/schbtn.gif" name="imageField"></div>
						  </form>
						  
							{literal}
							  <script type="text/javascript">
								function checkSearchForm()
								{
									if(document.getElementById('textfield').value==""||document.getElementById('textfield').value=="请输入您想要的宝贝")
									{
										
										alert("请输入您搜索的宝贝名称！");
										return false;
									}
									else
									{
										return true;
									}
								}	
								
								var serch_form1=document.getElementById("textfield");
								serch_form1.onclick=function()
								{
									if(this.defaultValue==this.value)//defaultValue属性表示文本框中的默认文本，即在HTML里所指定的value值的
										{
											this.value="";
										}	
										
								}
								serch_form1.onblur=function(){
									if(this.value==""){
										this.value="请输入您想要的宝贝";
									}
								}
						   </script>
					     {/literal}
						</div>
						<div class="bottom">
						<div class="bgl">
						<div class="bgr">&nbsp;</div>
						</div>
						</div>
						<div class="schhot">
						   <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>
		            </div>
		<!--/search -->
		        </div>
				
		 </div>
		 <!-- mainnav -->
		<div class="mainnav">
		   <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="sc" ><a href="{$domain}" title="首页"><span><strong>首页</strong></span></a></li>
					{else}						
						 <li ><a href="{$domain}" title="首页"><span><strong>首页</strong></span></a></li>
					{/if}
				{else}					
					 <li  class="sc"><a href="{$domain}" title="首页"><span><strong>首页</strong></span></a></li>
				{/if}	
				{foreach from=$AllNav item=value name=allnav}
					{if $value->tab==$smarty.get.a}
						<li class="sc"><a href="{$value->url}" title="{$value->name}" target="{$value->target}"><span><strong>{$value->name}</strong></span></a></li>
					{else}						
						<li><a href="{$value->url}" title="{$value->name}" target="{$value->target}"><span><strong>{$value->name}</strong></span></a></li>							
					{/if}
				{/foreach}
		   </ul>		  
		</div>
		
		<!--/mainnav -->
		<!--/header -->
		<!--/mainnav -->