
Key="GsX";if(typeof (MQA)=="undefined"){MQA=new Object()}MQA={PIXERSPERLATDEGREE:315552459.661917,PIXERSPERLNGDEGREE:250344597.90989706,TILESIZE:256,SLIDESTEPS:9,SLIDEDELAY:11,SCALES:new Array(0,88011773,29337258,9779086,3520471,1504475,701289,324767,154950,74999,36000,18000,9000,4700,2500,1500,1000),MODS:new Array(0,4,12,36,100,234,502,1084,2272,4694,9778,19558,39116,74900,140818,234698,352047),VENDORLIST:new Array("","mz1copy.gif","mz4copy.gif","mz7copy.gif","mz0copy.gif"),MAPVENDORS:new Array(0,1,1,1,2,2,2,3,3,3,4,4,4,4,4,4,4),RESOURCES:"http://"+RESSERVER+"/res/",STATICRESOURCES:"http://"+STATICSERVER+"/tileprint.php",CORNER_TOPLEFT:0,CORNER_TOPRIGHT:1,CORNER_BOTTOMLEFT:2,CORNER_BOTTOMRIGHT:3,LOGO_MQ_LOGO:0,LOGO_MQ_SCALES:1,LOGO_MQ_COPY:2,LOGO_NT_COPY:3,LOGO_I3_COPY:4,LOGO_MAP_COPY:3,LOGO_SAT_COPY:4,EVENT_NONE:-1,EVENT_CLICK:0,EVENT_DBLCLICK:1,OPER_RECENTER:0,OPER_RECENTERZOOM:1,MAXMAPHEIGHT:7168,MAXMAPWIDTH:7168,BUTTON_MQ_LEFT:0,BUTTON_MQ_MIDDLE:1,BUTTON_MQ_RIGHT:2,MASTER_BROKER:null,SAFARI_BROWSER:(navigator.userAgent.indexOf("Safari")>=0),PAN_NORTH:0,PAN_SOUTH:1,PAN_EAST:2,PAN_WEST:3,CONTROL_PANZOOM:0,CONTROL_PAN:1,CONTROL_ZOOM:2,CONTROL_TYPE:3,CONTROL_TRAFFIC:4};MQA.SURFACE_OFFSET=2*MQA.TILESIZE;MQA.NOTHING=MQA.RESOURCES+"nothing.gif";MQA.MAP_TYPE={MAP:"map",SAT:"sat",HYB:"hyb",NONE:"none"};MQA.TILE_LAYER_ID={MAP:"mqmaptilediv",SAT:"mqsattilediv",HYB:"mqhybtilediv"};MQA.TILE_LAYER_TYPE={MAP:1,SAT:2,STRLBL:3,HOODPOLY:4,PARCEL:5};if(typeof window.MQA=="undefined"){MQA={}}(function(){function A(){}function G(){return function(){}}MQA.extend=function(O,N){var M={};for(var L in N){if(!M[L]){O[L]=N[L]}}};function C(L){var M=function(){var Q,P,N=arguments.callee,O;Q=N.__before__;if(Q){for(P=Q.length-1;P>=0;P--){Q[P].apply(this,arguments)}}O=L.apply(this,arguments);Q=N.__after__;if(Q){for(P=0;P<Q.length;P++){Q[P].apply(this,arguments)}}return O};M.__aopwrapper__=true;return M}function D(L){var M=L.indexOf("$");if(M>0){return{name:L.substring(0,M),advice:L.substring(M+1)}}else{return{name:L}}}function I(N,O,M){var L=M[N.name],P;if(L===undefined){L=A}if(!L.__aopwrapper__){P=C(L);M[N.name]=P}else{P=L}switch(N.advice){case"Before":if(!P.__before__){P.__before__=[O]}else{P.__before__.push(O)}break;case"After":if(!P.__after__){P.__after__=[O]}else{P.__after__.push(O)}break}}MQA.mixin=function(R,Q){var M,P={},L,N,O;for(M in Q){if(P[M]){continue}O=D(M);L=Q[M];if(!O.advice){R[M]=L}else{I(O,L,R)}}};if(typeof (MQA.Util)=="undefined"){MQA.Util={}}MQA.Util.debug=function(L){};MQA.Util.handleError=function(){};var H=1;function J(L){if(L.guid){return L.guid}var M=L["$mqa.id$"];if(!M){M=("$id$"+(H++));L["$mqa.id$"]=M}return M}function F(){var M,L;if(arguments.length==1){M=arguments[0];L=(typeof M=="string")?MQA._jsEval("("+M+")"):M;return B(L[0],L[1])}else{if(arguments.length==2){return B.apply(null,arguments)}else{return{}}}}function B(R,V,L){var O,N,T,P,S,U=arguments.callee,Q;if(!L){L={}}function M(W){var Z,X=W.match(/^([^\#\.]+)(\#([^\.]+))?(\.(.+))?$/),Y;Z=X[3];Y=X[5];elt=document.createElement(X[1]);if(Z){L[Z]=elt}if(Y){elt.className=Y}return elt}if(typeof (R)=="string"){R=M(R);L.root=R}for(N=0;N<V.length;N++){S=V[N];P=typeof (S);if(P=="number"&&S==0){R.appendChild(document.createTextNode(" "))}else{O=V[++N];T=typeof (O);if(T=="undefined"){continue}if(T=="object"){Q=M(S);U(Q,O,L);R.appendChild(Q)}else{(S=="text"||S=="t")?R.appendChild(document.createTextNode(O)):(S=="style"||S=="s")?R.style.cssText=O:(S=="i")?R.setAttribute("src",MQA.Util.ie6Image(O)):(S.charAt(0)=="@")?R.setAttribute(S.substring(1),O):R[S]=O}}}return L}MQA.extend(MQA.Util,{objectId:J,isObjectId:function(L){if(typeof L!="string"){return false}return !!L.match(/^\$id\$/)},getParentOffset:function(M){var L=0,N=0;do{L+=M.offsetTop||0;N+=M.offsetLeft||0;M=M.offsetParent}while(M);return{x:N,y:L}},getLocalCoords:function(O,M){var N=MQA.Util.getParentOffset(O),L=0,P=0;if(M.pageX||M.pageY){L=M.pageX;P=M.pageY}else{if(M.clientX||M.clientY){L=M.clientX+(document.body.scrollLeft||0)+(document.documentElement.scrollLeft||0);P=M.clientY+(document.body.scrollTop||0)+(document.documentElement.scrollTop||0)}}N.x=L-N.x;N.y=P-N.y;return N},_getRandomGUID:function(){return"$id$"+(H++)},subClass:function(M){var L=G();L.prototype=M.prototype;return new L()},html:F,ie6Image:function(L){if(E.ie6){return L.replace(".png",".gif")}return L},ie6Class:function(L){if(E.ie6){L.className=L.className+" mqaie6"}return L},getDomWidth:function(M){var L=0;if(M.offsetWidth){if(M.scrollWidth&&(M.offsetWidth!=M.scrollWidth)){L=M.scrollWidth}else{L=M.offsetWidth}}else{if(M.clip&&M.clip.width){L=M.clip.width}else{if(M.style&&M.style.pixelWidth){L=M.style.pixelWidth}}}return parseInt(L)},getDomHeight:function(M){var L=0;if(M.offsetHeight){L=M.offsetHeight}else{if(M.clip&&M.clip.height){L=M.clip.height}else{if(M.style&&M.style.pixelHeight){L=M.style.pixelHeight}}}return parseInt(L)},isMouseLeaveOrEnter:function(N,M){if(N.type!="mouseout"&&N.type!="mouseover"){return false}var L=N.relatedTarget?N.relatedTarget:N.type=="mouseout"?N.toElement:N.fromElement;while(L&&L!=M){L=L.parentNode}return(L!=M)}});function K(){var R=new Object();R.name=R.version=R.os="unknown";var T=navigator.userAgent.toLowerCase();var S=new Array("firefox","msie","netscape","opera","safari");var Q=new Array("linux","mac","windows","x11");for(var P=0,N=S.length;P<N;P++){var L=T.indexOf(S[P])+1;if(L>0){R.name=S[P];var O=L+R.name.length;var M=((R.name=="safari")||(T.charAt(O+4)>0&&T.charAt(O+4)<9))?5:3;R.version=T.substring(O,O+M)}}for(var P=0,N=Q.length;P<N;P++){var L=T.indexOf(Q[P])+1;if(L>0){R.os=Q[P]}}if(R.name=="msie"&&R.version<7){R.ie6=true}return R}var E=K();MQA.browser=E;MQA.Util.getBrowserInfo=function(){return E}})();(function(){var F=MQA.Util;var G=[],D={};function E(){var K=G,J,H,I;G=[];D={};for(J=0;J<K.length;J++){H=K[J];try{H.call(null)}catch(L){I=L}}if(I){throw I}}function B(H,K){var I=(H?F.objectId(H):""),J=F.objectId(K);return I+"-"+J}function C(H){if(G.length==0){setTimeout(E,0)}G.push(H)}function A(H,I){return function(){var L=[],M,K=B(this,arguments.callee),N,J=D;for(M=0;M<arguments.length;M++){L[M]=arguments[M]}N={t:this,a:L};function O(){var P=(I?J[K]:N);H.apply(P.t,P.a)}if(!I||!D[K]){C(O)}if(I){D[K]=N}}}MQA.Defer={defer:function(H){return A(H,false)},dedup:function(H){return A(H,true)}}})();MQA._jsEval=function(s){return eval(s)};(function(){var E={traffic:{depends:["fullUtil","shapes","jsondeserializer","remotecollection"]},jsondeserializer:{depends:["basedeserializer"]}};if(window.mqaConfig&&window.mqaConfig.modules){MQA.extend(E,window.mqaConfig.modules)}var C;function H(M){C=M}function J(N){var M=E[N];if(!M){M={};E[N]=M}return M}function L(O){var N=document.createElement("script");N.src=O;var M=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0];M.appendChild(N)}function A(){var O,N,M=[],Q,P=[];for(O=0;O<arguments.length;O++){N=arguments[O];if(typeof N=="string"){if(E[N]&&E[N].loaded){continue}M.push(N);P.push(N)}else{if(typeof N=="function"){Q=N}break}}P.push(Q);if(M.length==0){Q();return true}else{G(M[0],function(){A.apply(null,P)})}}function G(Q,S){var M=J(Q),O,N,P,R;if(M.loaded){S();return true}O=M.depends;if(O){for(P=0;P<O.length;P++){N=E[O[P]];if(!N){N={};E[O[P]]=N}if(!N.loaded){A(O[P],function(){A(Q,S)});return false}}}if(M.waiters){M.waiters.push(S);return false}else{M.waiters=[S];M.requestTime=new Date().getTime();R=M.uri?M.uri:C(Q,"js");L(R,true);return false}}function B(Q){var O=E[Q],N,R,P,M;if(!O){O={};E[Q]=O}N=O.waiters;delete O.waiters;O.loaded=true;if(!N){return }for(P=0;P<N.length;P++){M=N[P];if(typeof (M)=="function"){try{M()}catch(S){R=S}}}if(R){throw R}}function K(O){var N=document.createElement("style"),M=document.getElementsByTagName("head")[0];if(!M){return }if(MQA.browser.name=="msie"){N.setAttribute("type","text/css");N.styleSheet.cssText=O}else{N.appendChild(document.createTextNode(O))}if(M.firstChild){M.insertBefore(N,M.firstChild)}else{M.appendChild(N)}}function D(O){var N=document.createElement("link"),M=document.getElementsByTagName("head")[0];N.setAttribute("rel","stylesheet");N.setAttribute("href",O);if(!M){return }if(M.firstChild){M.insertBefore(N,M.firstChild)}else{M.appendChild(N)}}function F(N,P){var M=J(N),Q,O,R;if(M.cssLoaded){return }if(M.cssText){K(M.cssText)}else{D(C(N,"css"))}if(P&&!M.cssText){K(P)}M.cssLoaded=true}function I(M,N){J(M).cssText=N}MQA.Loader={_initialize:H,_moduleLoaded:B,withModule:A,requireCss:F,registerCss:I,isLoaded:function(N){var M=E[N];return M||M.loaded},registerModules:function(M){MQA.extend(E,M)}};MQA.withModule=A})();(function(){var C,G="",F,E,A,B=document.getElementsByTagName("script");for(C=0;C<B.length;C++){F=B[C];E=F.src;if(!E){continue}A=E.indexOf("mqa.");if(A>=0&&E.lastIndexOf("/")<A){G=E.substring(0,A);break}}function D(H,I){return G+"mqa.module."+H+"."+I}MQA.Loader._initialize(D)})();if(typeof window.MQA=="undefined"){MQA={}}(function(){function A(W,V){var Y=(W+90)*(MQA.PIXERSPERLATDEGREE/V);var X=parseInt(Y/MQA.TILESIZE);return X}function U(W,V){var Y=(W+90)*(MQA.PIXERSPERLATDEGREE/V);var X=parseInt(Y/MQA.TILESIZE);return ret=(Y-X*MQA.TILESIZE)}function R(W,Y){var V=(W+180)*(MQA.PIXERSPERLNGDEGREE/Y);var X=parseInt(V/MQA.TILESIZE);return X}function E(W,Y){var V=(W+180)*(MQA.PIXERSPERLNGDEGREE/Y);var X=parseInt(V/MQA.TILESIZE);return(V-X*MQA.TILESIZE)}function I(V,W,Y){var Z=V*MQA.TILESIZE+W;var X=Z/(MQA.PIXERSPERLATDEGREE/Y)-90;X=parseInt(X*1000000)/1000000;return X}function O(X,Y,Z){var W=X*MQA.TILESIZE+Y;var V=W/(MQA.PIXERSPERLNGDEGREE/Z)-180;V=parseInt(V*1000000)/1000000;while(V>180){V-=360}while(V<-180){V+=360}return V}var N=MQA.Util.debug,H=MQA.Util.handleError,G=0;function K(V){this.display=V;var W=document.createElement("div");W.style.position="absolute";W.style.backgroundImage="url("+MQA.RESOURCES+"loading.gif)";W.style.backgroundRepeat="repeat";V.elt.appendChild(W);this.div=W}K.prototype={setViewport:function(W,Z,X,V){if(W>=this.ulX&&Z>=this.ulY&&(W+X)<=(this.ulX+this.width)&&(Z+V)<=(this.ulY+this.height)){return }var Y=this.display.transform.displayToGridCoord(W,Z);this.ulX=Y.ulX-2*Y.gridSize;this.ulY=Y.ulY-2*Y.gridSize;this.width=X+4*Y.gridSize;this.height=V+4*Y.gridSize;this.div.style.left=this.ulX+"px";this.div.style.top=this.ulY+"px";this.div.style.width=this.width+"px";this.div.style.height=this.height+"px"}};function Q(X,V,W){return X+":"+W+":"+V}function D(V){}D.prototype={initialize:function(V){this.parent=V},dispose:function(){},setup:function(Z,X,c,Y,W,a,b,V){},hide:function(){}};function T(){}T.prototype=new D();T.prototype.initialize=function(W){this.parent=W;var V=document.createElement("img");V.style.position="absolute";V.style.visibility="hidden";V.style.display="block";V.setAttribute("unselectable","on");V.setAttribute("galleryimg","no");V.style.MozUserSelect="none";this.parent.elt.appendChild(V);this.elt=V};T.prototype.dispose=function(){this.elt.parentNode.removeChild(this.elt)};T.prototype.hide=function(){this.elt.style.visibility="hidden";this.elt.style.display="none"};T.prototype.setup=function(Z,X,c,Y,W,a,b,V){this.key=Z;if(X>=0&&c>=0){this.setupImage(this.elt,X,c,a,b);this.elt.style.left=Y+"px";this.elt.style.top=W+"px";this.elt.style.width=V+"px";this.elt.style.height=V+"px";this.elt.style.visibility="";this.elt.style.display="block"}else{this.elt.display="none"}};T.prototype.setupImage=function(W,V,Z,X,Y){W.src=MQA.RESOURCES+"loading.gif"};function P(V,W){return function(e,c,i,h,d){var b=c,a=i,g,f;while(b<0){b+=MQA.MODS[h]}while(b>=MQA.MODS[h]){b-=MQA.MODS[h]}g=Math.floor(b/1000);f=Math.floor(a/1000);var Z=["http://",MAPSERVER[c%MAPSERVER.length],"/",V,"/Scale",d,"/",f,"/",a-f*1000,"/",g,"/",b-g*1000,".",W].join("");if(e.src){e.src=MQA.RESOURCES+"loading.gif"}e.src=Z}}function L(){}L.prototype=new T();L.prototype.setupImage=P("map","gif");function C(){}C.prototype=new T();C.prototype.setupImage=P("sat","jpg");function B(){}B.prototype=new T();B.prototype.setupImage=P("hyb","gif");function J(W,X){this.display=W;this.tileCtor=X||D;var V=document.createElement("div");V.style.position="absolute";W.elt.appendChild(V);this.elt=V;this.tileBucket={};this.extraTiles=[];this.enabled=false}J.prototype={dispose:function(){this.elt.parentNode.removeChild(this.elt)},enable:function(){if(this.enabled){return }this.enabled=true;this.display.invalidateLayer(this);this.elt.style.display="block"},disable:function(){if(!this.enabled){return }this.enabled=false;this.elt.style.display="none"},resetTransform:function(){var X,W,V=this.tileBucket,Y=this.extraTiles;this.tileBucket={};this.extraTiles=[];for(var X in V){var W=V[X];if(W&&(W instanceof D)){W.dispose()}}for(X=0;X<Y.length;X++){Y[X].dispose()}},setViewport:function(o,l,s,m){if(!this.enabled){return }var i=this.display.transform,AB=i.displayToGridCoord(o,l),r=o+s,p=l+m,n=Math.ceil((r-o)/AB.gridSize),g=Math.ceil((p-l)/AB.gridSize),e,t,j,Z,z,W,V=i.zoom,AC=i.scale,c,d,y,x,AD,a,b,Y=this.extraTiles,w=this.tileBucket,f={},q=0,AA=0;function X(){var AE=AD,k=0;while(f[AD]){AD=AE+":"+(k++)}var v=w[AD];if(!v||i.zoom==1){v=Y.pop();if(!v){v=new this.tileCtor();v.initialize(this);q+=1}else{AA+=1}v.setup(AD,a,b,y,x,V,AC,AB.gridSize)}else{delete w[AD]}f[AD]=v}e=AB.row+1;t=e-g-1;j=AB.col-1;Z=j+n+1;z=AB.ulX-AB.gridSize*1;W=AB.ulY-AB.gridSize*1;for(var c=j;c<=Z;c++){a=i.normalizeCol(c);y=z+(c-j)*AB.gridSize;for(var d=e;d>=t;d--){b=d;x=W+(e-d)*AB.gridSize;AD=Q(AC,a,b);X.call(this)}}this.tileBucket=f;for(var u in w){var h=w[u];if(h&&(h instanceof D)){if(Y.length<32){Y.push(h)}else{h.dispose()}}}}};function M(Y,a,X,V,Z,W){this.zoom=Y;this.scale=a;this.refLat=X;this.refLng=V;this.leftOffset=Z;this.topOffset=W;this.ulXRefGrid=-Math.round(E(V,a));this.ulYRefGrid=-(MQA.TILESIZE-Math.round(U(X,a)));this.colRefGrid=R(V,a);this.rowRefGrid=A(X,a);this.colMax=R(180,a);this.rowMax=A(90,a)}M.prototype={displayToGridCoord:function(a,Z){var d=a-this.ulXRefGrid,b=Z-this.ulYRefGrid,X=Math.floor((Math.abs(d)/256)*(d>=0?1:-1)),W=Math.floor((Math.abs(b)/256)*(b>=0?1:-1)),V=this.ulXRefGrid+X*256,c=this.ulYRefGrid+W*256;var Y={ulX:V,ulY:c,dx:d,dy:b,x:a-V,y:Z-c,nx:X,ny:W,col:this.normalizeCol(this.colRefGrid+X),row:(this.rowRefGrid-W),gridSize:256};return Y},normalizeCol:function(V){while(V<0){V+=this.colMax+1}while(V>this.colMax){V-=this.colMax+1}return V},displayToLatLng:function(V,X){var W=this.displayToGridCoord(V,X);return{lat:I(W.row,MQA.TILESIZE-W.y,this.scale),lng:O(W.col,W.x,this.scale)}},latLngToDisplay:function(Y,a){var X=this.scale,W=-Math.round(E(a,X)),V=-(MQA.TILESIZE-Math.round(U(Y,X))),c=R(a,X),d=A(Y,X),b=(c-this.colRefGrid)*MQA.TILESIZE+this.ulXRefGrid-W,Z=(this.rowRefGrid-d)*MQA.TILESIZE+this.ulYRefGrid-V;return{x:b,y:Z}}};function F(W,V){this.map=W;this.elt=V;this.layers={}}F.prototype={addLayer:function(W,V){this.removeLayer(W);this.layers[W]=V;try{if(V.resetTransform){V.resetTransform(this.transform)}if(V.setViewport){V.setViewport(this.ulX,this.ulY,this.width,this.height)}}catch(X){H("setViewport layer "+W,X)}},removeLayer:function(V){var W=this.layers[V];if(W&&W.dispose){try{W.dispose()}catch(X){H("dispose layer "+V,X)}delete this.layers[V]}},eachLayer:function(V){var X,W;for(X in this.layers){W=this.layers[X];if(W&&typeof (W)=="object"){V(W,X)}}},invalidateLayer:function(V){if(typeof (V)=="string"){V=this.layers[V]}if(!V){return }V.setViewport(this.ulX,this.ulY,this.width,this.height)},initTransform:function(d,X,Y,Z,V,c){var a=V/2,b=c/2,W=new M(d,X,Y,Z,a,b);this.transform=W;this.eachLayer(function(e){if(e.resetTransform){e.resetTransform(W)}});this.setViewport(-a,-b,V,c,true)},setViewport:function(W,Y,X,V){if(typeof (X)=="undefined"){X=this.width}if(typeof (V)=="undefined"){V=this.height}this.width=X;this.height=V;this.ulX=W;this.ulY=Y;this.left=-W;this.top=-Y;this.elt.style.left=this.left+"px";this.elt.style.top=this.top+"px";this.eachLayer(function(a,Z){try{if(a.setViewport){a.setViewport(W,Y,X,V)}}catch(b){}})}};function S(V,Y,Z){if(arguments.length==0){return }var W;W=document.createElement("div");W.style.width=V.style.width;W.style.height=V.style.height;W.style.zIndex=0;W.style.overflow="hidden";W.style.background="#FFFFFF";W.style.position="relative";W.style.top="0px";W.style.left="0px";V.style.position="relative";V.appendChild(W);this.parent=W;this.width=parseInt(W.style.width);this.height=parseInt(W.style.height);this.zoom=(Y>16)?16:parseInt(Y);this.scale=MQA.SCALES[this.zoom];this.tilesize=256;this.centerlat=Z.lat;this.centerlng=Z.lng;var X=document.createElement("div");X.style.position="absolute";X.style.zIndex=0;W.appendChild(X);this.display=new F(this,X);this.display.initTransform(this.zoom,this.scale,Z.lat,Z.lng,this.width,this.height)}S.prototype={};MQA.Kernel={CoreMap:S,LoadingLayer:K,Tile:D,ImageTile:T,MqMapImageTile:L,MqSatImageTile:C,MqStrlblImageTile:B,TileLayer:J,debug:N,handleError:H}})();(function(){var B=window.MQA;var A=new function(){var C=false,K=false,I=[],L=[],H=false;function J(){if(!H&&document.body){H=true;if(document.body.attachEvent){document.body.attachEvent("onunload",D)}else{document.body.addEventListener("onunload",D,false)}}}function E(){C=true;J();for(var O=0;O<I.length;O++){I[O]()}}function D(){}this._onUnload=function(){if(K){return }if(window.detachEvent){window.detachEvent("onload",E);window.detachEvent("onunload",D);if(document.body){document.body.detachEvent("onunload",D)}}for(var P=0;P<L.length;P++){var O=L[P];try{L[P]();if(O){L[P]()}}catch(Q){}}K=true};this.addOnUnload=function(O){L.push(O)};this.observe=function(Q,P,O){if(typeof Q=="string"){Q=document.getElementById(Q)}if(P=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||Q.attachEvent)){P="keydown"}this._observe(Q,P,O);return O};this.stopObserving=function(Q,P,O){if(typeof Q=="string"){Q=document.getElementById(Q)}if(P=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||Q.attachEvent)){P="keydown"}this._stopObserving(Q,P,O)};var M=navigator.appVersion;var F;if(M.match(/\bMSIE\b/)&&window.attachEvent){F=parseFloat(M.split("MSIE ")[1].split(";")[0]);if(F){var G=[];this._observe=function(R,Q,O){R.attachEvent("on"+Q,O);var P=G.length;G[P]=[R,Q,O];O["__ie6_"+Q]=P};this._stopObserving=function(R,Q,O){R.detachEvent("on"+Q,O);var P=O["__ie6_"+Q];if(P){delete G[P]}};this.addOnUnload(this._evUnloadFcn=function(){for(var P in G){var O=G[P];if(typeof O=="object"&&O.length==3){delete G[P];try{O[0].detachEvent("on"+O[1],O[2])}catch(Q){}}}})}else{this._observe=function(Q,P,O){Q.attachEvent("on"+P,O)};this._stopObserving=function(Q,P,O){Q.detachEvent("on"+P,O)}}}else{F=false;this._observe=function(Q,P,O){Q.addEventListener(P,O,false)};this._stopObserving=function(Q,P,O){Q.removeEventListener(P,O,false)}}var N=[];this.addDtor=function(R,P){var Q=N.length,O;if(arguments.length>1){O=[R,P]}else{O=[R]}N[Q]=O;return Q};this.delDtor=function(O){delete N[O]};this._dtorHandler=function(){B._prEvent._inGlobalDtor=true;var P,O;for(P in N){O=N[P];if(O&&(typeof O=="object")&&O.length){try{if(O.length==1){O[0].call(null)}else{O[0][O[1]].call(O[0])}}catch(Q){}try{delete N[P]}catch(Q){}}}};this.observe(window,"unload",this._onUnload);this.addOnUnload(this._dtorHandler)};B.EventUtil=A;B._prEvent=A;A.element=function(C){return C.target||C.srcElement};A.isLeftClick=function(C){return((C.which&&(C.which==1))||(C.button&&(C.button==1)))};A.stop=function(C){C.cancelBubble=true;if(C.preventDefault){C.preventDefault();C.stopPropagation()}else{C.returnValue=false}};A.falseFunction=function(){return false};A.emptyFunction=function(){};A.hitch=function(E,F){var C=[];for(var D=2;D<arguments.length;D++){C.push(arguments[D])}return function(){return E[F].apply(E,C)}};A.EventCallback=function(D,E){var C=D;return function(F){if(C.turnEventsOff||(C.map&&C.map.turnEventsOff)){return }if(!F){F=window.event}C[E](F)}};B.Event=function(C){this.type="event";this.srcObject=null;if(arguments.length){this.eventName=C}else{this.eventName="unnamed event"}};B.EventManager=new function(){var C=B.Util.objectId,D={};function E(H){var G=C(H),F=D[G];if(!F){F={};D[G]=F}return F}this.addListener=function(I,F,G,K){F=F.toLowerCase();var J=E(I),H=J[F];if(!H){H=[];J[F]=H}H.push([G,K]);return G};this.removeListener=function(F,H,N,K){H=H.toLowerCase();var G=E(F),L=G[H],I=[],J,M;if(!L){return }for(J=0;J<L.length;J++){M=L[J];if(M[0]!==N&&M[1]!==K){I.push(L[J])}}G[H]=I};this.clearListeners=function(G,F){F=F.toLowerCase();var H=E(G);delete H[F]};this.trigger=function(L,G,J){G=G.toLowerCase();var M=E(L),K=M[G],F,I,H;if(K){for(F=0;F<K.length;F++){I=K[F];H=I[0];if(H){H.call(I[1],J)}}}}}})();(function(){var I=window.MQA,H=I._prEvent,B=I.Kernel.debug;I.MapLogo={MAPQUEST:0,SCALES:1,MAPQUEST_COPYRIGHT:2,NAVTEQ_COPYRIGHT:3,ICUBED_COPYRIGHT:4};I.MapCorner={TOP_LEFT:I.CORNER_TOPLEFT,TOP_RIGHT:I.CORNER_TOPRIGHT,BOTTOM_LEFT:I.CORNER_BOTTOMLEFT,BOTTOM_RIGHT:I.CORNER_BOTTOMRIGHT};function C(N,M,O){N.display.addLayer(M,new I.Kernel.TileLayer(N.display,O))}function D(M,N){return function(O){if(typeof (O)=="undefined"){O=100}this.slideMapToPoint(this.display.width/2+M*this.display.width*O/100,this.display.height/2+N*this.display.height*O/100)}}function K(P,Q){var O,N=P.getZoomLevel(),M=new I.Event("MQA.TileMap.zoomStart");M.zoom=N;P.onZoomStart(M);O=Q.call(P);M=new I.Event("MQA.TileMap.zoomEnd");M.prevZoom=N;M.zoom=P.getZoomLevel();P.onZoomEnd(M);return O}function A(O,N){var M=new I.Event();M.eventName="MQA.TileMap."+N.toLowerCase();O["on"+N].call(O,M)}function L(M){var N=M.srcElement||M.target;M.cancelBubble=true;if(M.stopPropagation){M.stopPropagation()}}function F(d,O,c,W,Z){var M,R,e=O.ul,U=O.lr,a,Y,Q,N,S,P=d.getScale(),X,V=d.bestFitMargin,T,b;if(!W||W<1||W>15){M=1}else{M=W+1}if(!Z){R=16}else{if(Z<1||Z>16){R=16}else{R=Z}if(R<M){R=M+1}}if(typeof (e.x)=="number"){e=d.pixToLL(e);U=d.pixToLL(U)}if(c){Q=d.getCenter();N=Math.max(Math.abs(Q.lng-e.lng),Math.abs(Q.lng-U.lng));S=Math.max(Math.abs(Q.lat-e.lat),Math.abs(Q.lat-U.lat));a=(N*2)*(I.PIXERSPERLNGDEGREE/P);Y=(S*2)*(I.PIXERSPERLATDEGREE/P)}else{a=Math.abs(U.lng-e.lng)*(I.PIXERSPERLNGDEGREE/P);Y=Math.abs(U.lat-e.lat)*(I.PIXERSPERLATDEGREE/P)}X=(V<(d.width/2)&&V<(d.height/2))?V:Math.round(Math.min((d.width/2)-1,((d.height/2)-1)));T=Math.max((P*(a/(d.width-(X*2)))),P*(Y/(d.height-(X*2))));while(T<I.SCALES[M]&&M<=R){M++}M-=1;if(c){d.setZoom(M)}else{b={lat:(e.lat+U.lat)/2,lng:(e.lng+U.lng)/2};d.setCenter(b,M)}}function E(M,N,P,Q,O){if(!P){P={lat:38.134557,lng:-98.4375}}if(!N){N=1}I.Kernel.CoreMap.call(this,M,N,P);this.parent2=M;this._grab_mousecursor=this.parent.attachEvent?I.RESOURCES+"grab.cur":"-moz-grab";this._grabbing_mousecursor=this.parent.attachEvent?I.RESOURCES+"grabbing.cur":"-moz-grabbing";this.parent.style.cursor=this._grab_mousecursor;this.bestFitMargin=0;this.display.addLayer("loading",new I.Kernel.LoadingLayer(this.display));C(this,I.TILE_LAYER_ID.MAP,I.Kernel.MqMapImageTile);C(this,I.TILE_LAYER_ID.SAT,I.Kernel.MqSatImageTile);C(this,I.TILE_LAYER_ID.HYB,I.Kernel.MqStrlblImageTile);this._initLogos();this.setMapType(Q||"map");this._eMouseMove=H.observe(this.parent,"mousemove",H.EventCallback(this,"onDOMMouseMove"));this._eMouseUp=H.observe(this.parent,"mouseup",H.EventCallback(this,"onDOMMouseUp"));this._eMouseOut=H.observe(this.parent,"mouseout",H.EventCallback(this,"onDOMMouseOut"));this._eMouseDown=H.observe(this.parent,"mousedown",H.EventCallback(this,"onDOMMouseDown"));this._eMouseUpGlobal=H.EventCallback(this,"onDOMMouseUp");this._eMouseMoveGlobal=H.EventCallback(this,"onDOMMouseMoveGlobal");this.saveState();this.onMapInit();this._dtorHandle=I._prEvent.addDtor(this,"dispose")}E.prototype=new I.Kernel.CoreMap();I.extend(E.prototype,{dispose:function(){I._prEvent.delDtor(this._dtorHandle)},connectSuppressEvents:function(M){H.observe(M,"mousedown",L);H.observe(M,"click",L)},disconnectSuppressEvents:function(M){H.stopObserving(M,"mousedown",L);H.stopObserving(M,"click",L)},_initLogos:function(){function M(){var Q=document.createElement("div");Q.corner=I.CORNER_TOPRIGHT;Q.offset={x:0,y:0};Q.style.position="absolute";Q.style.display="block";Q.style.zIndex=22;Q.width="124";Q.height="18";Q.style.overflow="hidden";Q.style.width="124px";Q.style.height="18px";Q.innerHTML="<img style='-moz-user-select:none;' unselectable='on' src='http://"+RESSERVER+"/scales/scalebar.gif' />";return Q}function P(W,S,T,V,Y,Q,R,X){var U=document.createElement("img");U.src=Q;U.style.MozUserSelect="none";U.unselectable="no";U.corner=W;U.offset=S;U.style.position=T;U.style.display=V;U.style.zIndex=Y;U.width=R;U.height=X;U.style.width=R+"px";U.style.height=X+"px";return U}var O=this.logos=[P(I.CORNER_TOPLEFT,{x:0,y:0},"absolute","block",22,I.RESOURCES+"mqlogo.gif",95,15),M(),P(I.CORNER_BOTTOMLEFT,{x:0,y:0},"absolute","block",22,I.RESOURCES+"mqcopy.gif",103,12),P(I.CORNER_BOTTOMRIGHT,{x:0,y:0},"absolute","none",22,I.RESOURCES+I.VENDORLIST[1],190,12),P(I.CORNER_BOTTOMRIGHT,{x:0,y:13},"absolute","none",22,I.RESOURCES+"sz1copy.gif",115,12)];for(var N=0;N<O.length;N++){this.parent.appendChild(O[N])}this._updateLogoPositions()},_updateLogoPositions:function(){var M,Q=this.logos,P,O=0,N=0;for(M=0;M<Q.length;M++){P=Q[M];O=0;N=0;if(P.corner==I.CORNER_BOTTOMRIGHT||P.corner==I.CORNER_TOPRIGHT){O=this.width-parseInt(P.style.width)-P.offset.x}else{O=P.offset.x}if(P.corner==I.CORNER_BOTTOMRIGHT||P.corner==I.CORNER_BOTTOMLEFT){N=this.height-parseInt(P.style.height)-P.offset.y}else{N=P.offset.y}P.style.left=O+"px";P.style.top=N+"px"}Q[I.LOGO_MQ_SCALES].childNodes[0].style.marginTop=-((this.zoom-1)*parseInt(Q[I.LOGO_MQ_SCALES].height))+"px";Q[I.LOGO_MAP_COPY].src=I.RESOURCES+I.VENDORLIST[I.MAPVENDORS[this.zoom]]},setLogoPlacement:function(O,N){var M=this.logos[O];M.corner=N.mapCorner;M.offset={x:N.offsetSize.width,y:N.offsetSize.height};this._updateLogoPositions()},onDOMMouseMove:function(M){},onDOMMouseMoveGlobal:function(O){var Q=this._dragState;if(!Q){return }if(!Q.dragged){A(this,"DragStart");A(this,"MoveStart")}Q.dragged=true;var P=I.Util.getLocalCoords(this.parent,O);var N=P.x-Q.startX,M=P.y-Q.startY;Q.startX=P.x;Q.startY=P.y;this.display.setViewport(this.display.ulX-N,this.display.ulY-M);A(this,"Drag");A(this,"Move");H.stop(O)},onDOMMouseUp:function(M){if(!this._dragState){return }B("drag cancelled: "+this._dragState.dragged);if(!this._dragState.dragged){this.handleClickEvent(this._dragState.startX,this._dragState.startY);H.stop(M)}this._cancelDrag()},onDOMMouseOut:function(M){},onDOMMouseDown:function(M){if(this._dragState){this._cancelDrag()}if(!H.isLeftClick(M)){H.stop(M);return false}var N=I.Util.getLocalCoords(this.parent,M);this._dragState={startX:N.x,startY:N.y};this.parent.style.cursor=this._grabbing_mousecursor;H.observe(document,"mousemove",this._eMouseMoveGlobal);H.observe(document,"mouseup",this._eMouseUpGlobal);H.stop(M)},_cancelDrag:function(){var M=this._dragState;if(M&&M.dragged){A(this,"DragEnd");A(this,"MoveEnd")}this._dragState=null;H.stopObserving(document,"mousemove",this._eMouseMoveGlobal);H.stopObserving(document,"mouseup",this._eMouseUpGlobal);this.parent.style.cursor=this._grab_mousecursor},handleClickEvent:function(M,O){var N=new I.Event("MQA.TileMap.click");this.onClick(N);this.slideMapToPoint(M,O)},slideMapToPoint:function(S,P){if(typeof (S)=="object"){P=S.y;S=S.x}if(this._slideKey){clearTimeout(this._slideKey)}this._slideKey=null;var O=this.display;S+=O.ulX;P+=O.ulY;var R=(O.ulX+O.width/2),Q=(O.ulY+O.height/2),M=S-R,N=P-Q,U=O.ulX+M,T=O.ulY+N;A(this,"MoveStart");this._doSlide(U,T,M/I.SLIDESTEPS,N/I.SLIDESTEPS,I.SLIDESTEPS)},_doSlide:function(Q,P,O,N,M){var R=this.display;R.setViewport(R.ulX+O,R.ulY+N);A(this,"Move");if(M==0){this._slideKey=null;R.setViewport(Q,P);A(this,"MoveEnd")}else{this._slideKey=setTimeout(H.hitch(this,"_doSlide",Q,P,O,N,M-1),I.SLIDEDELAY)}},setMapType:function(N){var O=false,U=O,P=O,Q=false,T=false,R=this.mapType,S;switch(N){case"map":O=true;Q=true;break;case"sat":U=true;T=true;break;case"hyb":U=true;P=true;Q=true;T=true;break}function M(W,V){if(V){W.enable()}else{W.disable()}}M(this.display.layers[I.TILE_LAYER_ID.MAP],O);M(this.display.layers[I.TILE_LAYER_ID.SAT],U);M(this.display.layers[I.TILE_LAYER_ID.HYB],P);this.logos[I.MapLogo.NAVTEQ_COPYRIGHT].style.display=(Q?"block":"none");this.logos[I.MapLogo.ICUBED_COPYRIGHT].style.display=(T?"block":"none");this.mapType=N;S=new I.Event("MQA.TileMap.mapTypeChanged");S.prevMapType=R;S.mapType=N;this.onMapTypeChanged(S)},getMapType:function(){return this.mapType},panNorth:D(0,-1),panSouth:D(0,1),panEast:D(1,0),panWest:D(-1,0),panNorthWest:D(-1,-1),panSouthWest:D(-1,1),panNorthEast:D(1,-1),panSouthEast:D(1,1),setZoomLevel:function(N){N=parseInt(N);if(N<1){N=1}if(N>16){N=16}if(this.zoom==N){return }var M=this.getCenter();this.zoom=N;this.scale=I.SCALES[N];K(this,function(){this.display.initTransform(this.zoom,this.scale,M.lat,M.lng,this.width,this.height)});this._updateLogoPositions()},getZoomLevel:function(){return this.zoom},getScale:function(){return this.scale},getCenter:function(){var M=Math.floor(this.display.width/2)+this.display.ulX,O=Math.floor(this.display.height/2)+this.display.ulY,N=this.display.transform.displayToLatLng(M,O);return new I.LatLng(N.lat,N.lng)},setCenter:function(P,O){var N=this.display;if(O&&O!=this.zoom){this.zoom=O;this.scale=I.SCALES[O];K(this,function(){N.initTransform(this.zoom,this.scale,P.lat,P.lng,this.width,this.height)});this._updateLogoPositions()}else{var M=N.transform.latLngToDisplay(P.lat,P.lng);A(this,"MoveStart");N.setViewport(M.x-N.width/2,M.y-N.height/2);A(this,"MoveEnd")}},pixToLL:function(M){var N=this.display,O=N.transform.displayToLatLng(N.ulX+M.x,N.ulY+M.y);return new I.LatLng(O.lat,O.lng)},llToPix:function(O){var N=this.display,M=N.transform.latLngToDisplay(O.lat,O.lng);return new I.Point(M.x-N.ulX,M.y-N.ulY)},pixToDisplay:function(M){var N=this.display;return new I.PointXY(N.ulX+M.x,N.ulY+M.y)},getDragOffset:function(){var M=this.display;return new I.Point(M.ulX,M.ulY)},getSize:function(){return new I.Size(this.width,this.height)},saveState:function(){this.savedCenter=this.getCenter();this.savedZoomLevel=this.getZoomLevel();this.savedMapType=this.getMapType()},restoreState:function(){this.setCenter(this.savedCenter);this.setZoomLevel(this.savedZoomLevel);this.setMapType(this.savedMapType)},getSize:function(){return new I.Size(this.width,this.height)},setSize:function(W){var N,U,S=this.parent,Q=this.parent2,R=this.display,P,O,M,V,T;this._cancelDrag();if(W){N=W.width;U=W.height}else{N=I.Util.getDomWidth(Q);U=I.Util.getDomHeight(Q)}P=(R.ulX+R.width/2);O=(R.ulY+R.height/2);this.width=N;this.height=U;R.width=N;R.height=U;S.style.width=N+"px";S.style.height=U+"px";Q.style.width=N+"px";Q.style.height=U+"px";M=P-N/2;V=O-U/2;R.setViewport(M,V,N,U);this._updateLogoPositions();T=new I.Event("MQA.TileMap.sizeChanged");T.width=N;T.height=U;this.onSizeChanged(T)},zoomToRect:function(N,O,P,M){F(this,N,O,P||1,M||16)}});function J(M){var N=M.toLowerCase();return function(O){I.EventManager.trigger(this,N,O)}}function G(O,N){for(var M=0;M<N.length;M++){O["on"+N[M]]=J(N[M])}}G(E.prototype,["MapInit","LayerDrawn","LayerAdded","LayerRemoved","Click","DoubleClick","ZoomStart","ZoomEnd","MapTypeChanged","ShapeAdded","ShapeRemoved","MapCleared","InfoWindowOpen","InfoWindowClose","MoveStart","Move","MoveEnd","DragStart","Drag","DragEnd","TKMouseDown","TKMouseUp","SizeChanged"]);I.TileMap=E})();(function(){var C=window.MQA;function B(F,E){var D=E?C.Util.objectId(E):"";return"w:"+D+":"+F}function A(F){this.map=F;this.registry={};var D=document.createElement("div");D.style.position="absolute";D.style.zIndex="1000";D.style.left="0px";D.style.top="0px";F.parent2.appendChild(D);this.screenSurface=D;var E=document.createElement("div");E.style.position="absolute";E.style.zIndex="1000";F.display.elt.appendChild(E);this.globalSurface=E;F.display.addLayer("global-window",this)}A.prototype={resetTransform:function(D){this.each(function(E){if(E.resetTransform){E.resetTransform(D)}})},each:function(G){var E,D=this.registry,F;for(E in D){if(E.match(/^w\:/)){F=G(D[E]);if(F){return F}}}},open:function(I,H,G){var D=this.registry,E=B(I,H),F=D[E];this.close(H,I);G.opener=H;G.id=I;D[E]=G;if(G.resetTransform){G.resetTransform(this.map.display.transform)}G.onOpen(this);if(H&&H.onWindowOpen){H.onWindowOpen(G)}},find:function(E,D){return this.registry[B(E,D)]},close:function(H,G){var D=this.registry,E=B(H,G),F=D[E];if(F){if(G&&G.onWindowClose){G.onWindowClose(F)}F.dispose();delete D[E]}},closeAll:function(F,E){var D=this;this.each(function(G){if((F&&F!=G.id)||(E&&E!==G.opener)){return }D.close(G.id,G.opener)})}};C.mixin(C.TileMap.prototype,{onMapInit$After:function(){this.windowManager=new A(this)}});C.WindowManager=A})();(function(){var F=window.MQA,G="http://"+LOGSERVER+"/tilelog/transaction";function I(P,N,K,J,M){K=parseInt(K*1000000)/1000000;J=parseInt(J*1000000)/1000000;var Q=P.display.transform.scale,O=P.getCenter(),L;L=G+"?transaction=log&t="+N+"&c="+K+"&c2="+J+"&s="+M+"&lat="+O.lat+"&lng="+O.lng+"&key="+Key+"&rand="+Math.floor(Math.random()*99991);F.Util.debug("TranLog: "+L);return L}function A(L){var M=L._tranLayer,J,K=M.lastScale;if(M.mapaccum1>0){L.maptiler.src=I(L,"m",M.mapaccum1,M.mapaccum2,K);J=true}if(M.sataccum1>0){L.sattiler.src=I(L,"a",M.sataccum1,M.sataccum2,K);J=true}if(M.hybaccum1>0){L.hybtiler.src=I(L,"h",M.hybaccum1,M.hybaccum2,K);J=true}M.resetStats(true);return J}function D(K){var J=document.createElement("img");J.src=F.NOTHING;J.unselectable="on";J.style.MozUserSelect="none";J.style.display="none";K.appendChild(J);return J}function H(L){var K=L.display,J=K.layers;return{map:J[F.TILE_LAYER_ID.MAP].enabled,sat:J[F.TILE_LAYER_ID.SAT].enabled,hyb:J[F.TILE_LAYER_ID.HYB].enabled}}function E(J){this.map=J;this.resetStats(true);this.resetStats(false);this.lastScale=J.display.transform.scale}E.prototype={resetStats:function(K){if(K){this.mapaccum1=0;this.sataccum1=0;this.hybaccum1=0;this.mapaccum2=0;this.sataccum2=0;this.hybaccum2=0}else{var J=H(this.map);if(J.map){this.mapaccum1+=1;this.mapaccum2+=1}if(J.sat){this.sataccum1+=1;this.sataccum2+=1}if(J.hyb){this.hybaccum1+=1;this.hybaccum2+=1}}this.diffaccum=0;this.tileOffsetX=0;this.tileOffsetY=0},resetTransform:function(){A(this.map);this.tileOffsetX=0;this.tileOffsetY=0;this._lastTileCoords=null;this.lastScale=this.map.display.transform.scale},setViewport:function(J,Y,N,X){var K=this.map,W=K.display,O=W.transform,P,V=0,T,S=C(O,J,Y,N,X),U=this._lastTileCoords,M,R,Q,L;if(U){M=U.ul[0]-S.ul[0];R=B(S.lr[0]-U.lr[0]);Q=S.ul[1]-U.ul[1];L=B(U.lr[1]-S.lr[1]);this.tileOffsetX+=M;this.tileOffsetY+=Q;M=B(M);Q=B(Q);V+=(M+R)*S.rowcount;V+=(Q+L)*S.colcount;if(V>0){T=V/(S.rowcount*S.colcount*9);P=H(this.map);if(P.map){this.mapaccum1+=T}if(P.sat){this.sataccum1+=T}if(P.hyb){this.hybaccum1+=T}if(Math.abs(this.tileOffsetX)>4||Math.abs(this.tileOffsetY)>4){A(this.map)}}}this._lastTileCoords=S}};function B(J){return J<0?0:J}function C(L,K,Q,N,J){var M=L.displayToGridCoord(K,Q),P,O;ret;P=Math.floor((N+Math.abs(K-M.ulX))/M.gridSize);O=Math.floor((J+Math.abs(Q-M.ulY))/M.gridSize);ret={ul:[M.col,M.row],lr:[M.col+P,M.row-O],colcount:P+1,rowcount:O+1};return ret}F.mixin(F.TileMap.prototype,{onMapInit$After:function(){var J=this.parent2,K;this.maptiler=D(J);this.sattiler=D(J);this.hybtiler=D(J);K=new E(this);this._tranLayer=K;this.display.addLayer("tran-"+F.Util.objectId(K),K)},dispose$Before:function(){var K=A(this);if(K&&F._prEvent._inGlobalDtor){var J=new Date().getTime()+250;while(new Date().getTime()<J){}}},onMapTypeChanged$After:function(){var J=this._tranLayer;if(J){A(this);this._tranLayer.resetStats(false)}},setCenter$Before:function(){var J=this._tranLayer;if(J){A(this);J.resetTransform();J.resetStats(false)}},onMoveStart$After:function(){var K=this._tranLayer,J=this.display;if(K){K.startx=J.ulX;K.starty=J.ulY}},onMoveEnd$After:function(){var Q=this._tranLayer,P=this.display,L,K,O,M,N,J;if(Q){L=Q.startx,K=Q.starty;O=Math.abs(P.ulX-L);M=Math.abs(P.ulY-K);Q.diffaccum+=((O*M)+((this.width-O)*M)+((this.height-M)*O));N=((Q.diffaccum/(this.width*this.height))>=0.4);if(N){J=H(this);if(J.map){Q.mapaccum2+=1}if(J.sat){Q.sataccum2+=1}if(J.hyb){Q.hybaccum2+=1}Q.diffaccum=0}Q.startx=null;Q.starty=null}},onZoomEnd$After:function(){var J=this._tranLayer;J.resetStats(false)}})})();(function(){var K=window.MQA;function A(){this.items=[];this.guid=K.Util._getRandomGUID(10);this.collectionName="";this.setName=function(O){this.collectionName=O};this.getName=function(){return this.collectionName};this.add=function(P){var O=this.items.length;this.items.push(P);if(this._onAdd){this._onAdd(P,O)}return O+1};this.getSize=function(){return this.items.length};this.getAt=function(O){return this.items[O]};this.remove=function(Q){var P,O=this.items,R=O[Q];if(Q>=O.length){return }for(P=Q;P<O.length;P++){O[P]=O[P+1]}O.length-=1;if(this._onRemoved){this._onRemoved(R)}return R};this.removeAll=function(){var O=this.items;this.items=[];if(this._onRemove){for(var P=0;P<O.length;P++){this._onRemove(O[P])}}};this.contains=function(Q){var O=this.items;for(var P=0;P<O.length;P++){if(O[P]===Q){return true}}};this.getById=function(O){};this.removeItem=function(Q){var O=this.items;for(var P=0;P<O.length;P++){if(O[P]===Q){this.remove(P);return }}};this.append=function(P){for(var O=0;O<P.getSize();O++){this.add(P.getAt(O))}};this.getItemIndex=function(Q){var O=this.items;for(var P=0;P<O.length;P++){if(O[P]===Q){return P}}return false}}function B(P,O){this.ul=P?new K.LatLng(P.lat,P.lng):new PointLL(0,0);this.lr=O?new K.LatLng(O.lat,O.lng):new PointLL(0,0)}function H(){this.guid=K.Util._getRandomGUID(10);this.className="MQA.base";this.reservedProperties="guid,className,parentCollections";this.parentCollections=[];this.setValue=function(P,O){if(typeof (this[P])!="undefined"){if(this.reservedProperties.search(P)!=-1){return false}this[P]=O;if(typeof (this[P+"_override"])=="undefined"){this._facio(P,this[P])}this.facio(P,this[P]);return true}else{return false}};this.getValue=function(P){var O;if(typeof (this[P])!="undefined"){O=this.duco(P);if(typeof (O)=="undefined"){O=this._duco(P);if(typeof (O)=="undefined"){O=this[P]}}return O}};this.setValues=function(O){var P=0;for(key in O){if(typeof (this[key])!="undefined"){if(this.setValue(key,O[key])){P++}}}return P};this.override=function(P){if(!(P instanceof Array)){P=[P]}for(var O=0;O<P.length;O++){this[P[O]+"_override"]=1}};this._facio=function(O,P){};this.facio=function(O,P){};this._duco=function(O){};this.duco=function(O){};this.draw=function(){};this.dispose=function(){}}function D(O){return(typeof (O)=="function")?O:undefined}function N(Q,O){var P=O.substring(0,1).toUpperCase()+O.substring(1);return D(Q["get"+P])||D(Q["is"+P])||function(){return Q[O]}}function J(R,P,O){var Q=P.substring(0,1).toUpperCase()+P.substring(1);return D(R["set"+Q])||(!O&&function(S){return R[P]=S})}var C={setValue:function(O,P){J(this,O).call(this,P)},getValue:function(O){return N(this,O).call(this)},setValues:function(P){var O={},Q,R=0;for(key in P){if(O[key]){continue}Q=J(this,key,true);if(Q){Q.call(this,P[key]);R++}}return R},dispose:function(){},defineProperty:function(O,P,V,X){var U=O.substring(0,1).toUpperCase()+O.substring(1),R="set"+U,Q=function(Y){var Z=this[X];if(P&&Y!==null&&Y!==undefined){Y=P(Y)}if(this[O]!==Y){this[O]=Y;if(typeof (Z)=="string"){Z=this[X]}if(typeof (Z)=="function"){Z.call(this)}}},W="get"+U,S="is"+U,T=function(){return this[O]};if(!this[R]){this[R]=Q}if(!this[W]){this[W]=T}if(P===Boolean&&!this[S]){this[S]=T}if(typeof (V)!=undefined){this[O]=V}}};function M(){}M.prototype=C;function G(P,O){this.setLatLng(P,O)}G.prototype={setLatitude:function(O){this.lat=parseFloat(O)},getLatitude:function(){return this.lat},setLongitude:function(O){this.lng=parseFloat(O)},getLongitude:function(){return this.lng},setLatLng:function(P,O){this.lat=parseFloat(P);this.lng=parseFloat(O)}};function I(O,P){this.x=O;this.y=P}I.prototype={setX:function(O){this.x=O},setY:function(O){this.y=O},getX:function(){return this.x},getY:function(){return this.y},setXY:function(O,P){this.x=O;this.y=P}};function F(O,P){this.width=parseInt(O||0);this.height=parseInt(P||0)}F.prototype={getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(O){this.width=parseInt(O)},setHeight:function(O){this.height=parseInt(O)},toString:function(){return this.width+","+this.height}};function L(O,P){if(O==null){O=K.MapCorner.TOP_LEFT}if(P==null){P=new K.Size(0,0)}this.mapCorner=O;this.offsetSize=new K.Size(P.width,P.height)}L.prototype={getMapCorner:function(){return this.mapCorner},getOffsetSize:function(){return new K.Size(this.offsetSize.getWidth(),this.offsetSize.getHeight())}};function E(O){return function(Q,P){this.x=O(Q);this.y=O(P)}}K.LatLng=window.MQLatLng=G;K.Point=window.MQPoint=I;K.LatLngCollection=A;K.RectLL=B;K.Size=F;K.Component=M;K.Base=H;K.MapCornerPlacement=L;K.PointXY=E(parseInt);K.PointFloatXY=E(parseFloat);K.PointLL=E(parseFloat);K.TKObjectCollection=A})();(function(){var H=window.MQA,C=H.Util.objectId,F=1;function G(){H.TKObjectCollection.call(this)}G.prototype={_onAdd:function(I){var J=this._peer;if(J){J.addShape(I)}},_onRemove:function(I){var J=this._peer;if(J){J.removeShape(I)}},isOnMap:function(){return !!this._peer},setDeclutter:function(I){},getDeclutter:function(){},setMinZoomLevel:function(I){this.minZoomLevel=I},getMinZoomLevel:function(){return this.minZoomLevel||1},setMaxZoomLevel:function(I){this.maxZoomLevel=I},getMaxZoomLevel:function(){return this.maxZoomLevel||16},inZoomWindow:function(){if(!this.map){return }var I=this.map.getZoomLevel();return(I>=this.getMinZoomLevel()&&I<=this.getMaxZoomLevel())},getBoundingRect:function(){}};function D(J,K){this.display=J;this.collection=K;var I=document.createElement("div");I.style.position="absolute";J.elt.appendChild(I);this.elt=I;this.shapes={};this._initCollection();this.resetTransform()}D.prototype={_initCollection:function(){var I,J,K=this.collection;K._peer=this;K.map=this.display.map;for(J=0;J<K.getSize();J++){I=K.getAt(J);this.addShape(I)}},dispose:function(){this.elt.parentNode.removeChild(this.elt)},resetTransform:function(){var N=this.collection,M=this.display,K=M.transform,L=K.zoom,J=this.elt,I="block";if(N.inZoomWindow()){this.eachShapePeer(function(O){O.resetTransform(M.transform)})}else{I="none"}if(J.style.display!=I){J.style.display=I}},eachShapePeer:function(I){var K,J;for(K in this.shapes){if(H.Util.isObjectId(K)){J=this.shapes[K];I(J)}}},addShape:function(I){var L=C(I),J;try{J=I.createPeer();this.shapes[L]=J;J.layerInit(this,this.display.map);J.resetTransform(this.display.transform)}catch(K){}return L},removeShape:function(J){var I=this.shapes,L=C(J),K=I[L];if(K){delete I[L];if(K.dispose){K.dispose()}}}};var B="shape.default";function E(K){var I,J=K.display,L=K._defaultShapeCollection;if(!L){L=new G();K._defaultShapeCollection=L;I=new D(J,L);J.addLayer(B,I)}return L}function A(K){var I="_shapeCollectionRegistry",J=K[I];if(!J){J=new H.TKObjectCollection();K[I]=J}return J}H.extend(H.TileMap.prototype,{addShape:function(I){E(this).add(I);return I},removeAllShapes:function(){E(this).removeAll()},removeShape:function(I){E(this).removeItem(I)},getShapes:function(I){},getByKey:function(I){},addShapes:function(I){},replaceShapes:function(I){},addShapeCollection:function(I){var K="custom.shape.layer."+(F++),M=this.display,J,L=A(this);if(L.contains(I)){return }J=new D(M,I);J.key=K;M.addLayer(K,J);L.add(I)},removeShapeCollection:function(I){var J,L=this.getShapeCollection(I),K=A(this);if(!L){return }K.remove(L);J=L._peer;if(!J){return }delete L._peer;delete L.map;this.display.removeLayer(J.key)},replaceShapeCollection:function(I,J){},getShapeCollection:function(I){var J,L,K=A(this);for(J=0;J<K.getSize();J++){L=K.getAt(J);if(L&&L.collectionName==I){return L}}},getShapeCollections:function(){var J,I=[],K=A(this);for(J=0;J<K.getSize();J++){I.push(K.getAt(J))}return I},getShapeCollectionNames:function(){var K,J,I=[],L=A(this);for(K=0;K<L.getSize();K++){J=L.getAt(K);if(J&&J.collectionName){I.push(J.collectionName)}}return I},getShapeCollectionCount:function(){return A(this).getSize()}});H.TileMap.prototype.getShapeByKey=H.TileMap.getByKey;H.TileMap.prototype.addPoi=H.TileMap.addShape;H.TileMap.prototype.removePoi=H.TileMap.removePoi;H.ShapeCollection=G})();(function(){var F=window.MQA;function G(){var H=document.createElement("img");H.setAttribute("unselectable","on");H.style.MozUserSelect="none";H.style.display="block";H.setAttribute("galleryimg","no");return H}var A=F.Icon=function(H,I,J){this.imageURL=H;this.width=parseInt(I);this.height=parseInt(J)};A.prototype={createElement:function(){var H=G();H.src=this.imageURL;H.setAttribute("width",this.width);H.setAttribute("height",this.height);return H}};var D=F.Poi=function(H,I){this.latLng=new F.LatLng(H.lat,H.lng);if(!I){I=new A(F.Util.ie6Image("http://img.mqcdn.com/mqtoolkit/star.png"),29,29)}this.icon=I;this.shadow=new F.Icon(F.Util.ie6Image("http://img.mqcdn.com/mqtoolkit/shadow.png",23,7));this.shadowOffset=new F.Point(6,0)};D.prototype=new F.Component();F.extend(D.prototype,{createPeer:function(){return this},layerInit:function(H,I){this.map=I;this.layer=H;this.draw()},_invalidate:function(){if(!this.layer){return }this.draw()},_initializeShape:function(){var H;H=document.createElement("div");this.shape=H;H.style.cursor="pointer";H.className="MQA_Poi_Shape";H.style.position="absolute";H.setAttribute("unselectable","on");H.style.MozUserSelect="none";H.style.zIndex=90;this.eClick=F._prEvent.EventCallback(this,"onDOMClick");this.eDoubleClick=F._prEvent.EventCallback(this,"onDOMDoubleClick");this.eMouseDown=F._prEvent.EventCallback(this,"onDOMMouseDown");this.eMouseUp=F._prEvent.EventCallback(this,"onDOMMouseUp");this.eMouseOver=F._prEvent.EventCallback(this,"onDOMMouseOver");this.eMouseOut=F._prEvent.EventCallback(this,"onDOMMouseOut");F._prEvent.observe(H,"click",this.eClick);F._prEvent.observe(H,"dblclick",this.eDoubleClick);F._prEvent.observe(H,"mousedown",this.eMouseDown);F._prEvent.observe(H,"mouseup",this.eMouseUp);F._prEvent.observe(H,"mouseover",this.eMouseOver);F._prEvent.observe(H,"mouseout",this.eMouseOut);this.layer.elt.appendChild(H);return H},onDOMClick:function(H){F._prEvent.stop(H)},onDOMDoubleClick:function(H){F._prEvent.stop(H)},onDOMMouseDown:function(H){F._prEvent.stop(H)},onDOMMouseUp:function(H){F._prEvent.stop(H)},onDOMMouseOver:function(H){},onDOMMouseOut:function(H){},getEffectiveOffset:function(){var J=this.altStateFlag,I=(J?this.altIcon:this.icon),K=(J?this.altIconOffset:this.iconOffset),H,L;if(!K){if(I){H=(-I.width)/2;L=(-I.height)/2}else{H=0;L=0}K=new F.PointXY(H,L)}return K},draw:F.Defer.dedup(function(){var J=this.shape;if(!J){J=this._initializeShape()}if(this.HTMLContent){if(this._drawnHTMLContent!=this.HTMLContent){J.innerHTML=this.HTMLContent;this._drawnHTMLContent=this.HTMLContent}this._drawnIcon=null;this._drawnShadow=null}else{if(this._drawnHTMLContent){this._drawnHTMLContent=null;J.innerHTML=""}var I,L,M=this.altStateFlag,K=(M?this.altIcon:this.icon),N=(M?this.altShadow:this.shadow),H=(M?this.altShadowOffset:this.shadowOffset);if(this._drawnIcon!==K){if(this._drawnIconElt){this._drawnIconElt.parentNode.removeChild(this._drawnIconElt)}this._drawnIcon=null;this._drawnIconElt=null;if(K){I=K.createElement();J.appendChild(I);this._drawnIcon=K;this._drawnIconElt=I}}if(this._drawnShadow!==N||!K){if(this._drawnShadowElt){this._drawnShadowElt.parentNode.removeChild(this._drawnShadowElt)}this._drawnShadow=null;this._drawnShadowElt=null;if(N&&K&&!F.browser.ie6&&F.browser.name!="msie"){I=N.createElement();J.appendChild(I);this._drawnShadow=N;this._drawnShadowElt=I}}I=this._drawnShadowElt;if(H&&I){L=H.x+"px";if(I.style.marginLeft!=L){I.style.marginLeft=L}L=H.y+"px";if(I.style.marginTop!=L){I.style.marginTop=L}}}this._updateVisibility();this._updatePosition()}),_updateVisibility:function(){var I=this._drawnZoomLevel,K=this.visible&&(I>=this.minZoomLevel)&&(I<=this.maxZoomLevel),H=this.shape,J=K?"block":"none";if(!H||H.style.display==J){return }H.style.display=J},_updatePosition:function(){var H=this.shape,N=this._drawnXY,M=this.altStateFlag,I=(M?this.altIcon:this.icon),L=(M?this.altIconOffset:this.iconOffset),K,J;if(!H||!N||!I){return }if(!L){L={x:(-I.width/2),y:(-I.height/2)}}K=(N.x+L.x)+"px";J=(N.y+L.y)+"px";if(H.style.left!=K){H.style.left=K}if(H.style.top!=J){H.style.top=J}},resetTransform:function(H){this._drawnXY=H.latLngToDisplay(this.latLng.lat,this.latLng.lng);this._drawnZoomLevel=H.zoom;this._updatePosition();this._updateVisibility()},dispose:function(){var H=this.shape;F._prEvent.stopObserving(H,"click",this.eClick);F._prEvent.stopObserving(H,"dblclick",this.eDoubleClick);F._prEvent.stopObserving(H,"mousedown",this.eMouseDown);F._prEvent.stopObserving(H,"mouseup",this.eMouseUp);F._prEvent.stopObserving(H,"mouseover",this.eMouseOver);F._prEvent.stopObserving(H,"mouseout",this.eMouseOut);if(H){H.parentNode.removeChild(H)}}});var E=D.prototype;function B(J,K,H,I){E.defineProperty(J,K,H,I)}var C="_invalidate";B("key",null,"");B("HTMLContent",null,null,C);B("HTMLOffset",null,null,C);B("icon",null,null,C);B("iconOffset",null,"",C);B("shadow",null,null,C);B("shadowOffset",null,"",C);B("altIcon",null,null,C);B("altIconOffset",null,"",C);B("altShadow",null,null,C);B("altShadowOffset",null,"",C);B("visible",Boolean,true,"_updateVisibility");B("latLng",function(H){return new F.LatLng(H.lat,H.lng)},null,"_updatePosition");B("altStateFlag",Boolean,false,C);B("labelText",String,"");B("labelVisible",Boolean,false);B("labelClass",String,"",C);B("zIndex",parseInt,0,C);B("infoTitleHTML",null,null,"_updateInfoContent");B("infoContentHTML",null,null,"_updateInfoContent");B("altShadow",null,null,C);B("minZoomLevel",parseInt,1,"_updateVisibility");B("maxZoomLevel",parseInt,16,"_updateVisibility")})();