<?php

/* 首页 */

/*
* 程序名称：162100网址导航3号
* 作者：162100.com
* 邮箱：162100.com@163.com
* 网址：http://www.162100.com，http://www.2dh.cn
* ＱＱ：184830962
* 声明：禁止侵犯版权或程序转发的行为，否则我方将追究法律责任
*/


function get_i($http, $link, $column_id, $class_id, $class_name = '') {
  global $web;
  $text = '';
  if ($http = trim($http)) {
    $text .= '<a class="class_name" href="'.get_class_html($column_id, $class_id).'">'.$class_name.'</a>';
    $http_arr = @explode("\n", $http);
    foreach ($http_arr as $e) {
      $h = @explode("|", trim($e));
      $text .= '<a onclick="addM(this)" href="'.eval('return '.$link.';').'"'.($h[2] != '' ? ' class="'.$h[2].'"' : '').'>'.$h[1].'</a>';
    }
  }
  return $text;
}

function get_j_0($http, $link, $column_id, $class_id, $class_name = '', $tcolor_key) {
  global $web;
  $text = $text_ = '';
  //$sitenm = 12 + strlenth($class_name) + 12 + 12 + strlenth('&#8230;') + 12;
  $sitenm = (int)strlenth($class_name.'更多»') + 48;
  if ($http = trim($http)) {
    $text_ .= '<a class="class_title '.$tcolor_key.'" href="'.get_class_html($column_id, $class_id).'">'.$class_name.'</a>';
    $http_arr = @explode("\n", $http);
    foreach ($http_arr as $k => $e) {
      $h = @explode("|", trim($e));
      $sitenm += 12 + strlenth($h[1]) + 12;
      if ($sitenm > 760 - 22 - 25) { //22余负.class a.class_title { margin-right:25px; }
        break;
      } else {
        $text .= '<a onclick="addM(this)" href="'.@eval('return '.$link.';').'"'.($h[2] != '' ? ' class="'.$h[2].'"' : '').'>'.preg_replace('/<br(\s*\/)?>/i', '', $h[1]).'</a>';
      }
    }
    if (count($http_arr) > $k) {
      $text_ .= '<a class="class_more" href="'.get_class_html($column_id, $class_id).'">更多&raquo;</a>';
    }
  }
  return $text_.$text;
}

function get_j_1($http, $link, $column_id, $class_id, $class_name = '', $tcolor_key) {
  global $web;
  $text = $text_ = '';
  //$sitenm = 12 + strlenth($class_name) + 12 + 12 + strlenth('&#8230;') + 12;
  $sitenm = (int)strlenth($class_name.'更多»') + 48;
  $e_w = floor((760-22-(25-12)-(25-12)-$sitenm) / $web['kuz_align'][0]);
  if ($http = trim($http)) {
    $text_ .= '<a class="class_title '.$tcolor_key.'" href="'.get_class_html($column_id, $class_id).'">'.$class_name.'</a>';
    $http_arr = @explode("\n", $http);
    for ($k=0; $k<$web['kuz_align'][0]; $k++) {
      $h = @explode("|", trim($http_arr[$k]));
      $text .= '<a onclick="addM(this)" href="'.@eval('return '.$link.';').'"'.($h[2] != '' ? ' class="'.$h[2].'"' : '').' style="width:'.$e_w.'px;margin:0;">'.preg_replace('/<br(\s*\/)?>/i', '', $h[1]).'</a>';
    }
    $text_ .= '<a class="class_more" href="'.get_class_html($column_id, $class_id).'">更多&raquo;</a>';
  }
  return $text_.$text;
}

function strlenth($str) {
  $len = $w = 0;
  if (preg_match('/<img ([^>]+)>/i', $str, $m)) {
    if (preg_match('/width[^\d]+(\d+)/i', $m[1], $mm)) {
      $w = $mm[1];
    } else {
      if(preg_match('/src\s*=\s*[\"\']?([^\"\'\s\<\>]+)/i', $m[1], $mm)) {
        if (file_exists($mm[1]) && $img_info = getimagesize($mm[1])) {
          $w = $img_info[0];
        }
      }
    }
  }
  $str = strip_tags($str);
  for ($i = 0; $i < strlen($str); $i++) {
    $len += ord(substr($str, $i, 1)) > 127 ? 4.6 : 8; //14/3=4.6
  }
  return $len + $w;
}





























