<div class="top" id="top">
    <div class="kf">
      	<p><a class="sb-back" href="javascript:history.back(-1)" title="返回" style=" display: block; width: 40px;    height: 40px;
    margin: auto; background: url(images/arrow_left.png) no-repeat 15px center;float: left;  
    background-size: auto 16px;"></a><img style="    width: 120px;height:32px;    padding-top: 5px;" src="/public/style/images/logo.png"></p>
      	<?php if(!empty($_SESSION["glo_username"])){ ?> 
        <div class="pull-right">
	        <ul>
			  <li style="padding:0px 5px;float: right;"><a href="/mobile/action/login.php?action=loginout" class="bSi">退出</a></li>
	          <li style="padding:0px 5px;float: right;text-align:center"><a class="bSi orange" href="/mobile/user/index.php"><?php  echo $userConfig['username'];?></a></li>
	          
	        
	       	</ul>
  		</div>
  		<?php }else{ ?>
  		<p><a href="/mobile/login.php">登录</a><a href="/mobile/register.php">注册</a></p>
  		<?php } ?>
  	</div>
</div>
<div class="header">
 
  <ul class="nav clearfix">
      <?php $thisM =  $_SERVER['PHP_SELF'];?>
      <li><a  <?php if(checkstrMenu('index.php',$thisM)){ echo ' class="on"';} ?> href="/mobile/">首页</a></li>
      <li><a <?php if(checkstrMenu('aboutus',$thisM)){ echo ' class="on"';} ?> href="/mobile/aboutus/jianjie.php">关于我们</a></li>
      <li><a  <?php if(checkstrMenu('project',$thisM)){ echo ' class="on"';} ?> href="/mobile/projectlist.php?type=rt">理财产品</a></li>
      <li><a  <?php if(checkstrMenu('safety',$thisM)){ echo ' class="on"';} ?> href="/mobile/safety.php">安全保障</a></li>
      <li><a  <?php if(checkstrMenu('service',$thisM)){ echo ' class="on"';} ?> href="/mobile/service/jr.php?type=about">帮助中心</a></li>
      <li><a  <?php if(checkstrMenu('user',$thisM)){ echo ' class="on"';} ?> href="/mobile/user/index.php">会员中心</a></li>
  </ul>
</div>
<script type="text/javascript">
//播放提示音
function playSound(name,str){  
$("#"+name+"").html('<embed width="0" height="0"  src="/public/Front/sound/'+str+'" autostart="true" loop="false">');
}

function total() {
$.get("/action/user.php?action=msg_Unread",function(data){
  top_msg = parseInt($("#top_msg").text()); //统计未读短信
  
  //赋值到模板
  $("#top_msg").html(data); //统计未读短信
  
  //未读站内短信提示
  if (data > 0) {
    playSound('top_playSound','msg.mp3');
  }
});
}
total();
setInterval("total()",3000000);
</script>