<div id="head">
	<div class="logo">
	<a href="<?=$web_url?>" title="<?=$web_name?>" target="_self"><img src="<?=$web_dir?><?=$web_logo?>" alt="<?=$web_name?>" border="0" /></a>
	</div>
	<div class="top">
		<div class="default">
			<div class="left"></div>
			<div class="right">
				<p><a href="<?=$web_dir?>card.php">道具使用</a>&nbsp;&nbsp; <a href="<?=$web_dir?>businessnotice.php">商家汇豆</a>&nbsp;&nbsp; <a href="<?=$web_dir?>help_lest.php">用户帮助</a>&nbsp;&nbsp; <a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('<?=$web_url?>');" onmouseout="window.status='<?=$web_name?>';return true;" onmouseover="window.status='<?=$web_name?>';return true;">设为首页</a>&nbsp;&nbsp; <a href="#" onclick="javascript:window.external.addFavorite('<?=$web_url?>','<?=$web_name?>');return false;" onmouseout="window.status='<?=$web_name?>';return true;" onmouseover="window.status='将本站加入您的收藏夹';return true;">加入收藏</a></p>
			</div>
		</div>
		<div class="cl">
			<p><?php
		  $query=$db->query("Select * From {$web_dbtop}users where id=".intval($_COOKIE["usersid"])." and password='".str_check($_COOKIE["password"])."'");
		  if($rs=$db->fetch_array($query)){
		  	echo"<a href=\"".$web_dir."useraccount.php\"><font class=rf><strong>".$rs["id"]."</strong></font></a>".($rs["vip"]==1?"<img src=\"".$web_dir."images/vip.gif\" alt=\"到期时间:".date("Y-m-d",strtotime($rs["vipdate"]."+1 day"))."\" />":"")."&nbsp;&nbsp; <strong>".$web_moneyname."：</strong><font class=rf>".number_format($rs["points"])."</font></a><img src=\"".$web_dir."".$web_moneypic."\" alt=\"".$web_moneyname."\"/>&nbsp;&nbsp; <strong>银行：</strong><font class=rf>".number_format($rs["back"])."</font><img src=\"".$web_dir."".$web_moneypic."\" alt=\"".$web_moneyname."\"/>&nbsp;&nbsp; <strong>经验值：</strong><font class=rf>".$rs["experience"]."</font>&nbsp;&nbsp; <A href=\"".$web_dir."usersms.php\"><SPAN ".(msg_num(0)!=0?"class=rf":"").">新短消息(".msg_num(0).")</SPAN></A>&nbsp;&nbsp; <a href=\"".$web_dir."login.php?act=logout\">退出登陆</a>";
		  }else{
		  	echo"请点击【<A href=\"".$web_dir."reg.php\"><SPAN class=rf>这里</SPAN></A>】注册，请点击【<A href=\"".$web_dir."login.php\"><SPAN class=rf>这里</SPAN></A>】登陆！";
		  }
		  ?></p>
		</div>
	</div>
