<!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">
<!--<?php
$thiscityname = $city_DB[name][$city_id] ? $city_DB[name][$city_id] : "&nbsp;";
$GuideFid[$fid]=str_replace("<a href='$webdb[www_url]' class='guide_menu'>&gt;首页</a>","",$GuideFid[$fid]);
$fupId=intval($fupId);
$topMenu[$fupId]='ck';
$bodyondblclick = (function_exists('label_array')&&$web_admin&&!$MakeIndex) ?"dblclick_label();":"";
print <<<EOT
-->
<head>
<title>$titleDB[title]</title>
<link rel="stylesheet" type="text/css" href="$webdb[www_url]/images/red/style.css">
<link rel="stylesheet" type="text/css" href="$webdb[www_url]/images/default/cms.css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="keywords" content="$titleDB[keywords]">
<meta name="description" content="$titleDB[description]">
</head>
<SCRIPT LANGUAGE="JavaScript">
<!--
function killErr(){
	return true;
}
window.onerror=killErr;
//-->
</SCRIPT>
<!--
EOT;
if($webdb[cookieDomain]){print <<<EOT
-->
<SCRIPT LANGUAGE="JavaScript">
//解决不同域名的框架跨域问题
document.domain = "$webdb[cookieDomain]";
</SCRIPT>
<!--
EOT;
}print <<<EOT
-->
<SCRIPT LANGUAGE="JavaScript" src="$webdb[www_url]/images/default/default.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="$webdb[www_url]/images/default/swfobject.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="$webdb[www_url]/images/default/jquery-1.2.6.min.js"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" src="$webdb[www_url]/images/default/jscroll.js"></SCRIPT>
<body ondblclick="$bodyondblclick">
<div class="TopContainer">
	<div class="top_login">
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write('<span id="top_loginer">$Load_Msg</span>');
document.write('<div style="display:none;"><iframe src="$webdb[www_url]/do/hack.php?hack=login&iframeID=top_loginer&styletype=red" width=0 height=0></iframe></div>');
//-->
</SCRIPT>    
    </div>
    <div class="Time"> 
<script language="JavaScript"> 
<!---
today=new Date();
var hours = today.getHours();
var minutes = today.getMinutes();
var seconds = today.getSeconds();
var timeValue = "<FONT COLOR=black>" + ((hours >12) ? hours -12 :hours); timeValue += ((minutes < 10) ? "<BLINK><FONT COLOR=black>:</FONT></BLINK>0" : "<BLINK><FONT COLOR=black>:</FONT></BLINK>") + minutes+"</FONT></FONT>";
timeValue += (hours >= 12) ? " 下午 " : " 上午 ";
function initArray(){
this.length=initArray.arguments.length
for(var i=0;i<this.length;i++)
this[i+1]=initArray.arguments[i]  }
var d=new initArray("<font color=RED>星期日","<font color=black>星期一","<font color=black>星期二","<font color=black>星期三","<font color=black>星期四","<font color=black>星期五","<font color=red>星期六"); document.write("<font color=black>",today.getFullYear(),"<font color=black>年","<font color=black>",today.getMonth()+1,"<font color=black>月","<font color=black>",today.getDate(),"<font color=black>日 </FONT>",d[today.getDay()+1]," ",timeValue);  //-->
</script>
       <a class=top onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('$webdb[www_url]/');" href="#">设为首页</a> 
       <a class=top   href="javascript:window.external.AddFavorite('$webdb[www_url]/','$webdb[webname]')">加入收藏</a> 
	</div>
</div><CENTER><SCRIPT LANGUAGE='JavaScript' src='$webdb[www_url]/a_d/a_d_s.php?job=js&ad_id=AD_9724'></SCRIPT></CENTER>
<div class="LogoContainer">
	<div class="logo"><a href="$webdb[www_url]"><img src="$webdb[www_url]/images/red/logo.gif"/></a></div>
    <div class="changecity">
        <span class="city">{$thiscityname}</span>
        <span class="change">
