<div id="top">
  <span id="weather"><a href="weather.php?area=china">天气预报载入中…</a></span>
  <span id="date_time"><a href="wannianli.html">日历载入中…</a></span>
  <span id="mylog">
<?php
$lv0 = $lv1 = '';
if (is_array($web['login_key']) && count($web['login_key']) > 0) {
  $lv1 .= '&&(';
  foreach ($web['login_key'] as $lv) {
    if ($web['login_key_show'] == 1)
      $lv0 .= '<a href="javascript:void(0);" onclick="toQzoneLogin(\\\''.$lv.'\\\');return false;" title="用'.@file_get_contents('login_key/'.$lv.'/title.txt').'帐号登录"><img src="readonly/images/'.$lv.'.png" width="16" height="16" /></a> ';
    $lv1 .= 'us[4]==\''.$lv.'\'||';
    unset($lv);
  }
  $lv1 = rtrim($lv1, '|').')';
}
?>
<script>
  us = getCookie('usercookie').toString().split('|');
  if (us && us.length >= 4) {
  	document.write('' + ((us[4] != 'undefined' && us[4] <?php echo $lv1; ?> ) ? '<a href="member_current.php" onclick="addSubmitSafe();$(\'addCFrame\').style.display=\'block\';" target="addCFrame"><b><img src="readonly/images/' + us[4] + '.png" width="16" height="16" /> ' + us[0] + '</b> 管理</a>' : '<a href="member_current.php" onclick="addSubmitSafe();$(\'addCFrame\').style.display=\'block\';" target="addCFrame" title="进入用户中心\n进行个性化管理"><b>' + us[0] + '</b> 管理</a> <a href="member_current.php?get=collection" onclick="addSubmitSafe();$(\'addCFrame\').style.display=\'block\';" target="addCFrame">收藏</a> <a href="member_current.php?get=memory_website" onclick="addSubmitSafe();$(\'addCFrame\').style.display=\'block\';" target="addCFrame">已浏览</a>') + ' <a href="member.php?post=login&act=logout" onclick="addSubmitSafe();$(\'addCFrame\').style.display=\'block\';" target="addCFrame">退出</a>');
    var myCollection = '<div id="collection"><a class="class_name">收藏</a><a style="color:#DDDDDD">我的收藏载入中…</a></div>';
  } else {
  	document.write('<b><?php echo $lv0; ?><a href="login_current.php?location='+location.href+'" onclick="addSubmitSafe();$(\'addCFrame\').style.display=\'block\';" target="addCFrame" title="进入用户控制台\n进行个性化管理">登陆</a></b> <a id="member_current" href="member_current.php" onclick="addSubmitSafe();$(\'addCFrame\').style.display=\'block\';" target="addCFrame">我的后台</a>');
    var myCollection = '';
  }
</script></span>

  <span class="home"><a id="home" class="home_sc" href="#" onclick="addFavor();return false;" title="收藏本页">收藏本页</a><a id="home" class="home_ss" href="sethomepage.php" onclick="try{this.style.behavior='url(#default#homepage)';this.setHomePage('<?php echo trim($web['sitehttp'], '/').$_SERVER['REQUEST_URI']; ?>');return(false);}catch(e){}" title="设为首页">设为首页</a> <span id="home" class="v162100"><span id="v162100" onmouseover="this.style.height='auto';this.style.backgroundColor='#FFFFFF';" onmouseout="this.style.height='22px';this.style.backgroundColor='transparent';"><?php echo $v162100; ?></span></span></span>
<?php
unset($lv0, $lv1);
?>
</div>
<div id="head_out">
  <div id="head">
    <div id="logo"><a href="./"><img src="writable/images/logo.png" alt="<?php echo $web['sitename2']; ?> - 欢迎您" /></a></div>
    <div id="search">
    <script> var defaultBayId = '<?php echo $web['search_bar']; ?>'; </script>
    <script type="text/javascript" language="javaScript" src="writable/js/search_hot.js"></script>
    <script type="text/javascript" language="javaScript" src="writable/js/search.js"></script>
    <script> addsearchBar(search_default_type, search_default_id); </script>
    </div><div style="clear:both; height:0px; overflow:hidden;">&nbsp;</div>
  </div><div style="clear:both; height:0px; overflow:hidden;">&nbsp;</div>
</div>