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.
2 lines
18 KiB
2 lines
18 KiB
/**/_jsload2&&_jsload2('local', 'fb.mL=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?t:p}; z.extend(fb.prototype,{Ny:function(){for(var a=0,b=this.Ra.length;a<b;a++){var c=this.Ra[a];this[c.method].apply(this,c.arguments)}delete this.Ra;this.xa()},xa:function(){this.ym=new Eh(this);this.xm=new Fh(this)},search:function(a,b,c){if(!a||a instanceof Array&&(1>a.length||10<a.length))this.Pe(),this.Xa(5),this.Ja(X.ac);else if(b=b||{},b.customData)this.Xy(),this.Jr.search({wb:a,ip:"local",qw:b.customData}),this.Cl=p;else{this.Cl=t;var e=c||{},f=this;this.Eg(this.yd,function(c){c=c||1;f.Gc=f.Rz(a); c=f.Gc?{qt:"sa",c:c,wd:a.join("$$"),wdn:a.length,rn:f.kf()}:{qt:b.forceLocal?"con":"s",c:c,wd:a,rn:f.kf()};f.m.bp&&z.extend(c,{from:f.m.bp});z.extend(c,e.bd);b.log&&(c.log="center");var i={bd:c,options:b,td:e.td||a};z.extend(i,e);Md.nb(function(a,b){f.Gf(a,b)},c,i)})}},Rz:function(a){return a&&a instanceof Array?p:t},Bm:function(a,b,c){if(!a||!b||a instanceof Array&&(1>a.length||10<a.length))this.Pe(),this.Xa(5),this.Ja(X.ac);else{var c=c||{},e=this;if(c.customData)this.Xy(),this.Jr.search({wb:a, fb:b,ip:"bound",qw:c.customData}),this.Cl=p;else{this.Cl=t;var f=c||{};this.Eg(this.yd,function(c){var c=c||1,i=b.Se(),k=b.Lf(),i=S.Gb(i),k=S.Gb(k),i="("+i.lng+","+i.lat+";"+k.lng+","+k.lat+")";e.Gc=e.Rz(a);c=e.Gc?{qt:"bda",c:c,wd:a.join("$$"),wdn:a.length,ar:i,rn:e.kf(),l:18}:{qt:"bd",c:c,wd:a,ar:i,rn:e.m.vk,l:18};e.m.bp&&z.extend(c,{from:e.m.bp});z.extend(c,f.bd);Md.nb(function(a,b){e.Gf(a,b)},c,f&&f.Ka&&f.Ca?{bd:c,fb:b,Ka:f.Ka,Ca:f.Ca,td:f.td||a}:{bd:c,fb:b,td:f.td||a})})}}},hp:function(a,b,c, e){if(!a||!b||!(b instanceof J)&&"object"==typeof b&&!b.uid||a instanceof Array&&(1>a.length||10<a.length))this.Pe(),this.Xa(5),this.Ja(X.ac);else if(e=e||{},e.customData)this.Xy(),this.Jr.search({wb:a,Ka:b,Ca:c,ip:"nearby",qw:e.customData}),this.Cl=p;else{this.Cl=t;var c=c||fb.wF,c=0>c?fb.wF:c>fb.EF?fb.EF:c,f=this,g=e||{};if(b instanceof J){var i=S.Gb(b),e=new J(i.lng-c,i.lat-c),i=new J(i.lng+c,i.lat+c),e=S.cc(e),i=S.cc(i),e=new hb(new J(e.lng,e.lat),new J(i.lng,i.lat));g.Ka=b;g.Ca=c;this.Bm(a,e, g)}else this.Eg(this.yd,function(e){e=e||1;f.Gc=f.Rz(a);e=f.Gc?{qt:"nba",c:e,wd:a.join("$$"),wdn:a.length,rn:f.kf(),uid:b.uid,r:c}:{qt:"nb",c:e,wd:a,rn:f.kf(),uid:b.uid,r:c};if("string"==typeof b){if(f.Gc){e.qt="sa";for(var i=[],n=0;n<a.length;n++)i.push(b+" "+a[n]);e.wd=i.join("$$");e.wdn=i.length}else e.qt="s",e.wd=b+" "+a;delete e.r;delete e.uid}f.m.bp&&z.extend(e,{from:f.m.bp});z.extend(e,g.bd);Md.nb(function(a,b){f.Gf(a,b)},e,{bd:e,Ka:b,Ca:c,td:g.td||a})})}},Gf:function(a,b){var c=this;c.Gc= 45==a.result.type||46==a.result.type||47==a.result.type?p:t;this.Pe();c.Ma=a;this.ya=b;var e=a.result,f=b.bd.qt;if(c.Gc){if(0!=e.error||!fb.mL(f,e.type)){k=a.current_city;this.yi=[];for(var e=b.td,f=0,g=e.length;f<g;f++){var i=new Gh({wb:e[f],city:k.name,province:k.up_province_name||"",Xv:k.code,Zo:c.kf(),Ka:b.Ka,Ca:b.Ca,fb:b.Ka&&b.Ca?l:b.fb,gi:""});i.yA=b.bd.qt;this.yi.push(i)}this.Xa(Nd);this.Ja(X.ac,this.yi);c.xm.dispatchEvent("render");return}}else if(0!=e.error||!fb.mL(f,e.type)){var k=a.current_city; this.la=new Gh({wb:b.td,city:k.name,province:k.up_province_name||"",Xv:k.code,Zo:c.kf(),Ka:b.Ka,Ca:b.Ca,fb:b.Ka&&b.Ca?l:b.fb,gi:this.Cu(b,k)});this.la.yA=b.bd.qt;this.Xa(Nd);this.Ja(X.ac,this.la);c.xm.dispatchEvent("render");return}c.Tq(b);c.ym.dispatchEvent("render");c.xm.dispatchEvent("render");(e=this.ya.Ka)&&("string"!=typeof e&&!(e instanceof J))&&this.ym.Lv(e);e={};switch(this.Ma.result&&this.Ma.result.type){case 11:case 12:case 21:case 45:case 46:case 47:e.na=this.Dy;break;case 2:e.Ka=this.la.mk(0).point; e.pg=this.Ma.content.level;break;case 28:e.Ka=this.la.mk(0).point;e.pg=13;break;case 26:e.Ka=this.la.mk(0).point,e.pg=parseInt(this.Ma.content[1])}this.ym.kK(e);e=this.Gc?this.tz():this.la;this.m.pa.gt&&(e&&0<e.ls())&&(c=this,setTimeout(function(){c.select(0)},240))},Tq:function(a){var b=this.Ma.result,c=this.Ma.content,e=this.Ma.current_city,f=b.type,g=b.page_num||0,i=0,k=0,m=[],n=[],o=[],q=[],v=[],w=[];if(this.Ma.psrs&&this.Ma.psrs.SEResult){var y=this.Ma.psrs.SEResult;if(0<y.length)for(var A=0, B=y.length;A<B;++A)w.push(y[A])}if(y=this.Ma.suggest_query){A=0;for(B=y.length;A<B;++A)y[A]&&y[A].query&&w.push(y[A].query)}w=db.unique(w);if(7!=f&&26!=f){var C;this.Gc||(k=b.count-(0==g?b.spec_dispnum||0:0),i=760>b.total?b.total:760,C=0==g?b.spec_dispnum||0:0);if(2!=f)if(this.Gc){B=b.result_array;g=a.td.length;for(A=0;A<g;A++)if(q[A]=[],v[A]=[],o[A]=[],B[A])if(7==B[A].type){if(c&&c[A])for(C=0;C<c[A].length;C++)y=c[A][C],o[A].push({city:y.name,Uy:y.code,numResults:y.num});if(this.Ma.more_city&&this.Ma.more_city[A]){var F= this.Ma.more_city[A];C=0;for(var E=F.length;C<E;C++)for(var G=0,N=F[C].city.length;G<N;G++)y=F[C].city[G],o[A].push({city:y.name,Uy:y.code,numResults:y.num})}}else{y=B[A].count;v[A].push({count:y,BY:B[A].page_num||0,total:760<B[A].total?760:B[A].total});for(C=0;C<y;C++)if(c&&(c[A]&&c[A][C])&&(E=c[A][C],E.addr!==s)){G=this.yG(E.addr,E.poiType);F=[];if(E.cla&&0<E.cla.length)for(N=E.cla.length;N--;)L=E.cla[N][1],L=L.replace("<b>","").replace("</b>",""),F.unshift(L);E={title:E.name,uid:E.uid,point:db.ze(E.geo, p).point,url:X.Eu(E.uid,e.code),detailUrl:"http://api.map.baidu.com/place/detail?uid="+E.uid+"&output=html&source=jsapi",address:G,city:e.name,province:e.up_province_name||"",phoneNumber:E.tel,postcode:E.zip,type:E.poiType||0,isAccurate:E.acc_flag&&1==E.acc_flag?p:t,tags:F};q[A].push(E);n.push(E.point);this.sf.push(E)}}}else for(A=C;A<b.count;A++){if(c&&c[A]&&(E=c[A],E.addr!==s)){G=this.yG(E.addr,E.poiType);F=[];if(E.cla&&0<E.cla.length)for(N=E.cla.length;N--;){var L=E.cla[N][1],L=L.replace("<b>", "").replace("</b>","");F.unshift(L)}E={title:E.name,uid:E.uid,point:db.ze(E.geo,p).point,url:X.Eu(E.uid,e.code),detailUrl:"http://api.map.baidu.com/place/detail?uid="+E.uid+"&output=html&source=jsapi",address:G,city:e.name,province:e.up_province_name||"",phoneNumber:E.tel,postcode:E.zip,type:E.poiType||0,isAccurate:E.acc_flag&&1==E.acc_flag?p:t};0<F.length&&(E.tags=F);m.push(E);n.push(E.point);this.sf.push(E)}}else k=i=1,E={title:c.cname,uid:c.uid,point:db.ze(c.geo,p).point,address:c.cname,url:D.Uo+ "?s="+encodeURIComponent("s&wd="+b.wd)},m.push(E),this.sf.push(E),n.push(E.point)}else if(26==f&&(k=i=1,E={title:b.wd,point:db.HY(c[0]),url:D.Uo+"?s="+encodeURIComponent("s&wd="+b.wd)},m.push(E),this.sf.push(E),n.push(E.point)),7==f){for(A=k=i=0;A<c.length;A++)o.push({city:c[A].name,Uy:c[A].code,numResults:c[A].num});if(this.Ma.more_city){F=this.Ma.more_city;A=0;for(E=F.length;A<E;A++){C=0;for(N=F[A].city.length;C<N;C++)c=F[A].city[C],o.push({city:c.name,Uy:c.code,numResults:c.num})}}}this.Dy=n;if(this.Gc){this.yi= [];g=a.td.length;b=p;for(A=0;A<g;A++)0<v[A].length&&0<v[A][0].total&&(b=t),m=new Gh({wb:a.td[A]||"",count:0<v[A].length?v[A][0].count:0,total:0<v[A].length?v[A][0].total:0,YD:0<v[A].length?v[A][0].BY:0,city:e.name,province:e.up_province_name||"",Xv:e.code,xk:q[A]||[],uB:o[A]||[],Zo:this.kf(),Ka:a.Ka,Ca:a.Ca,fb:a.Ka&&a.Ca?l:a.fb,gi:"",uN:w}),m.yA=a.bd.qt,this.yi.push(m);b?this.Xa(Nd):this.Xa(0);this.Ja(X.ac,this.yi)}else this.la=new Gh({wb:a.td,count:k,total:i,YD:b.page_num,city:e.name,province:e.up_province_name|| "",Xv:e.code,xk:m,uB:o,Zo:this.kf(),Ka:a.Ka,Ca:a.Ca,fb:a.Ka&&a.Ca?l:a.fb,gi:this.Cu(a,e),uN:w}),this.la.yA=a.bd.qt,0==i&&7!=f?this.Xa(Nd):7!=f?this.Xa(0):this.Xa(1),this.Ja(X.ac,this.la)},Cu:function(a,b){var c="",c="string"==typeof a.Ka?a.Ka+" "+a.td:a.td,e=b.name,f,g,i;"object"==typeof a.Ka&&!(a.Ka instanceof J)&&(g=a.Ka.point,f=a.Ca);a.fb&&!a.Ka&&(i=a.fb);a.Ka&&a.Ka instanceof J&&(g=a.Ka,f=a.Ca);c=D.Cd+"place/search?res=jsapi&query="+c+"®ion="+e+"&output=html";g&&(c+="&location="+g.lat+","+ g.lng+"&radius="+f);i&&(f=i.Se(),i=i.Lf(),c+="&bounds="+f.lat+","+f.lng+","+i.lat+","+i.lng);return c},yG:function(a,b){b=b||0;return 1==b||3==b?db.unique(a.split(";")).join("; "):a},y0:function(a){for(var b=0,c=a.length;b<c;b++)if(0<a[b].oK())return p;return t},xj:function(){for(var a=0,b=this.Ba.length;a<b;a++)this.Ba[a].remove(),this.Ba[a]=s;a=this.Ba.length=0;for(b=this.sf.length;a<b;a++)this.sf[a]=s;this.sf.length=0;this.My&&(this.My.remove(),this.My=s)},tz:function(){if(!this.Gc)return this.la; for(var a,b=-1,c=0,e=this.yi.length;c<e;c++){var f=this.yi[c];f.Fo()>b&&(a=f,b=f.Fo())}return a},Pe:function(){delete this.Ma;delete this.Ke;delete this.la;this.Gc&&delete this.yi;delete this.ya;this.ob=-1;this.Xa();this.xj();this.m.pa.Oa&&(this.m.pa.Oa.innerHTML="")},dm:function(a){if(this.Cl)this.Jr.dm(a);else if(this.ya){var b;b=this.Gc?this.tz():this.la;if("number"==typeof a&&!isNaN(a)&&0<=a&&a<=b.Fo()-1)switch(this.ya.bd.pn=a,this.ya.bd.qt){case "s":case "con":this.search(this.ya.bd.wd,this.ya.options, this.ya);break;case "bd":this.Bm(this.ya.bd.wd,this.ya.fb,this.ya);break;case "nb":this.hp(this.ya.bd.wd,this.ya.Ka,this.ya.Ca,this.ya);break;case "bda":this.Bm(this.ya.td,this.ya.fb,this.ya);break;case "sa":this.search(this.ya.td,this.ya.options,this.ya);break;case "nba":this.hp(this.ya.td,this.ya.Ka,this.ya.Ca,this.ya)}else this.Xa(5),this.Ja(X.ac)}},Xy:function(){this.Jr||(this.Jr=new Hh(this))},select:function(a){this.ym.select(a);this.xm.select(a);this.ob=a}}); U(ce,{gotoPage:ce.dm,searchNearby:ce.hp,searchInBounds:ce.Bm,search:ce.search,clearResults:ce.Pe});function Gh(a){this.keyword=a.wb||"";this.oS=a.YD||0;this.cQ=a.count||0;this.lA=a.total||0;this.fS=Math.ceil(a.total/a.Zo);this.center=a.Ka;this.radius=a.Ca;this.bounds=a.fb;this.city=a.city;this.province=a.province;this.viewport=a.viewport;this.moreResultsUrl=a.gi;this.Qq=a.xk&&a.xk.slice(0)||[];this.zP=a.uB&&a.uB.slice(0);this.suggestions=a.uN||[]}z.extend(Gh.prototype,{mk:function(a){if(this.Qq[a])return this.Qq[a]},ls:x("lA"),Fo:x("fS"),oK:x("cQ"),xK:x("oS"),Cw:x("zP"),toString:ea("LocalResult")}); var Ih=Gh.prototype;U(Ih,{getPoi:Ih.mk,getCurrentNumPois:Ih.oK,getNumPois:Ih.ls,getNumPages:Ih.Fo,getPageIndex:Ih.xK,getCityList:Ih.Cw});function Hh(a){z.lang.Ga.call(this);this.qa=a;this.qa.ob=-1}z.lang.wa(Hh,z.lang.Ga,"CustomSearch"); z.extend(Hh.prototype,{search:function(a){this.ip=a.ip;this.qa.Gc=t;if(this.Ny(a)){var b=this;this.qa.Eg(this.qa.yd,function(c){a.region=c;c=b.fR(a);b.ZM(c,{bd:c,options:a})})}},Ny:function(){var a=p;qa||(this.qa.Xa(4),this.qa.Ja(X.ac),a=t);return a},fR:function(a){var b=this.qw=a.qw;b&&b.geotableId&&(this.Js=p);var c={region:a.region,page_size:this.qa.kf(),ak:qa};a.AY&&(c.page_index=a.AY);a.wb&&(c.q=a.wb);if(a.fb){var e=a.fb.Se(),f=a.fb.Lf();c.bounds=this.Js?e.lng+","+e.lat+";"+f.lng+","+f.lat:e.lat+ ","+e.lng+";"+f.lat+","+f.lng}if(a.Ka&&(a.Ka instanceof J||a.Ka.point instanceof J))e=s,a.Ka instanceof J?e=a.Ka:a.Ka.point instanceof J&&(e=a.Ka.point),c.location=this.Js?e.lng+","+e.lat:e.lat+","+e.lng;"string"==typeof a.Ka&&(c.q=a.Ka+" "+a.wb,this.ip="local");a.Ca&&(c.radius=a.Ca);this.Js?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},ZM:function(a,b){var c=this,e="geosearch/poi";this.Js&&(e="geosearch/v2/"+ this.ip);Md.nb(function(a,b){c.Gf(a,b)},a,b,e)},Gf:function(a,b){this.qa.Pe();this.qa.ya=b;if(0!=a.status)this.la=new Gh({wb:b.options.wb,Zo:this.qa.kf(),Ka:b.options.Ka||"",Ca:b.options.Ca||"",fb:b.options.fb||"",gi:""}),5==a.status?this.qa.Xa(4):this.qa.Xa(Nd),this.qa.la=this.la,this.qa.Ja(X.ac,this.la),this.qa.xm.dispatchEvent("render");else{this.Tq(a,b);this.qa.ym.dispatchEvent("render");this.qa.xm.dispatchEvent("render");var c=b.options.Ka;c&&("string"!=typeof c&&!(c instanceof J)&&0==this.qa.am())&& this.qa.ym.Lv(c);c={};c.na=this.qa.Dy;this.qa.ym.kK(c);c=this.qa.la;if(this.qa.m.pa.gt&&c&&0<c.ls()){var e=this;setTimeout(function(){e.qa.select(0)},240)}}},Tq:function(a,b){var c=a.content||{},e=[],f=[],g=this.Js;g&&(c=a.contents);for(var i=0,k=a.size;i<k&&c[i];i++){var m=c[i],n=g?new J(m.location[0],m.location[1]):new J(m.longitude,m.latitude);e.push({title:g?m.title:m.name,uid:m.uid,point:n,url:"",address:g?m.address:m.addr,city:m.city,province:m.province,phoneNumber:m.tel,postcode:m.zip,type:m.cla}); f.push(n)}this.qa.sf=e;this.qa.Dy=f;this.la=new Gh({wb:b.options.wb,count:a.size,total:a.total,YD:b.bd.page_index,city:"",province:"",Xv:"",xk:e,Zo:this.qa.kf(),Ka:b.options.Ka,Ca:b.options.Ca,fb:b.options.fb,gi:""});0==a.total?this.qa.Xa(Nd):this.qa.Xa(0);this.qa.la=this.la;this.qa.Ja(X.ac,this.la)},dm:function(a){var b=this.qa.la;"number"==typeof a&&!isNaN(a)&&0<=a&&a<=b.Fo()-1?(this.qa.ya.bd.page_index=a,this.ZM(this.qa.ya.bd,this.qa.ya)):(this.qa.Xa(5),this.qa.Ja(X.ac))}});function Eh(a){z.lang.Ga.call(this);this.qa=a;this.map=a.m.pa.map;this.Ba=a.Ba;this.xa()}z.lang.wa(Eh,z.lang.Ga,"RenderMap"); z.extend(Eh.prototype,{xa:function(){this.addEventListener("render",this.Ea)},Ea:function(){if(this.map){for(var a=this,b=this.qa.sf,c=[],e=0,f=b.length;e<f;e++){var g=b[e];c.push(g.point);var i=this.WO(g.point,e,g.title);i&&(g.marker=i,function(){var b=e;i.addEventListener("click",function(){a.qa.select(b)})}(),this.Ba.push(i))}this.qa.Ja(X.Ap,b)}},Lv:function(a){var b=this;if(a&&"string"!=typeof a&&!(a instanceof J)){var c=this.qa.My=W.Lv(this.map,a.point,a.title);c.addEventListener("click",function(){b.qa.select(-1); b.qa.ob="c";var e=b.mG(a);c.ad(e)})}},WO:function(a,b,c){return this.qa.m.vk<=fb.Dp&&!this.qa.Gc?W.OT(this.map,a,b,c):W.NT(this.map,a,c)},select:function(a){if(this.map&&-1<a&&this.Ba[a]){if(I())for(var b=s,c=0,e=this.Ba.length;c<e;c++)b=this.Ba[c],a==c?b.Tb(b.$K):b.Tb(b.nD),b.draw;else{c=0;for(e=this.Ba.length;c<e;c++)b=this.Ba[c],b.ni(t)}this.map.Xc();if(b=this.qa.sf[a])b=this.mG(b),a=this.Ba[a],a.ni(p),a.ad(b)}},mG:function(a){var b=W.ZU({title:a.title,tr:a.address,k_:a.phoneNumber,url:a.url,jV:a.detailUrl, uid:a.uid,SY:a.type}),c=this;b.addEventListener("close",function(){c.qa.xm.EU()});b.addEventListener("open",function(){c.qa.Ja(X.Tm,a,W.js(c.map))});return b},kK:function(a){var b=this.qa.m.pa;if(this.map)if(a.na){var c=!b.Sg,b=!b.gt&&b.Sg,a=this.map.vs(a.na,{margins:[30,30,30,30]});c||this.map.mh(a,{enableAnimation:b})}else a.pg=db.Aw(a.pg,this.map),b.Sg&&this.map.Ed(a.Ka,a.pg)}});function Fh(a){z.lang.Ga.call(this);this.qa=a;this.Oa=a.m.pa.Oa;this.xa()}z.lang.wa(Fh,z.lang.Ga,"RenderList"); z.extend(Fh.prototype,{xa:function(){this.addEventListener("render",this.Ea)},Ea:function(){if(this.Oa){var a=O("div",{style:"font:12px "+H.fontFamily+";border:1px solid #999;"}),b=O("div",{style:"background:#fff"}),c=O("ol",{style:"list-style:none;padding:0;margin:0"}),e=this.qa.am(),f=s;if(0==e)for(var f=0,g=this.qa.sf.length;f<g;f++)e=this.RP(f),c.appendChild(e);else if(1==e){if(1==e&&!this.qa.Gc){f=0;for(g=Math.min(6,this.qa.la.Cw().length);f<g;f++)e=this.PP(f),c.appendChild(e)}}else{f="";switch(e){case Nd:f= "\\u62b1\\u6b49\\uff0c\\u672a\\u627e\\u5230\\u76f8\\u5173\\u5730\\u70b9\\u3002";break;case 4:f="\\u62b1\\u6b49\\uff0c\\u60a8\\u6240\\u63d0\\u4f9b\\u7684key\\u65e0\\u6548\\u3002"}e=O("li",{style:"margin:2px 0;padding:0 5px 0 3px;overflow:hidden;line-height:17px"});e.innerHTML=f;c.appendChild(e)}b.appendChild(c);a.appendChild(b);f=this.XP();a.appendChild(f);this.Oa.appendChild(a);this.qa.Ja(X.Xt,a)}},RP:function(a){var b=this.qa.sf;if(b&&b[a]){var b=b[a],c=O("li",{style:"margin:2px 0;padding:0 5px 5px 0px;cursor:pointer;overflow:hidden;line-height:17px;*zoom:1;"}); -1<this.qa.ob&&a==this.qa.ob&&(c.style.backgroundColor="#f0f0f0");var e=0==a?"0px":"-"+25*a+"px";if(this.qa.m.vk>fb.Dp||this.qa.Gc)e="-275px";var e=["<span style=\'background:url("+D.Cd+"images/markers.png) -23px "+e+" no-repeat;width:19px;height:25px;cursor:pointer;float:left;*zoom:1;overflow:hidden;margin:2px 3px 0 5px;*margin-right:0px;display:inline;\'> </span>"],f,g=RegExp(this.qa.Gc?this.qa.ya.td.join("|"):this.qa.la.keyword,"ig");b.title&&(f=b.title.replace(g,"<b>$&</b>"));1==b.type?f+= "-\\u516c\\u4ea4\\u8f66\\u7ad9":3==b.type&&(f+="-\\u5730\\u94c1\\u7ad9");e.push("<div style=\'zoom:1;overflow:hidden;padding:0 5px;\'>");e.push("<div style=\'line-height:20px;font-size:12px;\'><span style=\'color:#00c;\'>"+f+"</span>");b.detailUrl&&e.push("<a target=\'_blank\' href=\'"+b.detailUrl+"\' style=\'margin-left:5px;font-size:12px;color:#3d6dcc;font-weight:normal;text-decoration:none;\'>\\u8be6\\u60c5»</a>");e.push("</div>");b.address&&(f=b.address.replace(g,"<b>$&</b>"),e.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;\'>"+ f+"</span></div>"));b.phoneNumber&&e.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>");e.push("</div>");c.innerHTML=e.join("");var i=this;c.onclick=function(){i.qa.select(a)};return c}},XP:function(){var a=this,b=O("div",{style:"white-space:nowrap;text-align:right;background:#e5ecf9;margin-top:5px;padding:2px;overflow:hidden;zoom:1;"}); if(!this.qa.Gc&&!this.qa.Cl){var c=O("a",{style:"color:#7777cc;float:right;",href:this.qa.la.moreResultsUrl,target:"_blank",title:"\\u5230\\u767e\\u5ea6\\u5730\\u56fe\\u67e5\\u770b\\u66f4\\u591a\\u7ed3\\u679c"});c.innerHTML="\\u66f4\\u591a\\u7ed3\\u679c»";b.appendChild(c)}var c=O("div",{style:"float:left;margin-right:5px"}),e=this.qa.tz();0<this.qa.sf.length&&new be(c,function(b){a.qa.dm(b-1)},{Jd:e.Fo(),page:e.xK()+1,update:t});b.appendChild(c);return b},EU:function(){this.Oa&&("number"==typeof this.qa.ob&& -1!=this.qa.ob&&this.Oa.getElementsByTagName("li")[this.qa.ob])&&(this.Oa.getElementsByTagName("li")[this.qa.ob].childNodes[1].style.backgroundColor="");this.qa.ob=-1},select:function(a){if(this.Oa){var b=this.qa.ob;"number"==typeof b&&(-1!=b&&this.Oa.getElementsByTagName("li")[b])&&(this.Oa.getElementsByTagName("li")[b].childNodes[1].style.backgroundColor="");"number"==typeof a&&(-1!=a&&this.Oa.getElementsByTagName("li")[a])&&(this.Oa.getElementsByTagName("li")[a].childNodes[1].style.backgroundColor= "#f0f0f0")}},PP:function(a){var b=O("li",{style:"margin:2px 0;padding:0 5px 0 3px;cursor:pointer;overflow:hidden;line-height:17px"});b.Gj=a;var c=this.qa.la.Cw();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 e=this.qa,f=e.la;b.onclick=function(){e.Em(f.Cw()[a].city);e.search(f.keyword)};return b}}); ');
|