<!--
EOT;
if(count($city_DB[name])>1){print <<<EOT
-->
		<a href="$webdb[www_url]/allcity.php">[切换城市]</a>
<!--
EOT;
}print <<<EOT
-->
		</span>      
    </div>
    <div id="topsearch">
      <form name="topsearchform" id="topsearchform" target="_blank" method="post" action='$webdb[www_url]/f/search.php?action=search' onsubmit="return checkpost();">
        <div class="searchtype">
            <a href="javascript:;" onclick="selectsearcha(this,'fenlie','分类')" class="choose">分类</a>
            <a href="javascript:;" onclick="selectsearcha(this,'shop','商品')">商品</a> 
            <a href="javascript:;" onclick="selectsearcha(this,'news','资讯')">资讯</a>
            <a href="javascript:;" onclick="selectsearcha(this,'tg','团购')">团购</a>
            <a href="javascript:;" onclick="selectsearcha(this,'hy','商家')">商家</a> 
            <a href="javascript:;" onclick="selectsearcha(this,'coupon','促销')">促销</a>
            <a href="javascript:;" onclick="selectsearcha(this,'hr','招聘')">招聘</a>
            </div>
        <div class="searchform">
          <span class="input">
          <input name="keyword" type="text" value="请输入您要查找的内容" onClick="if(this.value.indexOf('请输入您要查找的')!=-1)this.value=''" id="topsearchkeyword"/>
          </span>
          <span class="submit"><input type="submit" name="Submit" value="搜一下 "/></span>
        </div>
      </form>
      </div>
<SCRIPT LANGUAGE="JavaScript">
<!--
function selectsearcha(theA,word,keyword){
	obj=document.getElementById("topsearch").getElementsByTagName("a");
	for(var i=0;i< obj.length;i++ ){
		obj[i].className='';
	}
	theA.className='choose';
	if (document.getElementById("topsearchkeyword").value=='')
	{
		document.getElementById("topsearchkeyword").value='请输入您要查找的'+keyword+'内容';
	}
	if (word=='fenlie')
	{
		document.getElementById("topsearchform").action="$webdb[www_url]/f/search.php?action=search";
	}
	else if (word=='shop')
	{
		document.getElementById("topsearchform").action="$webdb[www_url]/shop/search.php?action=search";
	}
	else if (word=='news')
	{
		document.getElementById("topsearchform").action="$webdb[www_url]/news/search.php?action=search";
	}
	else if (word=='tg')
	{
		document.getElementById("topsearchform").action="$webdb[www_url]/tg/search.php?action=search";
	}
	else if (word=='hy')
	{
		document.getElementById("topsearchform").action="$webdb[www_url]/hy/search.php?action=search";
	}
	else if (word=='coupon')
	{
		document.getElementById("topsearchform").action="$webdb[www_url]/coupon/search.php?action=search";
	}
	else if (word=='hr')
	{
		document.getElementById("topsearchform").action="$webdb[www_url]/hr/search.php?action=search";
	}	
}
function checkpost(){
	if (document.getElementById("topsearchkeyword").value=='')
	{
		alert('关键字不能为空!');
		return false;
	}
}
//-->
</SCRIPT> 
</div>
<div id="MainMenu">
	<ul>
<!--
EOT;
$choose_class[intval($webdb['module_id'])]="class=\"choose\"";
$detail=explode("\r\n",$webdb[guide_word]);
foreach($detail AS $key=>$value){
if(!$value)continue;
list($Hname,$Hurl,$Hblank,$Hcolor,$Hlid,$link)=explode("|",$value);
if(ereg("^\/",$Hurl)){$Hurl="$webdb[www_url]$Hurl";}elseif(!ereg("://",$Hurl)){$Hurl="$webdb[www_url]/$Hurl";}
$Hblank=$Hblank?"_blank":'';
$Hcolor=$Hcolor?"$Hcolor":'';
print <<<EOT
-->		
		<li {$choose_class[$link]} onmouseover="click_head_menu(this)"><a href="$Hurl" target="$Hblank" style="color:$Hcolor;">{$Hname}</a></li>
<!--
EOT;
}print <<<EOT
-->
	</ul>
	<div id="TopPostInfo"><a href="$webdb[www_url]/f/post.php" target="_blank">免费发布信息</a></div>
<SCRIPT LANGUAGE="JavaScript">
<!--
function click_head_menu(obj){
	oo=document.getElementById("MainMenu").getElementsByTagName('li');
	for(var i=0;i<oo.length;i++){
		oo[i].className='';
	}
	obj.className='choose';
}
//-->
</SCRIPT>
</div>
<SCRIPT LANGUAGE="JavaScript">
<!--//目的是为了做风格方便
document.write('<div class="wrap" onmouseover=hiddendiv("listselect")>');
//-->
</SCRIPT>
<!--
EOT;
if($GuideFid[$fid]){
print <<<EOT
-->
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="nav_guide">
  <tr> 
    <td><div class="t1">当前位置：</div><div class="t2"><a href="$Mdomain/">首页</a> $GuideFid[$fid] </div></td>
  </tr>
</table>
<!--
EOT;
}
?>
-->

