document.writeln("<div id=\"top\">");
document.writeln("  <div id=\"top4\">");
document.writeln("    <div id=\"top1\"><a href=\"http:\/\/www.soutianjin.com\"><img src=\"http:\/\/img.soutianjin.com\/logo.gif\" width=\"247\" alt=\"搜天津\" height=\"61\" border=\"0\" \/><\/a><\/div>");
document.writeln("    <div id=\"top2\">");
if(!Get()){
document.writeln("	<a href=\"http:\/\/www.soutianjin.com\/userReg.shtml?f=step1\">免费注册<\/a>");
document.writeln("	&nbsp;&nbsp;&nbsp; ");
document.writeln("	<a href=\"http:\/\/www.soutianjin.com\/userLogin.shtml\">登录<\/a>");
}else{
document.writeln(getcookie("userName")+"&nbsp;&nbsp;您好");
document.writeln("	<a href=\"http:\/\/www.soutianjin.com\/u\/index.shtml\">进入会员中心<\/a>");
document.writeln("	&nbsp;&nbsp;&nbsp; ");
document.writeln("	<a href=\"http:\/\/www.soutianjin.com\/u\/logout.shtml\">退出<\/a>");
}
document.writeln("	&nbsp;&nbsp; |&nbsp;&nbsp; <a href=\"http:\/\/bar.soutianjin.com\">贴吧<\/a>&nbsp;&nbsp;&nbsp;<a href=\"http:\/\/know.soutianjin.com\">百事通<\/a>&nbsp;&nbsp; |&nbsp;&nbsp; <a href=\"http:\/\/www.soutianjin.com\/send.shtml\">免费发布<\/a>&nbsp;&nbsp; | &nbsp;&nbsp;<a href=\"http:\/\/www.soutianjin.com\/easy.shtml\">便民<\/a><\/div>");
document.writeln("  <\/div>");
document.writeln("  <div id=\"top3\"><div id=\"dhys\" style=\"float:left\">");
document.writeln("        <ul>");
document.writeln("          <li class=\"dhljys1\" ><a class=\"ljys0\" onmousemove=\"this.className=\'ljys1\'\" onmouseout=\"this.className=\'ljys0\'\" href=\"http:\/\/www.soutianjin.com\">搜天津<\/a><\/li>");
document.writeln("          <li> | <\/li>");
document.writeln("          <li class=\"dhljys3\"><a class=\"ljys0\" onmousemove=\"this.className=\'ljys1\'\" onmouseout=\"this.className=\'ljys0\'\" href=\"http:\/\/shop.soutianjin.com\">分类<\/a><\/li>");
document.writeln("          <li> | <\/li>");
document.writeln("          <li class=\"dhljys3\"><a class=\"ljys0\" onmousemove=\"this.className=\'ljys1\'\" onmouseout=\"this.className=\'ljys0\'\" href=\"http:\/\/job.soutianjin.com\">招聘<\/a><\/li>");
document.writeln("          <li> | <\/li>");
document.writeln("          <li class=\"dhljys2\"><a class=\"ljys0\" onmousemove=\"this.className=\'ljys1\'\" onmouseout=\"this.className=\'ljys0\'\" href=\"http:\/\/old.soutianjin.com\">二手市场<\/a><\/li>");
document.writeln("          <li> | <\/li>");
document.writeln("          <li class=\"dhljys3\"><a class=\"ljys0\" onmousemove=\"this.className=\'ljys1\'\" onmouseout=\"this.className=\'ljys0\'\" href=\"http:\/\/house.soutianjin.com\">住房<\/a><\/li>");
document.writeln("          <li> | <\/li>");
document.writeln("          <li class=\"dhljys3\"><a class=\"ljys0\" onmousemove=\"this.className=\'ljys1\'\" onmouseout=\"this.className=\'ljys0\'\" href=\"http:\/\/www.soutianjin.com\/map.shtml\">地图<\/a><\/li>");
document.writeln("          <li> | <\/li>");
document.writeln("          <li class=\"dhljys2\"><a class=\"ljys0\" onmousemove=\"this.className=\'ljys1\'\" onmouseout=\"this.className=\'ljys0\'\" href=\"http:\/\/business.soutianjin.com\">企业名录<\/a><\/li>");
document.writeln("          <li> | <\/li>");
document.writeln("          <li class=\"dhljys3\"><a class=\"ljys0\" onmousemove=\"this.className=\'ljys1\'\" onmouseout=\"this.className=\'ljys0\'\" href=\"http:\/\/www.soutianjin.com\/easy.shtml\">便民<\/a><\/li>");
document.writeln("          <li> | <\/li>");
document.writeln("          <li class=\"dhljys4\"><a class=\"ljys0\" onmousemove=\"this.className=\'ljys1\'\" onmouseout=\"this.className=\'ljys0\'\" href=\"http:\/\/happy.soutianjin.com\">搜索一把抓<\/a><\/li>");
document.writeln("        <\/ul>");
document.writeln("      <\/div>");
document.writeln("    <form id=\"searchForm\" name=\"searchForm\" style=\"width:280px; float:right; margin-top:5px\" method=\"get\" action=\"http:\/\/www.soutianjin.com\/search.shtml\" onsubmit=\"return checkSearch();\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("  <tr>");
document.writeln("    <td width=\"83%\"><input type=\"text\" name=\"key\" class=\"wbk1\" id=\"key\" \/><input name=\"to\" type=\"hidden\" id=\"to\" value=\"shop\" \/><\/td>");
document.writeln("    <td width=\"17%\"><input type=\"image\" src=\"http:\/\/img.soutianjin.com\/site\/ws_03.jpg\" style=\"cursor:hand;\" \/><\/td>");
document.writeln("  <\/tr>");
document.writeln("<\/table><\/form>");
document.writeln("  <\/div>");
document.writeln("<\/div>");
document.writeln("<script language=\"javascript\">");
document.writeln("function checkSearch(){");
document.writeln("if(document.searchForm.key.value==\'\'||document.searchForm.key.value==\'请输入你要搜索的内容\'){");
document.writeln("alert(\"请输入关键字\");");
document.writeln("return false;");
document.writeln("}");
document.writeln("return true;");
document.writeln("}");
document.writeln("<\/script>");

function   Get(){　     
  　　var   cookieString   =   new   String(document.cookie)     
  　　var   cookieHeader   =   "userName="     
  　　var   beginPosition   =   cookieString.indexOf(cookieHeader)     
  　　if   (beginPosition   !=   -1)
  　　　　return true;   
  　　else     
  　　　　return false;
  } 
  
function getcookieval(offset)  
{
var endstr = document.cookie.indexOf (";", offset); 
if (endstr == -1) 
endstr = document.cookie.length; 
return unescape(document.cookie.substring(offset, endstr)); 
} 
function getcookie(name)  
{
var arg = name + "="; 
var alen = arg.length; 
var clen = document.cookie.length; 
var i = 0; 
while (i < clen) { 
var j = i + alen; 
if (document.cookie.substring(i, j) == arg) 
return getcookieval(j); 
i=i+1; 
} 
return null; 
}

