// # Andes BV, Copyright 2009, Version 1.12
(function(){function bj(d,c){d.appendChild(c)}function aT(b){b.length=0}function bN(d,f,c){for(var e=f;e<bz(d);e++){c.push(d[e])}return c}function aN(b){return document.createElement(b)}function Y(d,c){d.innerHTML=c}function by(b){b.style.display=""}function a1(b){b.style.display="none"}function b3(d){var a=[];for(var c in d){a.push(encodeURIComponent(c)+"="+encodeURIComponent(d[c]))}return a.join("&")}function bz(b){return b.length}function R(d,c){for(var e=0;e<bz(d);e++){if(d[e]==c){d.splice(e,1);return}}}function cK(b){if(b.parentNode){b.parentNode.removeChild(b)}}function dk(d,c){d.type=c}function C(e,d,f){e.setAttribute(d,f)}function aK(d,c){d.src=c}function bY(d,c){d.style.cursor=c}function af(b){b.style.position="absolute"}function aP(b){b.style.position="relative"}function bT(b){b.style.margin="0px"}function ar(b,c){b.style.padding=c+"px"}function cT(b){b.style.padding="0px"}function aj(b){return b.offsetLeft}function ai(b){return b.offsetTop}function E(b){b.style.overflow="hidden"}function x(b){b.style.overflow="auto"
}function b6(a,b){if(di.isIE()){if(di.version>=8){a.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+M(b*100)+')"'}else{a.style.filter="Alpha(Opacity="+M(b*100)+")"}}else{a.style.opacity=b}}function c3(b,c){b.href=c||"javascript:void(0)"}function aM(b,a){return window.setTimeout(b,a)}function bH(a){window.clearTimeout(a)}function ct(a,c){var b=function(){};b.prototype=c.prototype;a.prototype=new b}function aF(b){return b!==undefined}function bg(b,a){b.style.width=a+"px"}function aE(a,b){a.style.width=b+"%"}function bZ(b,a){b.style.height=a+"px"}function an(a,b){a.style.height=b+"%"}function cX(c,b){c.style.left=b+"px"}function bK(c,b){c.style.top=b+"px"}function az(c,b){c.style.right=b+"px"}function aR(c,b){c.style.zIndex=b}var bM="click",ac="copyrightchanged",bO="contextmenu",bL="dblclick",H="dblrightclick",bb="dragstart",a5="dragging",cO="dragend",cJ="keydown",a7="keypress",c7="load",bA="moveend",bs="movestart",dg="moving",bk="mapresize",bD="maptypechanged",S="middleclick",P="mousedown",aa="mousemove",F="mouseout",a4="mouseover",bo="mouseup",cB="addoverlay",cg="clearoverlays",D="removeoverlay",c5="resize",I="rightclick",ab="createtile",ad="updatetile",cH="visibilitychanged",bc="windowopen",W="windowhide",dl="windowclose",O="windowshow";
var B=Math.abs,bu=Math.acos,c4=Math.asin,y=Math.atan,aH=Math.atan2,bl=Math.ceil,dj=Math.cos,ax=Math.exp,cz=Math.floor,bh=Math.log,dn=Math.max,a6=Math.min,al=Math.PI,aY=Math.pow,M=Math.round,aX=Math.sin,L=Math.sqrt,bm=Math.tan;function bJ(e,d,f){return dn(dn(e,d),f)}function b1(b){return aY(b,2)}function ah(b){return b*180/al}function a8(b){return b*al/180}function df(b,d){var c=Math.pow(10,d);return Math.round(b*c)/c}function cc(){return new Date().getTime()}var aG="",bG="",U=new Image();function b8(a){if(bz(a)>0&&a.charAt(bz(a)-1)!="/"){a+="/"}aG=a;bG=a+"transparent.png";if(bz(a)>0){U.src=bG}}function a9(){this.type=-1;this.version=0;this.revision=0;this.os=-1;this.types=["opera","msie","safari","firefox","mozilla"];this.osTypes=["x11;","macintosh","windows"];var d=navigator.userAgent.toLowerCase();if(document.all&&aF(ActiveXObject)&&aF(GetObject)){this.type=1;if(document.documentMode&&document.documentMode>=8){this.version=8}else{if(aF(document.compatMode)){if(typeof(XMLHttpRequest)=="object"){this.version=7
}else{this.version=6}}else{if(aF(decodeURI)){this.version=5.5}else{if(aF(window.attachEvent)){this.version=5}else{this.version=4}}}}}else{if(aF(window.opera)){this.type=0;this.setVersion(d)}else{if(!aF(document.images)){this.type=0;this.setVersion(d)}else{if(aF(DOMParser)&&aF(XMLHttpRequest)){this.type=3;this.setVersion(d)}else{for(var c=0;c<bz(this.types)&&this.type==-1;c++){var b=this.types[c];if(d.indexOf(b)!=-1){this.type=c;var a=new RegExp(b+"[ /]?([0-9]+(.[0-9]+)?)");if(a.exec(d)!=null){this.version=parseFloat(RegExp.$1)}}}}}}}for(var c=0;c<bz(this.osTypes)&&this.os==-1;c++){var b=this.osTypes[c];if(d.indexOf(b)!=-1){this.os=c}}if(this.isMozillaBased()){if(/\brv:\s*(\d+\.\d+)/.exec(d)){this.revision=parseFloat(RegExp.$1)}}this.standardsMode=document.compatMode=="CSS1Compat";this.svg=(document.createElementNS&&typeof document.createElementNS(ak,"svg").width!="undefined")?true:false}var av=0,cQ=1,bI=2,X=3;a9.prototype.setVersion=function(b){var a=new RegExp(this.types[this.type]+"[ /]?([0-9]+(.[0-9]+)?)");
this.version=(a.exec(b)!=null)?parseFloat(RegExp.$1):0};a9.prototype.isIE=function(){return this.type==1};a9.prototype.isIE5plus=function(){return this.isIE()&&this.version>=5};a9.prototype.isIE5or6=function(){return this.isIE()&&this.version<=6};a9.prototype.isOpera=function(){return this.type==0};a9.prototype.isMozillaBased=function(){return this.type==3||this.type==4};a9.prototype.SVGEnabled=function(){return this.svg};a9.prototype.inStandardsMode=function(){return this.standardsMode};a9.prototype.getScrollWheelEventName=function(){return this.isMozillaBased()?"DOMMouseScroll":"mousewheel"};a9.prototype.getCursor=function(a){switch(a){case cQ:return this.isMozillaBased()?"-moz-grab":"url("+aG+"grab.cur)";case bI:return this.isMozillaBased()?"-moz-grabbing":"url("+aG+"grabbing.cur)";case X:return"default";default:return this.isIE5or6()?"hand":"pointer"}};a9.prototype.toString=function(){return this.types[this.type]+" "+this.version+"."+this.revision+" "+this.osTypes[this.os]};var ak="http://www.w3.org/2000/svg",di=new a9();
IUrlProvider=function(){};IUrlProvider.prototype.equals=function(a){return a&&this.getUrl===a.getUrl};IUrlProvider.prototype.getImageUrl=function(a,b,c){return""};IUrlProvider.prototype.getMapUrl=function(a,b,c){return""};IUrlProvider.prototype.isPng=function(){return false};function T(c,b,d){var a=this;a.baseUrl=c;a.node=b||window.document;a.timeout=d||5000}function db(d,c,b,a){return function(e){bH(a);aw(d,c);b(e)}}function aw(b,a){aM(function(){cK(a);if(window[at][b]){delete window[at][b]}},0)}function b5(){return(new Date()).getTime()}var bC=0,at="_faslc_";function ba(c,a,b){return function(){aw(c,a);if(b){b()}}}T.prototype.send=function(h,g,i){var a=this,d=a.node.getElementsByTagName("head")[0];if(!d){if(i){i()}return null}var c="_"+(bC++).toString(36)+b5().toString(36);if(!window[at]){window[at]={}}var e=aN("script"),f=null;if(a.timeout>0){f=aM(ba(c,e,i),a.timeout)}var b=a.baseUrl;if(b.indexOf("?")==-1){b+="?"}if(h){b+="&"+b3(h)}if(g){window[at][c]=db(c,e,g,f);b+="&callback="+at+"."+c}dk(e,"text/javascript");
C(e,"id",c);C(e,"charset","UTF-8");aK(e,b);if(di.isIE5or6()){aM(function(){bj(d,e)},0)}else{bj(d,e)}return{id:c,timer:f}};T.prototype.cancel=function(a){if(a&&a.id){bH(a.timer);aw(a.id,gel(a.id))}};if(!window.XMLHttpRequest){window.XMLHttpRequest=function(){var a;try{return new ActiveXObject("Msxml2.XMLHTTP.4.0")}catch(b){}try{return new ActiveXObject("MSXML2.XMLHTTP")}catch(b){}try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(b){}return null}}function cR(a,c){var b=new XMLHttpRequest();if(b){b.onreadystatechange=function(){if(b.readyState==4){try{b.onreadystatechange=null}catch(d){b.onreadystatechange=function(){}}if(b.status==200){c(b.responseText)}}};b.open("GET",a,true);b.send("")}}function bB(a,b){this.x=a;this.y=b}bB.ORIGIN=new bB(0,0);bB.prototype.setCoordinates=function(a,b){this.x=a||0;this.y=b||0};bB.prototype.equals=function(a){return this.x==a.x&&this.y==a.y};bB.prototype.distanceTo=function(a){return M(L(b1(this.x-a.x)+b1(this.y-a.y)))};bB.prototype.copyTo=function(a){a.x=this.x;a.y=this.y};
bB.prototype.clone=function(){return new bB(this.x,this.y)};bB.prototype.toString=function(a){if(a===undefined||a<0){a=0}return df(this.x,a)+","+df(this.y,a)};function cV(a,b){bB.call(this,a,b)}cV.ORIGIN=new cV(0,0);ct(cV,bB);function bq(b,a){this.lat=b||0;this.lng=a||0}bq.ORIGIN=new bq(0,0);var bn=6378137;bq.prototype.setLatLng=function(b,a){this.lat=b;this.lng=a};bq.prototype.lat=function(){return this.lat};bq.prototype.lng=function(){return this.lng};bq.prototype.equals=function(a){return this.lat==a.lat&&this.lng==a.lng};bq.prototype.distanceTo=function(l){var dy=6378137,dx=6356752.3142,du=1/298.257223563,i=a8(l.lng-this.lng),dw=y((1-du)*bm(a8(this.lat))),dv=y((1-du)*bm(a8(l.lat))),h=aX(dw),e=dj(dw),g=aX(dv),d=dj(dv),n=i,j=2*al,m=20;while(B(n-j)>1e-12&&--m>0){var w=aX(n),c=dj(n),dz=L((d*w)*(d*w)+(e*g-h*d*c)*(e*g-h*d*c));if(dz==0){return 0}var ds=h*g+e*d*c,v=aH(dz,ds),u=e*d*w/dz,dt=1-u*u,k=ds-2*h*g/dt;if(isNaN(k)){k=0}var q=du/16*dt*(4+du*(4-3*dt));j=n;n=i+(1-q)*du*u*(v+q*dz*(k+q*ds*(-1+2*k*k)))}if(m==0){return NaN
}var p=dt*(dy*dy-dx*dx)/(dx*dx),t=1+p/16384*(4096+p*(-768+p*(320-175*p))),r=p/1024*(256+p*(-128+p*(74-47*p))),dr=r*dz*(k+r/4*(ds*(-1+2*k*k)-r/6*k*(-3+4*dz*dz)*(-3+4*k*k))),o=dx*t*(v-dr);return o.toFixed(0)};bq.prototype.copyTo=function(a){a.setLatLng(this.lat,this.lng)};bq.prototype.clone=function(){return new bq(this.lat,this.lng)};bq.prototype.toString=function(a){if(a===undefined||a<0){a=5}return df(this.lat,a)+","+df(this.lng,a)};var aA=1,J=2,bF=3;Geo={convert:function(a,e,b){if(a==b){return e}var d;switch(a){case J:d=this.rd_wgs84(e);break;case bF:d=this.sp2_wgs84(e,this.wgsellips,this.sp2paramset);break;case aA:d=e;break}switch(b){case J:return this.wgs84_rd(d);case bF:return this.wgs84_sp2(d,this.wgsellips,this.sp2paramset);case aA:return d}return null},rd_wgs84:function(a){return this.bessel_wgs84(this.rd_bessel(a))},wgs84_rd:function(a){return this.bessel_rd(this.wgs84_bessel(a))},rd_bessel:function(dr){var t=dr.x-this.x0,p=dr.y-this.y0,j=L(t*t+p*p),d,o,v,l,dt,a,m,ds,f,s,h,k,e,n,g=new bq();if(j!=0){d=t/j;
o=p/j}else{d=0;o=0}v=y(j/(this.k*2*this.bigr))*2;l=dj(v);dt=aX(v);a=o*dj(this.b0)*dt+aX(this.b0)*l;t=a;m=L(1-t*t);ds=bu(m);f=d*dt/m;s=c4(f);g.lng=s/this.n+this.lambda0;h=bh(bm(ds/2+al/4));k=(h-this.m)/this.n;e=y(ax(k))*2-al/2;for(var u=0;u<4;u++){n=this.e/2*bh((this.e*aX(e)+1)/(1-this.e*aX(e)));g.lat=y(ax(k+n))*2-al/2;e=g.lat}g.lng=g.lng/al*180;g.lat=g.lat/al*180;return g},bessel_rd:function(g){var c=g.lat/180*al,h=g.lng/180*al,dr=bh(bm(c/2+al/4)),m=this.e/2*bh((this.e*aX(c)+1)/(1-this.e*aX(c))),j=dr-m,f=this.n*j+this.m,u=y(ax(f))*2-al/2,o=this.n*(h-this.lambda0),p=aX((u-this.b0)/2),n=aX(o/2),d=p*p+n*n*dj(u)*dj(this.b0),t=L(1-d),e=L(d),s=e/t,v=e*2*t,k=1-d*2,a=aX(o)*dj(u)/v,l=(aX(u)-aX(this.b0)*k)/(dj(this.b0)*v),i=this.k*2*this.bigr*s;return new bB(M(i*a+this.x0),M(i*l+this.y0))},bessel_wgs84:function(d){var c=d.lat-52,a=d.lng-5,e=(-96.862-c*11.714-a*0.125)*0.00001,b=(c*0.329-37.902-a*14.667)*0.00001;return new bq(d.lat+e,d.lng+b)},wgs84_bessel:function(d){var c=d.lat-52,a=d.lng-5,e=(-96.862-c*11.714-a*0.125)*0.00001,b=(c*0.329-37.902-a*14.667)*0.00001;
return new bq(d.lat-e,d.lng-b)},sp2_wgs84:function(dt,ds,dr){var j=L(ds.esq),v=dt.x-dr.offset.x,s=dt.y-dr.offset.y,g=bh(bm(al/4+dr.stPar1Rad/2))-j/2*(bh(1+j*dr.sinStPar1)-bh(1-j*dr.sinStPar1)),e=ds.a/L(1-ds.esq*b1(dr.sinStPar1)),f=bh(bm(al/4+dr.stPar2Rad/2))-j/2*(bh(1+j*dr.sinStPar2)-bh(1-j*dr.sinStPar2)),d=ds.a/L(1-ds.esq*b1(dr.sinStPar2)),t=(bh(e*dj(dr.stPar1Rad))-bh(d*dj(dr.stPar2Rad)))/(f-g),u=e*dj(dr.stPar1Rad)/(t*ax(-t*g)),w=aX(dr.centralParallelRad),i=bh(bm(al/4+dr.centralParallelRad/2))-j/2*(bh(1+j*w)-bh(1-j*w)),p=u*ax(-t*i),m=L(b1(v)+b1(s-p)),o=(bh(u)-bh(m))/t,a=dr.centralParallelRad,b=0,h=new bq();h.lng=ah(dr.centralMeridianRad+y(-v/(s-p))/t);do{sinphi=aX(a);cosphi=dj(a);tr=bm(al/4+a/2);if(tr>0){b=bh(tr)-j/2*(bh(1+j*sinphi)-bh(1-j*sinphi))-o;f1phi=1/cosphi-ds.esq*cosphi/(2*(1+j*sinphi))-ds.esq*cosphi/(2*(1-j*sinphi));a=a-b/f1phi}}while(tr>0&&B(b)>=1e-11);h.lat=ah(a);return h},wgs84_sp2:function(i,w,v){var j=L(w.esq),a=a8(i.lat),dr=a8(i.lng),f=bh(bm(al/4+v.stPar1Rad/2))-j/2*(bh(1+j*v.sinStPar1)-bh(1-j*v.sinStPar1)),d=w.a/L(1-w.esq*b1(v.sinStPar1)),e=bh(bm(al/4+v.stPar2Rad/2))-j/2*(bh(1+j*v.sinStPar2)-bh(1-j*v.sinStPar2)),c=w.a/L(1-w.esq*b1(v.sinStPar2)),s=(bh(d*dj(v.stPar1Rad))-bh(c*dj(v.stPar2Rad)))/(e-f),t=d*dj(v.stPar1Rad)/(s*ax(-s*f)),u=aX(v.centralParallelRad),h=bh(bm(al/4+v.centralParallelRad/2))-j/2*(bh(1+j*u)-bh(1-j*u)),g=aX(a),p=t*ax(-s*h),o=bh(bm(al/4+a/2))-j/2*(bh(1+j*g)-bh(1-j*g)),m=t*ax(-s*o),b=s*(dr-v.centralMeridianRad);
return new bB(M(m*aX(b)+v.offset.x),M((p-m*dj(b))+v.offset.y))},x0:155000,y0:463000,k:0.9999079,bigr:6382644.571,m:0.003773953832,n:1.00047585668,lambda0:al*0.02993132716111111,phi0:al*0.28975644753333335,l0:al*0.02993132716111111,b0:al*0.28956165138333334,e:0.08169683122,a:6377397.155,wgsellips:{a:6378137,b:6356752.314,esq:0.006694380066764775,n:0.0016792204056685965},sp2paramset:{stPar1Deg:44,stPar2Deg:54,centralMeridianDeg:5,centralParallelDeg:49.08516574,offset:{x:1507373,y:1607866},stPar1Rad:0.767944870877505,stPar2Rad:0.942477796076938,centralMeridianRad:0.08726646259971647,centralParallelRad:0.856697756050119,sinStPar1:0.6946583704589973,sinStPar2:0.8090169943749475}};function cL(a,b){this.sw=a||new bB(0,0);this.ne=b||new bB(0,0)}cL.prototype.setCoordinates=function(a,b){a.copyTo(this.sw);b.copyTo(this.ne)};cL.prototype.getSouthWest=function(){return this.sw};cL.prototype.getNorthEast=function(){return this.ne};cL.prototype.getCenter=function(){return new bB((this.sw.x+this.ne.x)/2,(this.sw.y+this.ne.y)/2)
};cL.prototype.isEmpty=function(){return this.sw.equals(bB.ORIGIN)&&this.ne.equals(bB.ORIGIN)};cL.prototype.isWithin=function(a){return this.sw.x<=a.x&&a.x<=this.ne.x&&this.sw.y<=a.y&&a.y<=this.ne.y};cL.prototype.toDimensions=function(){return new be(this.ne.x-this.sw.x,this.ne.y-this.sw.y)};cL.prototype.copyTo=function(a){a.setCoordinates(this.sw,this.ne)};cL.prototype.clone=function(){return new cL(this.sw.clone(),this.ne.clone())};cL.prototype.equals=function(a){return a&&this.sw.equals(a.sw)&&this.ne.equals(a.ne)};cL.prototype.toString=function(){return this.sw.toString()+","+this.ne.toString()};cL.prototype.extend=function(a){if(this.sw.x>a.x||!this.sw.x){this.sw.x=a.x}if(this.ne.x<a.x||!this.ne.x){this.ne.x=a.x}if(this.sw.y>a.y||!this.sw.y){this.sw.y=a.y}if(this.ne.y<a.y||!this.ne.y){this.ne.y=a.y}};cL.prototype.increase=function(b,a){if(a!=0&&!a){a=b}this.sw.x-=b;this.sw.y-=a;this.ne.x+=b;this.ne.y+=a};function aD(a,b){this.sw=a||new bq(0,0);this.ne=b||new bq(0,0)}aD.prototype.setCoordinates=function(a,b){a.copyTo(this.sw);
b.copyTo(this.ne)};aD.prototype.getSouthWest=function(){return this.sw};aD.prototype.getNorthEast=function(){return this.ne};aD.prototype.getCenter=function(){return new bq((this.sw.lat+this.ne.lat)/2,(this.sw.lng+this.ne.lng)/2)};aD.prototype.isEmpty=function(){return this.sw.equals(bq.ORIGIN)&&this.ne.equals(bq.ORIGIN)};aD.prototype.isWithin=function(a){return this.sw.lng<=a.lng&&a.lng<=this.ne.lng&&this.sw.lat<=a.lat&&a.lat<=this.ne.lat};aD.prototype.extend=function(a){if(this.sw.lat>a.lat||!this.sw.lat){this.sw.lat=a.lat}if(this.ne.lat<a.lat||!this.ne.lat){this.ne.lat=a.lat}if(this.sw.lng>a.lng||!this.sw.lng){this.sw.lng=a.lng}if(this.ne.lng<a.lng||!this.ne.lng){this.ne.lng=a.lng}};aD.prototype.copyTo=function(a){a.setCoordinates(this.sw.clone(),this.ne.clone())};aD.prototype.clone=function(){return new aD(this.sw.clone(),this.ne.clone())};aD.prototype.equals=function(a){return a&&this.sw.equals(a.sw)&&this.ne.equals(a.ne)};aD.prototype.toString=function(){return this.sw.toString()+","+this.ne.toString()};
aD.prototype.toDimensions=function(){var c=6378137,d=a8(this.ne.lat-this.sw.lat),b=a8(this.ne.lng-this.sw.lng),e=B(this.sw.lat)<B(this.ne.lat)?a8(this.sw.lat):a8(this.ne.lat);return new be(M(c*dj(e)*b),M(c*d))};function be(b,a){this.width=b;this.height=a}be.ZERO=new be(0,0);be.prototype.setDimensions=function(b,a){this.width=b;this.height=a};be.prototype.width=function(){return this.width};be.prototype.height=function(){return this.height};be.prototype.equals=function(a){return this.width==a.width&&this.height==a.height};be.prototype.copyTo=function(a){a.width=this.width;a.height=this.height};be.prototype.clone=function(){return new be(this.width,this.height)};be.prototype.toString=function(){return this.width+","+this.height};function bS(a,b,d,f,e){var c=aN(a);if(!d){a3(c,false)}if(f){cX(c,f.x);bK(c,f.y)}if(e){aR(c,e)}if(b){bj(b,c)}return c}function a0(a){var b;while(b=a.firstChild){a.removeChild(b)}}function bp(a){cK(a)}function a3(a,b){a.style.visibility=b?"visible":"hidden"}function cS(a,b){a.style.display=b?"":"none"
}function cn(a){if(di.isIE5plus()){a.style.unselectable="on";a.ondragstart=a.onselectstart=function(){return false}}else{a.style.MozUserSelect="none";a.style.MozUserFocus="ignore"}}function bx(d,c,f,g,a){var e;if(a&&di.isIE5or6()){e=bS("div",d,true,null,g);aP(e);var b=bS("img",e,false,null,1);b.src=c;b.galleryImg="no";E(e);e.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+c+'",sizingMethod="crop")'}else{e=bS("img",d,true,null,g)}e.style.border="0px none";cT(e);bT(e);e.style.verticalAlign="top";cn(e);e.oncontextmenu=bd;e.galleryImg="no";if(f){bg(e,f.width);bZ(e,f.height)}if(c){e.src=c}return e}function aO(a,b){a.src=b}if(di.isIE5or6()){aO=function(a,b){a.childNodes[0].src=b;a.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+b+'",sizingMethod="crop")'}}function aZ(a,b){if(bW(a)){bg(a.childNodes[0],b)}bg(a,b)}function co(b,a){if(bW(b)){bZ(b.childNodes[0],a)}bZ(b,a)}function aC(a,b){if(bW(a)){a.childNodes[0].onload=b}else{a.onload=b}}function bQ(a,b){if(bW(a)){a.childNodes[0].onerror=b
}else{a.onerror=b}}function bW(a){return a.style.filter&&a.childNodes&&bz(a.childNodes)}function br(b,a){return function(){a.apply(b,arguments)}}function bR(c){var b=c.target?c.target:c.srcElement;if(b&&b.nodeType==3){b=b.parentNode}return b}function bd(a){if(window.event){window.event.cancelBubble=true;window.event.returnValue=false}else{a.preventDefault();a.stopPropagation()}}function ay(a){if(window.event){window.event.cancelBubble=true}else{a.stopPropagation()}}function c9(a){if(window.event){window.event.returnValue=false}else{if(a.preventDefault){a.preventDefault()}}}var dq="_es_";function aI(g,d,c){var b=null,f=g[dq];if(f){b=f[d];if(!b){b=[];if(c){f[d]=b}}}else{b=[];if(c){g[dq]={};g[dq][d]=b}}return b}function cj(d,c,a){var b;if(d.addEventListener){b=new b0(d,c,a,1);d.addEventListener(c,a,false)}else{if(d.attachEvent){b=new b0(d,c,a,3);d.attachEvent("on"+c,a)}else{b=new b0(d,c,a,4);d["on"+c]=a}}return b}function K(a){a.remove()}function cM(b){for(var a=0;a<bz(b);a++){b[a].remove()}}function bv(e,c){var d=e[dq];
if(d){var a=d[c];aT(d[c]);if(a){for(var b=0;b<bz(a);b++){a[b].remove()}}}}function aS(e){var d=e[dq];if(d){e[dq]=null;for(var c in d){var a=d[c];aT(d[c]);if(a){for(var b=0;b<bz(a);b++){a[b].remove()}}}}}function N(c,a){var b=c[dq];if(!b){return false}b=b[a];if(!b){return false}return bz(b)>0}function bV(f,d){var e=f[dq],a=[];if(e){if(e[d]){bN(e[d],0,a)}}var b=bN(arguments,2,[]);for(var c=0;c<bz(a);c++){a[c].fire(b)}}function b4(b,a){bV.apply(null,arguments)}function b0(d,c,b,a){this.node=d;this.nam=c;this.hndlr=b;this.type=a;aI(d,c,true).push(this)}b0.prototype.remove=function(){var a=this;switch(a.type){case 1:a.node.removeEventListener(a.nam,a.hndlr,false);break;case 2:a.node.removeEventListener(a.nam,a.hndlr,true);break;case 3:a.node.detachEvent("on"+a.nam,a.hndlr);break;case 4:a.node["on"+a.nam]=null;break}R(aI(a.node,a.nam),a);a.node=a.nam=a.hndlr=null};b0.prototype.fire=function(a){if(this.node){return this.hndlr.apply(this.node,a)}};function bE(a,b){this.srs=a;this.natRect=b||null;if(this.natRect){this.wgsRect=new aD(this.fromNativeToLatLng(b.getSouthWest()),this.fromNativeToLatLng(b.getNorthEast()))
}else{this.wgsRect=null}}bE.prototype.initialize=function(a){if(this.mapType){return}this.mapType=a};bE.prototype.getNativeBoundary=function(){return this.natRect};bE.prototype.getLatLngBoundary=function(){return this.wgsRect};bE.prototype.fromNativeToPixel=function(b,a){};bE.prototype.fromPixelToNative=function(a,b){};bE.prototype.fromNativeToLatLng=function(a){return Geo.convert(this.srs,a,aA)};bE.prototype.fromLatLngToNative=function(a){return Geo.convert(aA,a,this.srs)};function aV(a,b){return a*b}function cq(a,b){return a/b}function cZ(){bE.call(this,J,new cL(new bB(12641,308631),new bB(276039,610845)))}ct(cZ,bE);cZ.prototype.fromNativeToPixel=function(d,b){var a=this.mapType.getScale(b);return new cV(cq(d.x,a),cq(d.y,a))};cZ.prototype.fromPixelToNative=function(b,c){var a=this.mapType.getScale(c);return new bB(aV(b.x,a),aV(b.y,a))};function am(){bE.call(this,bF,new cL(new bB(0,0),new bB(5000000,5000000)))}ct(am,bE);am.prototype.fromNativeToPixel=function(d,b){var a=this.mapType.getScale(b);return new cV(cq(d.x,a),cq(d.y,a))
};am.prototype.fromPixelToNative=function(b,c){var a=this.mapType.getScale(c);return new bB(aV(b.x,a),aV(b.y,a))};function aq(a){var b=bS("div",a,true,bB.ORIGIN);this.div=b;aP(b);aE(b,100);an(b,100);E(b);b.style.backgroundColor="#cdecfe";this.dimensions=new be(b.offsetWidth,b.offsetHeight)}aq.prototype.getLayer=function(){return this.div};aq.prototype.getDimensions=function(){return this.dimensions};aq.prototype.resize=function(){this.dimensions.setDimensions(this.div.offsetWidth,this.div.offsetHeight)};function c2(){}c2.prototype.initialize=function(a){};c2.prototype.remove=function(){};c2.prototype.redraw=function(){};function aL(){this.cpyTxt=""}ct(aL,c2);aL.prototype.initialize=function(a){this.mapCtrl=a;var b=bS("span",a.getControlsLayer(),false,bB.ORIGIN,1);this.div=b;af(b);b.style.whiteSpace="nowrap";b.style.fontFamily="Verdana";b.style.fontSize="10px";cn(b);this.updateCopyright();cj(a,bD,br(this,this.onMapTypeChanged))};aL.prototype.remove=function(){bp(this.div)};aL.prototype.redraw=function(){var b=this.div,a=this.mapCtrl.getViewportSize();
cX(b,a.width-b.offsetWidth-3);bK(b,a.height-b.offsetHeight-2)};aL.prototype.updateCopyright=function(){var a=this.mapCtrl.getCurrentMapType().getCopyright();if(this.cpyTxt!=a){this.cpyTxt=a;a3(this.div,false);Y(this.div,a);this.redraw();a3(this.div,true);b4(this,ac)}};aL.prototype.onMapTypeChanged=function(){this.updateCopyright()};function ci(){}ct(ci,c2);ci.prototype.initialize=function(d){this.mapCtrl=d;var e=bS("div",d.getControlsLayer(),false,bB.ORIGIN,1);this.div=e;af(e);cn(e);var b=bx(e,aG+"scale.png",new be(104,12),1,true);af(b);cX(b,0);bK(b,0);var a=bx(e,aG+"scalep.png",new be(4,6),2,true);this.imgPointer=a;af(a);cX(a,97);bK(a,3);var c=bS("div",e,true,bB.ORIGIN,3);this.divTxt=c;af(c);cX(c,6);bK(c,-4);c.style.whiteSpace="nowrap";c.style.fontFamily="Verdana";c.style.fontSize="10px";cj(d,bA,br(this,this.onMapMoveEnd))};ci.prototype.remove=function(){bp(this.div)};ci.prototype.draw=function(){var b=this.mapCtrl.getCurrentMapType().getProjection(),f=this.mapCtrl.getZoomLevel(),a=b.fromPixelToNative(new cV(97,0),f).x;
var e=10;while(a/e>10){e*=10}var d=a/e;if(d>5){d=5*e}else{if(d>2){d=2*e}else{d=e}}var c=M(b.fromNativeToPixel(new bB(d,0),f).x);if(c*2<97){d=d*2;c=c*2}Y(this.divTxt,d<1000?d+"m":M(d/1000)+"km");cX(this.imgPointer,c);a3(this.div,true)};ci.prototype.redraw=function(){cX(this.div,2);bK(this.div,this.mapCtrl.getViewportSize().height-14);this.draw()};ci.prototype.onMapMoveEnd=function(b,a){if(a){this.draw()}};function bw(){this.pannable=true;this.zoomYBase=78;this.minZoomY=this.zoomYBase+8}ct(bw,c2);bw.prototype.initialize=function(g){this.mapCtrl=g;this.setMaxZoomY();var b=bS("div",g.getControlsLayer(),false,new bB(3,3),1);this.div=b;af(b);cn(b);var m=bS("div",b,true);this.divTop=m;E(m);aP(m);bg(m,60);bx(m,aG+"pan-top.png",new be(59,354),null,true);var a=bS("div",b,true);aP(a);bg(a,60);bZ(a,30);bx(a,aG+"pan-bottom.png",new be(59,30),null,true);var j=bS("div",b,true);this.slider=j;af(j);bg(j,22);bZ(j,14);cX(j,19);bY(j,di.getCursor(cQ));bx(j,aG+"pan-slider.png",new be(22,14),null,true);this.initializeCtrls();var f=[];
this.evtList=f;f.push(cj(j,P,br(this,this.onMouseDown)));f.push(cj(j,"dragstart",function(){return false}));var d=[{c:new bB(20,0),h:function(){this.moveBy(0,150)}},{c:new bB(0,20),h:function(){this.moveBy(-150,0)}},{c:new bB(20,20),h:function(){this.centerMap()}},{c:new bB(40,20),h:function(){this.moveBy(150,0)}},{c:new bB(20,40),h:function(){this.moveBy(0,-150)}},{c:new bB(20,65),h:function(){this.zoomToDelta(-1)}}];var k,c,h,l=bz(d);for(var e=0;e<l;e++){k=d[e];c=bS("div",b,true,k.c,5);af(c);bY(c,di.getCursor(av));h=bx(c,aG+"transparent.gif",new be(16,16),null,false);f.push(cj(h,bM,br(this,k.h)))}c=bS("div",b,true,new bB(20,a.offsetTop+11),l+1);af(c);bY(c,di.getCursor(av));h=bx(c,aG+"transparent.gif",new be(16,16),null,false);f.push(cj(h,bM,br(this,function(){this.zoomToDelta(1)})));a3(b,true);f.push(cj(g,bA,br(this,this.onMapMoveEnd)));f.push(cj(g,bD,br(this,this.onMapTypeChanged)))};bw.prototype.remove=function(){bp(this.div);for(var a=0;a<bz(this.evtList);a++){K(this.evtList[a])}aT(this.evtList)};bw.prototype.initializeCtrls=function(){bZ(this.divTop,82+(8*this.mapCtrl.getZoomLevels()));
this.drawSlider(this.mapCtrl.getZoomLevel())};bw.prototype.setMaxZoomY=function(){this.maxZoomY=this.zoomYBase+(8*this.mapCtrl.getZoomLevels())};bw.prototype.drawSlider=function(a){bK(this.slider,(8*a)+this.zoomYBase)};bw.prototype.snapSlider=function(){this.zoomTo(M((this.slider.offsetTop-this.zoomYBase)/8))};bw.prototype.onMouseDown=function(a){if(this.mapCtrl.canDrag()){bY(this.slider,di.getCursor(bI));this.lastClientY=a.clientY;this.lastSliderY=this.slider.offsetTop;this.evtMouseMove=cj(document.body,aa,br(this,this.onMouseMove));this.evtMouseUp=cj(document.body,bo,br(this,this.onMouseUp))}c9(a)};bw.prototype.onMouseMove=function(a){var b=this.lastSliderY+a.clientY-this.lastClientY;if(b<this.minZoomY){b=this.minZoomY}else{if(b>this.maxZoomY){b=this.maxZoomY}}bK(this.slider,b)};bw.prototype.onMouseUp=function(a){bY(this.slider,di.getCursor(cQ));K(this.evtMouseMove);K(this.evtMouseUp);this.snapSlider()};bw.prototype.onMapMoveEnd=function(b,a){if(a){this.drawSlider(this.mapCtrl.getZoomLevel())}};bw.prototype.onMapTypeChanged=function(){this.initializeCtrls()
};bw.prototype.moveBy=function(b,a){if(this.pannable){this.mapCtrl.moveBy(b,a)}};bw.prototype.centerMap=function(){if(this.pannable){this.mapCtrl.moveToHome()}};bw.prototype.zoomTo=function(a){this.drawSlider(a);this.mapCtrl.zoomTo(a)};bw.prototype.zoomToDelta=function(a){if(this.pannable){if(a<0){this.mapCtrl.zoomIn()}else{if(a>0){this.mapCtrl.zoomOut()}}}};function bf(){}ct(bf,c2);function aQ(b,a){return function(){b.mapCtrl.switchToMapType(a)}}bf.prototype.initialize=function(g){this.mapCtrl=g;var h=g.getMapTypes(),b=bS("div",g.getControlsLayer(),true,bB.ORIGIN,1),j=82*bz(h);this.div=b;b.id="test";af(b);bK(b,3);bg(b,j);var f=[],d={};for(var e=0;e<bz(h);e++){var a=h[e];var l=bS("div",b,true);af(l);cX(l,82*e);bg(l,76);l.style.border="1px solid #000000";l.style.backgroundColor="#FFFFFF";l.style.textAlign="center";bY(l,di.getCursor(av));var k=bS("div",l,true);k.style.fontSize="12px";k.style.borderWidth="1px";k.style.borderStyle="solid";this.deselectMapTypeButton(k);k.style.padding="0px 0px 2px 0px";Y(k,a.getId());
var c=a.getTitle();if(c){k.title=c}f.push(cj(l,"click",aQ(this,a)));d[a.getId()]=k}this.mapTypeButtons=d;this.selectMapType(g.getCurrentMapType());f.push(cj(g,bD,br(this,this.onMapTypeChange)));this.evtLst=f};bf.prototype.remove=function(){this.mapCtrl=null;for(var a=0;a<bz(this.evtLst);a++){K(this.evtLst[a])}};bf.prototype.redraw=function(){cX(this.div,this.mapCtrl.getViewportSize().width-this.div.offsetWidth)};bf.prototype.onMapTypeChange=function(){this.selectMapType(this.mapCtrl.getCurrentMapType())};bf.prototype.selectMapType=function(b){if(this.currMapTypeBtn){this.deselectMapTypeButton(this.currMapTypeBtn)}var a=this.mapTypeButtons[b.getId()];a.style.borderColor="#b0b0b0 #fff #fff #b0b0b0";this.currMapTypeBtn=a};bf.prototype.deselectMapTypeButton=function(a){a.style.borderColor="#fff #b0b0b0 #b0b0b0 #fff"};function aJ(){}aJ.prototype.getTileUrl=function(b,c,a){return""};aJ.prototype.getCopyright=function(a,b){return""};aJ.prototype.isPng=function(){return false};aJ.prototype.getOpacity=function(){return 1
};aJ.prototype.getMinResolution=function(){return 0};aJ.prototype.getMaxResolution=function(){return Number.MAX_VALUE};function dp(b){for(var a=0;a<bz(b);a++){if(b[a].indexOf("?")==-1){b[a]+="?"}}this.baseUrls=b||[]}ct(dp,aJ);dp.prototype.getTileUrl=function(b,c,a){return this.baseUrls[(b.x+b.y)%bz(this.baseUrls)]+"&x="+M(b.x*a.width)+"&y="+M(b.y*a.height)+"&z="+c};dp.prototype.getCopyright=function(a,b){if(!this.year){this.year=(new Date()).getFullYear()}return"&copy; "+this.year+" Andes"};dp.prototype.isPng=function(){return false};dp.prototype.getOpacity=function(){return 1};function c8(d,b,a,c){this.id=d;this.title=c||null;this.proj=b;b.initialize(this);this.tileLayer=a}c8.prototype.getTileLayer=function(){return this.tileLayer};c8.prototype.getId=function(){return this.id};c8.prototype.getTitle=function(){return this.title};c8.prototype.getCopyright=function(a,b){return this.tileLayer.getCopyright(a,b)};c8.prototype.getProjection=function(){return this.proj};c8.prototype.getTileUrl=function(c,d){var a=this.getScale(d),b=this.getTileDimensions();
return this.tileLayer.getTileUrl(c,d,new be(a*b.width,a*b.height))};c8.prototype.getScale=function(a){return 0};c8.prototype.getScales=function(){return null};c8.prototype.getMinResolution=function(){return 0};c8.prototype.getMaxResolution=function(){return 0};c8.prototype.getTileDimensions=function(){return null};function G(f,b,e,d,a,c){c8.call(this,f,b,new dp(e),c);this.scales=d||[];this.scales.unshift(0);this.tileDim=a||new be(250,250)}ct(G,c8);G.prototype.getScale=function(a){if(a<1||a>=bz(this.scales)){return 0}return this.scales[a]};G.prototype.getScales=function(){return this.scales};G.prototype.getMinResolution=function(){return 1};G.prototype.getMaxResolution=function(){return bz(this.scales)-1};G.prototype.getTileDimensions=function(){return this.tileDim};function aB(d,c,b,a){G.call(this,d,a||new cZ(),c,[0.8,1.6,3.2,6.4,12.8,25.6,51.2,102.4,204.8,409.8,819.2,1638.4,3276.8],null,b)}ct(aB,G);function aU(d,c,b,a){G.call(this,d,a||new cZ(),c,[0.8,1.6,3.2,6.4,12.8,25.6,51.2,102.4,204.8,409.8,819.2,1638.4,3276.8],null,b)
}ct(aU,G);function dd(f,l,a){a=a||{};this.viewport=new aq(f);this.mapTypes=[];for(var h=0;h<bz(l);h++){this.mapTypes.push(l[h])}this.currentMapType=l[0];this.zlevel=0;this._initializeMapType();this.tileBuffer=0;if(!isNaN(parseInt(a.buffer))){this.tileBuffer=M(parseInt(a.buffer))}if(this.tileBuffer<0){this.tileBuffer=0}else{if(this.tileBuffer>5){this.tileBuffer=5}}this.dbg=a.debug;this.pannable=true;this.tiles=[];this.tileMetrics=new be(0,0);this.gridTiles=new be(0,0);this.gridDimensions=new be(0,0);var b=a.boundary;this.mapBoundsRd=aF(b)?b.clone():null;this.mapBoundsPx=new cL();this.initializeMapBounds();this.vpCenterRd=new bB(0,0);this.vpCenterPx=new cV(0,0);this.vpRectPx=new cL();this.isInit=false;var d=bS("div",this.viewport.getLayer(),false,bB.ORIGIN,1);this.div=d;af(d);bY(d,di.getCursor(cQ));this.divBase=new bB(0,0);var m=bS("div",d,true,bB.ORIGIN,1);this.divTiles=m;af(m);cn(m);var e=bS("div",d,true,bB.ORIGIN,2);af(e);cn(e);var k=bS("div",d,true,bB.ORIGIN,3);af(k);cn(k);var c=bS("div",d,true,bB.ORIGIN,4);
af(c);cn(c);var j=bS("div",d,true,bB.ORIGIN,5);af(j);cn(j);var g=bS("div",d,true,bB.ORIGIN,6);af(g);bY(g,"default");this.divCtrls=bS("div",this.viewport.getLayer(),true,bB.ORIGIN,2);this.layers=[m,j,c,k,e,g,this.divCtrls];this.overlays=[];this.vectors=[];this.controls=[];this.mouseDownPos=new bB(0,0);this.mapOrigin=new bB(0,0);this.isDragging=false;cj(d,P,br(this,this.onDivMouseDown));cj(d,bM,br(this,this.onDivClick));cj(d,bL,br(this,this.onDivDblClick));cj(d,aa,br(this,this.onDivMouseMove));a3(d,true)}dd.prototype.dtor=function(){aS(this);this.clearIcons();this.clearOverlays();this.clearControls()};dd.prototype.ensureNative=function(a){if(aF(a.x)){return a}return this.currentMapType.getProjection().fromLatLngToNative(a)};var a2=0,cW=1,ao=2,c6=3,dm=4,bP=5,bt=6;dd.prototype.getLayer=function(a){return this.layers[a]};dd.prototype.getLayerBase=function(){return this.divBase};dd.prototype.fromLatLngToDivPixel=function(a){return this.fromCoordToDivPixel(this.ensureNative(a))};dd.prototype.fromCoordToDivPixel=function(b){var a=new bB(b.x-this.divBase.x,this.divBase.y-b.y);
return this.currentMapType.getProjection().fromNativeToPixel(a,this.getZoomLevel())};dd.prototype.fromDivPixelToCoord=function(b){var a=this.currentMapType.getProjection().fromNativeToPixel(b,this.getZoomLevel());return new bB(M(this.divBase.x+a.x),M(this.divBase.y+a.y))};dd.prototype.fromDivPixelToLatLng=function(a){return this.currentMapType.getProjection().fromNativeToLatLng(this.fromDivPixelToCoord(a))};dd.prototype.zoomTo=function(a){this._setZoomNat(a)};dd.prototype._setZoomNat=function(e,d){if(!this._canZoomTo(e)){return}b4(this,bs,false,true);if(!d||d.equals(this.vpCenterRd)){this._setZoom(e);this._updateVpNat(this.vpCenterRd)}else{var c=this.currentMapType.getProjection(),b=c.fromNativeToPixel(d,e),a=c.fromNativeToPixel(d,this.zlevel);b.x+=this.vpCenterPx.x-a.x;b.y+=this.vpCenterPx.y-a.y;this._setZoom(e);this._updateVpPx(b)}this._reloadMap();b4(this,bA,false,true)};dd.prototype._setZoom=function(a){if(this._canZoomTo(a)){this._setZLevel(a)}this.setTileMetrics();this.initializeMapBounds()};dd.prototype.zoomIn=function(){this._setZoomNat(this.zlevel-1)
};dd.prototype.zoomOut=function(){this._setZoomNat(this.zlevel+1)};dd.prototype.getZoomLevel=function(){return this.zlevel};dd.prototype.getZoomLevels=function(){var a=this.currentMapType;return a.getMaxResolution()-a.getMinResolution()+1};dd.prototype.getZoomScale=function(){return this.scale};dd.prototype._initializeMapType=function(){this._setZLevel(this.zlevel)};dd.prototype._setZLevel=function(b){b=M(b);var a=this.currentMapType;if(b<a.getMinResolution()){b=a.getMinResolution()}else{if(b>a.getMaxResolution()){b=a.getMaxResolution()}}this.zlevel=b;this.scale=this.currentMapType.getScale(b)};dd.prototype._canZoomTo=function(b){var a=this.currentMapType;return b!=this.zlevel&&b>=a.getMinResolution()&&b<=a.getMaxResolution()};dd.prototype.getRectZoomLevel=function(d){var e=d.toDimensions(),a=this.getViewportSize(),f=this.currentMapType.getScales(),b=dn(e.width/a.width,e.height/a.height);for(var c=1;c<bz(f);c++){if(b<f[c]){return c}}return this.currentMapType.getMaxResolution()};dd.prototype.getCurrentMapType=function(){return this.currentMapType
};dd.prototype.getMapTypes=function(){return this.mapTypes};dd.prototype.switchToMapType=function(a){if(a===this.currentMapType){return}this.currentMapType=a;this._initializeMapType();this.setTileMetrics();this.setGridTiles();this._updateVpNat(this.vpCenterRd);this.initializeDiv();this._reloadMap();b4(this,bD)};dd.prototype.initializeMapBounds=function(){if(this.mapBoundsRd){var d=this.zlevel,b=this.currentMapType.getProjection(),a=b.fromNativeToPixel(this.mapBoundsRd.getSouthWest(),d),c=b.fromNativeToPixel(this.mapBoundsRd.getNorthEast(),d);this.mapBoundsPx.setCoordinates(a,c)}};dd.prototype.getViewportLayer=function(){return this.viewport.getLayer()};dd.prototype._updateVpNat=function(c){c.copyTo(this.vpCenterRd);var b=this.currentMapType.getProjection().fromNativeToPixel(c,this.zlevel),a=this.viewport.getDimensions();b.copyTo(this.vpCenterPx);b.x-=a.width*0.5;b.y-=a.height*0.5;this.vpRectPx.setCoordinates(b,new bB(b.x+a.width,b.y+a.height))};dd.prototype._updateVpPx=function(b){b.copyTo(this.vpCenterPx);var c=this.currentMapType.getProjection().fromPixelToNative(b,this.zlevel),a=this.viewport.getDimensions();
c.copyTo(this.vpCenterRd);b.x-=a.width*0.5;b.y-=a.height*0.5;this.vpRectPx.setCoordinates(b,new bB(b.x+a.width,b.y+a.height))};dd.prototype._updateVpDelta=function(b){if(b.x==0&&b.y==0){return}var a=this.vpCenterPx.clone();a.x+=b.x;a.y+=b.y;this._updateVpPx(a)};dd.prototype.getViewportBounds=function(){var d=this.zlevel,b=this.currentMapType.getProjection(),a=this.vpRectPx.getSouthWest(),c=this.vpRectPx.getNorthEast();return new cL(b.fromPixelToNative(a,d),b.fromPixelToNative(c,d))};dd.prototype.getViewportSize=function(){return this.viewport.getDimensions()};dd.prototype.getVpCenterRd=function(){return this.vpCenterRd};dd.prototype.bindDeltas=function(b){if(!this.mapBoundsRd){return}var a;if(b.x<0){a=M(this.mapBoundsPx.getSouthWest().x-this.vpCenterPx.x);if(b.x<a){b.x=a}}else{if(b.x>0){a=M(this.mapBoundsPx.getNorthEast().x-this.vpCenterPx.x);if(b.x>a){b.x=a}}}if(b.y<0){a=M(this.mapBoundsPx.getSouthWest().y-this.vpCenterPx.y);if(b.y<a){b.y=a}}else{if(b.y>0){a=M(this.mapBoundsPx.getNorthEast().y-this.vpCenterPx.y);
if(b.y>a){b.y=a}}}};dd.prototype.checkResize=function(o){var a=this.getViewportSize().clone();this.viewport.resize();var b=this.getViewportSize();if(a.equals(b)){return}this.redrawControls();var p=this.gridTiles.width,k=this.gridTiles.height,q=this.currentMapType.getTileDimensions();this.setGridTiles();if(p>this.gridTiles.width){this.gridTiles.setDimensions(p,this.gridTiles.height)}else{if(p<this.gridTiles.width){var h=this.tiles[0],n=this.gridTiles.width-p;for(var e=1;e<bz(this.tiles);e++){var g=this.tiles[e];if(h.pos.x<g.pos.x||h.pos.y<g.pos.y){h=g}}for(var e=0;e<n;e++){for(var d=0;d<k;d++){var g=this._createTile(q);g.pos.x=h.pos.x+(e+1);g.pos.y=h.pos.y-d;g.topLeft.x=M(aj(h.image)+((e+1)*q.width));g.topLeft.y=M(ai(h.image)+(d*q.height));this._updateTile(g,this.zlevel);this._sendTileUpdate(bz(this.tiles)-1,g)}}}}if(k>this.gridTiles.height){this.gridTiles.setDimensions(this.gridTiles.width,k)}else{if(k<this.gridTiles.height){var l=this.tiles[0],f=this.gridTiles.height-k;for(var e=1;e<bz(this.tiles);e++){var g=this.tiles[e];
if(l.pos.x>g.pos.x||l.pos.y>g.pos.y){l=g}}for(var e=0;e<f;e++){for(var d=0;d<this.gridTiles.width;d++){var g=this._createTile(q);g.pos.x=l.pos.x+d;g.pos.y=l.pos.y-1;g.topLeft.x=M(aj(l.image)+(d*q.width));g.topLeft.y=M(ai(l.image)+q.height);this._updateTile(g,this.zlevel);this._sendTileUpdate(bz(this.tiles)-1,g)}}}}b4(this,bs,false,false);var m=this.vpRectPx.getSouthWest(),c=this.vpRectPx.getNorthEast();this._updateVpPx(new cV(m.x+b.width*0.5,c.y-b.height*0.5));b4(this,bA,false,false);b4(this,bk,b)};dd.prototype.initializeMap=function(f,e){this._setZoom(e);this.setGridTiles();this.setGridDimensions();this.cHome=f.clone();this._updateVpNat(f);this._ensureTiles();this._updateTiles();this.isInit=true;for(var b=0;b<bz(this.controls);b++){var d=this.controls[b];d.initialize(this);d.redraw()}for(var b=0;b<bz(this.overlays);b++){var a=this.overlays[b];a.initialize(this);a.redraw()}b4(this,c7)};dd.prototype.isInitialized=function(){return this.isInit};dd.prototype.getMapDim=function(){return this.gridDimensions};dd.prototype.enableDrag=function(){this.pannable=true
};dd.prototype.disableDrag=function(){this.pannable=false};dd.prototype.canDrag=function(){return this.pannable};dd.prototype._reloadMap=function(){this._updateTiles();this.redrawOverlays()};dd.prototype._createTile=function(b){var a=bx(this.divTiles,null,b,0,true);af(a);a.altText="map";a.style.border=this.dbg?"1px dotted #000":"0px none";bT(a);cT(a);cn(a);bQ(a,function(){if(this.src!=bG){aO(this,bG)}});var c={pos:new cV(0,0),topLeft:new cV(0,0),image:a};this.tiles.push(c);this._sendTileCreate();return c};dd.prototype._updateTile=function(a,b){aO(a.image,bG);cX(a.image,a.topLeft.x);bK(a.image,a.topLeft.y);aO(a.image,this.currentMapType.getTileUrl(a.pos,b))};dd.prototype._ensureTiles=function(){var c=this.gridTiles.width*this.gridTiles.height-bz(this.tiles),b=this.currentMapType.getTileDimensions();for(var a=0;a<c;a++){this._createTile(b)}};dd.prototype._updateTiles=function(){var l=this.zlevel,m=this.currentMapType,a=this.getViewportSize(),p=cz(this.vpCenterRd.x/this.tileMetrics.width),o=cz(this.vpCenterRd.y/this.tileMetrics.height),g=M(this.gridTiles.width/2),e=M(this.gridTiles.height/2),d=m.getTileDimensions(),c=m.getProjection().fromNativeToPixel(new bB(this.tileMetrics.width*p-this.vpCenterRd.x,this.vpCenterRd.y-this.tileMetrics.height*o),l);
c.y-=d.height;this.vpCenterRd.copyTo(this.divBase);cX(this.div,M(a.width*0.5));bK(this.div,M(a.height*0.5));p-=g;o+=e;for(var h=0;h<this.gridTiles.height;h++){var b=p;for(var f=0;f<this.gridTiles.width;f++){var n=f+(h*this.gridTiles.width),k=this.tiles[n];k.pos.setCoordinates(b++,o);k.topLeft.setCoordinates(M(c.x+(f-g)*d.width),M(c.y+(h-e)*d.height));this._updateTile(k,l);this._sendTileUpdate(n,k)}o--}this.swapTiles()};dd.prototype._getTiles=function(){return this.tiles};dd.prototype.swapTiles=function(){var c=aj(this.div),a=ai(this.div),k=this.viewport.getDimensions(),h=this.currentMapType.getTileDimensions(),p=h.width*-(this.tileBuffer+1.3),o=k.width+h.width*(this.tileBuffer+0.3),m=h.height*-(this.tileBuffer+1.3),r=k.height+h.height*(this.tileBuffer+0.3),f=this.gridTiles.width*h.width,e=this.gridTiles.height*h.height;for(var q=0;q<bz(this.tiles);q++){var s=this.tiles[q],d=c+s.topLeft.x,b=a+s.topLeft.y,n=0,l=0,j=0,g=0;if(d<p){n=f;j=this.gridTiles.width}else{if(d>o){n=-f;j=-this.gridTiles.width}}if(b<m){l=e;g=-this.gridTiles.height
}else{if(b>r){l=-e;g=this.gridTiles.height}}if(n!=0||l!=0){s.pos.x+=j;s.pos.y+=g;s.topLeft.x+=n;s.topLeft.y+=l;this._updateTile(s,this.zlevel);this._sendTileUpdate(q,s)}}};dd.prototype._sendTileCreate=function(){b4(this,ab)};dd.prototype._sendTileUpdate=function(a,b){b4(this,ad,a,b)};dd.prototype.isEventOnLayer=function(b){var a=bR(b).parentNode;return a===this.div||a===this.getLayer(c6)};dd.prototype.onDivMouseDown=function(a){this.msBtn=cP(ap(a));if(this.evtMouseUp){K(this.evtMouseUp)}if(this.evtMouseMove){K(this.evtMouseMove)}if(this.pannable&&this.msBtn!=2){var c=c0(a);this.mouseDownPos.setCoordinates(c.x,c.y);this.mapOrigin.setCoordinates(aj(this.div),ai(this.div));this.isDragging=true;this.dragged=false;bY(this.div,di.getCursor(bI));var b=di.isMozillaBased()?window:document;this.evtMouseMove=cj(b,aa,br(this,this.onMouseMove));this.evtMouseUp=cj(b,bo,br(this,this.onMouseUp));c9(a)}else{if(this.msBtn==2){var b=di.isMozillaBased()?window:document;this.evtMouseUp=cj(b,bo,br(this,this.onMouseUp))}}};dd.prototype.onMouseMove=function(a){if(this.isDragging){var c=c0(a),b={x:this.mouseDownPos.x-c.x,y:c.y-this.mouseDownPos.y};
if(!this.dragged){this.dragged=true;b4(this,bs,true,false)}if(this.dragged){this.mouseDownPos.setCoordinates(c.x,c.y);this.bindDeltas(b);this._updateVpDelta(b);this.panNonStatics(b);this.swapTiles();b4(this,dg)}}};dd.prototype.panNonStatics=function(a){cX(this.div,aj(this.div)-a.x);bK(this.div,ai(this.div)+a.y)};dd.prototype.onMouseUp=function(a){K(this.evtMouseUp);this.evtMouseUp=null;if(this.isDragging){K(this.evtMouseMove);this.evtMouseMove=null;bY(this.div,di.getCursor(cQ));this.isDragging=false}if(this.dragged){b4(this,bA,true,false)}else{var b=this.getMapCoordinate(a);if(this.msBtn==2&&this.msBtnLast==2&&B(cc()-this.msBtnTime)<300){if(this.dblclkZoom){this._setZoomNat(this.getZoomLevel()+1,b)}b4(this,H,b);this.msBtnLast=-1}else{this.msBtnLast=this.msBtn;this.msBtnTime=cc();b4(this,this.msBtn==2?I:S,b)}c9(a)}};dd.prototype.setTileMetrics=function(){var b=this.currentMapType.getTileDimensions(),a=this.currentMapType.getProjection().fromPixelToNative(new cV(b.width,b.height),this.zlevel);this.tileMetrics.setDimensions(a.x,a.y)
};dd.prototype.getTileMetrics=function(){return this.tileMetrics};dd.prototype.setGridTiles=function(){var b=this.viewport.getDimensions(),d=this.currentMapType.getTileDimensions(),a=bl(b.width/d.width),c=bl(b.height/d.height);a+=(a*d.width-b.width<0.3*d.width)?2:1;c+=(c*d.height-b.height<0.3*d.height)?2:1;this.gridTiles.setDimensions(a+this.tileBuffer,c+this.tileBuffer)};dd.prototype.setGridDimensions=function(){var a=this.currentMapType.getTileDimensions();this.gridDimensions.setDimensions(a.width*this.gridTiles.width,a.height*this.gridTiles.height)};dd.prototype.moveBy=function(b,a){this.slideBy(b,a,10)};dd.prototype.getCenter=function(){return this.vpCenterRd.clone()};dd.prototype.setCenter=function(d,b){if(!this.isInit){this.initializeMap(this.ensureNative(d),b);return}if(!this.pannable){return}b=b||this.zlevel;d=this.ensureNative(d);var a=this.zlevel!=b;if(d.equals(this.vpCenterRd)&&!a){return}b4(this,bs,false,a);this._setZoom(b);this._updateVpNat(d);this._reloadMap();b4(this,bA,false,a)};dd.prototype.saveHome=function(){if(this.pannable){this.vpCenterRd.copyTo(this.cHome)
}};dd.prototype.moveToHome=function(){this.moveTo(this.cHome)};dd.prototype.moveTo=function(f){if(!this.pannable){return}f=this.ensureNative(f);var e=this.zlevel;if(this.withinSlideDist(f)){var d=this.currentMapType.getProjection().fromNativeToPixel(f,e),b=M(d.x-this.vpCenterPx.x),a=M(d.y-this.vpCenterPx.y);if(B(b)<200&&B(a)<200){this.slideBy(b,a,10)}else{if(B(b)<400&&B(a)<400){this.slideBy(b,a,15)}else{this.slideBy(b,a,20)}}return}this.setCenter(f,e)};dd.prototype.slideBy=function(c,a,b){var e=this;if(e.isSliding){return}var f={x:c,y:a};e.bindDeltas(f);if(f.x==0&&f.y==0){return}e.isSliding=true;e.moveStep=b;var d=1/b;f.x=f.x*d;f.y=f.y*d;b4(e,bs,false,false);e.moveTimer=setInterval(br(e,function(){e._updateVpDelta(f);e.panNonStatics(f);e.swapTiles();b4(e,dg);if(--e.moveStep==0){clearInterval(e.moveTimer);b4(e,bA,false,false);e.isSliding=false}}),20)};dd.prototype.withinSlideDist=function(b){var a=this.viewport.getDimensions();return dn(a.width,a.height)>this.vpCenterPx.distanceTo(this.currentMapType.getProjection().fromNativeToPixel(b,this.zlevel))
};dd.prototype.openWindow=function(b,a){this.ensureWindow();this.win.open(b,a)};dd.prototype.openWindowHtml=function(b,a){this.ensureWindow();this.win.openHtml(b,a)};dd.prototype.ensureWindow=function(){if(!this.win){this.win=new da(this)}};dd.prototype.closeWindow=function(){if(this.win){this.win.hide()}};dd.prototype.getWindow=function(){this.ensureWindow();return this.win};dd.prototype.enableDoubleClickZoom=function(){this.dblclkZoom=true};dd.prototype.disableDoubleClickZoom=function(){this.dblclkZoom=false};dd.prototype.doubleClickZoomEnabled=function(){return this.dblclkZoom};dd.prototype.enableScrollWheelZoom=function(){if(this.wheelEvt){return}this.wheelEvt=cj(this.div,di.getScrollWheelEventName(),br(this,this.scrollWheelHandler))};dd.prototype.disableScrollWheelZoom=function(){if(this.wheelEvt){K(this.wheelEvt);this.wheelEvt=null}};dd.prototype.scrollWheelZoomEnabled=function(){return !!this.wheelEvt};function Q(a){if(a.modifiers){return true}return a.ctrlKey||a.altKey||a.shiftKey||a.metaKey}dd.prototype.scrollWheelHandler=function(a){if(Q(a)){this.checkResize();
return}var b=0;if(a.detail){b=a.detail/3}else{if(a.wheelDelta){b=a.wheelDelta/120;if(di.isIE()){b=-b}}}if(b!=0){this._setZoomNat(this.zlevel+b,this.getMapCoordinate(a))}c9(a)};dd.prototype.addOverlay=function(a){this.overlays.push(a);if(this.isInit){a.initialize(this);a.redraw()}b4(this,cB,a)};dd.prototype.removeOverlay=function(a){for(var b=0;b<bz(this.overlays);b++){if(this.overlays[b]===a){var a=this.overlays.splice(b,1)[0];if(this.isInit){a.remove()}return}}b4(this,D,a)};dd.prototype.getOverlays=function(){var b=[];for(var a=0;a<bz(this.overlays);a++){b.push(this.overlays[a])}return b};dd.prototype.clearOverlays=function(){if(this.isInit){for(var a=0;a<bz(this.overlays);a++){this.overlays[a].remove()}}aT(this.overlays);b4(this,cg)};dd.prototype.redrawOverlays=function(){var b=this,a;for(a=1;a<6;a++){a3(b.layers[a],false)}for(var a=0;a<bz(this.overlays);a++){this.overlays[a].redraw()}if(this.win){this.win.redraw()}for(a=1;a<6;a++){a3(b.layers[a],true)}};dd.prototype.getControlsLayer=function(){return this.divCtrls
};dd.prototype.addControl=function(a){this.controls.push(a);if(this.isInit){a.initialize(this);a.redraw()}};dd.prototype.removeControl=function(b){for(var a=0;a<bz(this.controls);a++){if(this.controls[a]===b){var b=this.controls.splice(a,1)[0];if(this.isInit){b.remove()}return}}};dd.prototype.clearControls=function(){if(this.isInit){for(var a=0;a<bz(this.controls);a++){this.controls[a].remove()}}aT(this.controls)};dd.prototype.redrawControls=function(){for(var a=0;a<bz(this.controls);a++){this.controls[a].redraw()}};dd.prototype.getPosOnEl=function(d){var f,a=bR(d);if(aF(d.layerX)){f=new cV(aj(a)+d.layerX-1,ai(a)+d.layerY-1)}else{if(aF(d.offsetX)){f=new cV(aj(a)+d.offsetX,ai(a)+d.offsetY)}else{f=new cV(0,0)}}var c=this.divBase,b=this.currentMapType.getProjection().fromPixelToNative(f,this.zlevel);return new bB(M(c.x+b.x),M(c.y-b.y))};function cP(a){if(di.isIE5plus()){return a.button}switch(aF(a.button)?a.button:a.which){case 0:return 1;case 1:return 4;case 2:return 2}return 0}function ae(a){if(aF(a.layerX)){return new cV(a.layerX-1,a.layerY-1)
}else{if(aF(a.offsetX)){return new cV(a.offsetX,a.offsetY)}}return new cV(0,0)}function ap(a){return a||window.event}function ag(b){var a=0,c=0;if(b.offsetParent){while(b.offsetParent){a+=aj(b);c+=ai(b);b=b.offsetParent}}else{if(b.x){a=b.x;c=b.y}}return new cV(a,c)}function c0(a){a=ap(a);if(a.pageX||a.pageY){return new cV(a.pageX,a.pageY)}if(a.clientX||a.clientY){return new cV(a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,a.clientY+document.body.scrollTop+document.documentElement.scrollTop)}return cV.ORIGIN.clone()}function V(a){return c0(a)}dd.prototype.getMapCoordinate=function(d){var h=ag(this.div),b=c0(ap(d)),a=b.x-h.x,g=h.y-b.y,f=this.currentMapType.getProjection().fromPixelToNative(new cV(a,g),this.zlevel);f.x+=this.divBase.x;f.y+=this.divBase.y;return f};dd.prototype.onDivClick=function(b){if(!this.dragged){var a=this.getMapCoordinate(b);switch(this.msBtn){case 1:b4(this,bM,a);break;case 2:b4(this,I,a);break}}};dd.prototype.onDivDblClick=function(b){if(!this.dragged){var a=this.getMapCoordinate(b);
if(this.dblclkZoom){this._setZoomNat(this.getZoomLevel()-1,a)}b4(this,bL,a)}};dd.prototype.onDivMouseMove=function(a){if(!this.isDragging&&N(this,aa)){b4(this,aa,this.getMapCoordinate(a))}};function Z(f,e,b,g,d,c,a){this.img=f;this.imgSize=e||be.ZERO;this.imgAnchor=b||cV.ORIGIN;this.shadow=g;this.shadowSize=d||be.ZERO;this.shadowAnchor=c||cV.ORIGIN;this.winAnchor=a||cV.ORIGIN}Z.prototype.getImageUrl=function(){return this.img};Z.prototype.getDimensions=function(){return this.imgSize};Z.prototype.getImageAnchor=function(){return this.imgAnchor};Z.prototype.hasShadow=function(){return !!this.shadow};Z.prototype.getShadowUrl=function(){return this.shadow};Z.prototype.getShadowDimensions=function(){return this.shadowSize};Z.prototype.getShadowAnchor=function(){return this.shadowAnchor};Z.prototype.getWindowAnchor=function(){return this.winAnchor};function b2(){this.visible=true}b2.prototype.isVisible=function(){return this.visible};b2.prototype.initialize=function(a){};b2.prototype.remove=function(){};b2.prototype.show=function(){this.visible=true
};b2.prototype.hide=function(){this.visible=false};b2.prototype.redraw=function(a){};function au(f,d,b){var a=this;b2.call(a);a.latlng=a.crdNat=f.clone();a.icn=d;var e=b||{};a.title=e.title||null;a.clickable=e.clickable!=undefined?e.clickable:true;a.dragOff=0;if(e.draggable){a.draggable=true;a.canDrag=true;a.dragEvt=[];a.dragDot=bx(null,aG+"dragdot.png",new be(16,16),null,true);af(a.dragDot);cn(a.dragDot)}a.img=bx(null,d.getImageUrl(),d.getDimensions(),a.getZIndex(),true);if(d.hasShadow()){a.shadow=bx(null,d.getShadowUrl(),d.getShadowDimensions(),a.getZIndex(),true)}}ct(au,b2);au.prototype.initialize=function(c){var b=this;b.mapCtrl=c;b.setNatCrd(b.crdNat);var a=b.img;af(a);cn(a);if(this.title){a.title=a.altText=this.title}bj(c.getLayer(cW),a);b.setCursor();if(b.clickable){cj(a,bM,br(b,b.onDomClick));cj(a,bL,br(b,b.onDomDblClick));cj(a,P,br(b,b.onDomMouseDown));cj(a,F,br(b,b.onDomMouseOut));cj(a,a4,br(b,b.onDomMouseOver));cj(a,bo,br(b,b.onDomMouseUp))}if(b.shadow){a=b.shadow;af(a);cn(a);bj(c.getLayer(ao),a)}b.setImgZ()
};au.prototype.setNatCrd=function(a){this.crdNat=this.mapCtrl.ensureNative(a);this.latlng=null};au.prototype.setCursor=function(){if(this.clickable){bY(this.img,di.getCursor(av))}else{bY(this.img,di.getCursor(X))}};au.prototype.remove=function(){cK(this.img);if(this.shadow){cK(this.shadow)}this.mapCtrl=null};au.prototype.getIcon=function(){return this.icn};au.prototype.getTitle=function(){return this.title};au.prototype.getCoordinate=function(){return this.crdNat};au.prototype.getLatLng=function(){if(!this.latlng&&this.mapCtrl){this.latlng=this.mapCtrl.getCurrentMapType().getProjection().fromNativeToLatLng(this.crdNat)}return this.latlng};au.prototype.setImgZ=function(){aR(this.img,this.getZIndex());if(this.shadow){aR(this.shadow,this.getZIndex())}};au.prototype.setLatLng=function(a){this.setCoordinate(a)};au.prototype.setCoordinate=function(a){if(this.mapCtrl){this.setNatCrd(a)}this.setImgZ();this.redraw()};au.prototype.setTitle=function(a){this.title=a;this.img.title=this.img.altText=a};au.prototype.getZIndex=function(){return 4270056-this.crdNat.y
};au.prototype.redraw=function(g){if(this.visible&&this.mapCtrl){var e=this.mapCtrl.getLayerBase(),h=this.crdNat,i=this.mapCtrl.getZoomLevel(),d=this.icn.getImageAnchor(),f=this.mapCtrl.getCurrentMapType().getProjection().fromNativeToPixel(new bB(h.x-e.x,e.y-h.y),i);cX(this.img,M(f.x-d.x));bK(this.img,M(f.y-d.y-this.dragOff));if(this.shadow){var c=this.icn.getShadowAnchor();cX(this.shadow,M(f.x-c.x+this.dragOff));bK(this.shadow,M(f.y-c.y))}if(this.dragging){cX(this.dragDot,M(f.x-8));bK(this.dragDot,M(f.y-8))}}};au.prototype.setImageUrl=function(a){aO(this.img,a)};au.prototype.show=function(){if(!this.visible){b2.prototype.show.call(this);this.redraw();by(this.img);if(this.shadow){by(this.shadow)}b4(this,cH,this.visible)}};au.prototype.hide=function(){if(this.visible){b2.prototype.hide.call(this);a1(this.img);if(this.shadow){a1(this.shadow)}b4(this,cH,this.visible)}};au.prototype.openWindow=function(a){if(this.mapCtrl){this.mapCtrl.getWindow().openMarker(this,a)}};au.prototype.openWindowHtml=function(a){if(this.mapCtrl){this.mapCtrl.getWindow().openMarkerHtml(this,a)
}};au.prototype.enableDragging=function(){this.canDrag=true};au.prototype.disableDragging=function(){this.canDrag=false};au.prototype.isDraggable=function(){return this.draggable&&this.canDrag};au.prototype.initDrag=function(a){if(!this.isDraggable()){return}this.dragStart=a;this.dragEvt.push(cj(this.mapCtrl.getViewportLayer(),aa,br(this,this.onVpMouseMove)))};au.prototype.startDrag=function(){var a=this,b=this.icn.getDimensions();a.dragging=true;a.dragOrig=a.mapCtrl.getCurrentMapType().getProjection().fromNativeToPixel(a.crdNat,a.mapCtrl.getZoomLevel());a.dragEvt.push(cj(a.mapCtrl.getViewportLayer(),bo,br(a,a.onVpMouseUp)));bj(a.mapCtrl.getLayer(cW),a.dragDot);bi(a);b4(a,bb)};function bi(b){var a=window.setInterval(function(){b.dragOff+=10;if(b.dragOff>=30){window.clearInterval(a);b.dragOff=30}b.redraw()},10)}function de(b){var a=window.setInterval(function(){b.dragOff-=10;if(b.dragOff<=0){window.clearInterval(a);cK(b.dragDot);b.dragOff=0}b.redraw()},10)}au.prototype.cancelDrag=function(){var a=this;a.dragging=false;
if(a.dragStart){delete a.dragStart;a.dragStart=null}cM(a.dragEvt);aT(a.dragEvt);a.setImgZ();de(a);b4(a,cO)};au.prototype.onDomClick=function(a){bd(a);b4(this,bM,ap(a),this.getCoordinate())};au.prototype.onDomDblClick=function(a){bd(a);b4(this,bL,ap(a),this.getCoordinate())};au.prototype.onDomMouseDown=function(a){bd(a);var b=V(ap(a));b4(this,P,ap(a),this.getCoordinate());if(this.isDraggable()){this.initDrag(b.clone())}};au.prototype.onDomMouseOut=function(a){bd(a);if(!this.dragging){b4(this,F,ap(a),this.getCoordinate())}};au.prototype.onDomMouseOver=function(a){bd(a);if(!this.dragging){b4(this,a4,ap(a),this.getCoordinate())}};au.prototype.onDomMouseUp=function(a){bd(a);if(this.dragging){this.cancelDrag()}b4(this,bo,ap(a),this.getCoordinate())};au.prototype.onVpMouseMove=function(d){var b=d.clientX-this.dragStart.x,a=this.dragStart.y-d.clientY;if(!this.dragging){var c=dn(B(b),B(a));if(c>2){this.startDrag()}}if(this.dragging){this.setNatCrd(this.mapCtrl.getCurrentMapType().getProjection().fromPixelToNative(new cV(this.dragOrig.x+b,this.dragOrig.y+a),this.mapCtrl.getZoomLevel()));
this.redraw();b4(this,a5)}};au.prototype.onVpMouseUp=function(a){this.cancelDrag();this.setCursor()};function cU(b,d,a,c){b2.call(this);this.template=b;if(!c){c={}}this.minZoom=c.minZoom||1;this.maxZoom=c.maxZoom||Number.MAX_VALUE;this.png=!!c.isPng;this.opac=c.opacity;this.tiles=[]}ct(cU,b2);cU.prototype.initialize=function(c){this.mapCtrl=c;var e=this.div=aN("div");af(e);cX(e,0);bK(e,0);bj(c.getLayer(c6),e);aT(this.tiles);var d=c._getTiles(),b=bz(d);for(var a=0;a<b;a++){this._createTile();this._updateTile(a,d[a])}cj(c,ab,br(this,this._createTile));cj(c,ad,br(this,this._updateTile))};cU.prototype._createTile=function(){var a=bx(this.div,bG,this.mapCtrl.getCurrentMapType().getTileDimensions(),null,this.png);af(a);a.altText="overlay";if(this.opac){b6(a,this.opac)}this.tiles.push(a)};cU.prototype._updateTile=function(a,c){var b=this.tiles[a];aO(b,bG);cX(b,c.topLeft.x);bK(b,c.topLeft.y);aO(b,this.getTileUrl(c.pos,this.mapCtrl.getZoomLevel()))};cU.prototype.remove=function(){this.map=null;for(var a=0;a<bz(this.tiles);
a++){delete this.tiles[a];this.tiles[a]=null}aT(this.tiles);clrel(this.div);cK(this.div)};cU.prototype.getTileUrl=function(a,b){if(!this.template||b<this.minZoom||b>this.maxZoom){return this.png?bG:aG+"transparent.gif"}return this.template.replace(/{X}/gi,a.x).replace(/{Y}/gi,a.y).replace(/{Z}/gi,b)};cU.prototype.show=function(){this.visible=true;by(this.div)};cU.prototype.hide=function(){this.visible=false;a1(this.div)};function cb(a){b2.call(this);this.urlProvider=a}ct(cb,b2);cb.prototype.initialize=function(c){b2.prototype.initialize.call(this,c);this.mapCtrl=c;this.imgDim=new be(0,0);this.lastRect=new cL();var b=br(this,this.onImageLoad),d=aN("div");img=bx(d,null,null,1,this.urlProvider.isPng());af(d);cX(d,0);bK(d,0);bj(c.getLayer(c6),d);this.displayed=img;af(img);a3(img,false);cn(img);aC(img,b);img=bx(d,null,null,2,this.urlProvider.isPng());this.drawable=img;af(img);a3(img,false);cn(img);aC(img,b);this.initializeVars();var a=[];a.push(cj(c,bs,br(this,this.onMapMoveStart)));a.push(cj(c,bA,br(this,this.onMapMoveEnd)));
a.push(cj(c,bD,br(this,this.onMapTypeChanged)));a.push(cj(c,bk,br(this,this.onMapResize)));this.evtList=a};cb.prototype.initializeVars=function(){var a=this.mapCtrl.getMapDim();this.imgDim.setDimensions(a.width,a.height);this.lastRect.setCoordinates(bB.ORIGIN,bB.ORIGIN);bg(this.drawable,a.width);bZ(this.drawable,a.height);bg(this.displayed,a.width);bZ(this.displayed,a.height)};cb.prototype.remove=function(){bp(this.drawable);bp(this.displayed);this.mapCtrl=null;for(var a=0;a<bz(this.evtList);a++){K(this.evtList[a])}aT(this.evtList)};cb.prototype.show=function(){b2.prototype.show.call(this);a3(this.displayed,true);this.redraw()};cb.prototype.hide=function(){b2.prototype.hide.call(this);a3(this.displayed,false)};cb.prototype.redraw=function(f){if(this.isVisible()){var e=this.mapCtrl.getViewportBounds(),d=e.getSouthWest(),b=e.getNorthEast(),c=this.lastRect.getSouthWest(),a=this.lastRect.getNorthEast();if(f||d.x-c.x<=0||a.x-b.x<=0||a.y-b.y<=0||d.y-c.y<=0){this.redrawRect()}else{this.positionImage(this.displayed)}}};
cb.prototype.redrawRect=function(){var a=this.getViewableRect();a.copyTo(this.lastRect);aO(this.drawable,this.urlProvider.getImageUrl(a,this.imgDim,this.mapCtrl.getZoomLevel()))};cb.prototype.onMapMoveStart=function(b,a){if(a){a3(this.displayed,false)}};cb.prototype.onMapMoveEnd=function(){this.redraw()};cb.prototype.onMapTypeChanged=function(){this.initializeVars();this.redrawRect()};cb.prototype.onMapResize=function(){this.initializeVars();this.redrawRect()};cb.prototype.getViewableRect=function(){var c=this.mapCtrl.getZoomLevel(),b=this.mapCtrl.getCurrentMapType().getProjection().fromPixelToNative(new cV(this.imgDim.width*0.5,this.imgDim.height*0.5),c),a=this.mapCtrl.getVpCenterRd();return new cL(new bB(M(a.x-b.x),M(a.y-b.y)),new bB(M(a.x+b.x),M(a.y+b.y)))};cb.prototype.positionImage=function(a){var d=new bB(this.lastRect.getSouthWest().x,this.lastRect.getNorthEast().y),b=this.mapCtrl.fromCoordToDivPixel(d);cX(a,M(b.x));bK(a,M(b.y))};cb.prototype.onImageLoad=function(){this.positionImage(this.drawable);this.swapLayers();
a3(this.drawable,false);a3(this.displayed,true)};cb.prototype.swapLayers=function(){var a=this.displayed;this.displayed=this.drawable;this.drawable=a};function A(a){cb.call(this,a)}ct(A,cb);A.prototype.initialize=function(c){cb.prototype.initialize.call(this,c);var b=bS("map",document.body,true);this.mapArea=b;b.name=b.id="mapped"+(new Date()).getTime();if(this.urlProvider.isPng()&&di.isIE5or6()){var a=aN("img");this.ie6img=a;a.useMap="#"+b.name;af(a);aR(a,3);bg(a,this.imgDim.width);bZ(a,this.imgDim.height);a.style.border="0px none";a.src=aG+"transparent.gif";bj(this.drawable.parentNode,a)}else{this.drawable.useMap="#"+b.name;this.displayed.useMap="#"+b.name}};A.prototype.remove=function(){cb.prototype.remove.call(this);bp(this.mapArea)};A.prototype.onImageLoad=function(){var a=this.urlProvider.getMapUrl(this.lastRect,this.imgDim,this.mapCtrl.getZoomLevel()),b=new T(a,document);b.send(null,br(this,this.onMapLoad));cb.prototype.onImageLoad.call(this);if(this.ie6img){cX(this.ie6img,aj(this.displayed));bK(this.ie6img,ai(this.displayed))
}};A.prototype.onMapResize=function(){cb.prototype.onMapResize.call(this);if(this.ie6img){bg(this.ie6img,this.imgDim.width);bZ(this.ie6img,this.imgDim.height)}};A.prototype.onMapLoad=function(m){a0(this.mapArea);if(!m||!m.shapes){return}var b=m.shapes;if(b&&bz(b)){for(var c=0;c<bz(b);c++){var n=b[c];if(n&&n.shape){var h=aN("area");h.shape=n.shape;bY(h,di.getCursor(av));h.coords=this.createCoords(n);var f=null;if(n.alt){f=n.alt}var k=n.actions;if(k&&bz(k)){for(var a=0;a<bz(k);a++){var g=k[a],l=g.type,d=g.handler;if(l=="href"){h.href=g.href;h.target=g.target||null}else{if(l=="click"){h.onclick=this.createHandler(l,n,h,d)}else{if(l=="dblclick"){h.ondblclick=this.createHandler(l,n,h,d)}else{if(l=="hover"){f=null;h.onmouseover=this.createHandler("mouseover",n,h,d);h.onmouseout=this.createHandler("mouseout",n,h,d)}}}}}}if(f){h.title=h.altText=f}if(!h.href){c3(h)}bj(this.mapArea,h)}}}};A.prototype.createCoords=function(f){var e=f.coords;if(!bz(e)){return""}var b=[];switch(f.shape){case"circle":var g=e[0];b.push(g.x);
b.push(g.y);b.push(f.radius);break;case"rect":var a=bz(e)<2?bz(e):2;for(var d=0;d<a;d++){var g=e[d];if(g){b.push(g.x);b.push(g.y)}}break;case"poly":for(var d=0;d<bz(e);d++){var g=e[d];if(g){b.push(g.x);b.push(g.y)}}break}return b.join(",")};A.prototype.getCoordinate=function(d){var h,a=bR(d),g=this.displayed;if(aF(d.layerX)){h=new cV(aj(g)+d.layerX-1,ai(g)+d.layerY-1)}else{if(aF(d.offsetX)){h=new cV(aj(g)+d.offsetX,ai(g)+d.offsetY)}else{return new cV(0,0)}}var b=this.mapCtrl.getLayerBase(),f=this.mapCtrl.getZoomLevel(),c=this.mapCtrl.getCurrentMapType().getProjection().fromPixelToNative(h,f);return new bB(M(b.x+c.x),M(b.y-c.y))};A.prototype.createHandler=function(e,b,d,c){var a=this;return function(f){if(!c){return}f=f||window.event;d.blur();bd(f);try{var h=a.getCoordinate.call(a,f,b);c(f,e,h,b)}catch(g){throw"MappedImageOverlay handler generated an exception: "+g}}};function da(c){var b=this,a=c.getLayer(bP);b.mapCtrl=c;b.div=aN("div");af(b.div);aR(b.div,1);b.div.style.border="1px solid #999";b.div.style.backgroundColor="#fff";
ar(b.div,2);bT(b.div);bj(a,b.div);b.pntr=bx(a,aG+"iw-arrow.png",new be(81,66),1,true);af(b.pntr);b.hide();b.content=aN("div");bj(b.div,b.content);var d=aN("a");bx(d,aG+"iw-close.png",new be(12,12),0,true);bj(b.div,d);af(d);aR(d,1);az(d,2);bK(d,2);c3(d);cj(d,bM,br(this,this.onCloseClick));cj(b.div,P,ay);cj(b.div,bM,ay);cj(b.pntr,P,ay);cj(b.pntr,bM,ay);b.crd=null;this.vis=b.opened=false}da.prototype.show=function(){a3(this.div,true);by(this.pntr);this.vis=true;b4(this,O)};da.prototype.hide=function(){a3(this.div,false);a1(this.pntr);this.vis=false;b4(this,W)};da.prototype.isOpen=function(){return this.opened};da.prototype.open=function(b,a){this.crd=this.mapCtrl.ensureNative(b);this.marker=this.latlng=null;this.opened=true;this.setContent(a);this.show();b4(this,dl);this.checkMap()};da.prototype.openHtml=function(e,a){var b=aN("div");Y(b,a);this.open(e,b)};da.prototype.openMarker=function(b,a){this.marker=b;this.crd=this.latlng=null;this.setContent(a);this.show();b4(this,dl);this.checkMap()};da.prototype.openMarkerHtml=function(c,a){var b=aN("div");
Y(b,a);this.openMarker(c,b)};da.prototype.setContent=function(c){a0(this.content);var a=0,b=0;if(c){var e=aN("div");af(e);E(e);aR(e,1);bj(this.div,e);bj(e,c);a=e.offsetWidth;b=e.offsetHeight;bj(this.content,c);cK(e)}bg(this.div,a<250?250:a);bZ(this.div,b<150?150:b);this.redraw()};da.prototype.close=function(){this.opened=false;this.hide();a0(this.content);b4(this,bc)};da.prototype.redraw=function(){if(this.opened&&(this.crd||this.marker)){var c;if(this.crd){c=this.mapCtrl.fromCoordToDivPixel(this.crd)}else{if(this.marker){c=this.mapCtrl.fromCoordToDivPixel(this.marker.getCoordinate());var e=this.marker.getIcon(),d=e.getImageAnchor(),b=e.getWindowAnchor();c.x+=b.x-d.x;c.y+=b.y-d.y}}cX(this.pntr,M(c.x));bK(this.pntr,M(c.y-66));var a=c.x-30,f=c.y-this.div.offsetHeight-65;cX(this.div,M(a));bK(this.div,M(f))}};da.prototype.checkMap=function(){var d=this.mapCtrl.getLayer(cW),a=aj(d.parentNode)+aj(d)+aj(this.div),e=ai(d.parentNode)+ai(d)+ai(this.div),c=0,b=0;if(a<10){c=M(a-10)}if(e<10){b=-M(e-10)}if(c!=0||b!=0){this.mapCtrl.moveBy(c,b)
}};da.prototype.getCoordinate=function(){return this.crd};da.prototype.getLatLng=function(){if(!this.latlng&&this.crd){this.latlng=this.mapCtrl.getCurrentMapType().getProjection().fromNativeToLatLng(this.crd)}return this.latlng};da.prototype.getMarker=function(){return this.marker};da.prototype.onCloseClick=function(a){this.hide()};function aW(e,b){var c=b||{},a=this,d;a.mapCtrl=e;if(c.useViewport){d=e.getViewportLayer();cj(d,a4,function(){a.evtKeyDown=cj(document,cJ,br(a,a.onKeyDown));a.evtKeyPress=cj(document,a7,br(a,a.onKeyPress))});cj(d,F,function(){if(a.evtKeyDown){K(a.evtKeyDown);a.evtKeyDown=null}if(a.evtKeyPress){K(a.evtKeyPress);a.evtKeyPress=null}})}else{cj(document,cJ,br(a,a.onKeyDown));cj(document,a7,br(a,a.onKeyPress))}}aW.prototype.moveBy=function(b,a){this.mapCtrl.moveBy(b,a)};aW.prototype.zoomDelta=function(a){if(a<0){this.mapCtrl.zoomIn()}else{if(a>0){this.mapCtrl.zoomOut()}}};aW.prototype.skipKey=function(c){c=ap(c);if(c.ctrlKey||c.altKey||c.metaKey){return true}var a=bR(c);if(a&&((a.nodeName=="INPUT"&&a.getAttribute("type").toLowerCase()=="text")||a.nodeName=="TEXTAREA")){return true
}return false};aW.prototype.onKeyDown=function(a){var b=ap(a);if(this.skipKey(b)){return true}switch(b.which||b.keyCode){case 37:this.moveBy(-100,0);bd(a);return false;case 38:this.moveBy(0,100);bd(a);return false;case 39:this.moveBy(100,0);bd(a);return false;case 40:this.moveBy(0,-100);bd(a);return false}return true};aW.prototype.onKeyPress=function(a){var b=ap(a);if(this.skipKey(b)){return true}switch(b.which||b.keyCode){case 43:this.zoomDelta(-1);bd(a);return false;case 45:this.zoomDelta(1);bd(a);return false}return true};function bU(b){return document.createElementNS(ak,b)}function bX(b,a,c){b.setAttributeNS(null,a,c)}function cN(b){return aN("v:"+b)}if(di.isIE()){document.namespaces.add("v","urn:schemas-microsoft-com:vml");document.createStyleSheet().addRule("v\\:shape","behavior:url(#default#VML)");document.createStyleSheet().addRule("v\\:stroke","behavior:url(#default#VML)");document.createStyleSheet().addRule("v\\:fill","behavior:url(#default#VML)")}function z(e,a,d,b){var c=this;b2.call(c);c.crds=e;c.strColor=a||"blue";
c.strWeight=d||5;c.strOpacity=b||0.5;c.drawOffs=new cV(0,0);c.init=false}ct(z,b2);z.prototype.initialize=function(b){var a=this;b2.prototype.initialize.call(a,b);a.mapCtrl=b;di.isIE()?a.createVML(b):a.createSVG(b);if(!this.visible){a1(this.vectroot)}cj(b,"moveend",br(a,a.onMapMoveEnd));cj(b,"maptypechanged",br(a,a.onMapMoveEnd));a.init=true};z.prototype.remove=function(){cK(this.vectroot)};z.prototype.show=function(){b2.prototype.show.call(this);if(this.vectroot){by(this.vectroot)}};z.prototype.hide=function(){b2.prototype.hide.call(this);if(this.vectroot){a1(this.vectroot)}};z.prototype.getCoordinates=function(){return this.crds};z.prototype.setCoordinates=function(a){this.crds=a;if(this.init){this.parseGeo();this.redraw()}};z.prototype.setStrokeColor=function(a){this.strColor=a;if(this.type==1){bX(this.vectpoly,"stroke",this.strColor)}else{this.vectpoly.strokecolor=this.strColor}};z.prototype.getStrokeColor=function(){return this.strColor};z.prototype.setStrokeOpacity=function(a){this.strOpacity=a;if(this.type==1){bX(this.vectpoly,"stroke-opacity",this.strOpacity)
}else{this.vectpoly.childNodes[0]["opacity"]=this.strOpacity}};z.prototype.getStrokeOpacity=function(){return this.strOpacity};z.prototype.redraw=function(b){var a=this;if(a.init&&a.baseC){var c=a.mapCtrl.fromCoordToDivPixel(a.baseC);cX(a.vectroot,M(c.x+a.drawOffs.x));bK(a.vectroot,M(c.y+a.drawOffs.y))}};z.prototype.createPath=function(c){if(this.type==2){var b="m "+c[0]+" l ";for(var a=1;a<bz(c);a++){b+=c[a]+" "}return b+"e"}return c.join(" ")};z.prototype.parseGeo=function(){var c=this,d=new cL(),f=[];for(var b=0;b<bz(c.crds);b++){d.extend(c.crds[b])}var a=d.getSouthWest(),e=d.getNorthEast();c.bounds=d;c.baseC=new bB(a.x,e.y);for(var b=0;b<bz(c.crds);b++){f.push((c.crds[b].x-c.baseC.x)+","+(c.baseC.y-c.crds[b].y))}if(c.type==2){c.vectpoly.path=c.createPath(f);c.updateVML()}else{bX(c.vectpoly,"points",c.createPath(f));c.updateSVG()}};z.prototype.onMapMoveEnd=function(b,a){if(a){this.type==2?this.updateVML():this.updateSVG();this.redraw()}};z.prototype.createSVG=function(d){var b=this,a=bU("svg"),c=bU("polyline");
b.type=1;b.vectroot=a;b.vectpoly=c;af(a);b.setSVGAttr(c);bj(a,c);bj(d.getLayer(dm),a);b.drawOffs.setCoordinates(-b.strWeight,-b.strWeight);if(b.crds){b.parseGeo();b.redraw()}};z.prototype.setSVGAttr=function(a){bX(a,"fill","none");bX(a,"stroke",this.strColor);bX(a,"stroke-opacity",this.strOpacity);bX(a,"stroke-linecap","round");bX(a,"stroke-linejoin","round")};z.prototype.updateSVG=function(){var d=this,a=d.bounds.getSouthWest(),f=d.bounds.getNorthEast(),c=d.mapCtrl.getZoomScale(),g=1/c,b=bl((f.x-a.x)/c+2*d.strWeight),e=bl((f.y-a.y)/c+2*d.strWeight);bX(d.vectroot,"width",b);bX(d.vectroot,"height",e);bX(d.vectpoly,"transform","translate("+d.strWeight+", "+d.strWeight+") scale("+g+")");bX(d.vectpoly,"stroke-width",d.strWeight*c)};z.prototype.createVML=function(c){var a=this,b=cN("shape");a.type=2;a.vectroot=b;a.vectpoly=b;af(b);a.setVMLAttr(b);bj(c.getLayer(dm),b);a.drawOffs.setCoordinates(-1,-1);if(a.crds){a.parseGeo();a.redraw()}};z.prototype.setVMLAttr=function(b,a){b.filled="false";b.stroked="true";b.strokecolor=this.strColor;
b.strokeweight=this.strWeight>1?this.strWeight-1:1;var a=cN("stroke");a.opacity=this.strOpacity;a.joinstyle="round";a.endcap="round";bj(b,a)};z.prototype.updateVML=function(){var d=this,a=d.bounds.getSouthWest(),f=d.bounds.getNorthEast(),c=d.mapCtrl.getZoomScale(),b=bl(f.x-a.x+2*d.strWeight),e=bl(f.y-a.y+2*d.strWeight);d.vectroot.coordsize=b+","+e;bg(d.vectroot,bl(b/c));bZ(d.vectroot,bl(e/c))};function cY(e,g,d,c,f,a){var b=this;z.call(b,e,g,d,c);b.filColor=f;b.filOpacity=a||0.5;if(!b.strColor&&!b.filColor){b.strColor="blue";b.filColor="transparent"}b.init=false}ct(cY,z);cY.prototype.createPath=function(c){if(this.type==2){var b="m "+c[0]+" l ";for(var a=1;a<bz(c);a++){b+=c[a]+" "}return b+"x e"}var b=c.join(" ");if(c[0]!=c[bz(c)-1]){b+=" "+c[0]}return b};cY.prototype.setSVGAttr=function(b){var a=this;if(a.strColor){bX(b,"stroke",a.strColor);bX(b,"stroke-opacity",a.strOpacity);bX(b,"stroke-linecap","round");bX(b,"stroke-linejoin","round")}if(a.filColor){bX(b,"fill",a.filColor);bX(b,"fill-opacity",a.filOpacity)
}else{bX(b,"fill","transparent");bX(b,"fill-opacity",0)}};cY.prototype.setVMLAttr=function(d){var a=this;if(a.strColor){d.stroked="true";d.strokecolor=a.strColor;d.strokeweight=this.strWeight>1?this.strWeight-1:1;var b=cN("stroke");b.opacity=a.strOpacity;b.joinstyle="round";b.endcap="round";bj(d,b)}else{d.stroked="false"}if(a.filColor){d.filled="true";d.fillcolor=a.filColor;var c=cN("fill");c.opacity=a.filOpacity;bj(d,c)}else{d.filled="false"}};function dh(c,a,b){c[a]=b}function dc(c,a,b){c.prototype[a]=b}function cG(e,c,b){if(c){for(var d=0;d<bz(c);d++){var a=c[d];b(e,a[0],a[1])}}}function c1(k,g){for(var f=0;f<bz(g);f++){var d=g[f],l=d[1];if(d[0]){var e=(k+d[0]).split("."),h=bz(e)-1,a=window;if(h>0){for(var b=0;b<h;b++){var c=e[b];if(!a[c]){a[c]={}}a=a[c]}}dh(a,e[h],l)}cG(l,d[2],dc);cG(l,d[3],dh)}}function cI(d){for(var a=0;a<bz(d);a++){var c=d[a],b=c[1];if(c[0]){dh(window,c[0],b)}cG(b,c[2],dh)}}cI([["browser",di,[["isIE",di.isIE],["isIE5plus",di.isIE5plus],["isIE5or6",di.isIE5or6],["isMozillaBased",di.isMozillaBased],["SVGEnabled",di.SVGEnabled],["inStandardsMode",di.inStandardsMode],["getCursor",di.getCursor],["toString",di.toString]]],["Class",{},[["inherit",ct]]],["SRS_WGS84",aA],["SRS_RD",J],["SRS_SP2",bF]]);
c1("A",[["DownloadUrl",cR]]);var cF=c2.prototype,cE=bB.prototype,cD=be.prototype,cC=dp.prototype,cA=Z.prototype,cy=IUrlProvider.prototype,cx=bq.prototype,cw=aD.prototype,cv=dd.prototype,cu=aJ.prototype,cs=c8.prototype,cr=au.prototype,cp=b2.prototype,cm=cV.prototype,cl=bE.prototype,ck=cZ.prototype,ch=cL.prototype,cf=am.prototype,ce=z.prototype,cd=cU.prototype,ca=T.prototype,b9=G.prototype,b7=cY.prototype;c1("Andes.",[["addListener",cj],["removeListener",K],["clearListeners",bv],["clearAllListeners",aS],["trigger",b4],["EventListener",b0],["ScriptLoader",T,[["send",ca.send],["cancel",ca.cancel]]],["BasicMapType",G,[["getId",b9.getId],["getTitle",b9.getTitle],["getCopyright",b9.getCopyright],["getProjection",b9.getProjection],["getTileUrl",b9.getTileUrl],["getScale",b9.getScale],["getScales",b9.getScales],["getMinResolution",b9.getMinResolution],["getMaxResolution",b9.getMaxResolution],["getTileDimensions",b9.getTileDimensions]]],["Control",c2,[["initialize",cF.initialize],["remove",cF.remove]]],["Coordinate",bB,[["setCoordinates",cE.setCoordinates],["equals",cE.equals],["distanceTo",cE.distanceTo],["copyTo",cE.copyTo],["clone",cE.clone],["toString",cE.toString]],[["ORIGIN",bB.ORIGIN]]],["CopyrightControl",aL],["Dimensions",be,[["setDimensions",cD.setDimensions],["equals",cD.equals],["copyTo",cD.copyTo],["clone",cD.clone],["toString",cD.toString]],[["ZERO",be.ZERO]]],["BasicMapTileLayer",dp,[["getTileUrl",cC.getTileUrl],["getTileDim",cC.getTileDimensions],["getScale",cC.getScale],["getScales",cC.getScales],["getCopyright",cC.getCopyright],["getMinResolution",cC.getMinResolution],["getMaxResolution",cC.getMaxResolution]]],["Icon",Z,[["getImageUrl",cA.getImageUrl],["getDimensions",cA.getDimensions],["getImageAnchor",cA.getImageAnchor],["hasShadow",cA.hasShadow],["getShadowUrl",cA.getShadowUrl],["getShadowDimensions",cA.getShadowDimensions],["getShadowAnchor",cA.getShadowAnchor],["getWindowAnchor",cA.getWindowAnchor]]],["IFalkMapType",aU],["ImageOverlay",cb],["IUrlProvider",IUrlProvider,[["equals",cy.equals],["getImageUrl",cy.getImageUrl],["getMapUrl",cy.getMapUrl],["isPng",cy.isPng]]],["JacanaMapType",aB],["KeyHandler",aW],["LatLng",bq,[["setLatLng",cx.setLatLng],["lat",cx.lat],["lng",cx.lng],["equals",cx.equals],["distanceTo",cx.distanceTo],["copyTo",cx.copyTo],["clone",cx.clone],["toString",cx.toString]]],["LatLngRectangle",aD,[["setCoordinates",cw.setCoordinates],["getSouthWest",cw.getSouthWest],["getNorthEast",cw.getNorthEast],["getCenter",cw.getCenter],["isEmpty",cw.isEmpty],["isWithin",cw.isWithin],["contains",cw.isWithin],["extend",cw.extend],["copyTo",cw.copyTo],["clone",cw.clone],["equals",cw.equals],["toDimensions",cw.toDimensions],["toString",cw.toString]]],["MappedImageOverlay",A],["Maps",dd,[["isInitialized",cv.isInitialized],["setCenter",cv.setCenter],["getCenter",cv.getCenter],["moveTo",cv.moveTo],["moveBy",cv.moveBy],["enableDrag",cv.enableDrag],["disableDrag",cv.disableDrag],["canDrag",cv.canDrag],["saveHome",cv.saveHome],["moveToHome",cv.moveToHome],["checkResize",cv.checkResize],["getZoomLevel",cv.getZoomLevel],["getZoomLevels",cv.getZoomLevels],["getZoomScale",cv.getZoomScale],["getRectZoomLevel",cv.getRectZoomLevel],["zoomTo",cv.zoomTo],["zoomIn",cv.zoomIn],["zoomOut",cv.zoomOut],["getMapDim",cv.getMapDim],["getCurrentMapType",cv.getCurrentMapType],["getMapTypes",cv.getMapTypes],["switchToMapType",cv.switchToMapType],["addOverlay",cv.addOverlay],["getOverlays",cv.getOverlays],["removeOverlay",cv.removeOverlay],["clearOverlays",cv.clearOverlays],["addControl",cv.addControl],["removeControl",cv.removeControl],["clearControls",cv.clearControls],["getControlsLayer",cv.getControlsLayer],["getLayer",cv.getLayer],["getLayerBase",cv.getLayerBase],["getViewportBounds",cv.getViewportBounds],["getViewportSize",cv.getViewportSize],["fromLatLngToDivPixel",cv.fromLatLngToDivPixel],["fromCoordToDivPixel",cv.fromCoordToDivPixel],["fromDivPixelToCoord",cv.fromDivPixelToCoord],["fromDivPixelToLatLng",cv.fromDivPixelToLatLng],["enableScrollWheelZoom",cv.enableScrollWheelZoom],["disableScrollWheelZoom",cv.disableScrollWheelZoom],["scrollWheelZoomEnabled",cv.scrollWheelZoomEnabled],["enableDoubleClickZoom",cv.enableDoubleClickZoom],["disableDoubleClickZoom",cv.disableDoubleClickZoom],["doubleClickZoomEnabled",cv.doubleClickZoomEnabled],["openWindow",cv.openWindow],["openWindowHtml",cv.openWindowHtml],["closeWindow",cv.closeWindow]],[["LAYER_MARKERS",cW],["LAYER_MARKERS_SHADE",ao],["LAYER_IMAGE",c6],["LAYER_VECTOR",dm],["LAYER_FLOAT",bP],["LAYER_CONTROL",bt]]],["MapTileLayer",aJ,[["getTileUrl",cu.getTileUrl],["getCopyright",cu.getCopyright],["isPng",cu.isPng],["getOpacity",cu.getOpacity],["getMinResolution",cu.getMinResolution],["getMaxResolution",cu.getMaxResolution]]],["MapType",c8,[["getId",cs.getId],["getTitle",cs.getTitle],["getCopyright",cs.getCopyright],["getProjection",cs.getProjection],["getTileUrl",cs.getTileUrl],["getScale",cs.getScale],["getScales",cs.getScales],["getMinResolution",cs.getMinResolution],["getMaxResolution",cs.getMaxResolution],["getTileDimensions",cs.getTileDimensions]]],["MapTypeControl",bf],["Marker",au,[["getIcon",cr.getIcon],["getTitle",cr.getTitle],["getCoordinate",cr.getCoordinate],["setCoordinate",cr.setCoordinate],["getZIndex",cr.getZIndex],["setImageUrl",cr.setImageUrl],["show",cr.show],["hide",cr.hide],["isVisible",cr.isVisible],["enableDragging",cr.enableDragging],["disableDragging",cr.disableDragging],["isDraggable",cr.isDraggable]]],["Overlay",b2,[["isVisible",cp.isVisible],["initialize",cp.initialize],["remove",cp.remove],["show",cp.show],["hide",cp.hide],["redraw",cp.redraw]]],["PanControl",bw],["Point",cV,[["x",cm.x],["y",cm.y],["setCoordinates",cm.setCoordinates],["equals",cm.equals],["distanceTo",cm.distanceTo],["copyTo",cm.copyTo],["clone",cm.clone],["toString",cm.toString]]],["Projection",bE,[["getNativeBoundary",cl.getNativeBoundary],["getLatLngBoundary",cl.getLatLngBoundary],["fromNativeToPixel",cl.fromNativeToPixel],["fromPixelToNative",cl.fromPixelToNative],["fromNativeToLatLng",cl.fromNativeToLatLng],["fromLatLngToNative",cl.fromLatLngToNative]]],["RdProjection",cZ,[["getNativeBoundary",ck.getNativeBoundary],["getLatLngBoundary",ck.getLatLngBoundary],["fromNativeToPixel",ck.fromNativeToPixel],["fromPixelToNative",ck.fromPixelToNative],["fromNativeToLatLng",ck.fromNativeToLatLng],["fromLatLngToNative",ck.fromLatLngToNative]]],["Rectangle",cL,[["setCoordinates",ch.setCoordinates],["getSouthWest",ch.getSouthWest],["getNorthEast",ch.getNorthEast],["getCenter",ch.getCenter],["isEmpty",ch.isEmpty],["isWithin",ch.isWithin],["contains",ch.isWithin],["extend",ch.extend],["copyTo",ch.copyTo],["clone",ch.clone],["equals",ch.equals],["toDimensions",ch.toDimensions],["toString",ch.toString]]],["ScaleControl",ci],["setStaticUrl",b8],["Sp2Projection",am,[["getNativeBoundary",cf.getNativeBoundary],["getLatLngBoundary",cf.getLatLngBoundary],["fromNativeToPixel",cf.fromNativeToPixel],["fromPixelToNative",cf.fromPixelToNative],["fromNativeToLatLng",cf.fromNativeToLatLng],["fromLatLngToNative",cf.fromLatLngToNative]]],["Polyline",z,[["getCoordinates",ce.getCoordinates],["setCoordinates",ce.setCoordinates],["isVisible",ce.isVisible],["show",ce.show],["hide",ce.hide]]],["Polygon",cY,[["getCoordinates",b7.getCoordinates],["setCoordinates",b7.setCoordinates],["isVisible",b7.isVisible],["show",b7.show],["hide",b7.hide]]],["MapTileLayerOverlay",cU,[["show",cd.show],["hide",cd.hide]]]])
})();