require ('writable/set/set.php');
if (!isset($web['area'])) {
  require ('writable/set/set_area.php');
}
if (!isset($sql)) {
  require ('writable/set/set_sql.php');
}
if (!isset($web['html'])) {
  require ('writable/set/set_html.php');
}

$text = $text_ = '';
$column_show = 0;
$link = $web['link_type'] == 1 ? '$h[3] == "js" ? $h[0] : "export.php?url=".urlencode($h[0])' : '$h[3] == "js" ? "export.php?url=".urlencode($h[0]) : $h[0]';


if (!isset($sql['db_err'])) {
  db_conn();
}
if ($sql['db_err'] == '') {
/*
  $text .= '<div id="mingz">';
  if (!function_exists('confirm_power')) {
    @ require ('readonly/function/confirm_power.php');
  }
  define('POWER', confirm_power());
  //获取我的收藏
  if (POWER > 0) {



    $result = @mysql_query('SELECT collection FROM '.$sql['pref'].''.$sql['data']['承载成员档案的表名'].' WHERE username="'.$session[0].'" LIMIT 1', $db);
    $row = @mysql_fetch_assoc($result);
    @mysql_free_result($result);
    if (is_array($row) && count($row) > 0) {
      $row['collection'] = preg_replace('/<\/?(li|span)>/i', '', $row['collection']);
      $row['collection'] = trim($row['collection']);
      $text .= !empty($row['collection']) ? '<div id="collection"><a class="class_name">收藏</a>'.$row['collection'].'</div>' : '';
    }
  }
*/
/*
  if (isset($web['mingz_align']) && !empty($web['mingz_align'])) {
    $text .= '<style>
#mingz .mingz_align { text-align:left; }
#mingz .mingz_align a, #mingz #collection a { display:inline-block !important; display:inline; zoom:1; width:126px; margin:0; text-align:center; }
#mingz .mingz_align .class_name, #mingz #collection .class_name { display:none !important; }
#collection { border-bottom:1px #E9E9E9 dotted; }
</style>';
  }
*/
  //名站对齐
  if (empty($web['mingz_align'][0])) {
  } else {
    $mingz_align = ' mingz_align';
    if (!empty($web['mingz_align'][1]) && $web['mingz_align'][1] == 'LEFT') {
      $text .= '
<style>
.mingz_align a { text-align:left; width:'.(floor((760-22) / abs($web['mingz_align'][0])) - 12).'px; margin-left:12px; }
</style>';
    }
  }

  //酷站对齐
  if (empty($web['kuz_align'][0])) {
	$f_key = 'get_j_0';
    if ($web['kuz_align'][1] != 'CENTER') {
      $text .= '
<style>
.right .class { text-align:left; }
.right .class a.class_title { margin-right:25px; }
</style>';
    }
  } else {
    if ($web['kuz_align'][0] === 4 || $web['kuz_align'][0] === 5 || $web['kuz_align'][0] === 6 || $web['kuz_align'][0] === 7) {
	  $f_key = 'get_j_1';
	  if ($web['kuz_align'][1] != 'CENTER') {
        $text .= '<style>
.right .class { text-align:left; }
.right .class a { text-align:left; height:32px; overflow:hidden; }
.right .class a.class_title { width:auto; margin-right:35px; }
.right .class a.class_more { width:auto; margin-left:15px; }
</style>'; 
	  } else {
        $text .= '<style>
.right .class a { text-align:center; height:32px; overflow:hidden; }
.right .class a.class_title { width:auto; margin-right:25px; }
.right .class a.class_more { width:auto; margin-left:25px; }
</style>'; 
	  }
    }
  }



  $text .= '<div id="mingz">';
  //获取首页版面频道
  if (!empty($web['area']['homepage'])) {
    $web['area']['homepage']['name'][2] = (is_numeric($web['area']['homepage']['name'][2]) && $web['area']['homepage']['name'][2] > 0) ? $web['area']['homepage']['name'][2] : 1000000;
    foreach ($web['area']['homepage'] as $class_id => $class) {
      if ($class_id === 'name') continue;
      $column_show ++;
      $result = @mysql_query('SELECT * FROM `'.$sql['pref'].''.$sql['data']['承载网址数据的表名'].'` WHERE column_id="homepage" AND class_id="'.$class_id.'" AND class_title NOT LIKE "栏目头栏%" AND detail_title="" AND http_name_style<>"" ORDER BY id LIMIT 1', $db); // AND class_title NOT LIKE "栏目置顶%"
      if ($row = @mysql_fetch_assoc($result)) {
        $text .= '<div class="'.(isset($class[2]) && $class[2] == 1 ? 'qiangdiao' : 'mingz'.$mingz_align.'').'">'.(!empty($row['class_priority']) ? '<div class="priority">'.$row['class_priority'].'</div>' : '').get_i($row['http_name_style'], $link, 'homepage', $class_id, $class[0]).'</div>';
      }/* else {
        $text .= '['.$web['area']['homepage'][$class_id][0].']数据导入失败！<br>';
      }*/
      @mysql_free_result($result);
      unset($row);
      unset($class_id, $class);
      if ($column_show >= $web['area']['homepage']['name'][2]) break; //显几层？
    }
  }
  //unset($web['area']['homepage']);
  $column_show = $tcolor = 0;

  $text .= '<script> document.write(myCollection); </script>';
  $text .= '</div>';

  //获取其它频道栏目
  $array_color = array('red', 'orange', 'green', 'blue');
  foreach ((array)$web['area'] as $column_id => $column) {
    if ($column_id === 'homepage') { continue; }
    if (isset($column['name'][3]) && $column['name'][3] == 1) {
      $arr_column_side[$column_id] = $column;
      continue;
    }
    $column['name'][2] = (is_numeric($column['name'][2]) && $column['name'][2] > 0) ? $column['name'][2] : 1000000;
    $tcolor_key = $array_color[($tcolor + 4) % 4].'word';
    $tcolor ++;
    $text_ .= '
  <div class="column">';
    $text_ .= '<div class="column_title"><a href="'.get_column_html($column_id).'" class="tcolor '.$tcolor_key.'">'.$column['name'][0].'</a></div>';
    foreach ((array)$column as $class_id => $class) {
      if ($class_id === 'name') continue;
      $column_show ++;
      $result = @mysql_query('SELECT * FROM `'.$sql['pref'].''.$sql['data']['承载网址数据的表名'].'` WHERE column_id="'.$column_id.'" AND class_id="'.$class_id.'" AND class_title NOT LIKE "栏目头栏%" AND detail_title="" AND http_name_style<>"" ORDER BY id LIMIT 1', $db); // AND class_title NOT LIKE "栏目置顶%"
      if ($row = @mysql_fetch_assoc($result)) {
        $text_ .= '<div class="class'.(isset($class[2]) && $class[2] == 1 ? ' qiangdiao' : ' kuz_align').'">';
        $text_ .= $f_key($row['http_name_style'], $link, $column_id, $class_id, $class[0], $tcolor_key);
        $text_ .= '</div>';
      }/* else {
        $text_ .= '['.$web['area'][$column_id][$class_id][0].']数据导入失败！<br>';
      }*/
      @mysql_free_result($result);
      unset($row);
      unset($column[$class_id]);
      unset($class_id, $class);
      if ($column_show >= $column['name'][2]) break; //显几层？
    }
    unset($column['name']);
    $_sy = count($column);
    if ($_sy > 0) {
      $sss = 0;
      $text_ .= '
      <div class="class_title_other">';
      foreach ($column as $class_id => $class) {
        $sss++;
        $text_ .= '<a href="'.get_class_html($column_id, $class_id).'">'.$class[0].'</a>'.($sss == $_sy ? '' : ' | ').'';
        unset($class_id, $class);
      }
      $text_ .= '</div>';
    }
    $text_ .= '</div>';
    unset($column_id, $column);
    $column_show = 0;
  }
} else {
  die($sql['db_err']);
}

