var th=30;
var host= "http://www.menhu.com/images/";
//var host="images/";
var _1l="<table cellpadding=0 cellspacing=0 border=0 width=100% height="+th+" style='background-color:#E3E9F4;'>";
var _searchBox=[

["网页",
_1l+
"<form id=bdf method=get onsubmit=\"return searchSubmit(this,"+
"[['http://www.baidu.com/s|word', 'tn|heimabbs'],"+
"['http://www.sogou.com/websearch/corp/search.jsp|query', 'cpc|SOGOU','pid|unibbs00'],"+
"['http://search.cn.yahoo.com/search|p', 'ei|gbk', 'pid|C5553_5_0',  'f|C5553_5_0'],"+   
"['http://www.google.com/search|q', 'hl|zh-CN','lr|lang_zh-CN','ie|gb2312']])\" target=_blank>"+
"<tr><td width=50 align=center valign=middle style='padding-bottom:0px;'>关键字</td>"+
"<td width=250><input id=word name=word type=text style='width:170px;' onMouseOver='this.focus()' onFocus='this.select()'/><select id='type'><option value=0>百度</option><option value=1>搜狗</option><option value=2>雅虎</option><option value=3>google</option></select></td>"+
"<td width=60><input type=submit value='搜索' class=button /></td>"+
"<td width=220>&nbsp;<a href=http://www.menhu.com/web/search.shtm target=_blank>搜索引擎</a> &nbsp;<a href=http://www.menhu.com/web/often.shtm target=_blank>常用查询</a> &nbsp;<a href=http://www.menhu.com/web/netall.shtm target=_blank>综合网站</a></td></tr><div id='hideFields'></div></form></table>"],
["新闻",
_1l+
"<form id=bdf method=get onsubmit=\"return searchSubmit(this,"+
"[['http://news.google.com/news|q', 'hl|zh-CN', 'ned|cn', 'ie|gb2312'],"+
"['http://iask.com/n|k'],"+
"['http://news.sogou.com/news|query'],"+
"['http://xinwen.yahoo.com.cn/search.html|p', 'source|heimabbs', 'title|'],"+
"['http://news.baidu.com/ns|word', 'tn|news', 'cl|2', 'rn|20']])\" target=_blank>"+
"<tr><td width=50 align=center valign=middle style='padding-bottom:0px;'>关键字</td>"+
"<td width=250><input id=word name=word type=text style='width:170px;' onMouseOver='this.focus()' onFocus='this.select()'/><select id='type'><option value=0>google</option><option value=1>新浪</option><option value=2>搜狗</option><option value=3>雅虎</option><option value=4>百度</option></select></td>"+
"<td width=60><input type=submit value='搜索'  class=button /></td>"+
"<td width=220>&nbsp;<a href=http://www.menhu.com/web/news.shtm target=_blank>新闻报刊</a> &nbsp;<a href=http://www.menhu.com/web/nav.shtm target=_blank>省市导航</a>  &nbsp;<a href=http://www.menhu.com/web/netall.shtm target=_blank>综合网站</a></td></tr><div id='hideFields'></div></form></table>"],
["图片",
_1l+
"<form id=bdf method=get onsubmit=\"return searchSubmit(this,"+
"[['http://image.baidu.com/i|word', 'tn|baiduimage', 'ct|201326592', 'lm|-1'],"+
"['http://image.cn.yahoo.com/search|p', 'ei|gbk', 'pid|C5553_5_0', 'f|C5553_5_0'],"+
"['http://images.google.com/images|q', 'hl|zh-CN', 'ie|gb2312']])\" target=_blank>"+
"<tr><td width=50 align=center valign=middle style='padding-bottom:0px;'>名称</td>"+
"<td width=250><input id=word name=word type=text style='width:170px;' onMouseOver='this.focus()' onFocus='this.select()'/><select id='type'><option value=0>百度</option><option value=1>雅虎</option><option value=2>google</option></select></td>"+
"<td width=60><input type=submit value='搜索'  class=button  /></td>"+
"<td width=220>&nbsp;<a href=http://www.menhu.com/web/star.shtm target=_blank>明星娱乐</a> &nbsp;<a href=http://www.menhu.com/web/tuku.shtm target=_blank>美女帅哥</a> &nbsp;<a href=http://www.menhu.com/web/cartoon.shtm target=_blank>动漫卡通</a> &nbsp;<a href=http://www.menhu.com/web/flash.shtm target=_blank>flash</a></td></tr><div id='hideFields'></div></form></table>"],
["MP3",
_1l+
"<form id=bdf method=get onsubmit=\"return searchSubmit(this,"+
"[['http://mp3.baidu.com/m|word', 'tn|baidump3', 'ct|134217728', 'lm|-1'],"+
"['http://d.sogou.com/music|query'],"+
"['http://music.cn.yahoo.com/search|p', 'ei|gbk', 'pid|C5553_5_0', 'f|C5553_5_0']])\" target=_blank>"+
"<tr><td width=50 align=center valign=middle style='padding-bottom:0px;'>歌名</td>"+
"<td width=250><input id=word name=word type=text style='width:170px;' onMouseOver='this.focus()' onFocus='this.select()'/><select id='type'><option value=0>百度</option><option value=1>搜狗</option><option value=2>雅虎</option></select></td>"+
"<td width=60><input type=submit value='搜索'  class=button  /></td>"+
"<td width=220>&nbsp;<a href=http://www.menhu.com/web/music.shtm target=_blank>音乐网站</a>&nbsp;<a href=http://www.menhu.com/web/flash.shtm target=_blank>flash</a>&nbsp; <a href=http://www.menhu.com/web/card.shtm target=_blank>图铃贺卡</a>&nbsp; <a href=http://www.menhu.com/web/shuma.shtm target=_blank>数码时尚</a></td></tr><div id='hideFields'></div></form></table>"],
["论坛",
_1l+
"<form id=bdf method=get onsubmit=\"return searchSubmit(this,"+
"[['http://search.qihoo.com/search.html|kw', 'rf|1'],"+
"['http://bbs.zhongsou.com/b|w', 'oi|0', 's|1'],"+
"['http://search.chinabbs.com/cgi-bin/search|content'],"+
"['http://search.teein.com/results.aspx|q', 'hl|gb2312']])\" target=_blank>"+
"<tr><td width=50 align=center valign=middle style='padding-bottom:0px;'>主题</td>"+
"<td width=250><input id=word name=word type=text style='width:170px;' onMouseOver='this.focus()' onFocus='this.select()'/><select id='type'><option value=0>Qihoo</option><option value=1>中搜</option><option value=2>chinabbs</option><option value=3>贴易</option><</select></td>"+
"<td width=60><input type=submit value='搜索'  class=button  /></td>"+
"<td width=220>&nbsp;<a href=http://www.menhu.com/web/bbs.shtm target=_blank>论坛站列表 &nbsp;<a href=http://club.heima.com target=_blank>黑马免费个人论坛</a></td></tr><div id='hideFields'></div></form></table>"],
["软件",
_1l+
"<form id=bdf method=get onsubmit=\"return searchSubmit(this,"+
"[['http://search2.onlinedown.net/search.asp|Keyword'],"+
"['http://www.skycn.com/search.php|ss_name', 'sor|00'],"+
"['http://www.baidu.com/s|word', 'tn|heimabbs']])\" target=_blank>"+
"<tr><td width=50 align=center valign=middle style='padding-bottom:0px;'>名称</td>"+
"<td width=250><input id=word name=word type=text style='width:170px;' onMouseOver='this.focus()' onFocus='this.select()'/><select id='type'><option value=0>华军软件</option><option value=1>天空软件</option><option value=2>百度</option></select></td>"+
"<td width=60><input type=submit value='搜索'  class=button  /></td>"+
"<td width=220>&nbsp;<a href=http://www.menhu.com/software/default.shtm target=_blank>常用软件</a> &nbsp;<a href=http://www.menhu.com/web/download.shtm target=_blank>软件下载站</a> &nbsp;<a href=http://www.menhu.com/web/it.shtm target=_blank>电脑网络</a></td></tr><div id='hideFields'></div></form></table>"],
["电影",
_1l+
"<form id=bdf method=get onsubmit=\"return searchSubmit(this,"+
"[['http://search.verycd.com/search|as_q','ie|gb2312'],"+
"['http://search3.btchina.net/btsearch.php|query','type|0']])\" target=_blank>"+
"<tr><td width=50 align=center valign=middle style='padding-bottom:0px;'>名称</td>"+
"<td width=250><input id=word name=word type=text style='width:170px;' onMouseOver='this.focus()' onFocus='this.select()'/><select id='type'><option value=0>verycd</option><option value=1>btchina</option></select></td>"+
"<td width=60><input type=submit value='搜索'  class=button  /></td>"+
"<td width=220>&nbsp;<a href=http://www.menhu.com/web/kuandai.shtm target=_blank>宽频电影</a> &nbsp;<a href=http://www.menhu.com/web/tuku.shtm target=_blank>明星娱乐</a> &nbsp;<a href=http://www.menhu.com/web/hotyule.shtm target=_blank>热点影视</a> &nbsp;<a href=http://www.menhu.com/web/bt.shtm target=_blank>BT下载</a></td></tr><div id='hideFields'></div></form></table>"],

["小说",
_1l+
"<form id=bdf method=get onsubmit=\"return searchSubmit(this,"+
"[['http://www.cmfu.com/searchbook.asp|s_book','s_class|bl_name'],"+
"['http://www.readnovel.com/search.html|keywords','searchconditions|1', 'type|title',  'ordertype|datea', 'action|result'],"+   
"['http://www.hjsm.net/listbook.php|keyword','hjtype|hjnotlib'],"+
"['http://www.baidu.com/s|word', 'tn|heimabbs']])\" target=_blank>"+
"<tr><td width=50 align=center valign=middle style='padding-bottom:0px;'>名称</td>"+
"<td width=250><input id=word name=word type=text style='width:170px;' onMouseOver='this.focus()' onFocus='this.select()'/><select id='type'><option value=0>起点中文</option><option value=1>小说阅读</option><option value=2>幻剑书盟</option><option value=3>百度</option></select></td>"+
"<td width=60><input type=submit value='搜索'  class=button  /></td>"+
"<td width=220>&nbsp;<a href=http://www.menhu.com/web/book.shtm target=_blank>小说站点</a> &nbsp;<a href=http://www.menhu.com/web/game.shtm target=_blank>休闲小游戏</a> &nbsp;<a href=http://www.menhu.com/web/art.shtm target=_blank>艺术爱好</a></td></tr><div id='hideFields'></div></form></table>"],

["购物",
_1l+
"<form id=bdf method=get onsubmit=\"return searchSubmit(this,"+
"[['http://211.100.16.156/dangdang.dll|key','catalog|','VType|3','mode|1050','FromLinkID|15626'],"+
"['http://www.joyo.com/prodsearch/prodsearch.asp|vname','source|w-90005439', 'kind|'],"+   
"['http://search1.taobao.com/browse/search_product.htm|title','search_type|auction'],"+   
"['http://search.ebay.com.cn//search/search.dll|satitle','ssPageName|h:h:advsearch:CN']])\" target=_blank>"+
"<tr><td width=40 align=center valign=middle style='padding-bottom:0px;'>名称</td>"+
"<td width=250><input id=word name=word type=text style='width:170px;' onMouseOver='this.focus()' onFocus='this.select()'/><select id='type'><option value=0>当当</option><option value=1>卓越</option><option value=2>淘宝</option><option value=3>ebay</option></select></td>"+
"<td width=60><input type=submit value='搜索'  class=button  /></td>"+
"<td width=220>&nbsp;<a href=http://www.menhu.com/web/netbuy.shtm target=_blank>购物站点</a> &nbsp;<a href=http://www.menhu.com/web/stock.shtm target=_blank>财经股市</a> &nbsp;<a href=http://www.menhu.com/web/homestock.shtm target=_blank>家庭理财</a></td></tr><div id='hideFields'></div></form></table>"],

["问答",
_1l+
"<form id=bdf method=get onsubmit=\"return searchSubmit(this,"+
"[['http://iask.sina.com.cn/search_engine/search_knowledge_engine.php|key'],"+
"['http://zhidao.baidu.com/q|word', 'ct|17', 'pn|0', 'tn|ikaslist']])\" target=_blank>"+
"<tr><td width=50 align=center valign=middle style='padding-bottom:0px;'>问题</td>"+
"<td width=250><input id=word name=word type=text style='width:170px;' onMouseOver='this.focus()' onFocus='this.select()'/><select id='type'><option value=0>新浪爱问</option><option value=1>百度知道</option></select></td>"+
"<td width=60><input type=submit value='答案'  class=button  /></td>"+
"<td width=220>&nbsp;<a href=/menhufaq.htm target=_blank><font color=#ff3300>为什么要把门户网设置为首页？</font></a></td></tr><div id='hideFields'></div></form></table>"],

["词霸",
_1l+
"<form method='GET' action='http://cb.kingsoft.com/search' target='_blank'><tr><td width=50 align=center>"+
"<a href='http://cb.kingsoft.com/search' target=_blank>"+
"<img src='"+host+"ciba.gif' border=0' alt='金山词霸' align='absmiddle'></a></td><td width=250 align='center' class='n'>"+
"<input id='word' type='text' name='s' size='31' maxlength='200' value=''>"+
"<input type='hidden' name='lang'  value='gb2312'>&nbsp;"+
"</td><td width=60><input type='submit' value='词霸搜索' class=button>"+
"</td><td width=220>&nbsp;<a href=http://www.menhu.com/web/goout.shtm target=_blank>出国留学</a> &nbsp;<a href=http://www.menhu.com/web/english.shtm target=_blank>英语学习</a> &nbsp;<a href=http://www.menhu.com/web/foreign.shtm target=_blank>国外网址</a></td></tr></form></table>"]
];
var _showSearch;
var _curSearch;
function searchBox() {
var id='s',t=_searchBox,h=th,pre=null;
var r="<table cellpadding='0' cellspacing='0' border='0' width='580' margin:0px;><tr><td style='float:left;pading:0px 0px 0px 10px;width:0px;'>"+((pre==null)?"<div style='float:left;width:25px;'></div>":pre);
var d=getCookie(id);if (d=="") d=0;
for (var i=0;i<t.length;i++) {
var tb=t[i];
r+="<div style=''  id='_"+id+i+"' class='ntag"+((i==d)?"":"0")+"'onclick=fixSearchTab("+i+")>&nbsp;"+tb[0]+"&nbsp;</div>";
}
r+="</td></tr><tr><td  ' id='_"+id+"c' class='ndb0' height="+h+">";
r+=t[d][1]; _showSearch=d; _curSearch=d;
r+="</td></tr></table>";
document.write(r);}
function resetTabs(id) {for (var i=0;;i++) {var c=document.getElementById('_'+id+i);if (c==null) break; c.className='ntag0';}}
function setSearchTab(t) {if (_showSearch==t) return;
if (t==null||t=="") t=0;
var tb=_searchBox[t];
resetTabs('s');
var c=document.getElementById('_s'+t);
if (c==null) return;
c.className='ntag';
var e=document.getElementById("_sc");e.innerHTML=_searchBox[t][1]; _showSearch=t;

}
function fixSearchTab(t) {if (t==_curSearch) return; _curSearch=t;setSearchTab(t);setCookie('s',t);}
function showSearchTab(t) {if (_curShowSearchIndex==t) return;
if (t==null||t=="") t=0;
var tb=_searchBox[t];
resetTabs('s');
var c=document.getElementById('_s'+t);
if (c==null) return;
c.className='ntag';
var e=document.getElementById("_sc");e.innerHTML=_searchBox[t][1]; _curShowSearchIndex=t;
setCookie('s',t);
}
function setSearchParam(p) {
var s=p[0],ind=s.indexOf('|'),n,v;
f=bdf;f.action=s.substring(0,ind);f.word.name=s.substring(ind+1);
var h='';
for (var i=1;i<p.length;i++) {
s=p[i],ind=s.indexOf('|');
n=s.substring(0,ind); v=s.substring(ind+1);
h+="<input type='hidden' name='"+n+"' value='" + v + "'/>";
}
hideFields.innerHTML=h;
}
function searchSubmit(f,ss) {
var s=ss[f.type.value];
if (s!=null) setSearchParam(s);
return true;}
var t='ss';
document.write("<table width='100%'  cellpadding=0 cellspacing=0 border=0 ><tr><td>"+
"<div style='width:98%;height:50px;'>");
searchBox();
document.write("</div></td></tr></table>");
