﻿// JScript 文件
window.IncludeFile={"header":"head.html","tailer":"tail.html"};
window.JsModule=["system/jqframe.js","plugins/popUpWindow/popUpWindow.js"];
function WebMain()
{ 
    $.SetFormat("zh","zxzxnews","<li class='linkover'><a style='width:320px;color:#2#' href=\"news.html?{'id':#0#}\" target=\"_blank\">#1#</a></li>","","");
    $.SetFormat("zh","djbdnews","<li class='linkover'><a style='width:320px;color:#2#' href=\"news.html?{'id':#0#}\" target=\"_blank\">#1#</a></li>","","");
    $.SetFormat("zh","zbxxnews","<li class='linkover'><a style='width:226px;color:#3#' href=\"news.html?{'id':#0#}\" target=\"_blank\">#1#</a><span style='margin-left:24px;'>#2#</span></li>","","");
    $.SetFormat("zh","bzddnews","<li class='linkover'><a style='width:225px;' href=\"news.html?{'id':#0#}\" target=\"_blank\">#1#</a><span style='margin-left:25px;'>#2#</span></li>","","");
	
	$.SetFormat("zh","index_shop","<li class='linkover'><a style='width:300px;' href='shop.html?{id:#0#}' target=\"_blank\">#1#</a></li>","","");
    $.SetFormat("zh","xhgg","<li class='linkover'><a style='width:250px;' href=\"news.html?{'id':#0#}\" target=\"_blank\">#1#</a></li>","","");
    $.SetFormat("zh","gyxxtd","<li class='linkover'><a style='width:320px;height:20px;line-height:20px;' href=\"supplydetail.html?{'id':#0#}\"  target=\"_blank\"><p style='float:left;width:90px;margin:1px 5px;color:#07536D;'>[#2#]</p>#1#</a></li>","","");
    $.SetFormat("zh","qgxxtd","<li class='linkover'><a style='width:320px;height:20px;line-height:20px;' href=\"supplydetail.html?{'id':#0#}\"  target=\"_blank\"><p style='float:left;width:90px;margin:1px 5px;color:#07536D;'>[#2#]</p>#1#</a></li>","","");
	
	
    $.SetFormat("zh","cpbjlist","<li class='linkover'><a style='width:320px;' href=\"propricedetaile.html?{'id':#0#}\" target=\"_blank\"><span style=\"margin-left:0px;width:130px;padding:5px 0;overflow:hidden;\">#2#</span><span style=\"margin-left:10px;width:80px;padding:5px 0;\">#4#</span><span style=\"margin-left:10px;width:70px;padding:5px 0;\">#3##5#</span></a></li>","","");
    $.SetFormat("zh","zlxxnews","<li class='linkover'><a style='width:320px;' href=\"propricedetaile.html?{'id':#0#}\" target=\"_blank\"><span style=\"margin-left:0px;width:130px;padding:5px 0;overflow:hidden;\">#2#</span><span style=\"margin-left:10px;width:80px;padding:5px 0;\">#4#</span><span style=\"margin-left:10px;width:70px;padding:5px 0;\">#3##5#</span></a></li>","","");

	
    $.SetFormat("zh","zpxx","<li class='linkover'><a style='width:320px;' href=\"rc_zhaopindetail.html?{'zpid':#0#}\" target=\"_blank\"><span style='width:60px;margin:0 5px;padding-top:3px;'>[#2#]</span><span style='margin-left:0px;width:70px;color:#4C4C4C;overflow: hidden;'>#1#</span><span style='width:160px;margin-left:20px;color:#4C4C4C;overflow: hidden;'>#3#</span></a></li>","","");
    $.SetFormat("zh","qzxx","<li class='linkover'><a style='width:320px;' href=\"rc_qiuzhidetail.html?{'qzid':#0#}\" target=\"_blank\"><span style='margin-left:0px;' class='qzxx'>[#3#]</span><span style='margin-left:0px;width:70px;color:#4C4C4C;overflow: hidden;'>#1#</span><span style='width:160px;margin-left:20px;color:#4C4C4C;overflow: hidden;'>#2#</span></a></li>","","");
    $.SetFormat("zh","papernews","<li class='linkover'><a style='width:242px;' href=\"paper.html?{'id':#0#}\" target=\"_blank\">#1#</a></li>","","");
    $.SetFormat("zh","booknews","<li class='linkover'><a style='width:242px;' href=\"news.html?{'id':#0#}\" target=\"_blank\">#1#</a></li>","","");
    $.SetFormat("zh","jscx","<li><a style='width:242px;' href=\"news.html?{'id':#0#}\" target=\"_blank\">#1#</a></li>","","");
    $.SetFormat("zh","zcfg","<li class='linkover'><a style='width:300px;' href=\"news.html?{'id':#0#}\" target=\"_blank\">#1#</a></li>","","");
    $.SetFormat("zh","zzbz","<li class='linkover'><a style='width:300px;' href=\"news.html?{'id':#0#}\" target=\"_blank\">#1#</a></li>","","");
 	$.SetFormat("zh","hyqy","<li class='linkover'><a style='width:250px;' href=\"#2#\" target=\"_blank\">#1#</a></li>","","");
    $.SetFormat("zh","hzzx","<li><a style='width:200px;' href=\"news.html?{'id':#0#}\" target=\"_blank\">#1#</a><span style='padding-left:30px;'>(#2#)</span></li>","","");
    
	$.SetFormat("zh","jpgc","<a style=\"width:130px;height:120px;\" href=\"news.html?{'id':#0#}\"><img style='width:130px;height:120px;display:block;margin-top:0px;' alt='#2#' src='#1#' class='imgjpgc' /></a><a style=\"width:130px;height:25px;\" href=\"news.html?{'id':#0#}\"><b style=\"height:25px;line-height:25px;overflow:hidden;font-weight:normal;\" class='colorword1'>#2#</b></a>","","");
	$.SetFormat("zh","jpgcAds","<a style=\"width:130px;height:120px;\" target=\"_blank\" href=\"http://#3#\"><img style='width:130px;height:120px;display:block;margin-top:0px;' alt='#2#' src='#1#' class='imgjpgc' /></a><a style=\"width:130px;height:25px;\" href=\"http://#3#\"><b style=\"height:25px;line-height:25px;overflow:hidden;font-weight:normal;\" class='colorword1'>#2#</b></a>","","");
	$.SetFormat("zh","jpgcAdsBig","<a style=\"width:300px;height:120px;\" href=\"http://#3#\" target=\"_blank\"><img style='width:300px;height:120px;display:block;margin-top:0px;' alt='#2#' src='#1#' class='imgjpgc' /></a><a style=\"width:300px;height:25px;\" href=\"http://#3#\" target=\"_blank\"><b style=\"height:25px;line-height:25px;overflow:hidden;font-weight:normal;\" class='colorword1'>#2#</b></a>","","");
    
	$.SetFormat("zh","hzzxpic","<label class='floatl marginl5 hzzxpic'><img style='width:84px;height:53px;display:block;' alt='会展图片' src='#1#' class='border hzzxpic2'/></label><label class='floatl marginl1 hzzxpic3'><a style='white-space:normal;height:50px;line-height:25px;' href=\"news.html?{'id':#0#}\" target=\"_blank\">#2#</a></label>","","");
	$.SetFormat("zh","firmlink","<li class='linkover'><a style='width:270px;' href=\"#2#\" target=\"_blank\">#1#</a></li>","","");
	$.SetFormat("zh","jpgys","<li style=\"background:none;width:160px;float:left;\"><a style='width:150px;display:block;overflow:hidden;background:none;color:#4C4C4C;font-weight:normal;white-space:nowrap;text-overflow:ellipsis;' href=\"#2#\" target=\"_blank\"><p title=\"#1#\" style=\"\">#1#</p></a></li>","","");
	$.SetFormat("zh","settypecompany","<p class='qiyeli' style=\"width:100px;\"><a style=\"color:#4C4C4C;width:100px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;\"  href=\"shop.html?{'id':'#1#'}\">#0#</a></p>","","");

   
	/*精品工程 中间两个是图片广告*/
	$("#jpgc1").SendMessage({bLoading:false,type:"DBSelect",id:"jpgc1",pm :"<@ehai_detail%16Id%16Id,Imgurl,Title,Reference%16%16%16Isup desc,CreateTime desc%160%16MenuId=11 and imgurl!='请选择' and IsCheck=1 and IsShow=1 and id=21660@>%16",format:"jpgcAdsBig",start:0,total:1});  
	$("#jpgc3").SendMessage({bLoading:false,type:"DBSelect",id:"jpgc2",pm :"<@ehai_detail%16Id%16Id,Imgurl,Title,Reference%16%16%16Isup desc,CreateTime desc%160%16MenuId=11 and imgurl!='请选择' and IsCheck=1 and IsShow=1 and id=17132@>%16",format:"jpgcAds",start:0,total:1});  
	//$("#jpgc3").SendMessage({bLoading:false,type:"DBSelect",id:"jpgc3",pm :"<@ehai_detail%16Id%16Id,Imgurl,Title,Reference%16%16%16Isup desc,CreateTime desc%160%16MenuId=11 and imgurl!='请选择' and IsCheck=1 and IsShow=1 and id=3533@>%16",format:"jpgcAds",start:0,total:1});  
	$("#jpgc4").SendMessage({bLoading:false,type:"DBSelect",id:"jpgc4",pm :"<@ehai_detail%16Id%16Id,Imgurl,Title%16%16%16Isup desc,CreateTime desc%160%16MenuId=11 and imgurl!='请选择' and IsCheck=1 and IsShow=1 and id<>17132 and id<>21660@>%16",format:"jpgc",start:1,total:1});  
								
							
								
	/*国外企业链接*/
	$("#firmlink").SendMessage({bLoading:false,type:"DBSelect",id:"firmlink",pm :"<@ehai_affiliate%16Id%16Id,AffName,AffUrl%16%16%16%160%16IsShow=1 and linktype=2@>%16",format:"firmlink"});
    
    /*会展中心上*/$("#hzzxpic").SendMessage({callback:hzzxpic,Loading:false,type:"DBSelect",id:"hzzxpic",pm :"<@ehai_detail%16Id%16Id,Imgurl,Title,Reference%16%16%16Isup desc,CreateTime desc%160%16MenuId=12 and imgurl!='请选择' and IsCheck=1 and IsShow=1@>%16",start:0,total:2});  
	/*会展中心下*/$("#hzzx").SendMessage({bLoading:false,type:"DBSelect",id:"hzzx",pm :"<@ehai_detail%16Id%16Id,Title,DATE_FORMAT(CreateTime,'%y-%m-%d')%16%16%16Isup desc,CreateTime desc%160%16MenuId=12 and IsCheck=1 and IsShow=1@>%16",format:"hzzx",start:0,total:4});  
    /*最新资讯特殊处理*/$.SendMessage({callback:firstNews,bLoading:false,type:"DBSelect",id:"fir_zxzxnews",pm :"<@ehai_detail%16Id%16Id,Title,dContent%16%16%16Isup desc,CreateTime desc%160%16MenuId=7 and IsCheck=1 and IsShow=1@>%16",start:0,total:1});  
    /*最新资讯*/$("#zxzxnews").SendMessage({bLoading:false,type:"DBSelect",id:"zxzxnews",pm :"<@ehai_detail%16Id%16Id,Title,Color%16%16%16Isup desc,CreateTime desc%160%16MenuId=7 and IsCheck=1 and IsShow=1@>%16",format:"zxzxnews",start:1,total:6});  
    /*独家报导特殊处理*/$.SendMessage({callback:fir_djbdnews,bLoading:false,type:"DBSelect",id:"fir_djbdnews",pm :"<@ehai_detail%16Id%16Id,Title,dContent%16%16%16Isup desc,CreateTime desc%160%16MenuId=6 and IsCheck=1 and IsShow=1@>%16",start:0,total:1}); 	
    /*独家报导*/$("#djbdnews").SendMessage({bLoading:false,type:"DBSelect",id:"djbdnews",pm :"<@ehai_detail%16Id%16Id,Title%16%16%16Isup desc,CreateTime desc%160%16MenuId=6 and IsCheck=1 and IsShow=1@>%16",format:"djbdnews",start:1,total:9});  
    /*招标信息*/$("#zbxxnews").SendMessage({bLoading:false,type:"DBSelect",id:"zbxxnews",pm :"<@ehai_detail%16Id%16Id,Title,DATE_FORMAT(CreateTime,'%y-%m-%d'),color%16%16%16Isup desc,CreateTime desc%160%16MenuId=28 and IsCheck=1 and IsShow=1@>%16",format:"zbxxnews",start:0,total:9});
    /*中标信息*/$("#bzddnews").SendMessage({bLoading:false,type:"DBSelect",id:"bzddnews",pm :"<@ehai_detail%16Id%16Id,Title,DATE_FORMAT(CreateTime,'%y-%m-%d')%16%16%16Isup desc,CreateTime desc%160%16MenuId=29 and IsCheck=1 and IsShow=1@>%16",format:"bzddnews",start:0,total:9});    	
    /*首页商铺*/$("#index_shop").SendMessage({bLoading:false,type:"DBSelect",id:"index_shop",pm :"<@ehai_user%16Id%16Id,Company%16%16%16CreateTime desc%160%16IsShow=1 and IsCheck=1@>%16",format:"index_shop",start:0,total:8}); 
    /*协会公告*/$("#xhgg").SendMessage({bLoading:false,type:"DBSelect",id:"xhgg",pm :"<@ehai_detail%16Id%16Id,Title%16%16%16Isup desc,CreateTime desc%160%16MenuId=3 and IsCheck=1 and IsShow=1@>%16",format:"xhgg",start:1,total:4});  
    /*供应信息*/$("#gyxxtd").SendMessage({bLoading:false,type:"DBSelect",id:"gyxxtd",pm :"<@ehai_supplydemand,ehai_typetable%16ehai_supplydemand.Id%16ehai_supplydemand.Id,left(ehai_supplydemand.Title,17),ehai_typetable.eName%16%16%16PubDate desc%160%16ehai_supplydemand.TradeType=1 and ehai_supplydemand.Status=1 and ehai_supplydemand.IsShow=1 and ehai_supplydemand.Sort1=ehai_typetable.Class and ehai_typetable.Sort=3@>%16",format:"gyxxtd",start:0,total:9});
    /*求购信息*/$("#qgxxtd").SendMessage({bLoading:false,type:"DBSelect",id:"qgxxtd",pm :"<@ehai_supplydemand,ehai_typetable%16ehai_supplydemand.Id%16ehai_supplydemand.Id,left(ehai_supplydemand.Title,17),ehai_typetable.eName%16%16%16PubDate desc%160%16ehai_supplydemand.TradeType=2 and ehai_supplydemand.Status=1 and ehai_supplydemand.IsShow=1 and ehai_supplydemand.Sort1=ehai_typetable.Class and ehai_typetable.Sort=3@>%16",format:"qgxxtd",start:0,total:9}); 
    /*产品报价*/$("#cpbjlist").SendMessage({bLoading:false,type:"DBSelect",id:"cpbjlist",pm :"<@ehai_product,ehai_typetable%16ehai_product.Id%16ehai_product.Id,ehai_product.Pic,ehai_product.ProductName,ehai_product.Price,ehai_typetable.eName,procsunit%16%16%16ehai_product.PubTime desc%160%16ehai_product.IsShow=1 and ehai_typetable.Class=ehai_product.eType and ehai_typetable.Sort=2 and ispricheck=1@>%16",format:"cpbjlist",start:0,total:8});    
	/*租赁中心*/$("#zlxxnews").SendMessage({bLoading:false,type:"DBSelect",id:"zlxxnews",pm :"<@ehai_product,ehai_typetable%16ehai_product.Id%16ehai_product.Id,ehai_product.Pic,ehai_product.ProductName,ehai_product.prozlprice,ehai_typetable.eName,prozlunit%16%16%16ehai_product.PubTime desc%160%16ehai_product.IsShow=1 and ehai_typetable.Class=ehai_product.eType and ehai_typetable.Sort=2 and ispricheck=1@>%16",format:"zlxxnews",start:0,total:9});
    /*招聘信息*/$("#zpxx").SendMessage({bLoading:false,type:"DBSelect",id:"zpxx",pm :"<@ehai_jobsupply%16Id%16Id,JobName,DATE_FORMAT(PubDate,'%m-%d'),CompanyName%16%16%16PubDate desc%160%16IsShow=1@>%16",format:"zpxx",start:0,total:9});
    /*求职信息*/$("#qzxx").SendMessage({bLoading:false,type:"DBSelect",id:"qzxx",pm :"<@ehai_jobseek%16Id%16Id,eName,Major,DATE_FORMAT(CreateTime,'%m-%d')%16%16%16CreateTime desc%160%16IsShow=1@>%16",format:"qzxx",start:0,total:9});
    /*论文*/$("#papernews").SendMessage({bLoading:false,type:"DBSelect",id:"papernews",pm :"<@ehai_paper%16Id%16Id,Title%16%16%16CreateTime desc%160%16IsShow=1 and IsCheck=1@>%16",format:"papernews",start:0,total:9});
    /*企业家*/$("#qyjnews").SendMessage({bLoading:false,type:"DBSelect",id:"qyjnews",pm :"<@ehai_detail%16Id%16Id,Title,Color%16%16%16Isup desc,CreateTime desc%160%16MenuId=50 and IsCheck=1 and IsShow=1@>%16",format:"zxzxnews",start:0,total:6});  
	/*书籍资料*/$("#booknews").SendMessage({bLoading:false,type:"DBSelect",id:"booknews",pm :"<@ehai_detail%16Id%16Id,Title%16%16%16Isup desc,CreateTime desc%160%16MenuId=31 and IsCheck=1 and IsShow=1@>%16",format:"booknews",start:0,total:9});
    /*专家委员会*/$.SendMessage({bLoading:false,callback:zjwyhnews,type:"DBSelect",id:"zjwyhnews",pm :"<@ehai_user%16Id%16Id,Photo,UserName,eName,Sex,BirthY,BirthM,Position,Achievement%16%16%16CreateTime desc%160%16RoleType=3 and IsRecommand=1@>%16",start:0,total:1});
    /*技术创新*/$("#jscx").SendMessage({bLoading:false,type:"DBSelect",id:"jscx",pm :"<@ehai_detail%16Id%16Id,Title%16%16%16Isup desc,CreateTime desc%160%16MenuId=48 and IsCheck=1 and IsShow=1@>%16",format:"jscx",start:0,total:8});  
    /*政策法规*/$("#zcfg").SendMessage({bLoading:false,type:"DBSelect",id:"zcfg",pm :"<@ehai_detail%16Id%16Id,Title%16%16%16Isup desc,CreateTime desc%160%16MenuId=32 and IsCheck=1 and IsShow=1@>%16",format:"zcfg",start:0,total:9});  
    /*资质标准*/$("#zzbz").SendMessage({bLoading:false,type:"DBSelect",id:"zzbz",pm :"<@ehai_detail%16Id%16Id,Title%16%16%16Isup desc,CreateTime desc%160%16MenuId=33 and IsCheck=1 and IsShow=1@>%16",format:"zzbz",start:0,total:9}); 
	/*会员企业*/$("#hyqy").SendMessage({bLoading:false,type:"DBSelect",id:"hyqy",pm :"<@ehai_user%16Id%16Id,Company,WebSite%16%16%16sortrank asc,isBanner desc,GoldRank desc,CreateTime desc%160%16RoleType=1@>%16",format:"hyqy",start:0,total:9});
    /*国外企业链接*/$("#firmlink").SendMessage({bLoading:false,type:"DBSelect",id:"firmlink",pm :"<@ehai_affiliate%16Id%16Id,AffName,AffUrl%16%16%16%160%16IsShow=1 and linktype=2@>%16",format:"firmlink"});
	/*金牌供应商*/$("#jpgys").SendMessage({bLoading:false,type:"DBSelect",id:"jpgys",pm :"<@ehai_user%16Id%16Id,Company,WebSite,qyproduct%16%16%16altertime desc%160%16IsShow=1 and IsGold=1@>%16",format:"jpgys",start:0,total:12}); 
	/*企业类别列表*/$.SendMessage({callback:setsmalltype,bLoading:false,type:"DBSelect",id:"getUsertypesmall",pm :"<@ehai_typetable%16Id%16eName,Class,Id%16%16%16Class asc%160%16Sort=1 and LENGTH(Class)=4%16@>"});
	/*协会公告特殊处理*/$.SendMessage({callback:firstGonggao,bLoading:false,type:"DBSelect",id:"tscl_xhgg",pm :"<@ehai_detail%16Id%16Id,Title,left(dContent,3000)%16%16%16Isup desc,CreateTime desc%160%16MenuId=3 and IsCheck=1 and IsShow=1@>%16",start:0,total:1}); 
	//writeFlashImgs();
	

	/*行业动态*/$("#hydt").SendMessage({bLoading:false,type:"DBSelect",id:"hydtnews",pm :"<@ehai_detail%16Id%16Id,Title,DATE_FORMAT(CreateTime,'%y-%m-%d')%16%16%16Isup desc,CreateTime desc%160%16MenuId=8 and IsCheck=1 and IsShow=1@>%16",format:"bzddnews",start:0,total:9}); 
	/*国际合作*/$("#gjhz").SendMessage({bLoading:false,type:"DBSelect",id:"gjhznews",pm :"<@ehai_detail%16Id%16Id,Title,DATE_FORMAT(CreateTime,'%y-%m-%d')%16%16%16Isup desc,CreateTime desc%160%16MenuId=9 and IsCheck=1 and IsShow=1@>%16",format:"bzddnews",start:0,total:9}); 
	/*安全施工*/$("#aqsg").SendMessage({bLoading:false,type:"DBSelect",id:"aqsgnews",pm :"<@ehai_detail%16Id%16Id,Title,DATE_FORMAT(CreateTime,'%y-%m-%d')%16%16%16Isup desc,CreateTime desc%160%16MenuId=34 and IsCheck=1 and IsShow=1@>%16",format:"bzddnews",start:0,total:9}); 
	/*论坛热门主题*/$("#bbs_topic").SendMessage({bLoading:false,type:"DBSelect",id:"bbs_topic",pm :"<@ehai_detail%16Id%16Id,Title,DATE_FORMAT(CreateTime,'%y-%m-%d')%16%16%16Isup desc,CreateTime desc%160%16MenuId=8 and IsCheck=1 and IsShow=1@>%16",format:"bzddnews",start:0,total:9}); 


	getFocusPics();

   $("#popupWindow1").popupWindow({place:"rightBottom",closeObj:"#popupHeader img"});


	//首页底部信息加载
	$.SetFormat("zh","yqlj","<a href='#1#' target=\"_blank\">#0# |</a>","",""); 
    /*底部链接*/$("#yqlj").SendMessage({bLoading:false,type:"DBSelect",id:"yqlj",pm :"<@ehai_flink%16Id%16FlinkName,FlinkUrl%16%16%16FlinkRank asc,id desc%160%16IsCheck=1 and IsShow=1@>%16",format:"yqlj",start:0,total:40},true);
}
//读取企业类别
function setsmalltype(re)
{
    if(re)
    {
        var h=""
        for(i=0;i<re.length;i++)
        {
            h+="<ul style='padding:0 0 0 10px;width:330px;line-height:159%;'><li style='font-weight:bold;padding:0;'><a style=\"background:none;height:20px;line-height:20px;color:#4C4C4C;\" href=\"companylist.html?{'Sort':'"+re[i][1]+"'}\">"+re[i][0]+"</a></li><div style=\"clear:both;\"  id=\"smalltypeli"+re[i][1]+"\"><div></ul>"
        }
         $("#qiyelist").html(h);
        for(i=0;i<re.length;i++)
        {
            /*获得小类公司名称*/$("#smalltypeli"+re[i][1]).SendMessage({bLoading:false,type:"DBSelect",pm :"<@ehai_user%16Id%16Company,Id%16%16%16altertime desc%160%16IsCheck=1 and IsShow=1 and (RoleType=0 or RoleType=1) and Sort='@>"+re[i][1]+"'%16",format:"settypecompany",start:0,total:3});
        }
    }
};