@mysql_close();


?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $web['sitename'], $web['code_author']; ?></title>
<meta name="description" content="<?php echo $web['description']; ?>">
<meta name="keywords" content="<?php echo $web['keywords']; ?>">
<base target="_blank" />
<link href="writable/css/<?php echo $web['cssfile']; ?>/style.css" rel="stylesheet" type="text/css" id="my_style">
  <style>
  .v162100 { z-index:10; position:relative; width:60px; display:inline-block !important; display:inline; zoom:1; }
   #v162100 { width:54px; height:22px; text-align:center; overflow:hidden; position:absolute; top:-16px; left:6px; z-index:50; margin:0; padding:0; margin:0; border:1px #AA9E93 dotted; }
   </style>
<script type="text/javascript" language="javascript" src="readonly/js/main.js"></script>
<script type="text/javascript" language="javascript">
<!--
var nowVersion='<?php @ require ('writable/require/browse_reload.txt'); ?>';
-->
</script>
</head>
<body>
<iframe id="addPFrame" name="addPFrame" style="display:none"></iframe>
<div id="top_title_index">
  <?php $v162100='简洁版<br /><a href="index_menhu.php">经典版</a><br /><a href="index_search.php">搜索版</a>';  @ include ('readonly/require/head.php'); ?>
  <div id="top_title"><a href="./write_newsite.php" class="top_title_other">网站加入</a><a href="./member.php?get=collection" class="top_title_other">自定义网址</a><a href="./" id="top_title_is">首页</a></div>
