
function qs(el)
{
	if (window.RegExp && window.encodeURIComponent) 
		{
		var ue=el.href;
		var qe= encodeURI(ue);
		window.status=qe;
		el.href=qe;
		}
		return el.href;
}
//预先载入背景图片
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

var hotsearch_htm = new Array( );//热门搜索
var searchform_action=new Array( );//表单action
var submit_value=new Array( );//按钮标题

//热门搜索
hotsearch_htm[1]="热门搜索：<a href='http://search.vlongbiz.com/sell/坯布.html'>坯布</a>、<a href='http://search.vlongbiz.com/sell/诺基亚.html'>诺基亚</a>、<a href='http://search.vlongbiz.com/sell/手机.html'>手机</a>、<a href='http://search.vlongbiz.com/sell/短信.html'>短信</a>、<a href='http://search.vlongbiz.com/sell/铝.html'>铝</a>、<a href='http://search.vlongbiz.com/sell/铝塑板.html'>铝塑板</a>、<a href='http://search.vlongbiz.com/sell/磁选机.html'>磁选机</a>、<a href='http://search.vlongbiz.com/sell/供水设备.html'>供水设备</a>、<a href='http://search.vlongbiz.com/sell/磁滚筒.html'>磁滚筒</a>";
hotsearch_htm[2]="热门搜索：<a href='http://search.vlongbiz.com/buy/家具.html'>家具</a>、<a href='http://search.vlongbiz.com/buy/二手家电.html'>二手家电</a>、<a href='http://search.vlongbiz.com/buy/安全.html'>安全</a>、<a href='http://search.vlongbiz.com/buy/注塑机.html'>注塑机</a>、<a href='http://search.vlongbiz.com/buy/挤出机.html'>挤出机</a>、<a href='http://search.vlongbiz.com/buy/二手.html'>二手</a>、<a href='http://search.vlongbiz.com/buy/工程机械.html'>工程机械</a>、<a href='http://search.vlongbiz.com/buy/色卡.html'>色卡</a>";
hotsearch_htm[3]="热门搜索：<a href='http://search.vlongbiz.com/company/威龙.html'>威龙</a>、<a href='http://search.vlongbiz.com/company/电子商务.html'>电子商务</a>、<a href='http://search.vlongbiz.com/company/海尔.html'>海尔</a>、<a href='http://search.vlongbiz.com/company/暖气片.html'>暖气片</a>、<a href='http://search.vlongbiz.com/company/散热器.html'>散热器</a>、<a href='http://search.vlongbiz.com/company/科技有限公司.html'>科技有限公司</a>、<a href='http://search.vlongbiz.com/company/网络.html'>网络</a>、<a href='http://search.vlongbiz.com/company/电脑.html'>电脑</a>";
hotsearch_htm[4]="热门搜索：<a href='http://search.vlongbiz.com/product/风筝.html'>风筝</a>、<a href='http://search.vlongbiz.com/product/暖气.html'>暖气</a>、<a href='http://search.vlongbiz.com/product/油漆.html'>油漆</a>、<a href='http://search.vlongbiz.com/product/铝.html'>铝</a>、<a href='http://search.vlongbiz.com/product/铝塑板.html'>铝塑板</a>、<a href='http://search.vlongbiz.com/product/磁选机.html'>磁选机</a>、<a href='http://search.vlongbiz.com/product/供水设备.html'>供水设备</a>、<a href='http://search.vlongbiz.com/product/磁滚筒.html'>磁滚筒</a>";
hotsearch_htm[5]="热门搜索：<a href='http://search.vlongbiz.com/news/内衣.html'>内衣</a>、<a href='http://search.vlongbiz.com/news/报价.html'>报价</a>、<a href='http://search.vlongbiz.com/news/纺织市场.html'>纺织市场</a>、<a href='http://search.vlongbiz.com/news/价格.html'>价格</a>、<a href='http://search.vlongbiz.com/news/服装.html'>服装</a>、<a href='http://search.vlongbiz.com/news/最新报价.html'>最新报价</a>、<a href='http://search.vlongbiz.com/news/今日报价.html'>今日报价</a>、<a href='http://search.vlongbiz.com/news/行情.html'>行情</a>";
//hotsearch_htm[6]="热门搜索：";

//表单action
searchform_action[1]="http://search.vlongbiz.com/sell";
searchform_action[2]="http://search.vlongbiz.com/buy";
searchform_action[3]="http://search.vlongbiz.com/company";
searchform_action[4]="http://search.vlongbiz.com/product";
searchform_action[5]="http://search.vlongbiz.com/news";
//searchform_action[6]="http://club.vlongbiz.com/search.php";

//按钮标题
submit_value[1]="搜索 供应信息";
submit_value[2]="搜索 求购信息";
submit_value[3]="搜索 公司库 ";
submit_value[4]="搜索 产品展厅";
submit_value[5]="搜索 行业资讯";
//submit_value[6]="搜索 商友地带";

//标签点击
function searchTab(id){
	try{
		for(var i=1;i<6;i++){
			if(i<id){
				document.getElementById("s"+i).className="searchoff1";
			}else{
				document.getElementById("s"+i).className="searchoff";
			}
		}
		document.getElementById("s"+id).className="searchon";
		document.getElementById("searchtable").className="searchbtable"+id;
		document.getElementById("hotsearch").innerHTML=hotsearch_htm[id];
		document.fm_search.action=searchform_action[id];
		document.fm_search.bt_search.value=submit_value[id];
		return false;
	}catch(e){
		return true;
	}
}
