/**/_jsload2 && _jsload2('autocomplete', 'x.lang.Da.prototype.mi=ja(0,function(){delete window[x.ba]._instances[this.ba];for(var a in this)x.lang.Pt(this[a])||delete this[a]});x.K.getComputedStyle=function(a,b){var a=x.K.Xj(a),c=x.K.lE(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,p))?c[b]||c.getPropertyValue(b):""};x.K.remove=function(a){var a=x.K.Xj(a),b=a.parentNode;b&&b.removeChild(a)};x.lang.isArray=function(a){return"[object Array]"==Object.prototype.toString.call(a)}; x.event=x.event||{};x.event.stopPropagation=function(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=o};x.event.preventDefault=function(a){a.preventDefault?a.preventDefault():a.returnValue=q};x.event.stop=function(a){var b=x.event;b.stopPropagation(a);b.preventDefault(a)};x.kc.indexOf=function(a,b,c){var d=a.length,c=c|0;for(0>c&&(c=Math.max(0,d+c));c",H5:"
#{2}
", B0:\'
\\u5173\\u95ed
\',A0:\'#{0}
\',D0:\'#{1}\',vY:function(){return x.np(this.C0, this.Yb(),this.mt(),this.ba)},va:function(a,b){var c,a=x.$(a);this.AC=b;!this.ri()&&a&&(this.p0=a.id?a.id:a.id=this.Yb("input"),c=this.i_(),c.style.display="none",c.innerHTML=this.vY(),this.dispatchEvent("onload"))},lB:function(){var a=this.ri();return a&&"none"!=a.style.display},Dj:function(a){var b=this.zm,a={data:{item:(b&&"number"==typeof a&&"undefined"!=typeof b[a]?b[a].value:a)==a?{value:a,content:a}:b[a],index:a}};this.dispatchEvent("onbeforepick",a)&&this.dispatchEvent("onpick",a)},show:function(a, b,c){var a=0,d=b.length;this.zk=[];this.Xc=-1;if(0==d&&!c)this.U();else{for(this.zm=[];ad.width&&(d.width=0)),b.height))d.height=parseFloat(b.height)-c(a,"paddingTop")-c(a,"paddingBottom")-c(a,"borderTopWidth")-c(a,"borderBottomWidth"),0>d.height&&(d.height=0);return x.K.Di(a,d)}; (function(){var a=x.Qb.mm.aL=t();a.Ez=q;a.Bq;a.RG;a.SG;a.XP=function(){if(this.Bq)this.YP(),x.bd(this.Bq,"display","block");else{var a=this.BW||{},c=this.RG=a.Ua||this.ri(),d=a.opacity||"0",a=a.color||"",e=this.Bq=document.createElement("iframe"),f=this.SG=document.createElement("div");0l+j?-n-(d.width||0):0;g.top+=g.topm+i?-s-(d.height||0):0;break;case "fix":g.left=Math.max(0-parseFloat(x.K.wj(b,"marginLeft"))||0,Math.min(g.left,x.page.DE()-n-u.left));g.top=Math.max(0-parseFloat(x.K.wj(b,"marginTop"))||0,Math.min(g.top,x.page.CE()- s-u.top));break;case "verge":var w=-1j-u.left?D-n:w;g.top+=g.top+y+s-m>i-u.top?C-s:y}x.K.ta(b,g);!f&&(i!=x.page.CE()||j!=x.page.DE())&&this._positionByCoordinate(b,d,{},o);f||this.dispatchEvent("onpositionupdate")}; b.BQ=function(a,b,e){("undefined"==typeof b||!b)&&x.event.M(x.K.HY(a),"resize",x.Em.bind.apply(this,["_positionByCoordinate",this].concat([].slice.call(e))));this._positionByCoordinate.apply(this,e)}})(); x.Qb.Li.extend({ZZ:o,xX:o,IY:function(){var a=this;return function(){a.Tw(o)}},Tw:function(a){var b=this.Pm(),c=this.AC,d=this.ri();if(this.lB()||!a)c&&(b=c),a=x.K.ia(b),b={top:a.top+b.offsetHeight-1,left:a.left,width:b.offsetWidth},b="function"==typeof this.view?this.view(b):b,this.ta([b.left,b.top],p,{MZ:o}),x.K.S_(d,b.width)}}); x.Qb.Li.Xe(function(a){a.e1=a.IY();a.addEventListener("onload",function(){a.Tw();a.xX&&(a.yX=setInterval(function(){var b=a.ri(),c=a.Pm();0!=b.offsetWidth&&(c&&c.offsetWidth!=b.offsetWidth)&&(a.Tw(),b.style.display="block")},100));a.M(window,"resize",a.e1)});a.addEventListener("onshow",function(){a.Tw()});a.addEventListener("ondispose",function(){clearInterval(a.yX)})}); x.Qb.Li.Xe(function(a){function b(){setTimeout(function(){var b=a.Pm();e=b===p?"":b.value},20)}var c,d="",e,f,g=q,i=q;a.addEventListener("onload",function(){c=this.Pm();b();a.M(window,"onload",b);a.q0=a.zY();a.M(c,"keydown",a.q0);c.setAttribute("autocomplete","off");a.nW=setInterval(function(){if(!i){x.$(c)==p&&a.mi();var b=c.value;b==d&&""!=b&&b!=e&&b!=f?0==a.OF&&(a.OF=setTimeout(function(){a.dispatchEvent("onneeddata",b)},100)):(clearTimeout(a.OF),a.OF=0,""==b&&""!=d&&(f="",a.U()),d=b,b!=f&&(a.zx= b),e!=c.value&&(e=""))}},10);a.M(c,"beforedeactivate",a.TV)});a.addEventListener("onitemclick",function(){i=q;a.zx=d=a.zE()});a.addEventListener("onpick",function(a){g&&c.blur();c.value=f=a.data.item.value;g&&c.focus()});a.addEventListener("onmousedownitem",function(){i=g=o;setTimeout(function(){g=i=q},500)});a.addEventListener("ondispose",function(){clearInterval(a.nW)})}); x.Qb.Li.extend({TV:function(){return function(){mousedownView&&(window.event.cancelBubble=o,window.event.returnValue=q)}},zY:function(){var a=this;return function(b){var c=q,b=b||window.event;switch(b.keyCode){case 9:case 27:a.U();break;case 13:x.event.stop(b);a.confirm(-1==a.Xc?a.Pm().value:a.zk[a.Xc],"keyboard");break;case 38:c=o;case 40:x.event.stop(b);b=c;if(a.lB()){var c=a.zk,d=a.Xc;if(0!=c.length){if(b)switch(d){case -1:d=c.length-1;a.Dj(c[d]);a.Gt(c[d]);break;case 0:d=-1;a.Dj(a.zx);a.MC(); break;default:d--,a.Dj(c[d]),a.Gt(c[d])}else switch(d){case -1:d=0;a.Dj(c[d]);a.Gt(c[d]);break;case c.length-1:d=-1;a.Dj(a.zx);a.MC();break;default:d++,a.Dj(c[d]),a.Gt(c[d])}a.Xc=d}}else a.dispatchEvent("onneeddata",a.zE());break;default:a.Xc=-1}}},zx:""});ka.L5=o;var Vi=q,Wi=B.jc+"res/20/bmap_autocomplete.css",yj={ALL:"0",CITY:"1"}; x.extend(Oe.prototype,{Td:function(){this.Vi()},Vi:function(){this.vl=-1;this.Ha=p;this.Bw=[];this.FH=0;this.ka=this.Dv();this.oc.input&&(this.fT(),this.CU(),this.bz(this.FI));var a=p;this.ej&&(a={method:"search"},a.arguments=[this.ej]);this.wI();this.eI(a)},CU:function(){var a=this,b=new x.Qb.Li({getData:function(b){a.CJ(b)},onhide:function(){a.vl=-1;""===a.og.zE()&&(a.ej="",a.ka=a.Dv())},onhighlight:function(b){if(a.Ha){var d={},e={},e={index:b.data.index,value:a.Ha.$m[b.data.index].value},d={index:a.vl, value:0<=a.vl?a.Ha.$m[a.vl].value:{}},f=new N("onhighlight");f.fromitem=f.p3=d;f.toitem=f.E5=e;a.dispatchEvent(f);a.vl=b.data.index}},onbeforepick:function(b){if(a.Ha&&"number"===typeof b.data.index){var d=a.Ha.$m[b.data.index].value;b.data.item.content=b.data.item.value=d.province+d.city+d.district+d.street+d.business}},onconfirm:function(b){if(a.Ha){Ta(5012);var d={};"number"===typeof b.data.index&&(d={index:b.data.index,value:a.Ha.$m[b.data.index].value},b=new N("onconfirm"),b.item=b.item=d,a.dispatchEvent(b))}}}); b.va(x.$(this.oc.input),x.$(this.oc.AC));this.og=b},show:function(){this.og&&(this.og.ri().style.display="block")},U:function(){this.og&&this.og.U();this.vl=-1},mi:function(){this.og&&this.og.mi();x.lang.Da.prototype.mi.call(this)},eG:function(a){this.oc.types=a||[];this.wI()},An:function(a){this.Ad.src=a;this.eI()},search:function(a){this.CJ(a)},bz:function(a){this.og&&this.og.Dj(a)},CJ:function(a){var b=this,c=(1E5*Math.random()).toFixed(0);B._rd["_cbk"+c]=function(a){x.$(b.oc.input)!==p&&b.DS(a); delete B._rd["_cbk"+c]};var d=B.url.proto+B.url.domain.baidumap+"/su?wd="+encodeURIComponent(a)+"&callback=BMap._rd._cbk"+c+"&cid="+b.FH+"&type="+b.Bw+"&t="+(new Date).getTime()+"&from=jsapi&ak="+ra;b.ej=a;b.vl=-1;b.ka=this.Dv();Ta(5010,{tp:b.Bw,wd:encodeURIComponent(a)});B.alog("cus.fire","count","z_sug");sa(d)},DS:function(a){a&&a.q&&(this.ej=a.q);this.cV(this.rS(a));this.ka=this.Dv(this.Ha);this.oc.Ky(this.ka)},rS:function(a){var b=[],c=a.s,d={};d.wb=a.q||"";d.count=a.s.length||0;d.status=0>a.e? 7:0;d.$m=[];var e=0,f=c.length;for(J()&&6a.data.length&&b.U()}},OS:function(a,b){switch(b.toString()){case "1":return this.PS(a);default:return this.QS(a)}},QS:function(a){var a=a.split("$"),b=this.ej,c=RegExp(b,"g"),d=""+b+"",e={province:"",city:a[0],district:a[1],street:a[2],streetNumber:"",business:a[3]},f="";7<= a.length&&(e.city=a[5]||e.city,e.district=a[6]||e.city,a[0]=a[5],a[1]=a[6]);for(var g=3;0<=g;g--)if(f=a[g]+f,-1\'+i+"");break}if(!i)for(g=3;0<=g;g--)i+=a[g];return{value:{value:e},BM:f}},PS:function(a){var b=a.split("$"),c=this.ej,a={province:b[0],city:b[1],district:"",street:"",streetNumber:"",business:""},b=(b[0]+b[1]).replace(RegExp(c,"g"),""+c+"");return{value:{value:a}, BM:b}},wI:function(){var a=this.oc.types,b=[];if(x.ug(a))b.push(yj[a.toUpperCase()]);else if(x.lang.isArray(a))for(var c=0,d=a.length;c