</div>
<div id="ad_top"><script type="text/javascript" language="JavaScript" src="writable/ad/ad_top.js"></script></div>
<div class="body">
  <div class="right">
    <?php echo $text; ?>
    <span class="ad" id="ad_central"><script type="text/javascript" language="JavaScript" src="writable/ad/ad_central.js"></script></span>
    <?php echo $text_; ?>
  </div>
  <div class="left">
    <?php
unset($text);
$text = '';
if (count($arr_column_side) > 0) :
  foreach ($arr_column_side as $column_id => $column) {
    $text .= '
    <div id="column_'.$column['name'][1].'" class="column"><div class="column_title"><a href="'.get_column_html($column_id).'">'.$web['area'][$column_id]['name'][0].'</a></div>
      <div class="class">';
    foreach ((array)$column as $class_id => $class) {
      if ((string)$class_id !== 'name') {
        $text .= '<a'.((string)$column_id === 'mingz' ? ' href="class_current.php?column_id='.$column_id.'&class_id='.$class_id.'" onclick="addSubmitSafe(1);$(\'addCFrame\').style.display=\'block\';" target="addCFrame"' : ' href="'.get_class_html($column_id, $class_id).'"').'>'.$class[0].'</a>';
      }
      unset($class_id, $class);
    }
    $text .= '
      </div>
    </div>
';

    unset($column_id, $column);
  }

endif;

unset($arr_column_side);
echo $text;
unset($text);

?>
    <div class="column column_side"><div class="column_title"><a href="write_newsite.php" class="send">网站加入</a>新录网站</div>
      <ul class="class" id="newsite">载入中…
        <?php //@ include ('readonly/run/get_newsite.php'); ?>
      </ul>
    </div>
    <?php @ include ('writable/require/newinfo.php'); ?>
    <span class="ad" id="ad_side"><script type="text/javascript" language="JavaScript" src="writable/ad/ad_side.js"></script></span>
  </div>
  <div style="clear:both; height:0px; overflow:hidden;">&nbsp;</div>
</div>
<div class="body">
  <div class="bottom">
    <script type="text/javascript" language="JavaScript">
<!--
function confirmWhat(theForm){if(theForm.kw2.value!=''){theForm.submit();}else{alert('搜索关键词不能空！');return false;}}

-->
</script>
    <?php echo file_exists('writable/js/referrer_top.js') ? '<div class="bottom_in"><span class="bottom_title">最新点入</span><script> document.write(\'<\'+\'sc\'+\'ript language="javascript" src="writable/js/referrer_top.js?\'+new Date().getTime()+\'" type="text/javascript"></\'+\'sc\'+\'ript>\'); </script></div>' : ''; ?>
    <form id="f2" name="f2" action="search.php?is=wangye" method="get" target="_blank" onsubmit="return confirmWhat(this);">
      <input name="is" id="is2" type="hidden" value="wangye" /><input name="go" id="go2" type="hidden" value="http://www.baidu.com/s?ie=utf-8&wd=" />
      <input name="kw" id="kw2" type="text" maxlength="100" />
      <button id="su2" type="submit" onclick="this.form.action='search.php';">集成搜索</button>
      <input name="get" type="hidden" value="search_site" />
      <button id="su2" type="button" onclick="this.form.action='member.php?get=search_site';confirmWhat(this.form);">站内搜索</button>
    </form>
  </div>
</div>
<span class="ad" id="ad_bottom_index"><script type="text/javascript" language="JavaScript" src="writable/ad/ad_bottom_index.js"></script></span>
<?php @ include ('writable/require/foot_index.php'); ?>
<?php @ include ('writable/require/statistics.txt'); ?>

<!--bottom-->
<script type="text/javascript" language="JavaScript">
<!--
/*
function addWeather(){
  $('weather_show').innerHTML=$('weather').innerHTML;
}
if(document.all){
  window.attachEvent('onload',addWeather);
}else{
  window.addEventListener('load',addWeather,false);
}
*/
-->
</script>