//对图片进行处理，对有链接的添加图片链接
function hzzxpic(re)
{
	if(re)
    {
        var h=""
        for(i=0;i<re.length;i++)
        {
			if(re[i][3]!="" && typeof(re[i][3])!="undefined")
				h+="<label class='floatl marginl5 hzzxpic'><a style=\"height:84px;\" href=\""+re[i][3]+"\" target=\"_blank\"><img style='width:84px;height:53px;display:block;' alt='会展图片' src='"+re[i][1]+"' class='border hzzxpic2'/></a></label><label class='floatl marginl1 hzzxpic3'><a style='white-space:normal;height:50px;line-height:25px;' href=\"news.html?{'id':"+re[i][0]+"}\" target=\"_blank\">"+re[i][2]+"</a></label>";
			else
				h+="<label class='floatl marginl5 hzzxpic'><img style='width:84px;height:53px;display:block;' alt='会展图片' src='"+re[i][1]+"' class='border hzzxpic2'/></label><label class='floatl marginl1 hzzxpic3'><a style='white-space:normal;height:50px;line-height:25px;' href=\"news.html?{'id':"+re[i][0]+"}\" target=\"_blank\">"+re[i][2]+"</a></label>";
        }
        $("#hzzxpic").html(h);
    }
}

/******  begin 焦点图片  begin           ****/
function getFocusPics()
{
	$.SendMessage({bLoading:false,callback:initFocusElements,type:"DBSelect",id:"focusPics",pm :"<@ehai_detail%16Id%16Id,Imgurl,Title%16%16%16Isup desc,isfocus desc,CreateTime desc%160%16MenuId!=11 and Imgurl!=\"请选择\" and IsCheck=1 and IsShow=1 and isfocus=1@>%16",start:0,total:3});  
}
//获得焦点图片的数据后，开始装在到页面
function initFocusElements(re)
{
	if(re && !re.error && !re.wrong)
	{
		var len = re.length,picAreaHtml=[],textHtml=[];
		for(var i=0;i<len;i++)
		{
			//alert(re[i][1]);
			picAreaHtml.push(getFocusPicElement(re[i][0],re[i][2],re[i][1]));
			textHtml.push(getFocusTextElement(re[i][0],re[i][2],re[i][1]));
		}
		$("#f_imgDiv").html(picAreaHtml.join(""));
		$("#f_text").html(textHtml.join(""));
		initPicFocus();
	}
	else
	{
		alert("焦点图片设置有问题");
	}
}
//图片区的html代码
function getFocusPicElement(id,title,imgurl)
{
	return "<a href=\"news.html?{id:"+id+"}\" target=\"_blank\"><img src=\""+imgurl+"\" alt=\""+title+"\" border=\"0\" /></a>";
}
//文字标题区的html代码
function getFocusTextElement(id,title,imgurl)
{
	return "<label style=\"display: none;\"><a href=\"news.html?{id:"+id+"}\" target=\"_blank\" class=\"noline white b\">"+title+"</a></label>";
}
//初始化
function initPicFocus()
{
	var a=new PicFocus("f_imgDiv","f_text","f_buttonDiv","2000");//4000为切换时间，默认为5秒，此处指定4秒
	a.init();
	a.play();
}
/******  end 焦点图片  end   ****/


