/**/_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;aa.length||10a.length||10a.length||10c?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;lb.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","").replace("",""), 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","").replace("","");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};0b&&(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&&0fb.Cq||this.na.Gc)d="-275px";var d=[" "],e,f=RegExp(this.na.Gc?this.na.fa.ud.join("|"):this.na.ka.keyword,"ig");b.title&&(e=b.title.replace(f,"$&"));1==b.type?e+= "-\\u516c\\u4ea4\\u8f66\\u7ad9":3==b.type&&(e+="-\\u5730\\u94c1\\u7ad9");d.push("
");d.push("
"+e+"");b.detailUrl&&d.push("\\u8be6\\u60c5»");d.push("
");b.address&&(e=b.address.replace(f,"$&"),d.push("
\\u5730\\u5740:"+ e+"
"));b.phoneNumber&&d.push("
\\u7535\\u8bdd:"+b.phoneNumber+"
");d.push("
");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»";b.appendChild(c)}var c=H("div",{style:"float:left;margin-right:5px"}),d=this.na.MA();0"+c[a].city+" (\\u5171"+c[a].numResults+"\\u6761\\u7ed3\\u679c)";var d=this.na,e=d.ka;b.onclick=function(){d.An(e.Mx()[a].city);d.search(e.keyword)};return b}}); ');