</body>
<script type="text/javascript" language="javascript">
<!--
var lunarInfo=new Array(0x04bd8,0x04ae0,0x0a570,0x054d5,0x0d260,0x0d950,0x16554,0x056a0,0x09ad0,0x055d2,0x04ae0,0x0a5b6,0x0a4d0,0x0d250,0x1d255,0x0b540,0x0d6a0,0x0ada2,0x095b0,0x14977,0x04970,0x0a4b0,0x0b4b5,0x06a50,0x06d40,0x1ab54,0x02b60,0x09570,0x052f2,0x04970,0x06566,0x0d4a0,0x0ea50,0x06e95,0x05ad0,0x02b60,0x186e3,0x092e0,0x1c8d7,0x0c950,0x0d4a0,0x1d8a6,0x0b550,0x056a0,0x1a5b4,0x025d0,0x092d0,0x0d2b2,0x0a950,0x0b557,0x06ca0,0x0b550,0x15355,0x04da0,0x0a5d0,0x14573,0x052d0,0x0a9a8,0x0e950,0x06aa0,0x0aea6,0x0ab50,0x04b60,0x0aae4,0x0a570,0x05260,0x0f263,0x0d950,0x05b57,0x056a0,0x096d0,0x04dd5,0x04ad0,0x0a4d0,0x0d4d4,0x0d250,0x0d558,0x0b540,0x0b5a0,0x195a6,0x095b0,0x049b0,0x0a974,0x0a4b0,0x0b27a,0x06a50,0x06d40,0x0af46,0x0ab60,0x09570,0x04af5,0x04970,0x064b0,0x074a3,0x0ea50,0x06b58,0x055c0,0x0ab60,0x096d5,0x092e0,0x0c960,0x0d954,0x0d4a0,0x0da50,0x07552,0x056a0,0x0abb7,0x025d0,0x092d0,0x0cab5,0x0a950,0x0b4a0,0x0baa4,0x0ad50,0x055d9,0x04ba0,0x0a5b0,0x15176,0x052b0,0x0a930,0x07954,0x06aa0,0x0ad50,0x05b52,0x04b60,0x0a6e6,0x0a4e0,0x0d260,0x0ea65,0x0d530,0x05aa0,0x076a3,0x096d0,0x04bd7,0x04ad0,0x0a4d0,0x1d0b6,0x0d250,0x0d520,0x0dd45,0x0b5a0,0x056d0,0x055b2,0x049b0,0x0a577,0x0a4b0,0x0aa50,0x1b255,0x06d20,0x0ada0);var Gan=new Array("甲","乙","丙","丁","戊","己","庚","辛","壬","癸");var Zhi=new Array("子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥");var now=new Date();var SY=now.getFullYear();var SM=now.getMonth();var SD=now.getDate();function cyclical(num){return(Gan[num%10]+Zhi[num%12])}function lYearDays(y){var i,sum=348;for(i=0x8000;i>0x8;i>>=1)sum+=(lunarInfo[y-1900]&i)?1:0;return(sum+leapDays(y))}function leapDays(y){if(leapMonth(y))return((lunarInfo[y-1900]&0x10000)?30:29);else return(0)}function leapMonth(y){return(lunarInfo[y-1900]&0xf)}function monthDays(y,m) { return( (lunarInfo[y-1900] & (0x10000>>m))? 30: 29 )}function Lunar(objDate){var i,leap=0,temp=0;var baseDate=new Date(1900,0,31);var offset=(objDate-baseDate)/86400000;this.dayCyl=offset+40;this.monCyl=14;for(i=1900;i<2050&&offset>0;i++){temp=lYearDays(i);offset-=temp;this.monCyl+=12}if(offset<0){offset+=temp;i--;this.monCyl-=12}this.year=i;this.yearCyl=i-1864;leap=leapMonth(i);this.isLeap=false;for(i=1;i<13&&offset>0;i++){if(leap>0&&i==(leap+1)&&this.isLeap==false){--i;this.isLeap=true;temp=leapDays(this.year)}else{temp=monthDays(this.year,i)}if(this.isLeap==true&&i==(leap+1))this.isLeap=false;offset-=temp;if(this.isLeap==false)this.monCyl++}if(offset==0&&leap>0&&i==leap+1)if(this.isLeap){this.isLeap=false}else{this.isLeap=true;--i;--this.monCyl}if(offset<0){offset+=temp;--i;--this.monCyl}this.month=i;this.day=offset+1}function YYMMDD(){return('<span class="YMD"><span class="YM">'+(SM+1)+'月</span><b>'+SD+'</b></span>')}function weekday(){var day=new Array("日","一","二","三","四","五","六");return('<font class="WEEK">星期<font'+(now.getDay()==0||now.getDay()==6?' class="WS"':'')+'>'+day[now.getDay()]+'</font></font>')}function cDay(m,d){var nStr1=new Array('日','一','二','三','四','五','六','七','八','九','十');var nStr2=new Array('初','十','廿','卅','卌');var s;if(m>10){s='十'+nStr1[m-10]}else{s=nStr1[m]}s+='月';switch(d){case 10:s+='初十';break;case 20:s+='二十';break;case 30:s+='三十';break;default:s+=nStr2[Math.floor(d/10)];s+=nStr1[d%10]}return(s)}function solarDay2(){var sDObj=new Date(SY,SM,SD);var lDObj=new Lunar(sDObj);var cl='<font class="MOON">';var tt=''+cDay(lDObj.month,lDObj.day);return(cl+tt+'</font>')}function solarDay3(){var sTermInfo=new Array(0,21208,42467,63836,85337,107014,128867,150921,173149,195551,218072,240693,263343,285989,308563,331033,353350,375494,397447,419210,440795,462224,483532,504758);var solarTerm=new Array("小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至");var lFtv=new Array("0101*春节","0115 元宵节","0505 端午节","0707 七夕情人节","0815 中秋节","0909 重阳节","1208 腊八节","1223 小年","0100*除夕");var sFtv=new Array("0101*元旦","0214 情人节","0308 妇女节","0312 植树节","0315 消费者权益日","0401 愚人节","0501 劳动节","0504 青年节","0512 护士节","0601 儿童节","0701 建党节 香港回归纪念","0801 建军节","0808 父亲节","0910 教师节","0928 孔子诞辰","1001*国庆节","1006 老人节","1024 联合国日","1220 澳门回归纪念","1225 圣诞节","1226 毛主席诞辰");var sDObj=new Date(SY,SM,SD);var lDObj=new Lunar(sDObj);var lDPOS=new Array(3);var festival='',solarTerms='',solarFestival='',lunarFestival='',tmp1,tmp2;for(i in lFtv)if(lFtv[i].match(/^(\d{2})(.{2})([\s\*])(.+)$/)){tmp1=Number(RegExp.$1)-lDObj.month;tmp2=Number(RegExp.$2)-lDObj.day;if(tmp1==0&&tmp2==0)lunarFestival=RegExp.$4}for(i in sFtv)if(sFtv[i].match(/^(\d{2})(\d{2})([\s\*])(.+)$/)){tmp1=Number(RegExp.$1)-(SM+1);tmp2=Number(RegExp.$2)-SD;if(tmp1==0&&tmp2==0)solarFestival=RegExp.$4}tmp1=new Date((31556925974.7*(SY-1900)+sTermInfo[SM*2+1]*60000)+Date.UTC(1900,0,6,2,5));tmp2=tmp1.getUTCDate();if(tmp2==SD)solarTerms=solarTerm[SM*2+1];tmp1=new Date((31556925974.7*(SY-1900)+sTermInfo[SM*2]*60000)+Date.UTC(1900,0,6,2,5));tmp2=tmp1.getUTCDate();if(tmp2==SD)solarTerms=solarTerm[SM*2];if(solarTerms==''&&solarFestival==''&&lunarFestival=='')festival='';else festival='<font class="FES">'+solarTerms+' '+solarFestival+' '+lunarFestival+'</font>';return festival}
try{if ($('date_time') != null) { $('date_time').innerHTML='<a href="wannianli.html" title="查看万年历">'+YYMMDD()+' <span class="YMD_">'+weekday()+'<br id="date_br" />'+solarDay2()+' '+solarDay3()+'</span></a>'; }}catch(err){}
-->
</script>
<script type="text/javascript" language="JavaScript">
<!--
function addOther() {
  doXMLHTTP('collection', 'member.php?post=member_collection_show');
  doXMLHTTP('weather', 'readonly/weather/getweather.php');
  doXMLHTTP('newsite', 'readonly/run/get_newsite.php?path=../../');
}
if (document.all) {
	window.attachEvent('onload', addOther);
} else {
	window.addEventListener('load', addOther, false);
}

-->
</script>
<script type="text/javascript" language="javascript" src="readonly/js/opensug.js"></script>
<script type="text/javascript" language="javascript" src="readonly/js/expires.php"></script>
</html>