function zjwyhnews(re)
{//专家委员会资料读取
    var html="",html1="";
	$("#zpp").html("<a style='background:none;width:100px;height:120px;margin-left:15px;margin-top: 15px;*margin-left:10px;' href=\"zj_xx.html?{'id':'"+re[0][0]+"'}\"><img style=\"display:block;width:98px;height:118px;margin-top:0px;border:1px #D9D9D9 solid;\" src=\""+re[0][1]+"\" alt=\"专家照片\" /></a>");
    html="&nbsp;&nbsp;"+re[0][3]+",出生于"+re[0][5]+"年"+re[0][6]+"月,"+re[0][7]+","+htmlreplace(re[0][8]);
    html1="推荐专家:"+"<p style=\"width:50px;height:25px;margin-left:33px;*margin-left:0;\"><a href=\"zj_xx.html?{id:"+re[0][0]+"}\" target=\"_blank\" >"+re[0][3]+"</a></p>";
    $("#zjxx").html(html);
    $("#zjname").html(html1);
}

function writeFlashImgs()
{
	var sinaFlash1 = new sinaFlash("http://localhost/cnffww/plugins/sinaflash/images/flashimgs.swf", "demo", "278", "226", "8", "#ffffff");
	sinaFlash1.addParam("quality", "best");
	sinaFlash1.addParam("wmode", "transparent");
	//此处添图片信息等内容，用“|”分割，用“#”分割的部分分别代表图片地址，左侧按钮标题文字，左侧按钮消息文字，大图片的大标题文字，大图片的消息文字，大图片的连接地址！focusmovie.swf
	sinaFlash1.addVariable("mypic", "images/zixunpic.jpg#咨询风暴 2008#http://sports.sina.com.cn/nba/|http://i1.sinaimg.cn/ty/idx/2009/0210/U2035P6T563D1F13836DT20090210005548.jpg#切尔西官方宣布主帅斯科拉里下课#http://sports.sina.com.cn/z/pl0809_25/|http://i0.sinaimg.cn/ty/idx/2009/0210/U2035P6T563D1F13845DT20090210020149.jpg#周海滨参加埃因霍温训练 球衣号码敲定#http://sports.sina.com.cn/z/chinaoverseas/|http://i1.sinaimg.cn/ty/idx/2009/0210/U2035P6T563D1F13839DT20090210044506.jpg#意大利PK巴西 世界德比一触即发#http://sports.sina.com.cn/z/newphoto/photo/72422/");
	sinaFlash1.write("flashImgs");
}
/*
功能：处理第一条新闻，添加新闻描述
*/
function firstNews(re)
{
	if(re && ! re.wrong && ! re.error)
	{
		var s = "<a href=\"news.html?{id:"+re[0][0]+"}\" target=\"_blank\" ><p  class='linkover' style='text-align:center; font-size:14px; color:#444444; font-weight:bold; margin:6px;'>"+re[0][1]+"</p><p style=''> &nbsp;&nbsp;&nbsp;&nbsp;"+jQuery.htmldecode(htmlreplace(re[0][2]))+"</p></a>"
		$("#fir_zxzxnews").html(s);

	}
}
function firstGonggao(re)
{
	if(re && !re.wrong && !re.error)
	{
		var s = "<a style='background:none;' href=\"news.html?{id:"+re[0][0]+"}\" target=\"_blank\" ><p class='linkover' style='text-align:center; font-size:13px; color:#666666; font-weight:bold; '>"+re[0][1]+"</p></a><a style='background:none;height:60px;line-height:160%;' href=\"news.html?{id:"+re[0][0]+"}\" target=\"_blank\" ><p style='width:250px;white-space:normal;'> &nbsp;&nbsp;&nbsp;&nbsp;"+jQuery.htmldecode(htmlreplace(re[0][2]))+"</p></a>";
		
		$("#tscl_xhgg").html(s);
	}
}


function fir_djbdnews(re)
{
	if(re && ! re.wrong && ! re.error)
	{
		var s = "<a href=\"news.html?{id:"+re[0][0]+"}\" target=\"_blank\" ><p  class='linkover' style='text-align:center; font-size:14px; color:#444444; font-weight:bold; margin:6px;'>"+re[0][1]+"</p><p style=''> &nbsp;&nbsp;&nbsp;&nbsp;"+jQuery.htmldecode(htmlreplace(re[0][2]))+"</p></a>"
		$("#fir_djbdnews").html(s);

	}
}
/*
功能：关闭提示消息
*/
function hidePopWindow()
{
    $(".popupWindow").fadeOut("slow");
};

		