You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pingAnQiYeWeb/public/modules/local_b3hfmw.js

1 line
19 KiB

/**/_jsload2 && _jsload2('local', 'fb.QM=function(a,b){return!a||"undefined"==typeof b||"s"==a&&11!=b&&7!=b&&2!=b&&26!=b&&28!=b||"nb"==a&&12!=b||"bd"==a&&21!=b||"bda"==a&&45!=b||"sa"==a&&46!=b||"nba"==a&&47!=b?q:o}; x.extend(fb.prototype,{iA:function(){for(var a=0,b=this.Pa.length;a<b;a++){var c=this.Pa[a];this[c.method].apply(this,c.arguments)}delete this.Pa;this.ra()},ra:function(){this.vn=new gi(this);this.tn=new hi(this)},search:function(a,b,c){if(!a||a instanceof Array&&(1>a.length||10<a.length))this.Qe(),this.sb(5),this.Ra(Y.Tc);else if(b=b||{},b.customData)this.sA(),this.Os.search({wb:a,jq:"local",xx:b.customData}),this.cm=o;else{this.cm=q;var d=c||{},e=this;this.Pg(this.Ad,function(c){c=c||1;e.Gc=e.iB(a); c=e.Gc?{qt:"sa",c:c,wd:a.join("$$"),wdn:a.length,rn:e.qf()}:{qt:b.forceLocal?"con":"s",c:c,wd:a,rn:e.qf()};e.k.bq&&x.extend(c,{from:e.k.bq});x.extend(c,d.Zc);b.log&&(c.log="center");var g={Zc:c,options:b,ud:d.ud||a};x.extend(g,d);de.eb(function(a,b){e.Lf(a,b)},c,g)})}},iB:function(a){return a&&a instanceof Array?o:q},xn:function(a,b,c){if(!a||!b||a instanceof Array&&(1>a.length||10<a.length))this.Qe(),this.sb(5),this.Ra(Y.Tc);else{var c=c||{},d=this;if(c.customData)this.sA(),this.Os.search({wb:a, $a:b,jq:"bound",xx:c.customData}),this.cm=o;else{this.cm=q;var e=c||{};this.Pg(this.Ad,function(c){var c=c||1,g=$a(b.xe(),this.map||window.GCJMAP),i=$a(b.pf(),this.map||window.GCJMAP),g=T.tb(g),i=T.tb(i),g="("+g.lng+","+g.lat+";"+i.lng+","+i.lat+")";d.Gc=d.iB(a);c=d.Gc?{qt:"bda",c:c,wd:a.join("$$"),wdn:a.length,ar:g,rn:d.qf(),l:18}:{qt:"bd",c:c,wd:a,ar:g,rn:d.k.Pk,l:18};d.k.bq&&x.extend(c,{from:d.k.bq});x.extend(c,e.Zc);de.eb(function(a,b){d.Lf(a,b)},c,e&&e.za&&e.xa?{Zc:c,$a:b,za:e.za,xa:e.xa,ud:e.ud|| a}:{Zc:c,$a:b,ud:e.ud||a})})}}},iq:function(a,b,c,d){if(!a||!b||!(b instanceof O||b instanceof K)&&"object"==typeof b&&!b.uid||a instanceof Array&&(1>a.length||10<a.length))this.Qe(),this.sb(5),this.Ra(Y.Tc);else if(d=d||{},d.customData)this.sA(),this.Os.search({wb:a,za:$a(b,this.map),xa:c,jq:"nearby",xx:d.customData}),this.cm=o;else{this.cm=q;var c=c||fb.TG,c=0>c?fb.TG:c>fb.$G?fb.$G:c,e=this,f=d||{};if(b instanceof O||b instanceof K){var g=T.tb(b),d=new K(g.lng-c,g.lat-c),g=new K(g.lng+c,g.lat+c), d=T.ub(d),g=T.ub(g),d=new jb(new K(d.lng,d.lat),new K(g.lng,g.lat));f.za=b;f.xa=c;this.xn(a,d,f)}else this.Pg(this.Ad,function(d){d=d||1;e.Gc=e.iB(a);d=e.Gc?{qt:"nba",c:d,wd:a.join("$$"),wdn:a.length,rn:e.qf(),uid:b.uid,r:c}:{qt:"nb",c:d,wd:a,rn:e.qf(),uid:b.uid,r:c};if("string"==typeof b){if(e.Gc){d.qt="sa";for(var g=[],l=0;l<a.length;l++)g.push(b+" "+a[l]);d.wd=g.join("$$");d.wdn=g.length}else d.qt="s",d.wd=b+" "+a;delete d.r;delete d.uid}e.k.bq&&x.extend(d,{from:e.k.bq});x.extend(d,f.Zc);de.eb(function(a, b){e.Lf(a,b)},d,{Zc:d,za:b,xa:c,ud:f.ud||a})})}},Lf:function(a,b){var c=this;c.Gc=45==a.result.type||46==a.result.type||47==a.result.type?o:q;this.Qe();c.Ha=a;this.fa=b;var d=a.result,e=b.Zc.qt;if(c.Gc){if(0!=d.error||!fb.QM(e,d.type)){i=a.current_city;this.Oi=[];for(var d=b.ud,e=0,f=d.length;e<f;e++){var g=new ii({wb:d[e],city:i.name,province:i.up_province_name||"",dx:i.code,Xp:c.qf(),za:b.za,xa:b.xa,$a:b.za&&b.xa?k:b.$a,xi:""});g.OB=b.Zc.qt;this.Oi.push(g)}this.sb(2);this.Ra(Y.Tc,this.Oi);c.tn.dispatchEvent("render"); return}}else if(0!=d.error||!fb.QM(e,d.type)){var i=a.current_city;this.ka=new ii({wb:b.ud,city:i.name,province:i.up_province_name||"",dx:i.code,Xp:c.qf(),za:b.za,xa:b.xa,$a:b.za&&b.xa?k:b.$a,xi:this.Ev(b,i)});this.ka.OB=b.Zc.qt;this.sb(2);this.Ra(Y.Tc,this.ka);c.tn.dispatchEvent("render");return}c.Sl(b);c.vn.dispatchEvent("render");c.tn.dispatchEvent("render");(d=this.fa.za)&&("string"!=typeof d&&!(d instanceof O))&&this.vn.Ow(d);d={};switch(this.Ha.result&&this.Ha.result.type){case 11:case 12:case 21:case 45:case 46:case 47:d.ha= this.Zz;break;case 2:d.za=this.ka.Gk(0).point;d.wg=this.Ha.content.level;break;case 28:d.za=this.ka.Gk(0).point;d.wg=13;break;case 26:d.za=this.ka.Gk(0).point,d.wg=parseInt(this.Ha.content[1])}this.vn.SL(d);d=this.Gc?this.MA():this.ka;this.k.ja.ku&&(d&&0<d.yt())&&(c=this,setTimeout(function(){c.select(0)},240))},Sl:function(a){var b=this.Ha.result,c=this.Ha.content,d=this.Ha.current_city,e=b.type,f=b.page_num||0,g=0,i=0,j=[],l=[],m=[],n=[],s=[],u=[];if(this.Ha.psrs&&this.Ha.psrs.SEResult){var w=this.Ha.psrs.SEResult; if(0<w.length)for(var y=0,D=w.length;y<D;++y)u.push(w[y])}if(w=this.Ha.suggest_query){y=0;for(D=w.length;y<D;++y)w[y]&&w[y].query&&u.push(w[y].query)}u=Q.unique(u);if(7!=e&&26!=e){var C;this.Gc||(i=b.count-(0==f?b.spec_dispnum||0:0),g=760>b.total?b.total:760,C=0==f?b.spec_dispnum||0:0);if(2!=e)if(this.Gc){D=b.result_array;f=a.ud.length;for(y=0;y<f;y++)if(n[y]=[],s[y]=[],m[y]=[],D[y])if(7==D[y].type){if(c&&c[y])for(C=0;C<c[y].length;C++)w=c[y][C],m[y].push({city:w.name,pA:w.code,numResults:w.num}); if(this.Ha.more_city&&this.Ha.more_city[y]){var F=this.Ha.more_city[y];C=0;for(var A=F.length;C<A;C++)for(var z=0,E=F[C].city.length;z<E;z++)w=F[C].city[z],m[y].push({city:w.name,pA:w.code,numResults:w.num})}}else{w=D[y].count;s[y].push({count:w,QZ:D[y].page_num||0,total:760<D[y].total?760:D[y].total});for(C=0;C<w;C++)if(c&&(c[y]&&c[y][C])&&(A=c[y][C],A.addr!==p)){z=this.YH(A.addr,A.poiType);F=[];if(A.cla&&0<A.cla.length)for(E=A.cla.length;E--;)G=A.cla[E][1],G=G.replace("<b>","").replace("</b>",""), F.unshift(G);A={title:A.name,uid:A.uid,point:hb(Q.kb(A.geo,o).point,this.map),pointN:Q.kb(A.geo,o).point,url:Y.Rh(A.uid,d.code),detailUrl:"http://api.map.baidu.com/place/detail?uid="+A.uid+"&output=html&source=jsapi",address:z,city:d.name,province:d.up_province_name||"",phoneNumber:A.tel,postcode:A.zip,type:A.poiType||0,isAccurate:A.acc_flag&&1==A.acc_flag?o:q,tags:F};n[y].push(A);l.push(A.point);this.xf.push(A)}}}else for(y=C;y<b.count;y++){if(c&&c[y]&&(A=c[y],A.addr!==p)){z=this.YH(A.addr,A.poiType); F=[];if(A.cla&&0<A.cla.length)for(E=A.cla.length;E--;){var G=A.cla[E][1],G=G.replace("<b>","").replace("</b>","");F.unshift(G)}A={title:A.name,uid:A.uid,point:hb(Q.kb(A.geo,o).point,this.map),pointN:Q.kb(A.geo,o).point,url:Y.Rh(A.uid,d.code),detailUrl:"http://api.map.baidu.com/place/detail?uid="+A.uid+"&output=html&source=jsapi",address:z,city:d.name,province:d.up_province_name||"",phoneNumber:A.tel,postcode:A.zip,type:A.poiType||0,isAccurate:A.acc_flag&&1==A.acc_flag?o:q};0<F.length&&(A.tags=F); j.push(A);l.push(A.point);this.xf.push(A)}}else i=g=1,A={title:c.cname,uid:c.uid,pointN:Q.kb(c.geo,o).point,point:hb(Q.kb(c.geo,o).point,this.map),address:c.cname,url:B.Rp+"?s="+encodeURIComponent("s&wd="+b.wd)},j.push(A),this.xf.push(A),l.push(A.point)}else if(26==e&&(i=g=1,A={title:b.wd,pointN:Q.aO(c[0]),point:hb(Q.aO(c[0]),this.map),url:B.Rp+"?s="+encodeURIComponent("s&wd="+b.wd)},j.push(A),this.xf.push(A),l.push(A.point)),7==e){for(y=i=g=0;y<c.length;y++)m.push({city:c[y].name,pA:c[y].code,numResults:c[y].num}); if(this.Ha.more_city){F=this.Ha.more_city;y=0;for(A=F.length;y<A;y++){C=0;for(E=F[y].city.length;C<E;C++)c=F[y].city[C],m.push({city:c.name,pA:c.code,numResults:c.num})}}}this.Zz=l;if(this.Gc){this.Oi=[];f=a.ud.length;b=o;for(y=0;y<f;y++)0<s[y].length&&0<s[y][0].total&&(b=q),j=new ii({wb:a.ud[y]||"",count:0<s[y].length?s[y][0].count:0,total:0<s[y].length?s[y][0].total:0,vF:0<s[y].length?s[y][0].QZ:0,city:d.name,province:d.up_province_name||"",dx:d.code,Qk:n[y]||[],JC:m[y]||[],Xp:this.qf(),za:a.za, xa:a.xa,$a:a.za&&a.xa?k:a.$a,xi:"",YO:u}),j.OB=a.Zc.qt,this.Oi.push(j);b?this.sb(2):this.sb(0);this.Ra(Y.Tc,this.Oi)}else this.ka=new ii({wb:a.ud,count:i,total:g,vF:b.page_num,city:d.name,province:d.up_province_name||"",dx:d.code,Qk:j,JC:m,Xp:this.qf(),za:a.za,xa:a.xa,$a:a.za&&a.xa?k:a.$a,xi:this.Ev(a,d),YO:u}),this.ka.OB=a.Zc.qt,0==g&&7!=e?this.sb(2):7!=e?this.sb(0):this.sb(1),this.Ra(Y.Tc,this.ka)},Ev:function(a,b){var c="",c="string"==typeof a.za?a.za+" "+a.ud:a.ud,d=b.name,e,f,g;if("object"== typeof a.za&&!(a.za instanceof O||a.za instanceof K))f=a.za.point,e=a.xa;a.$a&&!a.za&&(g=a.$a);if(a.za&&(a.za instanceof O||a.za instanceof K))f=a.za,e=a.xa;c=B.jc+"place/search?res=jsapi&query="+c+"&region="+d+"&output=html";f&&(c+="&location="+f.lat+","+f.lng+"&radius="+e);g&&(e=g.xe(),g=g.pf(),c+="&bounds="+e.lat+","+e.lng+","+g.lat+","+g.lng);return c},YH:function(a,b){b=b||0;return 1==b||3==b?Q.unique(a.split(";")).join("; "):a},J1:function(a){for(var b=0,c=a.length;b<c;b++)if(0<a[b].YL())return o; return q},Sj:function(){for(var a=0,b=this.wa.length;a<b;a++)this.wa[a].remove(),this.wa[a]=p;a=this.wa.length=0;for(b=this.xf.length;a<b;a++)this.xf[a]=p;this.xf.length=0;this.hA&&(this.hA.remove(),this.hA=p)},MA:function(){if(!this.Gc)return this.ka;for(var a,b=-1,c=0,d=this.Oi.length;c<d;c++){var e=this.Oi[c];e.wp()>b&&(a=e,b=e.wp())}return a},Qe:function(){delete this.Ha;delete this.Dd;delete this.ka;this.Gc&&delete this.Oi;delete this.fa;this.lb=-1;this.sb();this.Sj();this.k.ja.Ia&&(this.k.ja.Ia.innerHTML= "")},Tm:function(a){if(this.cm)this.Os.Tm(a);else if(this.fa){var b;b=this.Gc?this.MA():this.ka;if("number"==typeof a&&!isNaN(a)&&0<=a&&a<=b.wp()-1)switch(this.fa.Zc.pn=a,this.fa.Zc.qt){case "s":case "con":this.search(this.fa.Zc.wd,this.fa.options,this.fa);break;case "bd":this.xn(this.fa.Zc.wd,this.fa.$a,this.fa);break;case "nb":this.iq(this.fa.Zc.wd,this.fa.za,this.fa.xa,this.fa);break;case "bda":this.xn(this.fa.ud,this.fa.$a,this.fa);break;case "sa":this.search(this.fa.ud,this.fa.options,this.fa); break;case "nba":this.iq(this.fa.ud,this.fa.za,this.fa.xa,this.fa)}else this.sb(5),this.Ra(Y.Tc)}},sA:function(){this.Os||(this.Os=new ji(this))},select:function(a){this.vn.select(a);this.tn.select(a);this.lb=a}});U(te,{gotoPage:te.Tm,searchNearby:te.iq,searchInBounds:te.xn,search:te.search,clearResults:te.Qe});function ii(a){this.keyword=a.wb||"";this.eU=a.vF||0;this.QR=a.count||0;this.BB=a.total||0;this.VT=Math.ceil(a.total/a.Xp);this.center=a.za;this.radius=a.xa;this.bounds=a.$a;this.city=a.city;this.province=a.province;this.viewport=a.viewport;this.moreResultsUrl=a.xi;this.Yr=a.Qk&&a.Qk.slice(0)||[];this.mR=a.JC&&a.JC.slice(0);this.suggestions=a.YO||[]}x.extend(ii.prototype,{Gk:function(a){if(this.Yr[a])return this.Yr[a]},yt:v("BB"),wp:v("VT"),YL:v("QR"),eM:v("eU"),Mx:v("mR"),toString:ea("LocalResult")}); var ki=ii.prototype;U(ki,{getPoi:ki.Gk,getCurrentNumPois:ki.YL,getNumPois:ki.yt,getNumPages:ki.wp,getPageIndex:ki.eM,getCityList:ki.Mx});function ji(a){x.lang.Da.call(this);this.na=a;this.na.lb=-1}x.lang.ua(ji,x.lang.Da,"CustomSearch"); x.extend(ji.prototype,{search:function(a){this.jq=a.jq;this.na.Gc=q;if(this.iA(a)){var b=this;this.na.Pg(this.na.Ad,function(c){a.region=c;c=b.WS(a);b.yO(c,{Zc:c,options:a})})}},iA:function(){var a=o;ra||(this.na.sb(4),this.na.Ra(Y.Tc),a=q);return a},WS:function(a){var b=this.xx=a.xx;b&&b.geotableId&&(this.Rt=o);var c={region:a.region,page_size:this.na.qf(),ak:ra};a.PZ&&(c.page_index=a.PZ);a.wb&&(c.q=a.wb);if(a.$a){var d=a.$a.xe(),e=a.$a.pf();c.bounds=this.Rt?d.lng+","+d.lat+";"+e.lng+","+e.lat:d.lat+ ","+d.lng+";"+e.lat+","+e.lng}if(a.za&&(a.za instanceof O||a.za.point instanceof O||a.za instanceof K||a.za.point instanceof K)){d=p;if(a.za instanceof O||a.za instanceof K)d=a.za;else if(a.za.point instanceof O||a.za.point instanceof K)d=a.za.point;c.location=this.Rt?d.lng+","+d.lat:d.lat+","+d.lng}"string"==typeof a.za&&(c.q=a.za+" "+a.wb,this.jq="local");a.xa&&(c.radius=a.xa);this.Rt?c.geotable_id=b.geotableId:b&&b.databoxId&&(c.filter="databox:"+b.databoxId);b.tags&&(c.tags=b.tags);b.filter&& (c.filter=b.filter);return c},yO:function(a,b){var c=this,d="geosearch/poi";this.Rt&&(d="geosearch/v2/"+this.jq);de.eb(function(a,b){c.Lf(a,b)},a,b,d)},Lf:function(a,b){this.na.Qe();this.na.fa=b;if(0!=a.status)this.ka=new ii({wb:b.options.wb,Xp:this.na.qf(),za:b.options.za||"",xa:b.options.xa||"",$a:b.options.$a||"",xi:""}),5==a.status?this.na.sb(4):this.na.sb(2),this.na.ka=this.ka,this.na.Ra(Y.Tc,this.ka),this.na.tn.dispatchEvent("render");else{this.Sl(a,b);this.na.vn.dispatchEvent("render");this.na.tn.dispatchEvent("render"); var c=b.options.za;c&&("string"!=typeof c&&!(c instanceof O||c instanceof K)&&0==this.na.Om())&&this.na.vn.Ow(c);c={};c.ha=this.na.Zz;this.na.vn.SL(c);c=this.na.ka;if(this.na.k.ja.ku&&c&&0<c.yt()){var d=this;setTimeout(function(){d.na.select(0)},240)}}},Sl:function(a,b){var c=a.content||{},d=[],e=[],f=this.Rt;f&&(c=a.contents);for(var g=0,i=a.size;g<i&&c[g];g++){var j=c[g],l=f?new K(j.location[0],j.location[1]):new K(j.longitude,j.latitude);d.push({title:f?j.title:j.name,uid:j.uid,point:l,url:"", address:f?j.address:j.addr,city:j.city,province:j.province,phoneNumber:j.tel,postcode:j.zip,type:j.cla});e.push(l)}this.na.xf=d;this.na.Zz=e;this.ka=new ii({wb:b.options.wb,count:a.size,total:a.total,vF:b.Zc.page_index,city:"",province:"",dx:"",Qk:d,Xp:this.na.qf(),za:b.options.za,xa:b.options.xa,$a:b.options.$a,xi:""});0==a.total?this.na.sb(2):this.na.sb(0);this.na.ka=this.ka;this.na.Ra(Y.Tc,this.ka)},Tm:function(a){var b=this.na.ka;"number"==typeof a&&!isNaN(a)&&0<=a&&a<=b.wp()-1?(this.na.fa.Zc.page_index= a,this.yO(this.na.fa.Zc,this.na.fa)):(this.na.sb(5),this.na.Ra(Y.Tc))}});function gi(a){x.lang.Da.call(this);this.na=a;this.map=a.k.ja.map;this.wa=a.wa;this.ra()}x.lang.ua(gi,x.lang.Da,"RenderMap"); x.extend(gi.prototype,{ra:function(){this.addEventListener("render",this.Ba)},Ba:function(){if(this.map){for(var a=this,b=this.na.xf,c=[],d=0,e=b.length;d<e;d++){var f=b[d];c.push(f.point);var g=this.JQ(f.point,d,f.title);g&&(f.marker=g,function(){var b=d;g.addEventListener("click",function(){a.na.select(b)})}(),this.wa.push(g))}this.na.Ra(Y.zq,b)}},Ow:function(a){var b=this;if(a&&"string"!=typeof a&&!(a instanceof O||a instanceof PoinN)){var c=this.na.hA=X.Ow(this.map,a.point,a.title);c.addEventListener("click", function(){b.na.select(-1);b.na.lb="c";var d=b.LH(a);c.Mb(d)})}},JQ:function(a,b,c){return this.na.k.Pk<=fb.Cq&&!this.na.Gc?X.EV(this.map,a,b,c):X.DV(this.map,a,c)},select:function(a){if(this.map&&-1<a&&this.wa[a]){if(J())for(var b=p,c=0,d=this.wa.length;c<d;c++)b=this.wa[c],a==c?b.Vb(b.DM):b.Vb(b.IE),b.draw;else{c=0;for(d=this.wa.length;c<d;c++)b=this.wa[c],b.Ei(q)}this.map.Wc();if(b=this.na.xf[a])b=this.LH(b),a=this.wa[a],a.Ei(o),a.Mb(b)}},LH:function(a){var b=X.LW({title:a.title,As:a.address,r0:a.phoneNumber, url:a.url,WW:a.detailUrl,uid:a.uid,BF:a.type}),c=this;b.addEventListener("close",function(){c.na.tn.qW()});b.addEventListener("open",function(){c.na.Ra(Y.Tn,a,X.vt(c.map))});return b},SL:function(a){var b=this.na.k.ja;if(this.map)if(a.ha){var c=!b.bh,b=!b.ku&&b.bh,a=this.map.Dt(a.ha,{margins:[30,30,30,30]});c||this.map.Dh(a,{enableAnimation:b})}else a.wg=Q.Jx(a.wg,this.map),b.bh&&this.map.Gd(a.za,a.wg)}});function hi(a){x.lang.Da.call(this);this.na=a;this.Ia=a.k.ja.Ia;this.ra()}x.lang.ua(hi,x.lang.Da,"RenderList"); x.extend(hi.prototype,{ra:function(){this.addEventListener("render",this.Ba)},Ba:function(){if(this.Ia){var a=H("div",{style:"font:12px "+I.fontFamily+";border:1px solid #999;"}),b=H("div",{style:"background:#fff"}),c=H("ol",{style:"list-style:none;padding:0;margin:0"}),d=this.na.Om(),e=p;if(0==d)for(var e=0,f=this.na.xf.length;e<f;e++)d=this.ER(e),c.appendChild(d);else if(1==d){if(1==d&&!this.na.Gc){e=0;for(f=Math.min(6,this.na.ka.Mx().length);e<f;e++)d=this.CR(e),c.appendChild(d)}}else{e="";switch(d){case 2:e= "\\u62b1\\u6b49\\uff0c\\u672a\\u627e\\u5230\\u76f8\\u5173\\u5730\\u70b9\\u3002";break;case 4:e="\\u62b1\\u6b49\\uff0c\\u60a8\\u6240\\u63d0\\u4f9b\\u7684key\\u65e0\\u6548\\u3002"}d=H("li",{style:"margin:2px 0;padding:0 5px 0 3px;overflow:hidden;line-height:17px"});d.innerHTML=e;c.appendChild(d)}b.appendChild(c);a.appendChild(b);e=this.KR();a.appendChild(e);this.Ia.appendChild(a);this.na.Ra(Y.Yu,a)}},ER:function(a){var b=this.na.xf;if(b&&b[a]){var b=b[a],c=H("li",{style:"margin:2px 0;padding:0 5px 5px 0px;cursor:pointer;overflow:hidden;line-height:17px;*zoom:1;"}); -1<this.na.lb&&a==this.na.lb&&(c.style.backgroundColor="#f0f0f0");var d=0==a?"0px":"-"+25*a+"px";if(this.na.k.Pk>fb.Cq||this.na.Gc)d="-275px";var d=["<span style=\'background:url("+B.jc+"images/markers.png) -23px "+d+" no-repeat;width:19px;height:25px;cursor:pointer;float:left;*zoom:1;overflow:hidden;margin:2px 3px 0 5px;*margin-right:0px;display:inline;\'>&nbsp;</span>"],e,f=RegExp(this.na.Gc?this.na.fa.ud.join("|"):this.na.ka.keyword,"ig");b.title&&(e=b.title.replace(f,"<b>$&</b>"));1==b.type?e+= "-\\u516c\\u4ea4\\u8f66\\u7ad9":3==b.type&&(e+="-\\u5730\\u94c1\\u7ad9");d.push("<div style=\'zoom:1;overflow:hidden;padding:0 5px;\'>");d.push("<div style=\'line-height:20px;font-size:12px;\'><span style=\'color:#00c;\'>"+e+"</span>");b.detailUrl&&d.push("<a target=\'_blank\' href=\'"+b.detailUrl+"\' style=\'margin-left:5px;font-size:12px;color:#3d6dcc;font-weight:normal;text-decoration:none;\'>\\u8be6\\u60c5&raquo;</a>");d.push("</div>");b.address&&(e=b.address.replace(f,"<b>$&</b>"),d.push("<div style=\'padding:2px 0;line-height:18px;*zoom:1;overflow:hidden;\'><b style=\'float:left;font-weight:bold;*zoom:1;overflow:hidden;padding-right:5px;*margin-right:-3px;\'>\\u5730\\u5740:</b><span style=\'color:#666;display:block;zoom:1;overflow:hidden;\'>"+ e+"</span></div>"));b.phoneNumber&&d.push("<div style=\'padding:2px 0;line-height:18px;*zoom:1;overflow:hidden;\'><b style=\'float:left;font-weight:bold;*zoom:1;overflow:hidden;padding-right:5px;*margin-right:-3px;\'>\\u7535\\u8bdd:</b><span style=\'color:#666;\'>"+b.phoneNumber+"</span></div>");d.push("</div>");c.innerHTML=d.join("");var g=this;c.onclick=function(){g.na.select(a)};return c}},KR:function(){var a=this,b=H("div",{style:"white-space:nowrap;text-align:right;background:#e5ecf9;margin-top:5px;padding:2px;overflow:hidden;zoom:1;"}); if(!this.na.Gc&&!this.na.cm){var c=H("a",{style:"color:#7777cc;float:right;",href:this.na.ka.moreResultsUrl,target:"_blank",title:"\\u5230\\u767e\\u5ea6\\u5730\\u56fe\\u67e5\\u770b\\u66f4\\u591a\\u7ed3\\u679c"});c.innerHTML="\\u66f4\\u591a\\u7ed3\\u679c&#187;";b.appendChild(c)}var c=H("div",{style:"float:left;margin-right:5px"}),d=this.na.MA();0<this.na.xf.length&&new se(c,function(b){a.na.Tm(b-1)},{Md:d.wp(),page:d.eM()+1,update:q});b.appendChild(c);return b},qW:function(){this.Ia&&("number"==typeof this.na.lb&& -1!=this.na.lb&&this.Ia.getElementsByTagName("li")[this.na.lb])&&(this.Ia.getElementsByTagName("li")[this.na.lb].childNodes[1].style.backgroundColor="");this.na.lb=-1},select:function(a){if(this.Ia){var b=this.na.lb;"number"==typeof b&&(-1!=b&&this.Ia.getElementsByTagName("li")[b])&&(this.Ia.getElementsByTagName("li")[b].childNodes[1].style.backgroundColor="");"number"==typeof a&&(-1!=a&&this.Ia.getElementsByTagName("li")[a])&&(this.Ia.getElementsByTagName("li")[a].childNodes[1].style.backgroundColor= "#f0f0f0")}},CR:function(a){var b=H("li",{style:"margin:2px 0;padding:0 5px 0 3px;cursor:pointer;overflow:hidden;line-height:17px"});b.$j=a;var c=this.na.ka.Mx();b.innerHTML="<span style=\'color:#00c;text-decoration:underline\'>"+c[a].city+"</span> <span style=\'color:#666\'>(\\u5171"+c[a].numResults+"\\u6761\\u7ed3\\u679c)</span>";var d=this.na,e=d.ka;b.onclick=function(){d.An(e.Mx()[a].city);d.search(e.keyword)};return b}}); ');