var Vcity={_m:{$:function(u,n){var a=[],i,e=u.substring(1);if(n=n||document,typeof u=="string")switch(u.charAt(0)){case"#":return document.getElementById(e);case".":if(n.getElementsByClassName)return n.getElementsByClassName(e);for(u=Vcity._m.$("*",n),n=u.length,i=0;ic&&(Vcity.oCity.hot.hot||(Vcity.oCity.hot.hot=[]),Vcity.oCity.hot.hot.push(h[1]))}}})(),Vcity._template='

\u70ED\u95E8\u57CE\u5E02(\u652F\u6301\u6C49\u5B57/\u62FC\u97F3)

;'.split(";"),Vcity.CitySelector=function(){this.initialize.apply(this,arguments)},Vcity.CitySelector.prototype={constructor:Vcity.CitySelector,initialize:function(u){this.input=Vcity._m.$("#"+u.input),this.inputEvent()},createWarp:function(){Vcity._m.getPos(this.input);var u=this.rootDiv=document.createElement("div"),n=this;Vcity._m.on(this.rootDiv,"click",function(e){Vcity._m.stopPropagation(e)}),Vcity._m.on(document,"click",function(e){if(e=Vcity._m.getEvent(e),Vcity._m.getTarget(e)==n.input)return!1;n.cityBox&&Vcity._m.addClass("hide",n.cityBox),n.ul&&Vcity._m.addClass("hide",n.ul),n.myIframe&&Vcity._m.addClass("hide",n.myIframe)}),u.className="citySelector",u.style.position="absolute";var a=$(".scene").offset().left,i=$(".scene").offset().top+36;u.style.left=a+"px",u.style.top=i+"px",u.style.zIndex=999999,(this.isIE6=!!document.all&&!window.XMLHttpRequest)&&(a=this.myIframe=document.createElement("iframe"),a.frameborder="0",a.src="about:blank",a.style.position="absolute",a.style.zIndex="-1",this.rootDiv.appendChild(this.myIframe)),a=this.cityBox=document.createElement("div"),a.className="cityBox",a.id="cityBox",a.innerHTML=Vcity._template.join(""),i=this.hotCity=document.createElement("div"),i.className="hotCity",a.appendChild(i),u.appendChild(a),this.createHotCity()},createHotCity:function(){var u,n,a=Vcity.oCity;for(u in a){var i=this[u]=document.createElement("div");i.className=u+" cityTab hide";var e=[];for(n in a[u])e.push(n),e.sort();for(var c=0,d=e.length;c'+a[u][e[c]][f]+"");b.innerHTML=s.join(""),h.appendChild(g),h.appendChild(b),i.appendChild(h)}Vcity._m.removeClass("hide",this.hot),this.hotCity.appendChild(i)}document.body.appendChild(this.rootDiv),this.changeIframe(),this.tabChange(),this.linkEvent()},tabChange:function(){for(var u=Vcity._m.$("li",this.cityBox),n=Vcity._m.$("div",this.hotCity),a=this,i=0,e=u.length;i'+c[1]+''+c[2]+"":'
  • '+c[1]+''+c[2]+"
  • ",a.push(c)}this.isEmpty=!1,a.length==0&&(this.isEmpty=!0,a.push('
  • \u5BF9\u4E0D\u8D77\uFF0C\u6CA1\u6709\u627E\u5230\u6570\u636E "'+u+'"
  • ')),this.ul?this.ul&&Vcity._m.hasClass("hide",this.ul)&&(this.count=0,Vcity._m.removeClass("hide",this.ul)):(u=this.ul=document.createElement("ul"),u.className="cityslide",this.rootDiv&&this.rootDiv.appendChild(u),this.count=0),this.ul.innerHTML=a.join(""),this.changeIframe(),this.liEvent()}else Vcity._m.addClass("hide",this.ul),Vcity._m.removeClass("hide",this.cityBox),Vcity._m.removeClass("hide",this.myIframe),this.changeIframe()},changeIframe:function(){this.isIE6&&(this.myIframe.style.width=this.rootDiv.offsetWidth+"px",this.myIframe.style.height=this.rootDiv.offsetHeight+"px")},KeyboardEvent:function(u,n){u=Vcity._m.$("li",this.ul);var a=u.length;switch(n){case 40:for(this.count++,this.count>a-1&&(this.count=0),n=0;nthis.count&&(this.count=a-1),n=0;n