</div>
<div id=menu_out>
	<div id=menu_in>
		<div id=menu>
			<UL id=nav>
				<LI><A class=nav_on id=mynav0 onmouseover="javascript:qiehuan(0)" href="<?=$web_dir?>index.php"><SPAN>首 页</SPAN></A></LI>
				<LI class="menu_line"></LI><li><a href="<?=$web_dir?>profit.php" onmouseover="javascript:qiehuan(1)" id="mynav1" class="nav_off"><span>赚<?=$web_moneyname?></span></a></li>
				<li class="menu_line"></li><li><a href="<?=$web_dir?>game.php" onmouseover="javascript:qiehuan(2)" id="mynav2" class="nav_off"><span>玩游戏</span></a></li>
				<li class="menu_line"></li><li><a href="#" onmouseover="javascript:qiehuan(3)" id="mynav3" class="nav_off"><span>推广有奖</span></a></li>
				<li class="menu_line"></li><li><a href="<?=$web_dir?>prizes.php" onmouseover="javascript:qiehuan(4)" id="mynav4" class="nav_off"><span>兑换奖品</span></a></li>
				<li class="menu_line"></li><li><a href="<?=$web_dir?>activities.php" onmouseover="javascript:qiehuan(5)" id="mynav5" class="nav_off"><span>活动专区</span></a></li>
				<li class="menu_line"></li><li><a href="<?=$web_dir?>prop.php" onmouseover="javascript:qiehuan(6)" id="mynav6" class="nav_off"><span>道具中心</span></a></li>
				<li class="menu_line"></li><li><a href="#" onmouseover="javascript:qiehuan(7)" id="mynav7" class="nav_off"><span>会员中心</span></a></li><li class="menu_line"></li> 
				<LI><A class=nav_off id=mynav8 onmouseover="javascript:qiehuan(8)" href="<?=$web_dir?>bbs/index.php"><SPAN>讨论区</SPAN></A></LI>
			</UL>
			<div id=menu_con>
				<div id=qh_con0 style="DISPLAY: block">
					<UL>
					  <LI>欢迎来到 <?=$web_name?>--看广告，免费赚Q币，奖品！</LI>
					</UL>
				</div> 
				<div id=qh_con1 style="DISPLAY: none">
					<UL>
					  <LI><a href="<?=$web_dir?>profit.php#lqjj"><span>领取救济</span></A></LI><LI class=menu_line2></LI>
					  <LI><A href="<?=$web_dir?>profit.php#hdty"><SPAN>互动体验广告</SPAN></A></LI><LI class=menu_line2></LI>
					  <LI><A href="<?=$web_dir?>profit.php#wjdc"><SPAN>问卷调查广告</SPAN></A></LI><LI class=menu_line2></LI>
					  <LI><A href="<?=$web_dir?>profit.php#xfty"><SPAN>消费体验广告</SPAN></A></LI><LI class=menu_line2></LI>
					  <LI><A href="<?=$web_dir?>profit.php#yhtj"><SPAN>用户推荐</SPAN></A></LI>
					</UL>
				</div> 
				<div id=qh_con2 style="DISPLAY: none">
					<UL>
					  <LI><a href="<?=$web_dir?>luck.php"><span>幸运28</span></A></LI><LI class=menu_line2></LI>
					  <LI><A href="<?=$web_dir?>happy.php"><SPAN>开心16</SPAN></A></LI><LI class=menu_line2></LI>
					  <LI><A href="<?=$web_dir?>joyous.php"><SPAN>欢乐11</SPAN></A></LI><LI class=menu_line2></LI>
					  <LI><A href="<?=$web_dir?>dodge.php"><SPAN>猜拳</SPAN></A></LI><LI class=menu_line2></LI>
					  <LI><A href="<?=$web_dir?>box.php"><SPAN>开宝箱</SPAN></A></LI>
					</UL>
				</div> 
				<div id=qh_con3 style="DISPLAY: none">
					<UL>
					  <LI><a href="<?=$web_dir?>usertg.php"><span>我的下线</span></A></LI><LI class=menu_line2></LI>
					  <LI><A href="<?=$web_dir?>usertgsy.php"><SPAN>推广收益</SPAN></A></LI><LI class=menu_line2></LI>
					  <LI><A href="<?=$web_dir?>userrecom.php"><SPAN>推广代码</SPAN></A></LI>
					</UL>
				</div> 
				<div id=qh_con4 style="DISPLAY: none">
					<UL>
					  <LI><a href="<?=$web_dir?>prizes.php"><span>兑换奖品</span></A></LI><LI class=menu_line2></LI>
					  <LI><a href="<?=$web_dir?>prizes_rank_u.php"><span>兑奖名单</span></A></LI><LI class=menu_line2></LI>
					  <LI><A href="<?=$web_dir?>prizes_rank.php"><SPAN>兑奖排行</SPAN></A></LI><LI class=menu_line2></LI>
					  <LI><A href="<?=$web_dir?>userprizes.php"><SPAN>我的兑奖</SPAN></A></LI>
					</UL>
				</div>
				<div id=qh_con5 style="DISPLAY: none">
					<UL>
					  <LI></LI>
					</UL>
				</div>
				<div id=qh_con6 style="DISPLAY: none">
					<UL>
					  <LI><a href="<?=$web_dir?>prop.php"><span>道具中心</span></A></LI><LI class=menu_line2></LI>
					  <LI><A href="<?=$web_dir?>card.php"><SPAN>道具使用</SPAN></A></LI><LI class=menu_line2></LI>
					  <LI><A href="<?=$web_dir?>card.php?act=use"><SPAN>种豆领取</SPAN></A></LI>
					</UL>
				</div>
				<div id=qh_con7 style="DISPLAY: none">
					<UL>
					  <LI><a href="<?=$web_dir?>usersms.php"><span>我的短信</span></A></LI><LI class=menu_line2></LI>
					  <LI><a href="<?=$web_dir?>useraccess.php"><span>存取<?=$web_moneyname?></span></A></LI><LI class=menu_line2></LI>
					  <LI><a href="<?=$web_dir?>useraccount.php"><span>帐户信息</span></A></LI><LI class=menu_line2></LI>
					  <LI><a href="<?=$web_dir?>userprizes.php"><span>我的兑奖</span></A></LI><LI class=menu_line2></LI>
					  <LI><a href="<?=$web_dir?>userinfo.php"><span>修改资料</span></A></LI><LI class=menu_line2></LI>
					  <LI><A href="<?=$web_dir?>userpwd.php"><SPAN>修改密码</SPAN></A></LI><LI class=menu_line2></LI>
					  <LI><A href="<?=$web_dir?>uservalid.php"><SPAN>身份验证</SPAN></A></LI>
					</UL>
				</div>
				<div id=qh_con8 style="DISPLAY: none">
					<UL>
					<?
					$query=$db->query("Select * from {$web_dbtop}bbs_section Order by sort asc");
					while($rs=$db->fetch_array($query)){
						echo "<LI id=\"bbs_".$rs["id"]."\"><a href=\"".$web_dir."bbs/forum.php?forumsid=".$rs["id"]."\"><span>".$rs["name"]."</span></a></LI><LI class=menu_line2></LI>";
					}
					?>
					</UL>
				</div>
			</div>
		</div>
	</div>
</div>
<script language="javascript">
	function qiehuan(num){
		for(var id = 0;id<=8;id++)
		{
			if(id==num)
			{
				document.getElementById("qh_con"+id).style.display="block";
				document.getElementById("mynav"+id).className="nav_on";
			}
			else
			{
				document.getElementById("qh_con"+id).style.display="none";
				document.getElementById("mynav"+id).className="";
			}
		}
	}
</script>
<DIV class=blank10></DIV>