<?php
if(!defined('IN_GATEWEI')){
	exit('Access Denied'); 
}
?>
<div id="header">
		<div id="sitelogo"><a href="index.php">
			<img src="<?php echo $templatedir?>images/sitelogo.gif" alt="<?php echo $sitename?>" />
		</a></div>

		<div id="siteheadright">


		<div id="memberinfo">
		<?php if($gid!=4){?>
		<?php echo $userid?>,欢迎你！ | <a href="verify.php?action=loginout" >退出登陆</a> 
		| <a href="verify.php?action=panel" >控制面板</a>
		<?php if($newmsgcount){?>
		(<?php echo $newmsgcount?>条新短消息)
		<bgsound src="images/audio/newmsg.wav" />
		<?php }?>
		<?php if($pervalue{18}){?>
		| <a href="verify.php?action=siteadmin" >系统管理</a>
		<?php }?>
		<?php }else{?>	
		四川大冢欢迎你！ 
		<?php if(CURSCRIPT=="index"){ ?>
		<?php if($allowedauthcode{5}){ ?>
		<a href="javascript:void(0)" onclick="popwindows('a',2,1)">用户登录</a>
		<?php }else{?>
		<a href="javascript:void(0)" onclick="popwindows('a',2,0)">用户登录</a>
		<?php }}else{?>
		<a href="memberlogin.php" >用户登录</a>
		<?php }?>
		| <a href="<?php echo $registerfilename?>"><?php echo $registerlinkword?></a>
		<?php }?>
		| <a id="rss" onmouseover="showMenu(this.id,0,2)" href="javascript:void(0)">RSS</a>
		| <a href="sitemap.php">网站地图</a> | 
		<a onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('<?php echo site(1)?>');" href="javascript:void(0)">设为主页</a> |
		<a href="javascript:void(0)" onclick="javascript:window.external.AddFavorite('<?php echo site(1)?>','<?php echo $sitename?>')">收藏本站</a> | <a href="http://mail.sclop.com.cn/">公司邮箱</a>
	<div id="rss_menu" class="drop_small_menu" style="display:none" >
	<a href="rss.php?rssid=1">文章订阅</a>
	<a href="rss.php?rssid=2">产品订阅</a>
	<a href="rss.php?rssid=3" class="last">主题订阅</a>
	</div>
</div>

<div class="searcharea">
<input  title="搜索" type="image" alt="搜索" src="<?php echo $templatedir?>images/btn_search_label.gif" onclick="javascript:void(0)" value="搜索" class="searchbtn" onmouseover="showMenu(this.id)" id="searchtype">


<div id="searchtype_menu" class="drop_small_menu" style="display: none">
<a id="article_search_btn" href="javascript:void(0)" onclick="submitsearch(this.id)" >文章</a>
<a id="product_search_btn" href="javascript:void(0)" onclick="submitsearch(this.id)" >产品</a>
<a id="thread_search_btn" href="javascript:void(0)" onclick="submitsearch(this.id)" class="lastone" >论坛</a>
</div>
<input  id="searchword" size="25" name="kw" type="text" class="searchword">
</div>
<?php include("navigation.tpl.php");?>
</div>
</div>