var OpenLayers={singleFile:true};
(function(){var c=(typeof OpenLayers=="object"&&OpenLayers.singleFile);
var g;
window.OpenLayers={_scriptName:(!c)?"lib/OpenLayers.js":"OpenLayers.js",_getScriptLocation:function(){if(g!=undefined){return g
}g="";
var h=new RegExp("(^|(.*?\\/))("+OpenLayers._scriptName+")(\\?|$)");
var o=document.getElementsByTagName("script");
for(var q=0,i=o.length;
q<i;
q++){var r=o[q].getAttribute("src");
if(r){var p=r.match(h);
if(p){g=p[1];
break
}}}return g
}};
if(!c){var d=new Array("OpenLayers/Util.js","OpenLayers/BaseTypes.js","OpenLayers/BaseTypes/Class.js","OpenLayers/BaseTypes/Bounds.js","OpenLayers/BaseTypes/Element.js","OpenLayers/BaseTypes/LonLat.js","OpenLayers/BaseTypes/Pixel.js","OpenLayers/BaseTypes/Size.js","OpenLayers/Console.js","OpenLayers/Tween.js","Rico/Corner.js","Rico/Color.js","OpenLayers/Ajax.js","OpenLayers/Events.js","OpenLayers/Request.js","OpenLayers/Request/XMLHttpRequest.js","OpenLayers/Projection.js","OpenLayers/Map.js","OpenLayers/Layer.js","OpenLayers/Icon.js","OpenLayers/Marker.js","OpenLayers/Marker/Box.js","OpenLayers/Popup.js","OpenLayers/Tile.js","OpenLayers/Tile/Image.js","OpenLayers/Tile/Image/IFrame.js","OpenLayers/Tile/WFS.js","OpenLayers/Layer/Image.js","OpenLayers/Layer/SphericalMercator.js","OpenLayers/Layer/EventPane.js","OpenLayers/Layer/FixedZoomLevels.js","OpenLayers/Layer/Google.js","OpenLayers/Layer/VirtualEarth.js","OpenLayers/Layer/Yahoo.js","OpenLayers/Layer/HTTPRequest.js","OpenLayers/Layer/Grid.js","OpenLayers/Layer/MapGuide.js","OpenLayers/Layer/MapServer.js","OpenLayers/Layer/MapServer/Untiled.js","OpenLayers/Layer/KaMap.js","OpenLayers/Layer/KaMapCache.js","OpenLayers/Layer/MultiMap.js","OpenLayers/Layer/Markers.js","OpenLayers/Layer/Text.js","OpenLayers/Layer/WorldWind.js","OpenLayers/Layer/ArcGIS93Rest.js","OpenLayers/Layer/WMS.js","OpenLayers/Layer/WMS/Untiled.js","OpenLayers/Layer/WMS/Post.js","OpenLayers/Layer/ArcIMS.js","OpenLayers/Layer/GeoRSS.js","OpenLayers/Layer/Boxes.js","OpenLayers/Layer/XYZ.js","OpenLayers/Layer/TMS.js","OpenLayers/Layer/TileCache.js","OpenLayers/Layer/Zoomify.js","OpenLayers/Popup/Anchored.js","OpenLayers/Popup/AnchoredBubble.js","OpenLayers/Popup/Framed.js","OpenLayers/Popup/FramedCloud.js","OpenLayers/Feature.js","OpenLayers/Feature/Vector.js","OpenLayers/Feature/WFS.js","OpenLayers/Handler.js","OpenLayers/Handler/Click.js","OpenLayers/Handler/Hover.js","OpenLayers/Handler/Point.js","OpenLayers/Handler/Path.js","OpenLayers/Handler/Polygon.js","OpenLayers/Handler/Feature.js","OpenLayers/Handler/Drag.js","OpenLayers/Handler/RegularPolygon.js","OpenLayers/Handler/Box.js","OpenLayers/Handler/MouseWheel.js","OpenLayers/Handler/Keyboard.js","OpenLayers/Control.js","OpenLayers/Control/Attribution.js","OpenLayers/Control/Button.js","OpenLayers/Control/ZoomBox.js","OpenLayers/Control/ZoomToMaxExtent.js","OpenLayers/Control/DragPan.js","OpenLayers/Control/Navigation.js","OpenLayers/Control/MouseDefaults.js","OpenLayers/Control/MousePosition.js","OpenLayers/Control/OverviewMap.js","OpenLayers/Control/KeyboardDefaults.js","OpenLayers/Control/PanZoom.js","OpenLayers/Control/PanZoomBar.js","OpenLayers/Control/ArgParser.js","OpenLayers/Control/Permalink.js","OpenLayers/Control/Scale.js","OpenLayers/Control/ScaleLine.js","OpenLayers/Control/Snapping.js","OpenLayers/Control/Split.js","OpenLayers/Control/LayerSwitcher.js","OpenLayers/Control/DrawFeature.js","OpenLayers/Control/DragFeature.js","OpenLayers/Control/ModifyFeature.js","OpenLayers/Control/Panel.js","OpenLayers/Control/SelectFeature.js","OpenLayers/Control/NavigationHistory.js","OpenLayers/Control/Measure.js","OpenLayers/Control/WMSGetFeatureInfo.js","OpenLayers/Control/Graticule.js","OpenLayers/Control/TransformFeature.js","OpenLayers/Geometry.js","OpenLayers/Geometry/Rectangle.js","OpenLayers/Geometry/Collection.js","OpenLayers/Geometry/Point.js","OpenLayers/Geometry/MultiPoint.js","OpenLayers/Geometry/Curve.js","OpenLayers/Geometry/LineString.js","OpenLayers/Geometry/LinearRing.js","OpenLayers/Geometry/Polygon.js","OpenLayers/Geometry/MultiLineString.js","OpenLayers/Geometry/MultiPolygon.js","OpenLayers/Geometry/Surface.js","OpenLayers/Renderer.js","OpenLayers/Renderer/Elements.js","OpenLayers/Renderer/SVG.js","OpenLayers/Renderer/Canvas.js","OpenLayers/Renderer/VML.js","OpenLayers/Layer/Vector.js","OpenLayers/Layer/Vector/RootContainer.js","OpenLayers/Strategy.js","OpenLayers/Strategy/Fixed.js","OpenLayers/Strategy/Cluster.js","OpenLayers/Strategy/Paging.js","OpenLayers/Strategy/BBOX.js","OpenLayers/Strategy/Save.js","OpenLayers/Strategy/Refresh.js","OpenLayers/Filter.js","OpenLayers/Filter/FeatureId.js","OpenLayers/Filter/Logical.js","OpenLayers/Filter/Comparison.js","OpenLayers/Filter/Spatial.js","OpenLayers/Protocol.js","OpenLayers/Protocol/HTTP.js","OpenLayers/Protocol/SQL.js","OpenLayers/Protocol/SQL/Gears.js","OpenLayers/Protocol/WFS.js","OpenLayers/Protocol/WFS/v1.js","OpenLayers/Protocol/WFS/v1_0_0.js","OpenLayers/Protocol/WFS/v1_1_0.js","OpenLayers/Protocol/SOS.js","OpenLayers/Protocol/SOS/v1_0_0.js","OpenLayers/Layer/PointTrack.js","OpenLayers/Layer/GML.js","OpenLayers/Style.js","OpenLayers/StyleMap.js","OpenLayers/Rule.js","OpenLayers/Format.js","OpenLayers/Format/XML.js","OpenLayers/Format/ArcXML.js","OpenLayers/Format/ArcXML/Features.js","OpenLayers/Format/GML.js","OpenLayers/Format/GML/Base.js","OpenLayers/Format/GML/v2.js","OpenLayers/Format/GML/v3.js","OpenLayers/Format/Atom.js","OpenLayers/Format/KML.js","OpenLayers/Format/GeoRSS.js","OpenLayers/Format/WFS.js","OpenLayers/Format/WFSCapabilities.js","OpenLayers/Format/WFSCapabilities/v1.js","OpenLayers/Format/WFSCapabilities/v1_0_0.js","OpenLayers/Format/WFSCapabilities/v1_1_0.js","OpenLayers/Format/WFSDescribeFeatureType.js","OpenLayers/Format/WMSDescribeLayer.js","OpenLayers/Format/WMSDescribeLayer/v1_1.js","OpenLayers/Format/WKT.js","OpenLayers/Format/OSM.js","OpenLayers/Format/GPX.js","OpenLayers/Format/Filter.js","OpenLayers/Format/Filter/v1.js","OpenLayers/Format/Filter/v1_0_0.js","OpenLayers/Format/Filter/v1_1_0.js","OpenLayers/Format/SLD.js","OpenLayers/Format/SLD/v1.js","OpenLayers/Format/SLD/v1_0_0.js","OpenLayers/Format/CSWGetDomain.js","OpenLayers/Format/CSWGetDomain/v2_0_2.js","OpenLayers/Format/CSWGetRecords.js","OpenLayers/Format/CSWGetRecords/v2_0_2.js","OpenLayers/Format/WFST.js","OpenLayers/Format/WFST/v1.js","OpenLayers/Format/WFST/v1_0_0.js","OpenLayers/Format/WFST/v1_1_0.js","OpenLayers/Format/Text.js","OpenLayers/Format/JSON.js","OpenLayers/Format/GeoJSON.js","OpenLayers/Format/WMC.js","OpenLayers/Format/WMC/v1.js","OpenLayers/Format/WMC/v1_0_0.js","OpenLayers/Format/WMC/v1_1_0.js","OpenLayers/Format/WMSCapabilities.js","OpenLayers/Format/WMSCapabilities/v1.js","OpenLayers/Format/WMSCapabilities/v1_1.js","OpenLayers/Format/WMSCapabilities/v1_1_0.js","OpenLayers/Format/WMSCapabilities/v1_1_1.js","OpenLayers/Format/WMSCapabilities/v1_3.js","OpenLayers/Format/WMSCapabilities/v1_3_0.js","OpenLayers/Format/WMSGetFeatureInfo.js","OpenLayers/Format/OWSCommon/v1_1_0.js","OpenLayers/Format/SOSCapabilities.js","OpenLayers/Format/SOSCapabilities/v1_0_0.js","OpenLayers/Format/SOSGetObservation.js","OpenLayers/Format/SOSGetFeatureOfInterest.js","OpenLayers/Layer/WFS.js","OpenLayers/Control/GetFeature.js","OpenLayers/Control/MouseToolbar.js","OpenLayers/Control/NavToolbar.js","OpenLayers/Control/PanPanel.js","OpenLayers/Control/Pan.js","OpenLayers/Control/ZoomIn.js","OpenLayers/Control/ZoomOut.js","OpenLayers/Control/ZoomPanel.js","OpenLayers/Control/EditingToolbar.js","OpenLayers/Lang.js","OpenLayers/Lang/en.js");
var k=navigator.userAgent;
var m=(k.match("MSIE")||k.match("Safari"));
if(m){var j=new Array(d.length)
}var e=OpenLayers._getScriptLocation()+"lib/";
for(var l=0,b=d.length;
l<b;
l++){if(m){j[l]="<script src='"+e+d[l]+"'><\/script>"
}else{var f=document.createElement("script");
f.src=e+d[l];
var a=document.getElementsByTagName("head").length?document.getElementsByTagName("head")[0]:document.body;
a.appendChild(f)
}}if(m){document.write(j.join(""))
}}})();
OpenLayers.VERSION_NUMBER="OpenLayers 2.9.1 -- $Revision: 10129 $";
OpenLayers.String={startsWith:function(b,a){return(b.indexOf(a)==0)
},contains:function(b,a){return(b.indexOf(a)!=-1)
},trim:function(a){return a.replace(/^\s\s*/,"").replace(/\s\s*$/,"")
},camelize:function(d){var b=d.split("-");
var f=b[0];
for(var a=1,e=b.length;
a<e;
a++){var c=b[a];
f+=c.charAt(0).toUpperCase()+c.substring(1)
}return f
},format:function(b,a,c){if(!a){a=window
}var d=function(f,g){var e;
var j=g.split(/\.+/);
for(var h=0;
h<j.length;
h++){if(h==0){e=a
}e=e[j[h]]
}if(typeof e=="function"){e=c?e.apply(null,c):e()
}if(typeof e=="undefined"){return"undefined"
}else{return e
}};
return b.replace(OpenLayers.String.tokenRegEx,d)
},tokenRegEx:/\$\{([\w.]+?)\}/g,numberRegEx:/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/,isNumeric:function(a){return OpenLayers.String.numberRegEx.test(a)
},numericIf:function(a){return OpenLayers.String.isNumeric(a)?parseFloat(a):a
}};
if(!String.prototype.startsWith){String.prototype.startsWith=function(a){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"OpenLayers.String.startsWith"}));
return OpenLayers.String.startsWith(this,a)
}
}if(!String.prototype.contains){String.prototype.contains=function(a){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"OpenLayers.String.contains"}));
return OpenLayers.String.contains(this,a)
}
}if(!String.prototype.trim){String.prototype.trim=function(){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"OpenLayers.String.trim"}));
return OpenLayers.String.trim(this)
}
}if(!String.prototype.camelize){String.prototype.camelize=function(){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"OpenLayers.String.camelize"}));
return OpenLayers.String.camelize(this)
}
}OpenLayers.Number={decimalSeparator:".",thousandsSeparator:",",limitSigDigs:function(b,a){var c=0;
if(a>0){c=parseFloat(b.toPrecision(a))
}return c
},format:function(b,i,f,h){i=(typeof i!="undefined")?i:0;
f=(typeof f!="undefined")?f:OpenLayers.Number.thousandsSeparator;
h=(typeof h!="undefined")?h:OpenLayers.Number.decimalSeparator;
if(i!=null){b=parseFloat(b.toFixed(i))
}var a=b.toString().split(".");
if(a.length==1&&i==null){i=0
}var c=a[0];
if(f){var d=/(-?[0-9]+)([0-9]{3})/;
while(d.test(c)){c=c.replace(d,"$1"+f+"$2")
}}var e;
if(i==0){e=c
}else{var g=a.length>1?a[1]:"0";
if(i!=null){g=g+new Array(i-g.length+1).join("0")
}e=c+h+g
}return e
}};
if(!Number.prototype.limitSigDigs){Number.prototype.limitSigDigs=function(a){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"OpenLayers.Number.limitSigDigs"}));
return OpenLayers.Number.limitSigDigs(this,a)
}
}OpenLayers.Function={bind:function(a,c){var b=Array.prototype.slice.apply(arguments,[2]);
return function(){var d=b.concat(Array.prototype.slice.apply(arguments,[0]));
return a.apply(c,d)
}
},bindAsEventListener:function(b,a){return function(c){return b.call(a,c||window.event)
}
},False:function(){return false
},True:function(){return true
}};
if(!Function.prototype.bind){Function.prototype.bind=function(){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"OpenLayers.Function.bind"}));
Array.prototype.unshift.apply(arguments,[this]);
return OpenLayers.Function.bind.apply(null,arguments)
}
}if(!Function.prototype.bindAsEventListener){Function.prototype.bindAsEventListener=function(a){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"OpenLayers.Function.bindAsEventListener"}));
return OpenLayers.Function.bindAsEventListener(this,a)
}
}OpenLayers.Array={filter:function(d,c,f){var a=[];
if(Array.prototype.filter){a=d.filter(c,f)
}else{var e=d.length;
if(typeof c!="function"){throw new TypeError()
}for(var g=0;
g<e;
g++){if(g in d){var b=d[g];
if(c.call(f,b,g,d)){a.push(b)
}}}}return a
}};
OpenLayers.Class=function(){var b=function(){if(arguments&&arguments[0]!=OpenLayers.Class.isPrototype){this.initialize.apply(this,arguments)
}};
var a={};
var d,f;
for(var c=0,e=arguments.length;
c<e;
++c){if(typeof arguments[c]=="function"){if(c==0&&e>1){f=arguments[c].prototype.initialize;
arguments[c].prototype.initialize=function(){};
a=new arguments[c];
if(f===undefined){delete arguments[c].prototype.initialize
}else{arguments[c].prototype.initialize=f
}}d=arguments[c].prototype
}else{d=arguments[c]
}OpenLayers.Util.extend(a,d)
}b.prototype=a;
return b
};
OpenLayers.Class.isPrototype=function(){};
OpenLayers.Class.create=function(){return function(){if(arguments&&arguments[0]!=OpenLayers.Class.isPrototype){this.initialize.apply(this,arguments)
}}
};
OpenLayers.Class.inherit=function(){var b=arguments[0];
var c=new b(OpenLayers.Class.isPrototype);
for(var a=1,d=arguments.length;
a<d;
a++){if(typeof arguments[a]=="function"){var e=arguments[a];
arguments[a]=new e(OpenLayers.Class.isPrototype)
}OpenLayers.Util.extend(c,arguments[a])
}return c
};
OpenLayers.Util={};
OpenLayers.Util.getElement=function(){var b=[];
for(var a=0,c=arguments.length;
a<c;
a++){var d=arguments[a];
if(typeof d=="string"){d=document.getElementById(d)
}if(arguments.length==1){return d
}b.push(d)
}return b
};
OpenLayers.Util.isElement=function(a){return !!(a&&a.nodeType===1)
};
if(typeof window.$==="undefined"){window.$=OpenLayers.Util.getElement
}OpenLayers.Util.extend=function(d,c){d=d||{};
if(c){for(var b in c){var a=c[b];
if(a!==undefined){d[b]=a
}}var e=typeof window.Event=="function"&&c instanceof window.Event;
if(!e&&c.hasOwnProperty&&c.hasOwnProperty("toString")){d.toString=c.toString
}}return d
};
OpenLayers.Util.removeItem=function(a,c){for(var b=a.length-1;
b>=0;
b--){if(a[b]==c){a.splice(b,1)
}}return a
};
OpenLayers.Util.clearArray=function(a){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"array = []"}));
a.length=0
};
OpenLayers.Util.indexOf=function(b,a){if(typeof b.indexOf=="function"){return b.indexOf(a)
}else{for(var d=0,c=b.length;
d<c;
d++){if(b[d]==a){return d
}}return -1
}};
OpenLayers.Util.modifyDOMElement=function(h,c,g,a,d,f,b,e){if(c){h.id=c
}if(g){h.style.left=g.x+"px";
h.style.top=g.y+"px"
}if(a){h.style.width=a.w+"px";
h.style.height=a.h+"px"
}if(d){h.style.position=d
}if(f){h.style.border=f
}if(b){h.style.overflow=b
}if(parseFloat(e)>=0&&parseFloat(e)<1){h.style.filter="alpha(opacity="+(e*100)+")";
h.style.opacity=e
}else{if(parseFloat(e)==1){h.style.filter="";
h.style.opacity=""
}}};
OpenLayers.Util.createDiv=function(i,h,g,e,d,b,a,f){var c=document.createElement("div");
if(e){c.style.backgroundImage="url("+e+")"
}if(!i){i=OpenLayers.Util.createUniqueID("OpenLayersDiv")
}if(!d){d="absolute"
}OpenLayers.Util.modifyDOMElement(c,i,h,g,d,b,a,f);
return c
};
OpenLayers.Util.createImage=function(i,g,f,d,c,b,e,h){var a=document.createElement("img");
if(!i){i=OpenLayers.Util.createUniqueID("OpenLayersDiv")
}if(!c){c="relative"
}OpenLayers.Util.modifyDOMElement(a,i,g,f,c,b,null,e);
if(h){a.style.display="none";
OpenLayers.Event.observe(a,"load",OpenLayers.Function.bind(OpenLayers.Util.onImageLoad,a));
OpenLayers.Event.observe(a,"error",OpenLayers.Function.bind(OpenLayers.Util.onImageLoadError,a))
}a.style.alt=i;
a.galleryImg="no";
if(d){a.src=d
}return a
};
OpenLayers.Util.setOpacity=function(b,a){OpenLayers.Util.modifyDOMElement(b,null,null,null,null,null,null,a)
};
OpenLayers.Util.onImageLoad=function(){if(!this.viewRequestID||(this.map&&this.viewRequestID==this.map.viewRequestID)){this.style.display=""
}OpenLayers.Element.removeClass(this,"olImageLoadError")
};
OpenLayers.IMAGE_RELOAD_ATTEMPTS=0;
OpenLayers.Util.onImageLoadError=function(){this._attempts=(this._attempts)?(this._attempts+1):1;
if(this._attempts<=OpenLayers.IMAGE_RELOAD_ATTEMPTS){var b=this.urls;
if(b&&b instanceof Array&&b.length>1){var c=this.src.toString();
var a,e;
for(e=0;
a=b[e];
e++){if(c.indexOf(a)!=-1){break
}}var d=Math.floor(b.length*Math.random());
var f=b[d];
e=0;
while(f==a&&e++<4){d=Math.floor(b.length*Math.random());
f=b[d]
}this.src=c.replace(a,f)
}else{this.src=this.src
}}else{OpenLayers.Element.addClass(this,"olImageLoadError")
}this.style.display=""
};
OpenLayers.Util.alphaHackNeeded=null;
OpenLayers.Util.alphaHack=function(){if(OpenLayers.Util.alphaHackNeeded==null){var b=navigator.appVersion.split("MSIE");
var c=parseFloat(b[1]);
var d=false;
try{d=!!(document.body.filters)
}catch(a){}OpenLayers.Util.alphaHackNeeded=(d&&(c>=5.5)&&(c<7))
}return OpenLayers.Util.alphaHackNeeded
};
OpenLayers.Util.modifyAlphaImageDiv=function(h,i,g,f,d,c,j,a,e){OpenLayers.Util.modifyDOMElement(h,i,g,f,c,null,null,e);
var b=h.childNodes[0];
if(d){b.src=d
}OpenLayers.Util.modifyDOMElement(b,h.id+"_innerImage",null,f,"relative",j);
if(OpenLayers.Util.alphaHack()){if(h.style.display!="none"){h.style.display="inline-block"
}if(a==null){a="scale"
}h.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+b.src+"', sizingMethod='"+a+"')";
if(parseFloat(h.style.opacity)>=0&&parseFloat(h.style.opacity)<1){h.style.filter+=" alpha(opacity="+h.style.opacity*100+")"
}b.style.filter="alpha(opacity=0)"
}};
OpenLayers.Util.createAlphaImageDiv=function(h,e,d,b,a,i,j,c,f){var g=OpenLayers.Util.createDiv();
var k=OpenLayers.Util.createImage(null,null,null,null,null,null,null,false);
g.appendChild(k);
if(f){k.style.display="none";
OpenLayers.Event.observe(k,"load",OpenLayers.Function.bind(OpenLayers.Util.onImageLoad,g));
OpenLayers.Event.observe(k,"error",OpenLayers.Function.bind(OpenLayers.Util.onImageLoadError,g))
}OpenLayers.Util.modifyAlphaImageDiv(g,h,e,d,b,a,i,j,c);
return g
};
OpenLayers.Util.upperCaseObject=function(c){var b={};
for(var a in c){b[a.toUpperCase()]=c[a]
}return b
};
OpenLayers.Util.applyDefaults=function(b,a){b=b||{};
var d=typeof window.Event=="function"&&a instanceof window.Event;
for(var c in a){if(b[c]===undefined||(!d&&a.hasOwnProperty&&a.hasOwnProperty(c)&&!b.hasOwnProperty(c))){b[c]=a[c]
}}if(!d&&a&&a.hasOwnProperty&&a.hasOwnProperty("toString")&&!b.hasOwnProperty("toString")){b.toString=a.toString
}return b
};
OpenLayers.Util.getParameterString=function(b){var a=[];
for(var g in b){var f=b[g];
if((f!=null)&&(typeof f!="function")){var c;
if(typeof f=="object"&&f.constructor==Array){var d=[];
var h;
for(var i=0,e=f.length;
i<e;
i++){h=f[i];
d.push(encodeURIComponent((h===null||h===undefined)?"":h))
}c=d.join(",")
}else{c=encodeURIComponent(f)
}a.push(encodeURIComponent(g)+"="+c)
}}return a.join("&")
};
OpenLayers.Util.urlAppend=function(c,d){var b=c;
if(d){var a=(c+" ").split(/[?&]/);
b+=(a.pop()===" "?d:a.length?"&"+d:"?"+d)
}return b
};
OpenLayers.ImgPath="";
OpenLayers.Util.getImagesLocation=function(){return OpenLayers.ImgPath||(OpenLayers._getScriptLocation()+"img/")
};
OpenLayers.Util.Try=function(){var b=null;
for(var a=0,d=arguments.length;
a<d;
a++){var f=arguments[a];
try{b=f();
break
}catch(c){}}return b
};
OpenLayers.Util.getNodes=function(a,c){var b=OpenLayers.Util.Try(function(){return OpenLayers.Util._getNodes(a.documentElement.childNodes,c)
},function(){return OpenLayers.Util._getNodes(a.childNodes,c)
});
return b
};
OpenLayers.Util._getNodes=function(a,c){var e=[];
for(var b=0,d=a.length;
b<d;
b++){if(a[b].nodeName==c){e.push(a[b])
}}return e
};
OpenLayers.Util.getTagText=function(a,b,d){var c=OpenLayers.Util.getNodes(a,b);
if(c&&(c.length>0)){if(!d){d=0
}if(c[d].childNodes.length>1){return c.childNodes[1].nodeValue
}else{if(c[d].childNodes.length==1){return c[d].firstChild.nodeValue
}}}else{return""
}};
OpenLayers.Util.getXmlNodeValue=function(a){var b=null;
OpenLayers.Util.Try(function(){b=a.text;
if(!b){b=a.textContent
}if(!b){b=a.firstChild.nodeValue
}},function(){b=a.textContent
});
return b
};
OpenLayers.Util.mouseLeft=function(b,a){var c=(b.relatedTarget)?b.relatedTarget:b.toElement;
while(c!=a&&c!=null){c=c.parentNode
}return(c!=a)
};
OpenLayers.Util.DEFAULT_PRECISION=14;
OpenLayers.Util.toFloat=function(b,a){if(a==null){a=OpenLayers.Util.DEFAULT_PRECISION
}var b;
if(a==0){b=parseFloat(b)
}else{b=parseFloat(parseFloat(b).toPrecision(a))
}return b
};
OpenLayers.Util.rad=function(a){return a*Math.PI/180
};
OpenLayers.Util.distVincenty=function(z,x){var J=6378137,G=6356752.3142,o=1/298.257223563;
var N=OpenLayers.Util.rad(x.lon-z.lon);
var w=Math.atan((1-o)*Math.tan(OpenLayers.Util.rad(z.lat)));
var u=Math.atan((1-o)*Math.tan(OpenLayers.Util.rad(x.lat)));
var M=Math.sin(w),F=Math.cos(w);
var I=Math.sin(u),E=Math.cos(u);
var h=N,c=2*Math.PI;
var g=20;
while(Math.abs(h-c)>1e-12&&--g>0){var D=Math.sin(h),y=Math.cos(h);
var K=Math.sqrt((E*D)*(E*D)+(F*I-M*E*y)*(F*I-M*E*y));
if(K==0){return 0
}var j=M*I+F*E*y;
var t=Math.atan2(K,j);
var H=Math.asin(F*E*D/K);
var l=Math.cos(H)*Math.cos(H);
var e=j-2*M*I/l;
var p=o/16*l*(4+o*(4-3*l));
c=h;
h=N+(1-p)*o*Math.sin(H)*(t+p*K*(e+p*j*(-1+2*e*e)))
}if(g==0){return NaN
}var m=l*(J*J-G*G)/(G*G);
var v=1+m/16384*(4096+m*(-768+m*(320-175*m)));
var q=m/1024*(256+m*(-128+m*(74-47*m)));
var i=q*K*(e+q/4*(j*(-1+2*e*e)-q/6*e*(-3+4*K*K)*(-3+4*e*e)));
var k=G*v*(t-i);
var r=k.toFixed(3)/1000;
return r
};
OpenLayers.Util.getParameters=function(h){h=h||window.location.href;
var g="";
if(OpenLayers.String.contains(h,"?")){var j=h.indexOf("?")+1;
var l=OpenLayers.String.contains(h,"#")?h.indexOf("#"):h.length;
g=h.substring(j,l)
}var f={};
var k=g.split(/[&;]/);
for(var b=0,c=k.length;
b<c;
++b){var a=k[b].split("=");
if(a[0]){var e=decodeURIComponent(a[0]);
var d=a[1]||"";
d=decodeURIComponent(d.replace(/\+/g," ")).split(",");
if(d.length==1){d=d[0]
}f[e]=d
}}return f
};
OpenLayers.Util.getArgs=function(a){OpenLayers.Console.warn(OpenLayers.i18n("methodDeprecated",{newMethod:"OpenLayers.Util.getParameters"}));
return OpenLayers.Util.getParameters(a)
};
OpenLayers.Util.lastSeqID=0;
OpenLayers.Util.createUniqueID=function(a){if(a==null){a="id_"
}OpenLayers.Util.lastSeqID+=1;
return a+OpenLayers.Util.lastSeqID
};
OpenLayers.INCHES_PER_UNIT={inches:1,ft:12,mi:63360,m:39.3701,km:39370.1,dd:4374754,yd:36};
OpenLayers.INCHES_PER_UNIT["in"]=OpenLayers.INCHES_PER_UNIT.inches;
OpenLayers.INCHES_PER_UNIT.degrees=OpenLayers.INCHES_PER_UNIT.dd;
OpenLayers.INCHES_PER_UNIT.nmi=1852*OpenLayers.INCHES_PER_UNIT.m;
OpenLayers.METERS_PER_INCH=0.0254000508001016;
OpenLayers.Util.extend(OpenLayers.INCHES_PER_UNIT,{Inch:OpenLayers.INCHES_PER_UNIT.inches,Meter:1/OpenLayers.METERS_PER_INCH,Foot:0.3048006096012192/OpenLayers.METERS_PER_INCH,IFoot:0.3048/OpenLayers.METERS_PER_INCH,ClarkeFoot:0.3047972651151/OpenLayers.METERS_PER_INCH,SearsFoot:0.30479947153867626/OpenLayers.METERS_PER_INCH,GoldCoastFoot:0.3047997101815088/OpenLayers.METERS_PER_INCH,IInch:0.0254/OpenLayers.METERS_PER_INCH,MicroInch:0.0000254/OpenLayers.METERS_PER_INCH,Mil:2.54e-8/OpenLayers.METERS_PER_INCH,Centimeter:0.01/OpenLayers.METERS_PER_INCH,Kilometer:1000/OpenLayers.METERS_PER_INCH,Yard:0.9144018288036576/OpenLayers.METERS_PER_INCH,SearsYard:0.914398414616029/OpenLayers.METERS_PER_INCH,IndianYard:0.9143985307444408/OpenLayers.METERS_PER_INCH,IndianYd37:0.91439523/OpenLayers.METERS_PER_INCH,IndianYd62:0.9143988/OpenLayers.METERS_PER_INCH,IndianYd75:0.9143985/OpenLayers.METERS_PER_INCH,IndianFoot:0.30479951/OpenLayers.METERS_PER_INCH,IndianFt37:0.30479841/OpenLayers.METERS_PER_INCH,IndianFt62:0.3047996/OpenLayers.METERS_PER_INCH,IndianFt75:0.3047995/OpenLayers.METERS_PER_INCH,Mile:1609.3472186944373/OpenLayers.METERS_PER_INCH,IYard:0.9144/OpenLayers.METERS_PER_INCH,IMile:1609.344/OpenLayers.METERS_PER_INCH,NautM:1852/OpenLayers.METERS_PER_INCH,"Lat-66":110943.31648893273/OpenLayers.METERS_PER_INCH,"Lat-83":110946.25736872235/OpenLayers.METERS_PER_INCH,Decimeter:0.1/OpenLayers.METERS_PER_INCH,Millimeter:0.001/OpenLayers.METERS_PER_INCH,Dekameter:10/OpenLayers.METERS_PER_INCH,Decameter:10/OpenLayers.METERS_PER_INCH,Hectometer:100/OpenLayers.METERS_PER_INCH,GermanMeter:1.0000135965/OpenLayers.METERS_PER_INCH,CaGrid:0.999738/OpenLayers.METERS_PER_INCH,ClarkeChain:20.1166194976/OpenLayers.METERS_PER_INCH,GunterChain:20.11684023368047/OpenLayers.METERS_PER_INCH,BenoitChain:20.116782494375872/OpenLayers.METERS_PER_INCH,SearsChain:20.11676512155/OpenLayers.METERS_PER_INCH,ClarkeLink:0.201166194976/OpenLayers.METERS_PER_INCH,GunterLink:0.2011684023368047/OpenLayers.METERS_PER_INCH,BenoitLink:0.20116782494375873/OpenLayers.METERS_PER_INCH,SearsLink:0.2011676512155/OpenLayers.METERS_PER_INCH,Rod:5.02921005842012/OpenLayers.METERS_PER_INCH,IntnlChain:20.1168/OpenLayers.METERS_PER_INCH,IntnlLink:0.201168/OpenLayers.METERS_PER_INCH,Perch:5.02921005842012/OpenLayers.METERS_PER_INCH,Pole:5.02921005842012/OpenLayers.METERS_PER_INCH,Furlong:201.1684023368046/OpenLayers.METERS_PER_INCH,Rood:3.778266898/OpenLayers.METERS_PER_INCH,CapeFoot:0.3047972615/OpenLayers.METERS_PER_INCH,Brealey:375/OpenLayers.METERS_PER_INCH,ModAmFt:0.304812252984506/OpenLayers.METERS_PER_INCH,Fathom:1.8288/OpenLayers.METERS_PER_INCH,"NautM-UK":1853.184/OpenLayers.METERS_PER_INCH,"50kilometers":50000/OpenLayers.METERS_PER_INCH,"150kilometers":150000/OpenLayers.METERS_PER_INCH});
OpenLayers.Util.extend(OpenLayers.INCHES_PER_UNIT,{mm:OpenLayers.INCHES_PER_UNIT.Meter/1000,cm:OpenLayers.INCHES_PER_UNIT.Meter/100,dm:OpenLayers.INCHES_PER_UNIT.Meter*100,km:OpenLayers.INCHES_PER_UNIT.Meter*1000,kmi:OpenLayers.INCHES_PER_UNIT.nmi,fath:OpenLayers.INCHES_PER_UNIT.Fathom,ch:OpenLayers.INCHES_PER_UNIT.IntnlChain,link:OpenLayers.INCHES_PER_UNIT.IntnlLink,"us-in":OpenLayers.INCHES_PER_UNIT.inches,"us-ft":OpenLayers.INCHES_PER_UNIT.Foot,"us-yd":OpenLayers.INCHES_PER_UNIT.Yard,"us-ch":OpenLayers.INCHES_PER_UNIT.GunterChain,"us-mi":OpenLayers.INCHES_PER_UNIT.Mile,"ind-yd":OpenLayers.INCHES_PER_UNIT.IndianYd37,"ind-ft":OpenLayers.INCHES_PER_UNIT.IndianFt37,"ind-ch":20.11669506/OpenLayers.METERS_PER_INCH});
OpenLayers.DOTS_PER_INCH=72;
OpenLayers.Util.normalizeScale=function(b){var a=(b>1)?(1/b):b;
return a
};
OpenLayers.Util.getResolutionFromScale=function(b,c){var d;
if(b){if(c==null){c="degrees"
}var a=OpenLayers.Util.normalizeScale(b);
d=1/(a*OpenLayers.INCHES_PER_UNIT[c]*OpenLayers.DOTS_PER_INCH)
}return d
};
OpenLayers.Util.getScaleFromResolution=function(c,b){if(b==null){b="degrees"
}var a=c*OpenLayers.INCHES_PER_UNIT[b]*OpenLayers.DOTS_PER_INCH;
return a
};
OpenLayers.Util.safeStopPropagation=function(a){OpenLayers.Event.stop(a,true)
};
OpenLayers.Util.pagePosition=function(c){var f=0,b=0;
var g=c;
var d=c;
while(g){if(g==document.body){if(OpenLayers.Element.getStyle(d,"position")=="absolute"){break
}}f+=g.offsetTop||0;
b+=g.offsetLeft||0;
d=g;
try{g=g.offsetParent
}catch(a){OpenLayers.Console.error(OpenLayers.i18n("pagePositionFailed",{elemId:g.id}));
break
}}g=c;
while(g){f-=g.scrollTop||0;
b-=g.scrollLeft||0;
g=g.parentNode
}return[b,f]
};
OpenLayers.Util.isEquivalentUrl=function(d,c,a){a=a||{};
OpenLayers.Util.applyDefaults(a,{ignoreCase:true,ignorePort80:true,ignoreHash:true});
var f=OpenLayers.Util.createUrlObject(d,a);
var e=OpenLayers.Util.createUrlObject(c,a);
for(var b in f){if(b!=="args"){if(f[b]!=e[b]){return false
}}}for(var b in f.args){if(f.args[b]!=e.args[b]){return false
}delete e.args[b]
}for(var b in e.args){return false
}return true
};
OpenLayers.Util.createUrlObject=function(j,h){h=h||{};
if(!(/^\w+:\/\//).test(j)){var d=window.location;
var b=d.port?":"+d.port:"";
var e=d.protocol+"//"+d.host.split(":").shift()+b;
if(j.indexOf("/")===0){j=e+j
}else{var c=d.pathname.split("/");
c.pop();
j=e+c.join("/")+"/"+j
}}if(h.ignoreCase){j=j.toLowerCase()
}var f=document.createElement("a");
f.href=j;
var k={};
k.host=f.host.split(":").shift();
k.protocol=f.protocol;
if(h.ignorePort80){k.port=(f.port=="80"||f.port=="0")?"":f.port
}else{k.port=(f.port==""||f.port=="0")?"80":f.port
}k.hash=(h.ignoreHash||f.hash==="#")?"":f.hash;
var i=f.search;
if(!i){var g=j.indexOf("?");
i=(g!=-1)?j.substr(g):""
}k.args=OpenLayers.Util.getParameters(i);
k.pathname=(f.pathname.charAt(0)=="/")?f.pathname:"/"+f.pathname;
return k
};
OpenLayers.Util.removeTail=function(d){var a=null;
var c=d.indexOf("?");
var b=d.indexOf("#");
if(c==-1){a=(b!=-1)?d.substr(0,b):d
}else{a=(b!=-1)?d.substr(0,Math.min(c,b)):d.substr(0,c)
}return a
};
OpenLayers.Util.getBrowserName=function(){var b="";
var a=navigator.userAgent.toLowerCase();
if(a.indexOf("opera")!=-1){b="opera"
}else{if(a.indexOf("msie")!=-1){b="msie"
}else{if(a.indexOf("safari")!=-1){b="safari"
}else{if(a.indexOf("mozilla")!=-1){if(a.indexOf("firefox")!=-1){b="firefox"
}else{b="mozilla"
}}}}}return b
};
OpenLayers.Util.getRenderedDimensions=function(f,d,e){var q,k;
var b=document.createElement("div");
b.style.visibility="hidden";
var c=(e&&e.containerElement)?e.containerElement:document.body;
if(d){if(d.w){q=d.w;
b.style.width=q+"px"
}else{if(d.h){k=d.h;
b.style.height=k+"px"
}}}if(e&&e.displayClass){b.className=e.displayClass
}var m=document.createElement("div");
m.innerHTML=f;
m.style.overflow="visible";
if(m.childNodes){for(var j=0,g=m.childNodes.length;
j<g;
j++){if(!m.childNodes[j].style){continue
}m.childNodes[j].style.overflow="visible"
}}b.appendChild(m);
c.appendChild(b);
var a=false;
var p=b.parentNode;
while(p&&p.tagName.toLowerCase()!="body"){var o=OpenLayers.Element.getStyle(p,"position");
if(o=="absolute"){a=true;
break
}else{if(o&&o!="static"){break
}}p=p.parentNode
}if(!a){b.style.position="absolute"
}if(!q){q=parseInt(m.scrollWidth);
b.style.width=q+"px"
}if(!k){k=parseInt(m.scrollHeight)
}b.removeChild(m);
c.removeChild(b);
return new OpenLayers.Size(q,k)
};
OpenLayers.Util.getScrollbarWidth=function(){var a=OpenLayers.Util._scrollbarWidth;
if(a==null){var c=null;
var b=null;
var d=0;
var e=0;
c=document.createElement("div");
c.style.position="absolute";
c.style.top="-1000px";
c.style.left="-1000px";
c.style.width="100px";
c.style.height="50px";
c.style.overflow="hidden";
b=document.createElement("div");
b.style.width="100%";
b.style.height="200px";
c.appendChild(b);
document.body.appendChild(c);
d=b.offsetWidth;
c.style.overflow="scroll";
e=b.offsetWidth;
document.body.removeChild(document.body.lastChild);
OpenLayers.Util._scrollbarWidth=(d-e);
a=OpenLayers.Util._scrollbarWidth
}return a
};
OpenLayers.Util.getFormattedLonLat=function(g,a,d){if(!d){d="dms"
}var c=Math.abs(g);
var h=Math.floor(c);
var i=(c-h)/(1/60);
var b=i;
i=Math.floor(i);
var f=(b-i)/(1/60);
f=Math.round(f*10);
f/=10;
if(h<10){h="0"+h
}var e=h+" ";
if(d.indexOf("dm")>=0){if(i<10){i="0"+i
}e+=i+"'";
if(d.indexOf("dms")>=0){if(f<10){f="0"+f
}e+=f+'"'
}}if(a=="lon"){e+=g<0?OpenLayers.i18n("W"):OpenLayers.i18n("E")
}else{e+=g<0?OpenLayers.i18n("S"):OpenLayers.i18n("N")
}return e
};
OpenLayers.Rico=new Object();
OpenLayers.Rico.Corner={round:function(b,d){b=OpenLayers.Util.getElement(b);
this._setOptions(d);
var c=this.options.color;
if(this.options.color=="fromElement"){c=this._background(b)
}var a=this.options.bgColor;
if(this.options.bgColor=="fromParent"){a=this._background(b.offsetParent)
}this._roundCornersImpl(b,c,a)
},changeColor:function(a,d){a.style.backgroundColor=d;
var c=a.parentNode.getElementsByTagName("span");
for(var b=0;
b<c.length;
b++){c[b].style.backgroundColor=d
}},changeOpacity:function(a,d){var b=d;
var e="alpha(opacity="+d*100+")";
a.style.opacity=b;
a.style.filter=e;
var f=a.parentNode.getElementsByTagName("span");
for(var c=0;
c<f.length;
c++){f[c].style.opacity=b;
f[c].style.filter=e
}},reRound:function(b,a){var d=b.parentNode.childNodes[0];
var c=b.parentNode.childNodes[2];
b.parentNode.removeChild(d);
b.parentNode.removeChild(c);
this.round(b.parentNode,a)
},_roundCornersImpl:function(a,b,c){if(this.options.border){this._renderBorder(a,c)
}if(this._isTopRounded()){this._roundTopCorners(a,b,c)
}if(this._isBottomRounded()){this._roundBottomCorners(a,b,c)
}},_renderBorder:function(b,c){var f="1px solid "+this._borderColor(c);
var e="border-left: "+f;
var d="border-right: "+f;
var a="style='"+e+";"+d+"'";
b.innerHTML="<div "+a+">"+b.innerHTML+"</div>"
},_roundTopCorners:function(a,d,c){var b=this._createCorner(c);
for(var e=0;
e<this.options.numSlices;
e++){b.appendChild(this._createCornerSlice(d,c,e,"top"))
}a.style.paddingTop=0;
a.insertBefore(b,a.firstChild)
},_roundBottomCorners:function(a,d,c){var b=this._createCorner(c);
for(var e=(this.options.numSlices-1);
e>=0;
e--){b.appendChild(this._createCornerSlice(d,c,e,"bottom"))
}a.style.paddingBottom=0;
a.appendChild(b)
},_createCorner:function(b){var a=document.createElement("div");
a.style.backgroundColor=(this._isTransparent()?"transparent":b);
return a
},_createCornerSlice:function(g,a,d,e){var b=document.createElement("span");
var f=b.style;
f.backgroundColor=g;
f.display="block";
f.height="1px";
f.overflow="hidden";
f.fontSize="1px";
var c=this._borderColor(g,a);
if(this.options.border&&d==0){f.borderTopStyle="solid";
f.borderTopWidth="1px";
f.borderLeftWidth="0px";
f.borderRightWidth="0px";
f.borderBottomWidth="0px";
f.height="0px";
f.borderColor=c
}else{if(c){f.borderColor=c;
f.borderStyle="solid";
f.borderWidth="0px 1px"
}}if(!this.options.compact&&(d==(this.options.numSlices-1))){f.height="2px"
}this._setMargin(b,d,e);
this._setBorder(b,d,e);
return b
},_setOptions:function(a){this.options={corners:"all",color:"fromElement",bgColor:"fromParent",blend:true,border:false,compact:false};
OpenLayers.Util.extend(this.options,a||{});
this.options.numSlices=this.options.compact?2:4;
if(this._isTransparent()){this.options.blend=false
}},_whichSideTop:function(){if(this._hasString(this.options.corners,"all","top")){return""
}if(this.options.corners.indexOf("tl")>=0&&this.options.corners.indexOf("tr")>=0){return""
}if(this.options.corners.indexOf("tl")>=0){return"left"
}else{if(this.options.corners.indexOf("tr")>=0){return"right"
}}return""
},_whichSideBottom:function(){if(this._hasString(this.options.corners,"all","bottom")){return""
}if(this.options.corners.indexOf("bl")>=0&&this.options.corners.indexOf("br")>=0){return""
}if(this.options.corners.indexOf("bl")>=0){return"left"
}else{if(this.options.corners.indexOf("br")>=0){return"right"
}}return""
},_borderColor:function(a,b){if(a=="transparent"){return b
}else{if(this.options.border){return this.options.border
}else{if(this.options.blend){return this._blend(b,a)
}else{return""
}}}},_setMargin:function(b,c,e){var a=this._marginSize(c);
var d=e=="top"?this._whichSideTop():this._whichSideBottom();
if(d=="left"){b.style.marginLeft=a+"px";
b.style.marginRight="0px"
}else{if(d=="right"){b.style.marginRight=a+"px";
b.style.marginLeft="0px"
}else{b.style.marginLeft=a+"px";
b.style.marginRight=a+"px"
}}},_setBorder:function(b,c,e){var a=this._borderSize(c);
var d=e=="top"?this._whichSideTop():this._whichSideBottom();
if(d=="left"){b.style.borderLeftWidth=a+"px";
b.style.borderRightWidth="0px"
}else{if(d=="right"){b.style.borderRightWidth=a+"px";
b.style.borderLeftWidth="0px"
}else{b.style.borderLeftWidth=a+"px";
b.style.borderRightWidth=a+"px"
}}if(this.options.border!=false){b.style.borderLeftWidth=a+"px";
b.style.borderRightWidth=a+"px"
}},_marginSize:function(c){if(this._isTransparent()){return 0
}var b=[5,3,2,1];
var d=[3,2,1,0];
var a=[2,1];
var e=[1,0];
if(this.options.compact&&this.options.blend){return e[c]
}else{if(this.options.compact){return a[c]
}else{if(this.options.blend){return d[c]
}else{return b[c]
}}}},_borderSize:function(c){var b=[5,3,2,1];
var e=[2,1,1,1];
var d=[1,0];
var a=[0,2,0,0];
if(this.options.compact&&(this.options.blend||this._isTransparent())){return 1
}else{if(this.options.compact){return d[c]
}else{if(this.options.blend){return e[c]
}else{if(this.options.border){return a[c]
}else{if(this._isTransparent()){return b[c]
}}}}}return 0
},_hasString:function(b){for(var a=1;
a<arguments.length;
a++){if(b.indexOf(arguments[a])>=0){return true
}}return false
},_blend:function(a,b){var c=OpenLayers.Rico.Color.createFromHex(a);
c.blend(OpenLayers.Rico.Color.createFromHex(b));
return c
},_background:function(a){try{return OpenLayers.Rico.Color.createColorFromBackground(a).asHex()
}catch(b){return"#ffffff"
}},_isTransparent:function(){return this.options.color=="transparent"
},_isTopRounded:function(){return this._hasString(this.options.corners,"all","top","tl","tr")
},_isBottomRounded:function(){return this._hasString(this.options.corners,"all","bottom","bl","br")
},_hasSingleTextChild:function(a){return a.childNodes.length==1&&a.childNodes[0].nodeType==3
}};
(function(){if(window.google&&google.gears){return
}var a=null;
if(typeof GearsFactory!="undefined"){a=new GearsFactory()
}else{try{a=new ActiveXObject("Gears.Factory");
if(a.getBuildInfo().indexOf("ie_mobile")!=-1){a.privateSetGlobalObject(this)
}}catch(b){if((typeof navigator.mimeTypes!="undefined")&&navigator.mimeTypes["application/x-googlegears"]){a=document.createElement("object");
a.style.display="none";
a.width=0;
a.height=0;
a.type="application/x-googlegears";
document.documentElement.appendChild(a)
}}}if(!a){return
}if(!window.google){google={}
}if(!google.gears){google.gears={factory:a}
}})();
OpenLayers.Element={visible:function(a){return OpenLayers.Util.getElement(a).style.display!="none"
},toggle:function(){for(var a=0,c=arguments.length;
a<c;
a++){var d=OpenLayers.Util.getElement(arguments[a]);
var b=OpenLayers.Element.visible(d)?"hide":"show";
OpenLayers.Element[b](d)
}},hide:function(){for(var a=0,b=arguments.length;
a<b;
a++){var c=OpenLayers.Util.getElement(arguments[a]);
c.style.display="none"
}},show:function(){for(var a=0,b=arguments.length;
a<b;
a++){var c=OpenLayers.Util.getElement(arguments[a]);
c.style.display=""
}},remove:function(a){a=OpenLayers.Util.getElement(a);
a.parentNode.removeChild(a)
},getHeight:function(a){a=OpenLayers.Util.getElement(a);
return a.offsetHeight
},getDimensions:function(g){g=OpenLayers.Util.getElement(g);
if(OpenLayers.Element.getStyle(g,"display")!="none"){return{width:g.offsetWidth,height:g.offsetHeight}
}var f=g.style;
var c=f.visibility;
var a=f.position;
var e=f.display;
f.visibility="hidden";
f.position="absolute";
f.display="";
var d=g.clientWidth;
var b=g.clientHeight;
f.display=e;
f.position=a;
f.visibility=c;
return{width:d,height:b}
},hasClass:function(c,b){var a=c.className;
return(!!a&&new RegExp("(^|\\s)"+b+"(\\s|$)").test(a))
},addClass:function(b,a){if(!OpenLayers.Element.hasClass(b,a)){b.className+=(b.className?" ":"")+a
}return b
},removeClass:function(c,b){var a=c.className;
if(a){c.className=OpenLayers.String.trim(a.replace(new RegExp("(^|\\s+)"+b+"(\\s+|$)")," "))
}return c
},toggleClass:function(b,a){if(OpenLayers.Element.hasClass(b,a)){OpenLayers.Element.removeClass(b,a)
}else{OpenLayers.Element.addClass(b,a)
}return b
},getStyle:function(a,b){a=OpenLayers.Util.getElement(a);
var c=null;
if(a&&a.style){c=a.style[OpenLayers.String.camelize(b)];
if(!c){if(document.defaultView&&document.defaultView.getComputedStyle){var e=document.defaultView.getComputedStyle(a,null);
c=e?e.getPropertyValue(b):null
}else{if(a.currentStyle){c=a.currentStyle[OpenLayers.String.camelize(b)]
}}}var d=["left","top","right","bottom"];
if(window.opera&&(OpenLayers.Util.indexOf(d,b)!=-1)&&(OpenLayers.Element.getStyle(a,"position")=="static")){c="auto"
}}return c=="auto"?null:c
}};
OpenLayers.Size=OpenLayers.Class({w:0,h:0,initialize:function(a,b){this.w=parseFloat(a);
this.h=parseFloat(b)
},toString:function(){return("w="+this.w+",h="+this.h)
},clone:function(){return new OpenLayers.Size(this.w,this.h)
},equals:function(b){var a=false;
if(b!=null){a=((this.w==b.w&&this.h==b.h)||(isNaN(this.w)&&isNaN(this.h)&&isNaN(b.w)&&isNaN(b.h)))
}return a
},CLASS_NAME:"OpenLayers.Size"});
OpenLayers.Console={log:function(){},debug:function(){},info:function(){},warn:function(){},error:function(){},userError:function(a){alert(a)
},assert:function(){},dir:function(){},dirxml:function(){},trace:function(){},group:function(){},groupEnd:function(){},time:function(){},timeEnd:function(){},profile:function(){},profileEnd:function(){},count:function(){},CLASS_NAME:"OpenLayers.Console"};
(function(){var c=document.getElementsByTagName("script");
for(var a=0,b=c.length;
a<b;
++a){if(c[a].src.indexOf("firebug.js")!=-1){if(console){OpenLayers.Util.extend(OpenLayers.Console,console);
break
}}}})();
OpenLayers.Icon=OpenLayers.Class({url:null,size:null,offset:null,calculateOffset:null,imageDiv:null,px:null,initialize:function(d,e,b,a){this.url=d;
this.size=(e)?e:new OpenLayers.Size(20,20);
this.offset=b?b:new OpenLayers.Pixel(-(this.size.w/2),-(this.size.h/2));
this.calculateOffset=a;
var c=OpenLayers.Util.createUniqueID("OL_Icon_");
this.imageDiv=OpenLayers.Util.createAlphaImageDiv(c)
},destroy:function(){this.erase();
OpenLayers.Event.stopObservingElement(this.imageDiv.firstChild);
this.imageDiv.innerHTML="";
this.imageDiv=null
},clone:function(){return new OpenLayers.Icon(this.url,this.size,this.offset,this.calculateOffset)
},setSize:function(a){if(a!=null){this.size=a
}this.draw()
},setUrl:function(a){if(a!=null){this.url=a
}this.draw()
},draw:function(a){OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv,null,null,this.size,this.url,"absolute");
this.moveTo(a);
return this.imageDiv
},erase:function(){if(this.imageDiv!=null&&this.imageDiv.parentNode!=null){OpenLayers.Element.remove(this.imageDiv)
}},setOpacity:function(a){OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv,null,null,null,null,null,null,null,a)
},moveTo:function(a){if(a!=null){this.px=a
}if(this.imageDiv!=null){if(this.px==null){this.display(false)
}else{if(this.calculateOffset){this.offset=this.calculateOffset(this.size)
}var b=this.px.offset(this.offset);
OpenLayers.Util.modifyAlphaImageDiv(this.imageDiv,null,b)
}}},display:function(a){this.imageDiv.style.display=(a)?"":"none"
},isDrawn:function(){var a=(this.imageDiv&&this.imageDiv.parentNode&&(this.imageDiv.parentNode.nodeType!=11));
return a
},CLASS_NAME:"OpenLayers.Icon"});
OpenLayers.Popup=OpenLayers.Class({events:null,id:"",lonlat:null,div:null,contentSize:null,size:null,contentHTML:null,backgroundColor:"",opacity:"",border:"",contentDiv:null,groupDiv:null,closeDiv:null,autoSize:false,minSize:null,maxSize:null,displayClass:"olPopup",contentDisplayClass:"olPopupContent",padding:0,disableFirefoxOverflowHack:false,fixPadding:function(){if(typeof this.padding=="number"){this.padding=new OpenLayers.Bounds(this.padding,this.padding,this.padding,this.padding)
}},panMapIfOutOfView:false,keepInMap:false,closeOnMove:false,map:null,initialize:function(d,g,c,f,b,a){if(d==null){d=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")
}this.id=d;
this.lonlat=g;
this.contentSize=(c!=null)?c:new OpenLayers.Size(OpenLayers.Popup.WIDTH,OpenLayers.Popup.HEIGHT);
if(f!=null){this.contentHTML=f
}this.backgroundColor=OpenLayers.Popup.COLOR;
this.opacity=OpenLayers.Popup.OPACITY;
this.border=OpenLayers.Popup.BORDER;
this.div=OpenLayers.Util.createDiv(this.id,null,null,null,null,null,"hidden");
this.div.className=this.displayClass;
var e=this.id+"_GroupDiv";
this.groupDiv=OpenLayers.Util.createDiv(e,null,null,null,"relative",null,"hidden");
var d=this.div.id+"_contentDiv";
this.contentDiv=OpenLayers.Util.createDiv(d,null,this.contentSize.clone(),null,"relative");
this.contentDiv.className=this.contentDisplayClass;
this.groupDiv.appendChild(this.contentDiv);
this.div.appendChild(this.groupDiv);
if(b){this.addCloseBox(a)
}this.registerEvents()
},destroy:function(){this.id=null;
this.lonlat=null;
this.size=null;
this.contentHTML=null;
this.backgroundColor=null;
this.opacity=null;
this.border=null;
if(this.closeOnMove&&this.map){this.map.events.unregister("movestart",this,this.hide)
}this.events.destroy();
this.events=null;
if(this.closeDiv){OpenLayers.Event.stopObservingElement(this.closeDiv);
this.groupDiv.removeChild(this.closeDiv)
}this.closeDiv=null;
this.div.removeChild(this.groupDiv);
this.groupDiv=null;
if(this.map!=null){this.map.removePopup(this)
}this.map=null;
this.div=null;
this.autoSize=null;
this.minSize=null;
this.maxSize=null;
this.padding=null;
this.panMapIfOutOfView=null
},draw:function(a){if(a==null){if((this.lonlat!=null)&&(this.map!=null)){a=this.map.getLayerPxFromLonLat(this.lonlat)
}}if(this.closeOnMove){this.map.events.register("movestart",this,this.hide)
}if(!this.disableFirefoxOverflowHack&&OpenLayers.Util.getBrowserName()=="firefox"){this.map.events.register("movestart",this,function(){var b=document.defaultView.getComputedStyle(this.contentDiv,null);
var c=b.getPropertyValue("overflow");
if(c!="hidden"){this.contentDiv._oldOverflow=c;
this.contentDiv.style.overflow="hidden"
}});
this.map.events.register("moveend",this,function(){var b=this.contentDiv._oldOverflow;
if(b){this.contentDiv.style.overflow=b;
this.contentDiv._oldOverflow=null
}})
}this.moveTo(a);
if(!this.autoSize&&!this.size){this.setSize(this.contentSize)
}this.setBackgroundColor();
this.setOpacity();
this.setBorder();
this.setContentHTML();
if(this.panMapIfOutOfView){this.panIntoView()
}return this.div
},updatePosition:function(){if((this.lonlat)&&(this.map)){var a=this.map.getLayerPxFromLonLat(this.lonlat);
if(a){this.moveTo(a)
}}},moveTo:function(a){if((a!=null)&&(this.div!=null)){this.div.style.left=a.x+"px";
this.div.style.top=a.y+"px"
}},visible:function(){return OpenLayers.Element.visible(this.div)
},toggle:function(){if(this.visible()){this.hide()
}else{this.show()
}},show:function(){OpenLayers.Element.show(this.div);
if(this.panMapIfOutOfView){this.panIntoView()
}},hide:function(){OpenLayers.Element.hide(this.div)
},setSize:function(a){this.size=a.clone();
var e=this.getContentDivPadding();
var d=e.left+e.right;
var c=e.top+e.bottom;
this.fixPadding();
d+=this.padding.left+this.padding.right;
c+=this.padding.top+this.padding.bottom;
if(this.closeDiv){var b=parseInt(this.closeDiv.style.width);
d+=b+e.right
}this.size.w+=d;
this.size.h+=c;
if(OpenLayers.Util.getBrowserName()=="msie"){this.contentSize.w+=e.left+e.right;
this.contentSize.h+=e.bottom+e.top
}if(this.div!=null){this.div.style.width=this.size.w+"px";
this.div.style.height=this.size.h+"px"
}if(this.contentDiv!=null){this.contentDiv.style.width=a.w+"px";
this.contentDiv.style.height=a.h+"px"
}},updateSize:function(){var d="<div class='"+this.contentDisplayClass+"'>"+this.contentDiv.innerHTML+"</div>";
var g=(this.map)?this.map.layerContainerDiv:document.body;
var h=OpenLayers.Util.getRenderedDimensions(d,null,{displayClass:this.displayClass,containerElement:g});
var f=this.getSafeContentSize(h);
var e=null;
if(f.equals(h)){e=h
}else{var a=new OpenLayers.Size();
a.w=(f.w<h.w)?f.w:null;
a.h=(f.h<h.h)?f.h:null;
if(a.w&&a.h){e=f
}else{var c=OpenLayers.Util.getRenderedDimensions(d,a,{displayClass:this.contentDisplayClass,containerElement:g});
var b=OpenLayers.Element.getStyle(this.contentDiv,"overflow");
if((b!="hidden")&&(c.equals(f))){var i=OpenLayers.Util.getScrollbarWidth();
if(a.w){c.h+=i
}else{c.w+=i
}}e=this.getSafeContentSize(c)
}}this.setSize(e)
},setBackgroundColor:function(a){if(a!=undefined){this.backgroundColor=a
}if(this.div!=null){this.div.style.backgroundColor=this.backgroundColor
}},setOpacity:function(a){if(a!=undefined){this.opacity=a
}if(this.div!=null){this.div.style.opacity=this.opacity;
this.div.style.filter="alpha(opacity="+this.opacity*100+")"
}},setBorder:function(a){if(a!=undefined){this.border=a
}if(this.div!=null){this.div.style.border=this.border
}},setContentHTML:function(a){if(a!=null){this.contentHTML=a
}if((this.contentDiv!=null)&&(this.contentHTML!=null)&&(this.contentHTML!=this.contentDiv.innerHTML)){this.contentDiv.innerHTML=this.contentHTML;
if(this.autoSize){this.registerImageListeners();
this.updateSize()
}}},registerImageListeners:function(){var d=function(){this.popup.updateSize();
if(this.popup.visible()&&this.popup.panMapIfOutOfView){this.popup.panIntoView()
}OpenLayers.Event.stopObserving(this.img,"load",this.img._onImageLoad)
};
var f=this.contentDiv.getElementsByTagName("img");
for(var c=0,e=f.length;
c<e;
c++){var a=f[c];
if(a.width==0||a.height==0){var b={popup:this,img:a};
a._onImgLoad=OpenLayers.Function.bind(d,b);
OpenLayers.Event.observe(a,"load",a._onImgLoad)
}}},getSafeContentSize:function(f){var j=f.clone();
var d=this.getContentDivPadding();
var e=d.left+d.right;
var b=d.top+d.bottom;
this.fixPadding();
e+=this.padding.left+this.padding.right;
b+=this.padding.top+this.padding.bottom;
if(this.closeDiv){var i=parseInt(this.closeDiv.style.width);
e+=i+d.right
}if(this.minSize){j.w=Math.max(j.w,(this.minSize.w-e));
j.h=Math.max(j.h,(this.minSize.h-b))
}if(this.maxSize){j.w=Math.min(j.w,(this.maxSize.w-e));
j.h=Math.min(j.h,(this.maxSize.h-b))
}if(this.map&&this.map.size){var a=0,k=0;
if(this.keepInMap&&!this.panMapIfOutOfView){var c=this.map.getPixelFromLonLat(this.lonlat);
switch(this.relativePosition){case"tr":a=c.x;
k=this.map.size.h-c.y;
break;
case"tl":a=this.map.size.w-c.x;
k=this.map.size.h-c.y;
break;
case"bl":a=this.map.size.w-c.x;
k=c.y;
break;
case"br":a=c.x;
k=c.y;
break;
default:a=c.x;
k=this.map.size.h-c.y;
break
}}var g=this.map.size.h-this.map.paddingForPopups.top-this.map.paddingForPopups.bottom-b-k;
var h=this.map.size.w-this.map.paddingForPopups.left-this.map.paddingForPopups.right-e-a;
j.w=Math.min(j.w,h);
j.h=Math.min(j.h,g)
}return j
},getContentDivPadding:function(){var a=this._contentDivPadding;
if(!a){if(this.div.parentNode==null){this.div.style.display="none";
document.body.appendChild(this.div)
}a=new OpenLayers.Bounds(OpenLayers.Element.getStyle(this.contentDiv,"padding-left"),OpenLayers.Element.getStyle(this.contentDiv,"padding-bottom"),OpenLayers.Element.getStyle(this.contentDiv,"padding-right"),OpenLayers.Element.getStyle(this.contentDiv,"padding-top"));
this._contentDivPadding=a;
if(this.div.parentNode==document.body){document.body.removeChild(this.div);
this.div.style.display=""
}}return a
},addCloseBox:function(a){this.closeDiv=OpenLayers.Util.createDiv(this.id+"_close",null,new OpenLayers.Size(17,17));
this.closeDiv.className="olPopupCloseBox";
var c=this.getContentDivPadding();
this.closeDiv.style.right=c.right+"px";
this.closeDiv.style.top=c.top+"px";
this.groupDiv.appendChild(this.closeDiv);
var b=a||function(d){this.hide();
OpenLayers.Event.stop(d)
};
OpenLayers.Event.observe(this.closeDiv,"click",OpenLayers.Function.bindAsEventListener(b,this))
},panIntoView:function(){var c=this.map.getSize();
var b=this.map.getViewPortPxFromLayerPx(new OpenLayers.Pixel(parseInt(this.div.style.left),parseInt(this.div.style.top)));
var a=b.clone();
if(b.x<this.map.paddingForPopups.left){a.x=this.map.paddingForPopups.left
}else{if((b.x+this.size.w)>(c.w-this.map.paddingForPopups.right)){a.x=c.w-this.map.paddingForPopups.right-this.size.w
}}if(b.y<this.map.paddingForPopups.top){a.y=this.map.paddingForPopups.top
}else{if((b.y+this.size.h)>(c.h-this.map.paddingForPopups.bottom)){a.y=c.h-this.map.paddingForPopups.bottom-this.size.h
}}var e=b.x-a.x;
var d=b.y-a.y;
this.map.pan(e,d)
},registerEvents:function(){this.events=new OpenLayers.Events(this,this.div,null,true);
this.events.on({mousedown:this.onmousedown,mousemove:this.onmousemove,mouseup:this.onmouseup,click:this.onclick,mouseout:this.onmouseout,dblclick:this.ondblclick,scope:this})
},onmousedown:function(a){this.mousedown=true;
OpenLayers.Event.stop(a,true)
},onmousemove:function(a){if(this.mousedown){OpenLayers.Event.stop(a,true)
}},onmouseup:function(a){if(this.mousedown){this.mousedown=false;
OpenLayers.Event.stop(a,true)
}},onclick:function(a){OpenLayers.Event.stop(a,true)
},onmouseout:function(a){this.mousedown=false
},ondblclick:function(a){OpenLayers.Event.stop(a,true)
},CLASS_NAME:"OpenLayers.Popup"});
OpenLayers.Popup.WIDTH=200;
OpenLayers.Popup.HEIGHT=200;
OpenLayers.Popup.COLOR="white";
OpenLayers.Popup.OPACITY=1;
OpenLayers.Popup.BORDER="0px";
OpenLayers.Protocol=OpenLayers.Class({format:null,options:null,autoDestroy:true,defaultFilter:null,initialize:function(a){a=a||{};
OpenLayers.Util.extend(this,a);
this.options=a
},mergeWithDefaultFilter:function(a){if(a){if(this.defaultFilter){a=new OpenLayers.Filter.Logical({type:OpenLayers.Filter.Logical.AND,filters:[this.defaultFilter,a]})
}}else{a=this.defaultFilter
}return a
},destroy:function(){this.options=null;
this.format=null
},read:function(a){a=a||{};
a.filter=this.mergeWithDefaultFilter(a.filter)
},create:function(){},update:function(){},"delete":function(){},commit:function(){},abort:function(a){},createCallback:function(a,b,c){return OpenLayers.Function.bind(function(){a.apply(this,[b,c])
},this)
},CLASS_NAME:"OpenLayers.Protocol"});
OpenLayers.Protocol.Response=OpenLayers.Class({code:null,requestType:null,last:true,features:null,reqFeatures:null,priv:null,initialize:function(a){OpenLayers.Util.extend(this,a)
},success:function(){return this.code>0
},CLASS_NAME:"OpenLayers.Protocol.Response"});
OpenLayers.Protocol.Response.SUCCESS=1;
OpenLayers.Protocol.Response.FAILURE=0;
OpenLayers.Renderer=OpenLayers.Class({container:null,root:null,extent:null,locked:false,size:null,resolution:null,map:null,initialize:function(a,b){this.container=OpenLayers.Util.getElement(a)
},destroy:function(){this.container=null;
this.extent=null;
this.size=null;
this.resolution=null;
this.map=null
},supported:function(){return false
},setExtent:function(a,b){this.extent=a.clone();
if(b){this.resolution=null
}},setSize:function(a){this.size=a.clone();
this.resolution=null
},getResolution:function(){this.resolution=this.resolution||this.map.getResolution();
return this.resolution
},drawFeature:function(a,b){if(b==null){b=a.style
}if(a.geometry){var c=a.geometry.getBounds();
if(c){if(!c.intersectsBounds(this.extent)){b={display:"none"}
}var d=this.drawGeometry(a.geometry,b,a.id);
if(b.display!="none"&&b.label&&d!==false){var e=a.geometry.getCentroid();
if(b.labelXOffset||b.labelYOffset){xOffset=isNaN(b.labelXOffset)?0:b.labelXOffset;
yOffset=isNaN(b.labelYOffset)?0:b.labelYOffset;
var f=this.getResolution();
e.move(xOffset*f,yOffset*f)
}this.drawText(a.id,b,e)
}else{this.removeText(a.id)
}return d
}}},drawGeometry:function(a,b,c){},drawText:function(a,c,b){},removeText:function(a){},clear:function(){},getFeatureIdFromEvent:function(a){},eraseFeatures:function(a){if(!(a instanceof Array)){a=[a]
}for(var c=0,b=a.length;
c<b;
++c){this.eraseGeometry(a[c].geometry);
this.removeText(a[c].id)
}},eraseGeometry:function(a){},moveRoot:function(a){},getRenderLayerId:function(){return this.container.id
},CLASS_NAME:"OpenLayers.Renderer"});
OpenLayers.Strategy=OpenLayers.Class({layer:null,options:null,active:null,autoActivate:true,autoDestroy:true,initialize:function(a){OpenLayers.Util.extend(this,a);
this.options=a;
this.active=false
},destroy:function(){this.deactivate();
this.layer=null;
this.options=null
},setLayer:function(a){this.layer=a
},activate:function(){if(!this.active){this.active=true;
return true
}return false
},deactivate:function(){if(this.active){this.active=false;
return true
}return false
},CLASS_NAME:"OpenLayers.Strategy"});
OpenLayers.Rico.Color=OpenLayers.Class({initialize:function(a,c,b){this.rgb={r:a,g:c,b:b}
},setRed:function(a){this.rgb.r=a
},setGreen:function(a){this.rgb.g=a
},setBlue:function(a){this.rgb.b=a
},setHue:function(b){var a=this.asHSB();
a.h=b;
this.rgb=OpenLayers.Rico.Color.HSBtoRGB(a.h,a.s,a.b)
},setSaturation:function(b){var a=this.asHSB();
a.s=b;
this.rgb=OpenLayers.Rico.Color.HSBtoRGB(a.h,a.s,a.b)
},setBrightness:function(a){var c=this.asHSB();
c.b=a;
this.rgb=OpenLayers.Rico.Color.HSBtoRGB(c.h,c.s,c.b)
},darken:function(b){var a=this.asHSB();
this.rgb=OpenLayers.Rico.Color.HSBtoRGB(a.h,a.s,Math.max(a.b-b,0))
},brighten:function(b){var a=this.asHSB();
this.rgb=OpenLayers.Rico.Color.HSBtoRGB(a.h,a.s,Math.min(a.b+b,1))
},blend:function(a){this.rgb.r=Math.floor((this.rgb.r+a.rgb.r)/2);
this.rgb.g=Math.floor((this.rgb.g+a.rgb.g)/2);
this.rgb.b=Math.floor((this.rgb.b+a.rgb.b)/2)
},isBright:function(){var a=this.asHSB();
return this.asHSB().b>0.5
},isDark:function(){return !this.isBright()
},asRGB:function(){return"rgb("+this.rgb.r+","+this.rgb.g+","+this.rgb.b+")"
},asHex:function(){return"#"+this.rgb.r.toColorPart()+this.rgb.g.toColorPart()+this.rgb.b.toColorPart()
},asHSB:function(){return OpenLayers.Rico.Color.RGBtoHSB(this.rgb.r,this.rgb.g,this.rgb.b)
},toString:function(){return this.asHex()
}});
OpenLayers.Rico.Color.createFromHex=function(b){if(b.length==4){var f=b;
var b="#";
for(var a=1;
a<4;
a++){b+=(f.charAt(a)+f.charAt(a))
}}if(b.indexOf("#")==0){b=b.substring(1)
}var d=b.substring(0,2);
var c=b.substring(2,4);
var e=b.substring(4,6);
return new OpenLayers.Rico.Color(parseInt(d,16),parseInt(c,16),parseInt(e,16))
};
OpenLayers.Rico.Color.createColorFromBackground=function(b){var d=RicoUtil.getElementsComputedStyle(OpenLayers.Util.getElement(b),"backgroundColor","background-color");
if(d=="transparent"&&b.parentNode){return OpenLayers.Rico.Color.createColorFromBackground(b.parentNode)
}if(d==null){return new OpenLayers.Rico.Color(255,255,255)
}if(d.indexOf("rgb(")==0){var c=d.substring(4,d.length-1);
var a=c.split(",");
return new OpenLayers.Rico.Color(parseInt(a[0]),parseInt(a[1]),parseInt(a[2]))
}else{if(d.indexOf("#")==0){return OpenLayers.Rico.Color.createFromHex(d)
}else{return new OpenLayers.Rico.Color(255,255,255)
}}};
OpenLayers.Rico.Color.HSBtoRGB=function(b,m,d){var k=0;
var l=0;
var e=0;
if(m==0){k=parseInt(d*255+0.5);
l=k;
e=k
}else{var a=(b-Math.floor(b))*6;
var c=a-Math.floor(a);
var j=d*(1-m);
var i=d*(1-m*c);
var g=d*(1-(m*(1-c)));
switch(parseInt(a)){case 0:k=(d*255+0.5);
l=(g*255+0.5);
e=(j*255+0.5);
break;
case 1:k=(i*255+0.5);
l=(d*255+0.5);
e=(j*255+0.5);
break;
case 2:k=(j*255+0.5);
l=(d*255+0.5);
e=(g*255+0.5);
break;
case 3:k=(j*255+0.5);
l=(i*255+0.5);
e=(d*255+0.5);
break;
case 4:k=(g*255+0.5);
l=(j*255+0.5);
e=(d*255+0.5);
break;
case 5:k=(d*255+0.5);
l=(j*255+0.5);
e=(i*255+0.5);
break
}}return{r:parseInt(k),g:parseInt(l),b:parseInt(e)}
};
OpenLayers.Rico.Color.RGBtoHSB=function(i,m,f){var a;
var l;
var e;
var h=(i>m)?i:m;
if(f>h){h=f
}var c=(i<m)?i:m;
if(f<c){c=f
}e=h/255;
if(h!=0){l=(h-c)/h
}else{l=0
}if(l==0){a=0
}else{var j=(h-i)/(h-c);
var d=(h-m)/(h-c);
var k=(h-f)/(h-c);
if(i==h){a=k-d
}else{if(m==h){a=2+j-k
}else{a=4+d-j
}}a=a/6;
if(a<0){a=a+1
}}return{h:a,s:l,b:e}
};
OpenLayers.Bounds=OpenLayers.Class({left:null,bottom:null,right:null,top:null,centerLonLat:null,initialize:function(b,c,d,a){if(b!=null){this.left=OpenLayers.Util.toFloat(b)
}if(c!=null){this.bottom=OpenLayers.Util.toFloat(c)
}if(d!=null){this.right=OpenLayers.Util.toFloat(d)
}if(a!=null){this.top=OpenLayers.Util.toFloat(a)
}},clone:function(){return new OpenLayers.Bounds(this.left,this.bottom,this.right,this.top)
},equals:function(b){var a=false;
if(b!=null){a=((this.left==b.left)&&(this.right==b.right)&&(this.top==b.top)&&(this.bottom==b.bottom))
}return a
},toString:function(){return("left-bottom=("+this.left+","+this.bottom+") right-top=("+this.right+","+this.top+")")
},toArray:function(a){if(a===true){return[this.bottom,this.left,this.top,this.right]
}else{return[this.left,this.bottom,this.right,this.top]
}},toBBOX:function(f,b){if(f==null){f=6
}var d=Math.pow(10,f);
var c=Math.round(this.left*d)/d;
var a=Math.round(this.bottom*d)/d;
var g=Math.round(this.right*d)/d;
var e=Math.round(this.top*d)/d;
if(b===true){return a+","+c+","+e+","+g
}else{return c+","+a+","+g+","+e
}},toGeometry:function(){return new OpenLayers.Geometry.Polygon([new OpenLayers.Geometry.LinearRing([new OpenLayers.Geometry.Point(this.left,this.bottom),new OpenLayers.Geometry.Point(this.right,this.bottom),new OpenLayers.Geometry.Point(this.right,this.top),new OpenLayers.Geometry.Point(this.left,this.top)])])
},getWidth:function(){return(this.right-this.left)
},getHeight:function(){return(this.top-this.bottom)
},getSize:function(){return new OpenLayers.Size(this.getWidth(),this.getHeight())
},getCenterPixel:function(){return new OpenLayers.Pixel((this.left+this.right)/2,(this.bottom+this.top)/2)
},getCenterLonLat:function(){if(!this.centerLonLat){this.centerLonLat=new OpenLayers.LonLat((this.left+this.right)/2,(this.bottom+this.top)/2)
}return this.centerLonLat
},scale:function(h,f){if(f==null){f=this.getCenterLonLat()
}var d,c;
if(f.CLASS_NAME=="OpenLayers.LonLat"){d=f.lon;
c=f.lat
}else{d=f.x;
c=f.y
}var b=(this.left-d)*h+d;
var e=(this.bottom-c)*h+c;
var g=(this.right-d)*h+d;
var a=(this.top-c)*h+c;
return new OpenLayers.Bounds(b,e,g,a)
},add:function(b,a){if((b==null)||(a==null)){var c=OpenLayers.i18n("boundsAddError");
OpenLayers.Console.error(c);
return null
}return new OpenLayers.Bounds(this.left+b,this.bottom+a,this.right+b,this.top+a)
},extend:function(a){var b=null;
if(a){switch(a.CLASS_NAME){case"OpenLayers.LonLat":b=new OpenLayers.Bounds(a.lon,a.lat,a.lon,a.lat);
break;
case"OpenLayers.Geometry.Point":b=new OpenLayers.Bounds(a.x,a.y,a.x,a.y);
break;
case"OpenLayers.Bounds":b=a;
break
}if(b){this.centerLonLat=null;
if((this.left==null)||(b.left<this.left)){this.left=b.left
}if((this.bottom==null)||(b.bottom<this.bottom)){this.bottom=b.bottom
}if((this.right==null)||(b.right>this.right)){this.right=b.right
}if((this.top==null)||(b.top>this.top)){this.top=b.top
}}}},containsLonLat:function(b,a){return this.contains(b.lon,b.lat,a)
},containsPixel:function(b,a){return this.contains(b.x,b.y,a)
},contains:function(d,b,c){if(c==null){c=true
}if(d==null||b==null){return false
}d=OpenLayers.Util.toFloat(d);
b=OpenLayers.Util.toFloat(b);
var a=false;
if(c){a=((d>=this.left)&&(d<=this.right)&&(b>=this.bottom)&&(b<=this.top))
}else{a=((d>this.left)&&(d<this.right)&&(b>this.bottom)&&(b<this.top))
}return a
},intersectsBounds:function(h,e){if(e==null){e=true
}var g=false;
var c=(this.left==h.right||this.right==h.left||this.top==h.bottom||this.bottom==h.top);
if(e||!c){var b=(((h.bottom>=this.bottom)&&(h.bottom<=this.top))||((this.bottom>=h.bottom)&&(this.bottom<=h.top)));
var a=(((h.top>=this.bottom)&&(h.top<=this.top))||((this.top>h.bottom)&&(this.top<h.top)));
var f=(((h.left>=this.left)&&(h.left<=this.right))||((this.left>=h.left)&&(this.left<=h.right)));
var d=(((h.right>=this.left)&&(h.right<=this.right))||((this.right>=h.left)&&(this.right<=h.right)));
g=((b||a)&&(f||d))
}return g
},containsBounds:function(d,f,e){if(f==null){f=false
}if(e==null){e=true
}var g=this.contains(d.left,d.bottom,e);
var a=this.contains(d.right,d.bottom,e);
var c=this.contains(d.left,d.top,e);
var b=this.contains(d.right,d.top,e);
return(f)?(g||a||c||b):(g&&a&&c&&b)
},determineQuadrant:function(a){var c="";
var b=this.getCenterLonLat();
c+=(a.lat<b.lat)?"b":"t";
c+=(a.lon<b.lon)?"l":"r";
return c
},transform:function(b,f){this.centerLonLat=null;
var c=OpenLayers.Projection.transform({x:this.left,y:this.bottom},b,f);
var e=OpenLayers.Projection.transform({x:this.right,y:this.bottom},b,f);
var a=OpenLayers.Projection.transform({x:this.left,y:this.top},b,f);
var d=OpenLayers.Projection.transform({x:this.right,y:this.top},b,f);
this.left=Math.min(c.x,a.x);
this.bottom=Math.min(c.y,e.y);
this.right=Math.max(e.x,d.x);
this.top=Math.max(a.y,d.y);
return this
},wrapDateLine:function(d,a){a=a||{};
var b=a.leftTolerance||0;
var e=a.rightTolerance||0;
var c=this.clone();
if(d){while(c.left<d.left&&(c.right-e)<=d.left){c=c.add(d.getWidth(),0)
}while((c.left+b)>=d.right&&c.right>d.right){c=c.add(-d.getWidth(),0)
}}return c
},CLASS_NAME:"OpenLayers.Bounds"});
OpenLayers.Bounds.fromString=function(b){var a=b.split(",");
return OpenLayers.Bounds.fromArray(a)
};
OpenLayers.Bounds.fromArray=function(a){return new OpenLayers.Bounds(parseFloat(a[0]),parseFloat(a[1]),parseFloat(a[2]),parseFloat(a[3]))
};
OpenLayers.Bounds.fromSize=function(a){return new OpenLayers.Bounds(0,a.h,a.w,0)
};
OpenLayers.Bounds.oppositeQuadrant=function(a){var b="";
b+=(a.charAt(0)=="t")?"b":"t";
b+=(a.charAt(1)=="l")?"r":"l";
return b
};
OpenLayers.LonLat=OpenLayers.Class({lon:0,lat:0,initialize:function(b,a){this.lon=OpenLayers.Util.toFloat(b);
this.lat=OpenLayers.Util.toFloat(a)
},toString:function(){return("lon="+this.lon+",lat="+this.lat)
},toShortString:function(){return(this.lon+", "+this.lat)
},clone:function(){return new OpenLayers.LonLat(this.lon,this.lat)
},add:function(a,b){if((a==null)||(b==null)){var c=OpenLayers.i18n("lonlatAddError");
OpenLayers.Console.error(c);
return null
}return new OpenLayers.LonLat(this.lon+a,this.lat+b)
},equals:function(b){var a=false;
if(b!=null){a=((this.lon==b.lon&&this.lat==b.lat)||(isNaN(this.lon)&&isNaN(this.lat)&&isNaN(b.lon)&&isNaN(b.lat)))
}return a
},transform:function(a,c){var b=OpenLayers.Projection.transform({x:this.lon,y:this.lat},a,c);
this.lon=b.x;
this.lat=b.y;
return this
},wrapDateLine:function(a){var b=this.clone();
if(a){while(b.lon<a.left){b.lon+=a.getWidth()
}while(b.lon>a.right){b.lon-=a.getWidth()
}}return b
},CLASS_NAME:"OpenLayers.LonLat"});
OpenLayers.LonLat.fromString=function(b){var a=b.split(",");
return new OpenLayers.LonLat(parseFloat(a[0]),parseFloat(a[1]))
};
OpenLayers.Pixel=OpenLayers.Class({x:0,y:0,initialize:function(a,b){this.x=parseFloat(a);
this.y=parseFloat(b)
},toString:function(){return("x="+this.x+",y="+this.y)
},clone:function(){return new OpenLayers.Pixel(this.x,this.y)
},equals:function(a){var b=false;
if(a!=null){b=((this.x==a.x&&this.y==a.y)||(isNaN(this.x)&&isNaN(this.y)&&isNaN(a.x)&&isNaN(a.y)))
}return b
},add:function(b,a){if((b==null)||(a==null)){var c=OpenLayers.i18n("pixelAddError");
OpenLayers.Console.error(c);
return null
}return new OpenLayers.Pixel(this.x+b,this.y+a)
},offset:function(a){var b=this.clone();
if(a){b=this.add(a.x,a.y)
}return b
},CLASS_NAME:"OpenLayers.Pixel"});
OpenLayers.Control=OpenLayers.Class({id:null,map:null,div:null,type:null,allowSelection:false,displayClass:"",title:"",autoActivate:false,active:null,handler:null,eventListeners:null,events:null,EVENT_TYPES:["activate","deactivate"],initialize:function(a){this.displayClass=this.CLASS_NAME.replace("OpenLayers.","ol").replace(/\./g,"");
OpenLayers.Util.extend(this,a);
this.events=new OpenLayers.Events(this,null,this.EVENT_TYPES);
if(this.eventListeners instanceof Object){this.events.on(this.eventListeners)
}if(this.id==null){this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")
}},destroy:function(){if(this.events){if(this.eventListeners){this.events.un(this.eventListeners)
}this.events.destroy();
this.events=null
}this.eventListeners=null;
if(this.handler){this.handler.destroy();
this.handler=null
}if(this.handlers){for(var a in this.handlers){if(this.handlers.hasOwnProperty(a)&&typeof this.handlers[a].destroy=="function"){this.handlers[a].destroy()
}}this.handlers=null
}if(this.map){this.map.removeControl(this);
this.map=null
}},setMap:function(a){this.map=a;
if(this.handler){this.handler.setMap(a)
}},draw:function(a){if(this.div==null){this.div=OpenLayers.Util.createDiv(this.id);
this.div.className=this.displayClass;
if(!this.allowSelection){this.div.className+=" olControlNoSelect";
this.div.setAttribute("unselectable","on",0);
this.div.onselectstart=OpenLayers.Function.False
}if(this.title!=""){this.div.title=this.title
}}if(a!=null){this.position=a.clone()
}this.moveTo(this.position);
return this.div
},moveTo:function(a){if((a!=null)&&(this.div!=null)){this.div.style.left=a.x+"px";
this.div.style.top=a.y+"px"
}},activate:function(){if(this.active){return false
}if(this.handler){this.handler.activate()
}this.active=true;
if(this.map){OpenLayers.Element.addClass(this.map.viewPortDiv,this.displayClass.replace(/ /g,"")+"Active")
}this.events.triggerEvent("activate");
return true
},deactivate:function(){if(this.active){if(this.handler){this.handler.deactivate()
}this.active=false;
if(this.map){OpenLayers.Element.removeClass(this.map.viewPortDiv,this.displayClass.replace(/ /g,"")+"Active")
}this.events.triggerEvent("deactivate");
return true
}return false
},CLASS_NAME:"OpenLayers.Control"});
OpenLayers.Control.TYPE_BUTTON=1;
OpenLayers.Control.TYPE_TOGGLE=2;
OpenLayers.Control.TYPE_TOOL=3;
OpenLayers.Lang={code:null,defaultCode:"en",getCode:function(){if(!OpenLayers.Lang.code){OpenLayers.Lang.setCode()
}return OpenLayers.Lang.code
},setCode:function(d){var b;
if(!d){d=(OpenLayers.Util.getBrowserName()=="msie")?navigator.userLanguage:navigator.language
}var a=d.split("-");
a[0]=a[0].toLowerCase();
if(typeof OpenLayers.Lang[a[0]]=="object"){b=a[0]
}if(a[1]){var c=a[0]+"-"+a[1].toUpperCase();
if(typeof OpenLayers.Lang[c]=="object"){b=c
}}if(!b){OpenLayers.Console.warn("Failed to find OpenLayers.Lang."+a.join("-")+" dictionary, falling back to default language");
b=OpenLayers.Lang.defaultCode
}OpenLayers.Lang.code=b
},translate:function(d,c){var b=OpenLayers.Lang[OpenLayers.Lang.getCode()];
var a=b[d];
if(!a){a=d
}if(c){a=OpenLayers.String.format(a,c)
}return a
}};
OpenLayers.i18n=OpenLayers.Lang.translate;
OpenLayers.Popup.Anchored=OpenLayers.Class(OpenLayers.Popup,{relativePosition:null,keepInMap:true,anchor:null,initialize:function(c,g,b,f,e,a,h){var d=[c,g,b,f,a,h];
OpenLayers.Popup.prototype.initialize.apply(this,d);
this.anchor=(e!=null)?e:{size:new OpenLayers.Size(0,0),offset:new OpenLayers.Pixel(0,0)}
},destroy:function(){this.anchor=null;
this.relativePosition=null;
OpenLayers.Popup.prototype.destroy.apply(this,arguments)
},show:function(){this.updatePosition();
OpenLayers.Popup.prototype.show.apply(this,arguments)
},moveTo:function(a){var d=this.relativePosition;
this.relativePosition=this.calculateRelativePosition(a);
var b=this.calculateNewPx(a);
var c=new Array(b);
OpenLayers.Popup.prototype.moveTo.apply(this,c);
if(this.relativePosition!=d){this.updateRelativePosition()
}},setSize:function(b){OpenLayers.Popup.prototype.setSize.apply(this,arguments);
if((this.lonlat)&&(this.map)){var a=this.map.getLayerPxFromLonLat(this.lonlat);
this.moveTo(a)
}},calculateRelativePosition:function(d){var b=this.map.getLonLatFromLayerPx(d);
var a=this.map.getExtent();
var c=a.determineQuadrant(b);
return OpenLayers.Bounds.oppositeQuadrant(c)
},updateRelativePosition:function(){},calculateNewPx:function(e){var c=e.offset(this.anchor.offset);
var d=this.size||this.contentSize;
var b=(this.relativePosition.charAt(0)=="t");
c.y+=(b)?-d.h:this.anchor.size.h;
var a=(this.relativePosition.charAt(1)=="l");
c.x+=(a)?-d.w:this.anchor.size.w;
return c
},CLASS_NAME:"OpenLayers.Popup.Anchored"});
OpenLayers.Protocol.SOS=function(b){b=OpenLayers.Util.applyDefaults(b,OpenLayers.Protocol.SOS.DEFAULTS);
var a=OpenLayers.Protocol.SOS["v"+b.version.replace(/\./g,"_")];
if(!a){throw"Unsupported SOS version: "+b.version
}return new a(b)
};
OpenLayers.Protocol.SOS.DEFAULTS={version:"1.0.0"};
OpenLayers.Protocol.SQL=OpenLayers.Class(OpenLayers.Protocol,{databaseName:"ol",tableName:"ol_vector_features",postReadFiltering:true,initialize:function(a){OpenLayers.Protocol.prototype.initialize.apply(this,[a])
},destroy:function(){OpenLayers.Protocol.prototype.destroy.apply(this)
},supported:function(){return false
},evaluateFilter:function(a,b){return b&&this.postReadFiltering?b.evaluate(a):true
},CLASS_NAME:"OpenLayers.Protocol.SQL"});
OpenLayers.Protocol.WFS=function(b){b=OpenLayers.Util.applyDefaults(b,OpenLayers.Protocol.WFS.DEFAULTS);
var a=OpenLayers.Protocol.WFS["v"+b.version.replace(/\./g,"_")];
if(!a){throw"Unsupported WFS version: "+b.version
}return new a(b)
};
OpenLayers.Protocol.WFS.fromWMSLayer=function(a,g){var e,b;
var d=a.params.LAYERS;
var c=(d instanceof Array?d[0]:d).split(":");
if(c.length>1){b=c[0]
}e=c.pop();
var f={url:a.url,featureType:e,featurePrefix:b,srsName:a.projection&&a.projection.getCode()||a.map&&a.map.getProjectionObject().getCode(),version:"1.1.0"};
return new OpenLayers.Protocol.WFS(OpenLayers.Util.applyDefaults(g,f))
};
OpenLayers.Protocol.WFS.DEFAULTS={version:"1.0.0"};
OpenLayers.Renderer.Canvas=OpenLayers.Class(OpenLayers.Renderer,{canvas:null,features:null,geometryMap:null,initialize:function(a){OpenLayers.Renderer.prototype.initialize.apply(this,arguments);
this.root=document.createElement("canvas");
this.container.appendChild(this.root);
this.canvas=this.root.getContext("2d");
this.features={};
this.geometryMap={}
},eraseGeometry:function(a){this.eraseFeatures(this.features[this.geometryMap[a.id]][0])
},supported:function(){var a=document.createElement("canvas");
return !!a.getContext
},setExtent:function(a){this.extent=a.clone();
this.resolution=null;
this.redraw()
},setSize:function(a){this.size=a.clone();
this.root.style.width=a.w+"px";
this.root.style.height=a.h+"px";
this.root.width=a.w;
this.root.height=a.h;
this.resolution=null
},drawFeature:function(a,b){if(b==null){b=a.style
}b=OpenLayers.Util.extend({fillColor:"#000000",strokeColor:"#000000",strokeWidth:2,fillOpacity:1,strokeOpacity:1},b);
this.features[a.id]=[a,b];
if(a.geometry){this.geometryMap[a.geometry.id]=a.id
}this.redraw()
},drawGeometry:function(b,a){var d=b.CLASS_NAME;
if((d=="OpenLayers.Geometry.Collection")||(d=="OpenLayers.Geometry.MultiPoint")||(d=="OpenLayers.Geometry.MultiLineString")||(d=="OpenLayers.Geometry.MultiPolygon")){for(var c=0;
c<b.components.length;
c++){this.drawGeometry(b.components[c],a)
}return
}switch(b.CLASS_NAME){case"OpenLayers.Geometry.Point":this.drawPoint(b,a);
break;
case"OpenLayers.Geometry.LineString":this.drawLineString(b,a);
break;
case"OpenLayers.Geometry.LinearRing":this.drawLinearRing(b,a);
break;
case"OpenLayers.Geometry.Polygon":this.drawPolygon(b,a);
break;
default:break
}},drawExternalGraphic:function(h,i){var d=new Image();
d.src=i.externalGraphic;
if(i.graphicTitle){d.title=i.graphicTitle
}var b=i.graphicWidth||i.graphicHeight;
var g=i.graphicHeight||i.graphicWidth;
b=b?b:i.pointRadius*2;
g=g?g:i.pointRadius*2;
var f=(i.graphicXOffset!=undefined)?i.graphicXOffset:-(0.5*b);
var c=(i.graphicYOffset!=undefined)?i.graphicYOffset:-(0.5*g);
var e=i.graphicOpacity||i.fillOpacity;
var a={img:d,x:(h[0]+f),y:(h[1]+c),width:b,height:g,canvas:this.canvas};
d.onload=OpenLayers.Function.bind(function(){this.canvas.drawImage(this.img,this.x,this.y,this.width,this.height)
},a)
},setCanvasStyle:function(b,a){if(b=="fill"){this.canvas.globalAlpha=a.fillOpacity;
this.canvas.fillStyle=a.fillColor
}else{if(b=="stroke"){this.canvas.globalAlpha=a.strokeOpacity;
this.canvas.strokeStyle=a.strokeColor;
this.canvas.lineWidth=a.strokeWidth
}else{this.canvas.globalAlpha=0;
this.canvas.lineWidth=1
}}},drawPoint:function(a,b){if(b.graphic!==false){var c=this.getLocalXY(a);
if(b.externalGraphic){this.drawExternalGraphic(c,b)
}else{if(b.fill!==false){this.setCanvasStyle("fill",b);
this.canvas.beginPath();
this.canvas.arc(c[0],c[1],b.pointRadius,0,Math.PI*2,true);
this.canvas.fill()
}if(b.stroke!==false){this.setCanvasStyle("stroke",b);
this.canvas.beginPath();
this.canvas.arc(c[0],c[1],b.pointRadius,0,Math.PI*2,true);
this.canvas.stroke();
this.setCanvasStyle("reset")
}}}},drawLineString:function(b,e){if(e.stroke!==false){this.setCanvasStyle("stroke",e);
this.canvas.beginPath();
var c=this.getLocalXY(b.components[0]);
this.canvas.moveTo(c[0],c[1]);
for(var d=1;
d<b.components.length;
d++){var a=this.getLocalXY(b.components[d]);
this.canvas.lineTo(a[0],a[1])
}this.canvas.stroke()
}this.setCanvasStyle("reset")
},drawLinearRing:function(c,a){if(a.fill!==false){this.setCanvasStyle("fill",a);
this.canvas.beginPath();
var d=this.getLocalXY(c.components[0]);
this.canvas.moveTo(d[0],d[1]);
for(var f=1;
f<c.components.length-1;
f++){var b=this.getLocalXY(c.components[f]);
this.canvas.lineTo(b[0],b[1])
}this.canvas.fill()
}if(a.stroke!==false){var e=this.canvas.lineWidth;
this.setCanvasStyle("stroke",a);
this.canvas.beginPath();
var d=this.getLocalXY(c.components[0]);
this.canvas.moveTo(d[0],d[1]);
for(var f=1;
f<c.components.length;
f++){var b=this.getLocalXY(c.components[f]);
this.canvas.lineTo(b[0],b[1])
}this.canvas.stroke()
}this.setCanvasStyle("reset")
},drawPolygon:function(a,c){this.drawLinearRing(a.components[0],c);
for(var b=1;
b<a.components.length;
b++){this.drawLinearRing(a.components[b],{fillOpacity:0,strokeWidth:0,strokeOpacity:0,strokeColor:"#000000",fillColor:"#000000"})
}},drawText:function(f,b){b=OpenLayers.Util.extend({fontColor:"#000000",labelAlign:"cm"},b);
var c=this.getLocalXY(f);
this.setCanvasStyle("reset");
this.canvas.fillStyle=b.fontColor;
this.canvas.globalAlpha=b.fontOpacity||1;
var d=b.fontWeight+" "+b.fontSize+" "+b.fontFamily;
if(this.canvas.fillText){var a=OpenLayers.Renderer.Canvas.LABEL_ALIGN[b.labelAlign[0]]||"center";
this.canvas.font=d;
this.canvas.textAlign=a;
this.canvas.fillText(b.label,c[0],c[1])
}else{if(this.canvas.mozDrawText){this.canvas.mozTextStyle=d;
var e=this.canvas.mozMeasureText(b.label);
switch(b.labelAlign[0]){case"l":break;
case"r":c[0]-=e;
break;
case"c":default:c[0]-=e/2
}this.canvas.translate(c[0],c[1]);
this.canvas.mozDrawText(b.label);
this.canvas.translate(-1*c[0],-1*c[1])
}}this.setCanvasStyle("reset")
},getLocalXY:function(e){var a=this.getResolution();
var b=this.extent;
var d=(e.x/a+(-b.left/a));
var c=((b.top/a)-e.y/a);
return[d,c]
},clear:function(){this.canvas.clearRect(0,0,this.root.width,this.root.height)
},getFeatureIdFromEvent:function(e){var d=this.map.getLonLatFromPixel(e.xy);
var f=this.getResolution();
var c=new OpenLayers.Bounds(d.lon-f*5,d.lat-f*5,d.lon+f*5,d.lat+f*5);
var a=c.toGeometry();
for(var b in this.features){if(!this.features.hasOwnProperty(b)){continue
}if(this.features[b][0].geometry.intersects(a)){return b
}}return null
},eraseFeatures:function(b){if(!(b instanceof Array)){b=[b]
}for(var a=0;
a<b.length;
++a){delete this.features[b[a].id]
}this.redraw()
},redraw:function(){if(!this.locked){this.clear();
var c=[];
var f,a;
for(var d in this.features){if(!this.features.hasOwnProperty(d)){continue
}f=this.features[d][0];
a=this.features[d][1];
if(!f.geometry){continue
}this.drawGeometry(f.geometry,a);
if(a.label){c.push([f,a])
}}var b;
for(var e=0;
len=c.length,e<len;
++e){b=c[e];
this.drawText(b[0].geometry.getCentroid(),b[1])
}}},CLASS_NAME:"OpenLayers.Renderer.Canvas"});
OpenLayers.Renderer.Canvas.LABEL_ALIGN={l:"left",r:"right"};
OpenLayers.ElementsIndexer=OpenLayers.Class({maxZIndex:null,order:null,indices:null,compare:null,initialize:function(a){this.compare=a?OpenLayers.ElementsIndexer.IndexingMethods.Z_ORDER_Y_ORDER:OpenLayers.ElementsIndexer.IndexingMethods.Z_ORDER_DRAWING_ORDER;
this.order=[];
this.indices={};
this.maxZIndex=0
},insert:function(a){if(this.exists(a)){this.remove(a)
}var d=a.id;
this.determineZIndex(a);
var b=-1;
var c=this.order.length;
var e;
while(c-b>1){e=parseInt((b+c)/2);
var f=this.compare(this,a,OpenLayers.Util.getElement(this.order[e]));
if(f>0){b=e
}else{c=e
}}this.order.splice(c,0,d);
this.indices[d]=this.getZIndex(a);
return this.getNextElement(c)
},remove:function(d){var b=d.id;
var c=OpenLayers.Util.indexOf(this.order,b);
if(c>=0){this.order.splice(c,1);
delete this.indices[b];
if(this.order.length>0){var a=this.order[this.order.length-1];
this.maxZIndex=this.indices[a]
}else{this.maxZIndex=0
}}},clear:function(){this.order=[];
this.indices={};
this.maxZIndex=0
},exists:function(a){return(this.indices[a.id]!=null)
},getZIndex:function(a){return a._style.graphicZIndex
},determineZIndex:function(a){var b=a._style.graphicZIndex;
if(b==null){b=this.maxZIndex;
a._style.graphicZIndex=b
}else{if(b>this.maxZIndex){this.maxZIndex=b
}}},getNextElement:function(c){var b=c+1;
if(b<this.order.length){var a=OpenLayers.Util.getElement(this.order[b]);
if(a==undefined){a=this.getNextElement(b)
}return a
}else{return null
}},CLASS_NAME:"OpenLayers.ElementsIndexer"});
OpenLayers.ElementsIndexer.IndexingMethods={Z_ORDER:function(c,b,f){var e=c.getZIndex(b);
var d=0;
if(f){var a=c.getZIndex(f);
d=e-a
}return d
},Z_ORDER_DRAWING_ORDER:function(a,d,c){var b=OpenLayers.ElementsIndexer.IndexingMethods.Z_ORDER(a,d,c);
if(c&&b==0){b=1
}return b
},Z_ORDER_Y_ORDER:function(b,a,e){var c=OpenLayers.ElementsIndexer.IndexingMethods.Z_ORDER(b,a,e);
if(e&&c===0){var d=e._boundsBottom-a._boundsBottom;
c=(d===0)?1:d
}return c
}};
OpenLayers.Renderer.Elements=OpenLayers.Class(OpenLayers.Renderer,{rendererRoot:null,root:null,vectorRoot:null,textRoot:null,xmlns:null,indexer:null,BACKGROUND_ID_SUFFIX:"_background",LABEL_ID_SUFFIX:"_label",minimumSymbolizer:{strokeLinecap:"round",strokeOpacity:1,strokeDashstyle:"solid",fillOpacity:1,pointRadius:0},initialize:function(a,b){OpenLayers.Renderer.prototype.initialize.apply(this,arguments);
this.rendererRoot=this.createRenderRoot();
this.root=this.createRoot("_root");
this.vectorRoot=this.createRoot("_vroot");
this.textRoot=this.createRoot("_troot");
this.root.appendChild(this.vectorRoot);
this.root.appendChild(this.textRoot);
this.rendererRoot.appendChild(this.root);
this.container.appendChild(this.rendererRoot);
if(b&&(b.zIndexing||b.yOrdering)){this.indexer=new OpenLayers.ElementsIndexer(b.yOrdering)
}},destroy:function(){this.clear();
this.rendererRoot=null;
this.root=null;
this.xmlns=null;
OpenLayers.Renderer.prototype.destroy.apply(this,arguments)
},clear:function(){if(this.vectorRoot){while(this.vectorRoot.childNodes.length>0){this.vectorRoot.removeChild(this.vectorRoot.firstChild)
}}if(this.textRoot){while(this.textRoot.childNodes.length>0){this.textRoot.removeChild(this.textRoot.firstChild)
}}if(this.indexer){this.indexer.clear()
}},getNodeType:function(b,a){},drawGeometry:function(b,g,a){var f=b.CLASS_NAME;
var c=true;
if((f=="OpenLayers.Geometry.Collection")||(f=="OpenLayers.Geometry.MultiPoint")||(f=="OpenLayers.Geometry.MultiLineString")||(f=="OpenLayers.Geometry.MultiPolygon")){for(var e=0,d=b.components.length;
e<d;
e++){c=this.drawGeometry(b.components[e],g,a)&&c
}return c
}c=false;
if(g.display!="none"){if(g.backgroundGraphic){this.redrawBackgroundNode(b.id,b,g,a)
}c=this.redrawNode(b.id,b,g,a)
}if(c==false){var h=document.getElementById(b.id);
if(h){if(h._style.backgroundGraphic){h.parentNode.removeChild(document.getElementById(b.id+this.BACKGROUND_ID_SUFFIX))
}h.parentNode.removeChild(h)
}}return c
},redrawNode:function(d,c,f,b){var g=this.nodeFactory(d,this.getNodeType(c,f));
g._featureId=b;
g._boundsBottom=c.getBounds().bottom;
g._geometryClass=c.CLASS_NAME;
g._style=f;
var e=this.drawGeometryNode(g,c,f);
if(e===false){return false
}g=e.node;
if(this.indexer){var a=this.indexer.insert(g);
if(a){this.vectorRoot.insertBefore(g,a)
}else{this.vectorRoot.appendChild(g)
}}else{if(g.parentNode!==this.vectorRoot){this.vectorRoot.appendChild(g)
}}this.postDraw(g);
return e.complete
},redrawBackgroundNode:function(c,b,e,a){var d=OpenLayers.Util.extend({},e);
d.externalGraphic=d.backgroundGraphic;
d.graphicXOffset=d.backgroundXOffset;
d.graphicYOffset=d.backgroundYOffset;
d.graphicZIndex=d.backgroundGraphicZIndex;
d.graphicWidth=d.backgroundWidth||d.graphicWidth;
d.graphicHeight=d.backgroundHeight||d.graphicHeight;
d.backgroundGraphic=null;
d.backgroundXOffset=null;
d.backgroundYOffset=null;
d.backgroundGraphicZIndex=null;
return this.redrawNode(c+this.BACKGROUND_ID_SUFFIX,b,d,null)
},drawGeometryNode:function(a,c,e){e=e||a._style;
OpenLayers.Util.applyDefaults(e,this.minimumSymbolizer);
var d={isFilled:e.fill===undefined?true:e.fill,isStroked:e.stroke===undefined?!!e.strokeWidth:e.stroke};
var b;
switch(c.CLASS_NAME){case"OpenLayers.Geometry.Point":if(e.graphic===false){d.isFilled=false;
d.isStroked=false
}b=this.drawPoint(a,c);
break;
case"OpenLayers.Geometry.LineString":d.isFilled=false;
b=this.drawLineString(a,c);
break;
case"OpenLayers.Geometry.LinearRing":b=this.drawLinearRing(a,c);
break;
case"OpenLayers.Geometry.Polygon":b=this.drawPolygon(a,c);
break;
case"OpenLayers.Geometry.Surface":b=this.drawSurface(a,c);
break;
case"OpenLayers.Geometry.Rectangle":b=this.drawRectangle(a,c);
break;
default:break
}a._options=d;
if(b!=false){return{node:this.setStyle(a,e,d,c),complete:b}
}else{return false
}},postDraw:function(a){},drawPoint:function(a,b){},drawLineString:function(a,b){},drawLinearRing:function(a,b){},drawPolygon:function(a,b){},drawRectangle:function(a,b){},drawCircle:function(a,b){},drawSurface:function(a,b){},removeText:function(b){var a=document.getElementById(b+this.LABEL_ID_SUFFIX);
if(a){this.textRoot.removeChild(a)
}},getFeatureIdFromEvent:function(d){var b=d.target;
var e=b&&b.correspondingUseElement;
var a=e?e:(b||d.srcElement);
var c=a._featureId;
return c
},eraseGeometry:function(d){if((d.CLASS_NAME=="OpenLayers.Geometry.MultiPoint")||(d.CLASS_NAME=="OpenLayers.Geometry.MultiLineString")||(d.CLASS_NAME=="OpenLayers.Geometry.MultiPolygon")||(d.CLASS_NAME=="OpenLayers.Geometry.Collection")){for(var b=0,e=d.components.length;
b<e;
b++){this.eraseGeometry(d.components[b])
}}else{var a=OpenLayers.Util.getElement(d.id);
if(a&&a.parentNode){if(a.geometry){a.geometry.destroy();
a.geometry=null
}a.parentNode.removeChild(a);
if(this.indexer){this.indexer.remove(a)
}if(a._style.backgroundGraphic){var f=d.id+this.BACKGROUND_ID_SUFFIX;
var c=OpenLayers.Util.getElement(f);
if(c&&c.parentNode){c.parentNode.removeChild(c)
}}}}},nodeFactory:function(a,b){var c=OpenLayers.Util.getElement(a);
if(c){if(!this.nodeTypeCompare(c,b)){c.parentNode.removeChild(c);
c=this.nodeFactory(a,b)
}}else{c=this.createNode(b,a)
}return c
},nodeTypeCompare:function(b,a){},createNode:function(a,b){},moveRoot:function(b){var a=this.root;
if(b.root.parentNode==this.rendererRoot){a=b.root
}a.parentNode.removeChild(a);
b.rendererRoot.appendChild(a)
},getRenderLayerId:function(){return this.root.parentNode.parentNode.id
},isComplexSymbol:function(a){return(a!="circle")&&!!a
},CLASS_NAME:"OpenLayers.Renderer.Elements"});
OpenLayers.Renderer.symbol={star:[350,75,379,161,469,161,397,215,423,301,350,250,277,301,303,215,231,161,321,161,350,75],cross:[4,0,6,0,6,4,10,4,10,6,6,6,6,10,4,10,4,6,0,6,0,4,4,4,4,0],x:[0,0,25,0,50,35,75,0,100,0,65,50,100,100,75,100,50,65,25,100,0,100,35,50,0,0],square:[0,0,0,1,1,1,1,0,0,0],triangle:[0,10,10,10,5,0,0,10]};
OpenLayers.Strategy.Cluster=OpenLayers.Class(OpenLayers.Strategy,{distance:20,threshold:null,features:null,clusters:null,clustering:false,resolution:null,initialize:function(a){OpenLayers.Strategy.prototype.initialize.apply(this,[a])
},activate:function(){var a=OpenLayers.Strategy.prototype.activate.call(this);
if(a){this.layer.events.on({beforefeaturesadded:this.cacheFeatures,moveend:this.cluster,scope:this})
}return a
},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);
if(a){this.clearCache();
this.layer.events.un({beforefeaturesadded:this.cacheFeatures,moveend:this.cluster,scope:this})
}return a
},cacheFeatures:function(b){var a=true;
if(!this.clustering){this.clearCache();
this.features=b.features;
this.cluster();
a=false
}return a
},clearCache:function(){this.features=null
},cluster:function(g){if((!g||g.zoomChanged)&&this.features){var k=this.layer.map.getResolution();
if(k!=this.resolution||!this.clustersExist()){this.resolution=k;
var c=[];
var f,h,d;
for(var m=0;
m<this.features.length;
++m){f=this.features[m];
if(f.geometry){h=false;
for(var l=0;
l<c.length;
++l){d=c[l];
if(this.shouldCluster(d,f)){this.addToCluster(d,f);
h=true;
break
}}if(!h){c.push(this.createCluster(this.features[m]))
}}}this.layer.destroyFeatures();
if(c.length>0){if(this.threshold>1){var b=c.slice();
c=[];
var e;
for(var m=0,a=b.length;
m<a;
++m){e=b[m];
if(e.attributes.count<this.threshold){Array.prototype.push.apply(c,e.cluster)
}else{c.push(e)
}}}this.clustering=true;
this.layer.addFeatures(c);
this.clustering=false
}this.clusters=c
}}},clustersExist:function(){var b=false;
if(this.clusters&&this.clusters.length>0&&this.clusters.length==this.layer.features.length){b=true;
for(var a=0;
a<this.clusters.length;
++a){if(this.clusters[a]!=this.layer.features[a]){b=false;
break
}}}return b
},shouldCluster:function(d,e){var c=d.geometry.getBounds().getCenterLonLat();
var a=e.geometry.getBounds().getCenterLonLat();
var b=(Math.sqrt(Math.pow((c.lon-a.lon),2)+Math.pow((c.lat-a.lat),2))/this.resolution);
return(b<=this.distance)
},addToCluster:function(a,b){a.cluster.push(b);
a.attributes.count+=1
},createCluster:function(a){var c=a.geometry.getBounds().getCenterLonLat();
var b=new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(c.lon,c.lat),{count:1});
b.cluster=[a];
return b
},CLASS_NAME:"OpenLayers.Strategy.Cluster"});
OpenLayers.Strategy.Fixed=OpenLayers.Class(OpenLayers.Strategy,{preload:false,initialize:function(a){OpenLayers.Strategy.prototype.initialize.apply(this,[a])
},destroy:function(){OpenLayers.Strategy.prototype.destroy.apply(this,arguments)
},activate:function(){if(OpenLayers.Strategy.prototype.activate.apply(this,arguments)){this.layer.events.on({refresh:this.load,scope:this});
if(this.layer.visibility==true||this.preload){this.load()
}else{this.layer.events.on({visibilitychanged:this.load,scope:this})
}return true
}return false
},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);
if(a){this.layer.events.un({refresh:this.load,visibilitychanged:this.load,scope:this})
}return a
},load:function(a){this.layer.events.triggerEvent("loadstart");
this.layer.protocol.read(OpenLayers.Util.applyDefaults({callback:this.merge,filter:this.layer.filter,scope:this},a));
this.layer.events.un({visibilitychanged:this.load,scope:this})
},merge:function(d){this.layer.destroyFeatures();
var b=d.features;
if(b&&b.length>0){var c=this.layer.projection;
var a=this.layer.map.getProjectionObject();
if(!a.equals(c)){var g;
for(var f=0,e=b.length;
f<e;
++f){g=b[f].geometry;
if(g){g.transform(c,a)
}}}this.layer.addFeatures(b)
}this.layer.events.triggerEvent("loadend")
},CLASS_NAME:"OpenLayers.Strategy.Fixed"});
OpenLayers.Strategy.Paging=OpenLayers.Class(OpenLayers.Strategy,{features:null,length:10,num:null,paging:false,initialize:function(a){OpenLayers.Strategy.prototype.initialize.apply(this,[a])
},activate:function(){var a=OpenLayers.Strategy.prototype.activate.call(this);
if(a){this.layer.events.on({beforefeaturesadded:this.cacheFeatures,scope:this})
}return a
},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);
if(a){this.clearCache();
this.layer.events.un({beforefeaturesadded:this.cacheFeatures,scope:this})
}return a
},cacheFeatures:function(a){if(!this.paging){this.clearCache();
this.features=a.features;
this.pageNext(a)
}},clearCache:function(){if(this.features){for(var a=0;
a<this.features.length;
++a){this.features[a].destroy()
}}this.features=null;
this.num=null
},pageCount:function(){var a=this.features?this.features.length:0;
return Math.ceil(a/this.length)
},pageNum:function(){return this.num
},pageLength:function(a){if(a&&a>0){this.length=a
}return this.length
},pageNext:function(b){var c=false;
if(this.features){if(this.num===null){this.num=-1
}var a=(this.num+1)*this.length;
c=this.page(a,b)
}return c
},pagePrevious:function(){var a=false;
if(this.features){if(this.num===null){this.num=this.pageCount()
}var b=(this.num-1)*this.length;
a=this.page(b)
}return a
},page:function(c,a){var b=false;
if(this.features){if(c>=0&&c<this.features.length){var d=Math.floor(c/this.length);
if(d!=this.num){this.paging=true;
var e=this.features.slice(c,c+this.length);
this.layer.removeFeatures(this.layer.features);
this.num=d;
if(a&&a.features){a.features=e
}else{this.layer.addFeatures(e)
}this.paging=false;
b=true
}}}return b
},CLASS_NAME:"OpenLayers.Strategy.Paging"});
OpenLayers.Strategy.Refresh=OpenLayers.Class(OpenLayers.Strategy,{force:false,interval:0,timer:null,initialize:function(a){OpenLayers.Strategy.prototype.initialize.apply(this,[a])
},activate:function(){var a=OpenLayers.Strategy.prototype.activate.call(this);
if(a){if(this.layer.visibility===true){this.start()
}this.layer.events.on({visibilitychanged:this.reset,scope:this})
}return a
},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);
if(a){this.stop()
}return a
},reset:function(){if(this.layer.visibility===true){this.start()
}else{this.stop()
}},start:function(){if(this.interval&&typeof this.interval==="number"&&this.interval>0){this.timer=window.setInterval(OpenLayers.Function.bind(this.refresh,this),this.interval)
}},refresh:function(){if(this.layer&&this.layer.refresh&&typeof this.layer.refresh=="function"){this.layer.refresh({force:this.force})
}},stop:function(){if(this.timer!==null){window.clearInterval(this.timer);
this.timer=null
}},CLASS_NAME:"OpenLayers.Strategy.Refresh"});
OpenLayers.Strategy.Save=OpenLayers.Class(OpenLayers.Strategy,{EVENT_TYPES:["start","success","fail"],events:null,auto:false,timer:null,initialize:function(a){OpenLayers.Strategy.prototype.initialize.apply(this,[a]);
this.events=new OpenLayers.Events(this,null,this.EVENT_TYPES)
},activate:function(){var a=OpenLayers.Strategy.prototype.activate.call(this);
if(a){if(this.auto){if(typeof this.auto==="number"){this.timer=window.setInterval(OpenLayers.Function.bind(this.save,this),this.auto*1000)
}else{this.layer.events.on({featureadded:this.triggerSave,afterfeaturemodified:this.triggerSave,scope:this})
}}}return a
},deactivate:function(){var a=OpenLayers.Strategy.prototype.deactivate.call(this);
if(a){if(this.auto){if(typeof this.auto==="number"){window.clearInterval(this.timer)
}else{this.layer.events.un({featureadded:this.triggerSave,afterfeaturemodified:this.triggerSave,scope:this})
}}}return a
},triggerSave:function(b){var a=b.feature;
if(a.state===OpenLayers.State.INSERT||a.state===OpenLayers.State.UPDATE||a.state===OpenLayers.State.DELETE){this.save([b.feature])
}},save:function(g){if(!g){g=this.layer.features
}this.events.triggerEvent("start",{features:g});
var a=this.layer.projection;
var f=this.layer.map.getProjectionObject();
if(!f.equals(a)){var d=g.length;
var h=new Array(d);
var c,b;
for(var e=0;
e<d;
++e){c=g[e];
b=c.clone();
b.fid=c.fid;
b.state=c.state;
if(c.url){b.url=c.url
}b._original=c;
b.geometry.transform(f,a);
h[e]=b
}g=h
}this.layer.protocol.commit(g,{callback:this.onCommit,scope:this})
},onCommit:function(a){var f={response:a};
if(a.success()){var k=a.reqFeatures;
var h,g;
var l=[];
var e=a.insertIds||[];
var b=0;
for(var c=0,d=k.length;
c<d;
++c){g=k[c];
g=g._original||g;
h=g.state;
if(h){if(h==OpenLayers.State.DELETE){l.push(g)
}else{if(h==OpenLayers.State.INSERT){g.fid=e[b];
++b
}}g.state=null
}}if(l.length>0){this.layer.destroyFeatures(l)
}this.events.triggerEvent("success",f)
}else{this.events.triggerEvent("fail",f)
}},CLASS_NAME:"OpenLayers.Strategy.Save"});
OpenLayers.Tween=OpenLayers.Class({INTERVAL:10,easing:null,begin:null,finish:null,duration:null,callbacks:null,time:null,interval:null,playing:false,initialize:function(a){this.easing=(a)?a:OpenLayers.Easing.Expo.easeOut
},start:function(a,d,b,c){this.playing=true;
this.begin=a;
this.finish=d;
this.duration=b;
this.callbacks=c.callbacks;
this.time=0;
if(this.interval){window.clearInterval(this.interval);
this.interval=null
}if(this.callbacks&&this.callbacks.start){this.callbacks.start.call(this,this.begin)
}this.interval=window.setInterval(OpenLayers.Function.bind(this.play,this),this.INTERVAL)
},stop:function(){if(!this.playing){return
}if(this.callbacks&&this.callbacks.done){this.callbacks.done.call(this,this.finish)
}window.clearInterval(this.interval);
this.interval=null;
this.playing=false
},play:function(){var g={};
for(var d in this.begin){var a=this.begin[d];
var e=this.finish[d];
if(a==null||e==null||isNaN(a)||isNaN(e)){OpenLayers.Console.error("invalid value for Tween")
}var h=e-a;
g[d]=this.easing.apply(this,[this.time,a,h,this.duration])
}this.time++;
if(this.callbacks&&this.callbacks.eachStep){this.callbacks.eachStep.call(this,g)
}if(this.time>this.duration){if(this.callbacks&&this.callbacks.done){this.callbacks.done.call(this,this.finish);
this.playing=false
}window.clearInterval(this.interval);
this.interval=null
}},CLASS_NAME:"OpenLayers.Tween"});
OpenLayers.Easing={CLASS_NAME:"OpenLayers.Easing"};
OpenLayers.Easing.Linear={easeIn:function(e,a,g,f){return g*e/f+a
},easeOut:function(e,a,g,f){return g*e/f+a
},easeInOut:function(e,a,g,f){return g*e/f+a
},CLASS_NAME:"OpenLayers.Easing.Linear"};
OpenLayers.Easing.Expo={easeIn:function(e,a,g,f){return(e==0)?a:g*Math.pow(2,10*(e/f-1))+a
},easeOut:function(e,a,g,f){return(e==f)?a+g:g*(-Math.pow(2,-10*e/f)+1)+a
},easeInOut:function(e,a,g,f){if(e==0){return a
}if(e==f){return a+g
}if((e/=f/2)<1){return g/2*Math.pow(2,10*(e-1))+a
}return g/2*(-Math.pow(2,-10*--e)+2)+a
},CLASS_NAME:"OpenLayers.Easing.Expo"};
OpenLayers.Easing.Quad={easeIn:function(e,a,g,f){return g*(e/=f)*e+a
},easeOut:function(e,a,g,f){return -g*(e/=f)*(e-2)+a
},easeInOut:function(e,a,g,f){if((e/=f/2)<1){return g/2*e*e+a
}return -g/2*((--e)*(e-2)-1)+a
},CLASS_NAME:"OpenLayers.Easing.Quad"};
OpenLayers.Control.ArgParser=OpenLayers.Class(OpenLayers.Control,{center:null,zoom:null,layers:null,displayProjection:null,initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,arguments)
},setMap:function(c){OpenLayers.Control.prototype.setMap.apply(this,arguments);
for(var a=0,d=this.map.controls.length;
a<d;
a++){var b=this.map.controls[a];
if((b!=this)&&(b.CLASS_NAME=="OpenLayers.Control.ArgParser")){if(b.displayProjection!=this.displayProjection){this.displayProjection=b.displayProjection
}break
}}if(a==this.map.controls.length){var e=OpenLayers.Util.getParameters();
if(e.layers){this.layers=e.layers;
this.map.events.register("addlayer",this,this.configureLayers);
this.configureLayers()
}if(e.lat&&e.lon){this.center=new OpenLayers.LonLat(parseFloat(e.lon),parseFloat(e.lat));
if(e.zoom){this.zoom=parseInt(e.zoom)
}this.map.events.register("changebaselayer",this,this.setCenter);
this.setCenter()
}}},setCenter:function(){if(this.map.baseLayer){this.map.events.unregister("changebaselayer",this,this.setCenter);
if(this.displayProjection){this.center.transform(this.displayProjection,this.map.getProjectionObject())
}this.map.setCenter(this.center,this.zoom)
}},configureLayers:function(){if(this.layers.length==this.map.layers.length){this.map.events.unregister("addlayer",this,this.configureLayers);
for(var a=0,d=this.layers.length;
a<d;
a++){var e=this.map.layers[a];
var b=this.layers.charAt(a);
if(b=="B"){this.map.setBaseLayer(e)
}else{if((b=="T")||(b=="F")){e.setVisibility(b=="T")
}}}}},CLASS_NAME:"OpenLayers.Control.ArgParser"});
OpenLayers.Control.Attribution=OpenLayers.Class(OpenLayers.Control,{separator:", ",initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,arguments)
},destroy:function(){this.map.events.un({removelayer:this.updateAttribution,addlayer:this.updateAttribution,changelayer:this.updateAttribution,changebaselayer:this.updateAttribution,scope:this});
OpenLayers.Control.prototype.destroy.apply(this,arguments)
},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);
this.map.events.on({changebaselayer:this.updateAttribution,changelayer:this.updateAttribution,addlayer:this.updateAttribution,removelayer:this.updateAttribution,scope:this});
this.updateAttribution();
return this.div
},updateAttribution:function(){var b=[];
if(this.map&&this.map.layers){for(var a=0,c=this.map.layers.length;
a<c;
a++){var d=this.map.layers[a];
if(d.attribution&&d.getVisibility()){if(OpenLayers.Util.indexOf(b,d.attribution)===-1){b.push(d.attribution)
}}}this.div.innerHTML=b.join(this.separator)
}},CLASS_NAME:"OpenLayers.Control.Attribution"});
OpenLayers.Control.Button=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_BUTTON,trigger:function(){},CLASS_NAME:"OpenLayers.Control.Button"});
OpenLayers.Control.Graticule=OpenLayers.Class(OpenLayers.Control,{intervals:[45,30,20,10,5,2,1,0.5,0.2,0.1,0.05,0.01,0.005,0.002,0.001],displayInLayerSwitcher:true,visible:true,numPoints:50,targetSize:200,layerName:"Graticule",labelled:true,labelFormat:"dm",lineSymbolizer:{strokeColor:"#333",strokeWidth:1,strokeOpacity:0.5},labelSymbolizer:{},gratLayer:null,initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,[a]);
this.labelSymbolizer.stroke=false;
this.labelSymbolizer.fill=false;
this.labelSymbolizer.label="${label}";
this.labelSymbolizer.labelAlign="${labelAlign}";
this.labelSymbolizer.labelXOffset="${xOffset}";
this.labelSymbolizer.labelYOffset="${yOffset}"
},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);
if(!this.gratLayer){var a=new OpenLayers.Style({},{rules:[new OpenLayers.Rule({symbolizer:{Point:this.labelSymbolizer,Line:this.lineSymbolizer}})]});
this.gratLayer=new OpenLayers.Layer.Vector(this.layerName,{styleMap:new OpenLayers.StyleMap({"default":a}),visibility:this.visible,displayInLayerSwitcher:this.displayInLayerSwitcher});
this.map.addLayer(this.gratLayer)
}this.map.events.register("moveend",this,this.update);
this.update();
return this.div
},update:function(){var C=this.map.getExtent();
if(!C){return
}this.gratLayer.destroyFeatures();
var D=new OpenLayers.Projection("EPSG:4326");
var l=this.map.getProjectionObject();
var y=this.map.getResolution();
if(l.proj&&l.proj.projName=="longlat"){this.numPoints=1
}var B=this.map.getCenter();
var b=new OpenLayers.Pixel(B.lon,B.lat);
OpenLayers.Projection.transform(b,l,D);
var q=this.targetSize*y;
q*=q;
var I;
for(var a=0;
a<this.intervals.length;
++a){I=this.intervals[a];
var o=I/2;
var v=b.offset(new OpenLayers.Pixel(-o,-o));
var t=b.offset(new OpenLayers.Pixel(o,o));
OpenLayers.Projection.transform(v,D,l);
OpenLayers.Projection.transform(t,D,l);
var w=(v.x-t.x)*(v.x-t.x)+(v.y-t.y)*(v.y-t.y);
if(w<=q){break
}}b.x=Math.floor(b.x/I)*I;
b.y=Math.floor(b.y/I)*I;
var J=0;
var K=[b.clone()];
var G=b.clone();
var z;
do{G=G.offset(new OpenLayers.Pixel(0,I));
z=OpenLayers.Projection.transform(G.clone(),D,l);
K.unshift(G)
}while(C.containsPixel(z)&&++J<1000);
G=b.clone();
do{G=G.offset(new OpenLayers.Pixel(0,-I));
z=OpenLayers.Projection.transform(G.clone(),D,l);
K.push(G)
}while(C.containsPixel(z)&&++J<1000);
J=0;
var m=[b.clone()];
G=b.clone();
do{G=G.offset(new OpenLayers.Pixel(-I,0));
z=OpenLayers.Projection.transform(G.clone(),D,l);
m.unshift(G)
}while(C.containsPixel(z)&&++J<1000);
G=b.clone();
do{G=G.offset(new OpenLayers.Pixel(I,0));
z=OpenLayers.Projection.transform(G.clone(),D,l);
m.push(G)
}while(C.containsPixel(z)&&++J<1000);
var s=[];
for(var a=0;
a<m.length;
++a){var x=m[a].x;
var h=[];
var r=null;
var d=Math.min(K[0].y,90);
var F=Math.max(K[K.length-1].y,-90);
var u=(d-F)/this.numPoints;
var A=F;
for(var H=0;
H<=this.numPoints;
++H){var f=new OpenLayers.Geometry.Point(x,A);
f.transform(D,l);
h.push(f);
A+=u;
if(f.y>=C.bottom&&!r){r=f
}}if(this.labelled){var e=new OpenLayers.Geometry.Point(r.x,C.bottom);
var k={value:x,label:this.labelled?OpenLayers.Util.getFormattedLonLat(x,"lon",this.labelFormat):"",labelAlign:"cb",xOffset:0,yOffset:2};
this.gratLayer.addFeatures(new OpenLayers.Feature.Vector(e,k))
}var g=new OpenLayers.Geometry.LineString(h);
s.push(new OpenLayers.Feature.Vector(g))
}for(var H=0;
H<K.length;
++H){A=K[H].y;
if(A<-90||A>90){continue
}var h=[];
var p=m[0].x;
var c=m[m.length-1].x;
var E=(c-p)/this.numPoints;
var x=p;
var r=null;
for(var a=0;
a<=this.numPoints;
++a){var f=new OpenLayers.Geometry.Point(x,A);
f.transform(D,l);
h.push(f);
x+=E;
if(f.x<C.right){r=f
}}if(this.labelled){var e=new OpenLayers.Geometry.Point(C.right,r.y);
var k={value:A,label:this.labelled?OpenLayers.Util.getFormattedLonLat(A,"lat",this.labelFormat):"",labelAlign:"rb",xOffset:-2,yOffset:2};
this.gratLayer.addFeatures(new OpenLayers.Feature.Vector(e,k))
}var g=new OpenLayers.Geometry.LineString(h);
s.push(new OpenLayers.Feature.Vector(g))
}this.gratLayer.addFeatures(s)
},CLASS_NAME:"OpenLayers.Control.Graticule"});
OpenLayers.Control.LayerSwitcher=OpenLayers.Class(OpenLayers.Control,{roundedCorner:true,roundedCornerColor:"darkblue",layerStates:null,layersDiv:null,baseLayersDiv:null,baseLayers:null,dataLbl:null,dataLayersDiv:null,dataLayers:null,minimizeDiv:null,maximizeDiv:null,ascending:true,initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,arguments);
this.layerStates=[]
},destroy:function(){OpenLayers.Event.stopObservingElement(this.div);
OpenLayers.Event.stopObservingElement(this.minimizeDiv);
OpenLayers.Event.stopObservingElement(this.maximizeDiv);
this.clearLayersArray("base");
this.clearLayersArray("data");
this.map.events.un({addlayer:this.redraw,changelayer:this.redraw,removelayer:this.redraw,changebaselayer:this.redraw,scope:this});
OpenLayers.Control.prototype.destroy.apply(this,arguments)
},setMap:function(a){OpenLayers.Control.prototype.setMap.apply(this,arguments);
this.map.events.on({addlayer:this.redraw,changelayer:this.redraw,removelayer:this.redraw,changebaselayer:this.redraw,scope:this})
},draw:function(){OpenLayers.Control.prototype.draw.apply(this);
this.loadContents();
if(!this.outsideViewport){this.minimizeControl()
}this.redraw();
return this.div
},clearLayersArray:function(b){var c=this[b+"Layers"];
if(c){for(var a=0,d=c.length;
a<d;
a++){var e=c[a];
OpenLayers.Event.stopObservingElement(e.inputElem);
OpenLayers.Event.stopObservingElement(e.labelSpan)
}}this[b+"LayersDiv"].innerHTML="";
this[b+"Layers"]=[]
},checkRedraw:function(){var c=false;
if(!this.layerStates.length||(this.map.layers.length!=this.layerStates.length)){c=true
}else{for(var a=0,d=this.layerStates.length;
a<d;
a++){var b=this.layerStates[a];
var e=this.map.layers[a];
if((b.name!=e.name)||(b.inRange!=e.inRange)||(b.id!=e.id)||(b.visibility!=e.visibility)){c=true;
break
}}}return c
},redraw:function(){if(!this.checkRedraw()){return this.div
}this.clearLayersArray("base");
this.clearLayersArray("data");
var g=false;
var a=false;
var l=this.map.layers.length;
this.layerStates=new Array(l);
for(var j=0;
j<l;
j++){var k=this.map.layers[j];
this.layerStates[j]={name:k.name,visibility:k.visibility,inRange:k.inRange,id:k.id}
}var h=this.map.layers.slice();
if(!this.ascending){h.reverse()
}for(var j=0,l=h.length;
j<l;
j++){var k=h[j];
var m=k.isBaseLayer;
if(k.displayInLayerSwitcher){if(m){a=true
}else{g=true
}var p=(m)?(k==this.map.baseLayer):k.getVisibility();
var o=document.createElement("input");
o.id=this.id+"_input_"+k.name;
o.name=(m)?this.id+"_baseLayers":k.name;
o.type=(m)?"radio":"checkbox";
o.value=k.name;
o.checked=p;
o.defaultChecked=p;
if(!m&&!k.inRange){o.disabled=true
}var c={inputElem:o,layer:k,layerSwitcher:this};
OpenLayers.Event.observe(o,"mouseup",OpenLayers.Function.bindAsEventListener(this.onInputClick,c));
var d=document.createElement("span");
OpenLayers.Element.addClass(d,"labelSpan");
if(!m&&!k.inRange){d.style.color="gray"
}d.innerHTML=k.name;
d.style.verticalAlign=(m)?"bottom":"baseline";
OpenLayers.Event.observe(d,"click",OpenLayers.Function.bindAsEventListener(this.onInputClick,c));
var f=document.createElement("br");
var b=(m)?this.baseLayers:this.dataLayers;
b.push({layer:k,inputElem:o,labelSpan:d});
var e=(m)?this.baseLayersDiv:this.dataLayersDiv;
e.appendChild(o);
e.appendChild(d);
e.appendChild(f)
}}this.dataLbl.style.display=(g)?"":"none";
this.baseLbl.style.display=(a)?"":"none";
return this.div
},onInputClick:function(a){if(!this.inputElem.disabled){if(this.inputElem.type=="radio"){this.inputElem.checked=true;
this.layer.map.setBaseLayer(this.layer)
}else{this.inputElem.checked=!this.inputElem.checked;
this.layerSwitcher.updateMap()
}}OpenLayers.Event.stop(a)
},onLayerClick:function(a){this.updateMap()
},updateMap:function(){for(var c=0,b=this.baseLayers.length;
c<b;
c++){var a=this.baseLayers[c];
if(a.inputElem.checked){this.map.setBaseLayer(a.layer,false)
}}for(var c=0,b=this.dataLayers.length;
c<b;
c++){var a=this.dataLayers[c];
a.layer.setVisibility(a.inputElem.checked)
}},maximizeControl:function(a){this.div.style.width="";
this.div.style.height="";
this.showControls(false);
if(a!=null){OpenLayers.Event.stop(a)
}},minimizeControl:function(a){this.div.style.width="0px";
this.div.style.height="0px";
this.showControls(true);
if(a!=null){OpenLayers.Event.stop(a)
}},showControls:function(a){this.maximizeDiv.style.display=a?"":"none";
this.minimizeDiv.style.display=a?"none":"";
this.layersDiv.style.display=a?"none":""
},loadContents:function(){OpenLayers.Event.observe(this.div,"mouseup",OpenLayers.Function.bindAsEventListener(this.mouseUp,this));
OpenLayers.Event.observe(this.div,"click",this.ignoreEvent);
OpenLayers.Event.observe(this.div,"mousedown",OpenLayers.Function.bindAsEventListener(this.mouseDown,this));
OpenLayers.Event.observe(this.div,"dblclick",this.ignoreEvent);
this.layersDiv=document.createElement("div");
this.layersDiv.id=this.id+"_layersDiv";
OpenLayers.Element.addClass(this.layersDiv,"layersDiv");
this.baseLbl=document.createElement("div");
this.baseLbl.innerHTML=OpenLayers.i18n("baseLayer");
OpenLayers.Element.addClass(this.baseLbl,"baseLbl");
this.baseLayersDiv=document.createElement("div");
OpenLayers.Element.addClass(this.baseLayersDiv,"baseLayersDiv");
this.dataLbl=document.createElement("div");
this.dataLbl.innerHTML=OpenLayers.i18n("overlays");
OpenLayers.Element.addClass(this.dataLbl,"dataLbl");
this.dataLayersDiv=document.createElement("div");
OpenLayers.Element.addClass(this.dataLayersDiv,"dataLayersDiv");
if(this.ascending){this.layersDiv.appendChild(this.baseLbl);
this.layersDiv.appendChild(this.baseLayersDiv);
this.layersDiv.appendChild(this.dataLbl);
this.layersDiv.appendChild(this.dataLayersDiv)
}else{this.layersDiv.appendChild(this.dataLbl);
this.layersDiv.appendChild(this.dataLayersDiv);
this.layersDiv.appendChild(this.baseLbl);
this.layersDiv.appendChild(this.baseLayersDiv)
}this.div.appendChild(this.layersDiv);
if(this.roundedCorner){OpenLayers.Rico.Corner.round(this.div,{corners:"tl bl",bgColor:"transparent",color:this.roundedCornerColor,blend:false});
OpenLayers.Rico.Corner.changeOpacity(this.layersDiv,0.75)
}var a=OpenLayers.Util.getImagesLocation();
var c=new OpenLayers.Size(18,18);
var b=a+"layer-switcher-maximize.png";
this.maximizeDiv=OpenLayers.Util.createAlphaImageDiv("OpenLayers_Control_MaximizeDiv",null,c,b,"absolute");
OpenLayers.Element.addClass(this.maximizeDiv,"maximizeDiv");
this.maximizeDiv.style.display="none";
OpenLayers.Event.observe(this.maximizeDiv,"click",OpenLayers.Function.bindAsEventListener(this.maximizeControl,this));
this.div.appendChild(this.maximizeDiv);
var b=a+"layer-switcher-minimize.png";
var c=new OpenLayers.Size(18,18);
this.minimizeDiv=OpenLayers.Util.createAlphaImageDiv("OpenLayers_Control_MinimizeDiv",null,c,b,"absolute");
OpenLayers.Element.addClass(this.minimizeDiv,"minimizeDiv");
this.minimizeDiv.style.display="none";
OpenLayers.Event.observe(this.minimizeDiv,"click",OpenLayers.Function.bindAsEventListener(this.minimizeControl,this));
this.div.appendChild(this.minimizeDiv)
},ignoreEvent:function(a){OpenLayers.Event.stop(a)
},mouseDown:function(a){this.isMouseDown=true;
this.ignoreEvent(a)
},mouseUp:function(a){if(this.isMouseDown){this.isMouseDown=false;
this.ignoreEvent(a)
}},CLASS_NAME:"OpenLayers.Control.LayerSwitcher"});
OpenLayers.Control.MouseDefaults=OpenLayers.Class(OpenLayers.Control,{performedDrag:false,wheelObserver:null,initialize:function(){OpenLayers.Control.prototype.initialize.apply(this,arguments)
},destroy:function(){if(this.handler){this.handler.destroy()
}this.handler=null;
this.map.events.un({click:this.defaultClick,dblclick:this.defaultDblClick,mousedown:this.defaultMouseDown,mouseup:this.defaultMouseUp,mousemove:this.defaultMouseMove,mouseout:this.defaultMouseOut,scope:this});
OpenLayers.Event.stopObserving(window,"DOMMouseScroll",this.wheelObserver);
OpenLayers.Event.stopObserving(window,"mousewheel",this.wheelObserver);
OpenLayers.Event.stopObserving(document,"mousewheel",this.wheelObserver);
this.wheelObserver=null;
OpenLayers.Control.prototype.destroy.apply(this,arguments)
},draw:function(){this.map.events.on({click:this.defaultClick,dblclick:this.defaultDblClick,mousedown:this.defaultMouseDown,mouseup:this.defaultMouseUp,mousemove:this.defaultMouseMove,mouseout:this.defaultMouseOut,scope:this});
this.registerWheelEvents()
},registerWheelEvents:function(){this.wheelObserver=OpenLayers.Function.bindAsEventListener(this.onWheelEvent,this);
OpenLayers.Event.observe(window,"DOMMouseScroll",this.wheelObserver);
OpenLayers.Event.observe(window,"mousewheel",this.wheelObserver);
OpenLayers.Event.observe(document,"mousewheel",this.wheelObserver)
},defaultClick:function(b){if(!OpenLayers.Event.isLeftClick(b)){return
}var a=!this.performedDrag;
this.performedDrag=false;
return a
},defaultDblClick:function(b){var a=this.map.getLonLatFromViewPortPx(b.xy);
this.map.setCenter(a,this.map.zoom+1);
OpenLayers.Event.stop(b);
return false
},defaultMouseDown:function(a){if(!OpenLayers.Event.isLeftClick(a)){return
}this.mouseDragStart=a.xy.clone();
this.performedDrag=false;
if(a.shiftKey){this.map.div.style.cursor="crosshair";
this.zoomBox=OpenLayers.Util.createDiv("zoomBox",this.mouseDragStart,null,null,"absolute","2px solid red");
this.zoomBox.style.backgroundColor="white";
this.zoomBox.style.filter="alpha(opacity=50)";
this.zoomBox.style.opacity="0.50";
this.zoomBox.style.fontSize="1px";
this.zoomBox.style.zIndex=this.map.Z_INDEX_BASE.Popup-1;
this.map.viewPortDiv.appendChild(this.zoomBox)
}document.onselectstart=OpenLayers.Function.False;
OpenLayers.Event.stop(a)
},defaultMouseMove:function(c){this.mousePosition=c.xy.clone();
if(this.mouseDragStart!=null){if(this.zoomBox){var b=Math.abs(this.mouseDragStart.x-c.xy.x);
var f=Math.abs(this.mouseDragStart.y-c.xy.y);
this.zoomBox.style.width=Math.max(1,b)+"px";
this.zoomBox.style.height=Math.max(1,f)+"px";
if(c.xy.x<this.mouseDragStart.x){this.zoomBox.style.left=c.xy.x+"px"
}if(c.xy.y<this.mouseDragStart.y){this.zoomBox.style.top=c.xy.y+"px"
}}else{var b=this.mouseDragStart.x-c.xy.x;
var f=this.mouseDragStart.y-c.xy.y;
var d=this.map.getSize();
var e=new OpenLayers.Pixel(d.w/2+b,d.h/2+f);
var a=this.map.getLonLatFromViewPortPx(e);
this.map.setCenter(a,null,true);
this.mouseDragStart=c.xy.clone();
this.map.div.style.cursor="move"
}this.performedDrag=true
}},defaultMouseUp:function(a){if(!OpenLayers.Event.isLeftClick(a)){return
}if(this.zoomBox){this.zoomBoxEnd(a)
}else{if(this.performedDrag){this.map.setCenter(this.map.center)
}}document.onselectstart=null;
this.mouseDragStart=null;
this.map.div.style.cursor=""
},defaultMouseOut:function(a){if(this.mouseDragStart!=null&&OpenLayers.Util.mouseLeft(a,this.map.div)){if(this.zoomBox){this.removeZoomBox()
}this.mouseDragStart=null
}},defaultWheelUp:function(a){if(this.map.getZoom()<=this.map.getNumZoomLevels()){this.map.setCenter(this.map.getLonLatFromPixel(a.xy),this.map.getZoom()+1)
}},defaultWheelDown:function(a){if(this.map.getZoom()>0){this.map.setCenter(this.map.getLonLatFromPixel(a.xy),this.map.getZoom()-1)
}},zoomBoxEnd:function(e){if(this.mouseDragStart!=null){if(Math.abs(this.mouseDragStart.x-e.xy.x)>5||Math.abs(this.mouseDragStart.y-e.xy.y)>5){var c=this.map.getLonLatFromViewPortPx(this.mouseDragStart);
var d=this.map.getLonLatFromViewPortPx(e.xy);
var b=Math.max(c.lat,d.lat);
var f=Math.min(c.lat,d.lat);
var a=Math.min(c.lon,d.lon);
var g=Math.max(c.lon,d.lon);
var h=new OpenLayers.Bounds(a,f,g,b);
this.map.zoomToExtent(h)
}else{var d=this.map.getLonLatFromViewPortPx(e.xy);
this.map.setCenter(new OpenLayers.LonLat((d.lon),(d.lat)),this.map.getZoom()+1)
}this.removeZoomBox()
}},removeZoomBox:function(){this.map.viewPortDiv.removeChild(this.zoomBox);
this.zoomBox=null
},onWheelEvent:function(a){var d=false;
var c=OpenLayers.Event.element(a);
while(c!=null){if(this.map&&c==this.map.div){d=true;
break
}c=c.parentNode
}if(d){var b=0;
if(!a){a=window.event
}if(a.wheelDelta){b=a.wheelDelta/120;
if(window.opera&&window.opera.version()<9.2){b=-b
}}else{if(a.detail){b=-a.detail/3
}}if(b){a.xy=this.mousePosition;
if(b<0){this.defaultWheelDown(a)
}else{this.defaultWheelUp(a)
}}OpenLayers.Event.stop(a)
}},CLASS_NAME:"OpenLayers.Control.MouseDefaults"});
OpenLayers.Control.MousePosition=OpenLayers.Class(OpenLayers.Control,{element:null,prefix:"",separator:", ",suffix:"",numDigits:5,granularity:10,emptyString:null,lastXy:null,displayProjection:null,initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,arguments)
},destroy:function(){if(this.map){this.map.events.unregister("mousemove",this,this.redraw)
}OpenLayers.Control.prototype.destroy.apply(this,arguments)
},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);
if(!this.element){this.div.left="";
this.div.top="";
this.element=this.div
}this.redraw();
return this.div
},redraw:function(b){var a;
if(b==null){this.reset();
return
}else{if(this.lastXy==null||Math.abs(b.xy.x-this.lastXy.x)>this.granularity||Math.abs(b.xy.y-this.lastXy.y)>this.granularity){this.lastXy=b.xy;
return
}a=this.map.getLonLatFromPixel(b.xy);
if(!a){return
}if(this.displayProjection){a.transform(this.map.getProjectionObject(),this.displayProjection)
}this.lastXy=b.xy
}var c=this.formatOutput(a);
if(c!=this.element.innerHTML){this.element.innerHTML=c
}},reset:function(a){if(this.emptyString!=null){this.element.innerHTML=this.emptyString
}},formatOutput:function(c){var a=parseInt(this.numDigits);
var b=this.prefix+c.lon.toFixed(a)+this.separator+c.lat.toFixed(a)+this.suffix;
return b
},setMap:function(){OpenLayers.Control.prototype.setMap.apply(this,arguments);
this.map.events.register("mousemove",this,this.redraw);
this.map.events.register("mouseout",this,this.reset)
},CLASS_NAME:"OpenLayers.Control.MousePosition"});
OpenLayers.Control.Pan=OpenLayers.Class(OpenLayers.Control,{slideFactor:50,direction:null,type:OpenLayers.Control.TYPE_BUTTON,initialize:function(b,a){this.direction=b;
this.CLASS_NAME+=this.direction;
OpenLayers.Control.prototype.initialize.apply(this,[a])
},trigger:function(){switch(this.direction){case OpenLayers.Control.Pan.NORTH:this.map.pan(0,-this.slideFactor);
break;
case OpenLayers.Control.Pan.SOUTH:this.map.pan(0,this.slideFactor);
break;
case OpenLayers.Control.Pan.WEST:this.map.pan(-this.slideFactor,0);
break;
case OpenLayers.Control.Pan.EAST:this.map.pan(this.slideFactor,0);
break
}},CLASS_NAME:"OpenLayers.Control.Pan"});
OpenLayers.Control.Pan.NORTH="North";
OpenLayers.Control.Pan.SOUTH="South";
OpenLayers.Control.Pan.EAST="East";
OpenLayers.Control.Pan.WEST="West";
OpenLayers.Control.PanZoom=OpenLayers.Class(OpenLayers.Control,{slideFactor:50,slideRatio:null,buttons:null,position:null,initialize:function(a){this.position=new OpenLayers.Pixel(OpenLayers.Control.PanZoom.X,OpenLayers.Control.PanZoom.Y);
OpenLayers.Control.prototype.initialize.apply(this,arguments)
},destroy:function(){OpenLayers.Control.prototype.destroy.apply(this,arguments);
this.removeButtons();
this.buttons=null;
this.position=null
},draw:function(c){OpenLayers.Control.prototype.draw.apply(this,arguments);
c=this.position;
this.buttons=[];
var a=new OpenLayers.Size(18,18);
var b=new OpenLayers.Pixel(c.x+a.w/2,c.y);
this._addButton("panup","north-mini.png",b,a);
c.y=b.y+a.h;
this._addButton("panleft","west-mini.png",c,a);
this._addButton("panright","east-mini.png",c.add(a.w,0),a);
this._addButton("pandown","south-mini.png",b.add(0,a.h*2),a);
this._addButton("zoomin","zoom-plus-mini.png",b.add(0,a.h*3+5),a);
this._addButton("zoomworld","zoom-world-mini.png",b.add(0,a.h*4+5),a);
this._addButton("zoomout","zoom-minus-mini.png",b.add(0,a.h*5+5),a);
return this.div
},_addButton:function(i,c,h,f){var e=OpenLayers.Util.getImagesLocation()+c;
var a=OpenLayers.Util.createAlphaImageDiv(this.id+"_"+i,h,f,e,"absolute");
this.div.appendChild(a);
OpenLayers.Event.observe(a,"mousedown",OpenLayers.Function.bindAsEventListener(this.buttonDown,a));
OpenLayers.Event.observe(a,"dblclick",OpenLayers.Function.bindAsEventListener(this.doubleClick,a));
OpenLayers.Event.observe(a,"click",OpenLayers.Function.bindAsEventListener(this.doubleClick,a));
a.action=i;
a.map=this.map;
if(!this.slideRatio){var b=this.slideFactor;
var d=function(){return b
}
}else{var g=this.slideRatio;
var d=function(j){return this.map.getSize()[j]*g
}
}a.getSlideFactor=d;
this.buttons.push(a);
return a
},_removeButton:function(a){OpenLayers.Event.stopObservingElement(a);
a.map=null;
a.getSlideFactor=null;
this.div.removeChild(a);
OpenLayers.Util.removeItem(this.buttons,a)
},removeButtons:function(){for(var a=this.buttons.length-1;
a>=0;
--a){this._removeButton(this.buttons[a])
}},doubleClick:function(a){OpenLayers.Event.stop(a);
return false
},buttonDown:function(a){if(!OpenLayers.Event.isLeftClick(a)){return
}switch(this.action){case"panup":this.map.pan(0,-this.getSlideFactor("h"));
break;
case"pandown":this.map.pan(0,this.getSlideFactor("h"));
break;
case"panleft":this.map.pan(-this.getSlideFactor("w"),0);
break;
case"panright":this.map.pan(this.getSlideFactor("w"),0);
break;
case"zoomin":this.map.zoomIn();
break;
case"zoomout":this.map.zoomOut();
break;
case"zoomworld":this.map.zoomToMaxExtent();
break
}OpenLayers.Event.stop(a)
},CLASS_NAME:"OpenLayers.Control.PanZoom"});
OpenLayers.Control.PanZoom.X=4;
OpenLayers.Control.PanZoom.Y=4;
OpenLayers.Control.Panel=OpenLayers.Class(OpenLayers.Control,{controls:null,autoActivate:true,defaultControl:null,initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,[a]);
this.controls=[]
},destroy:function(){OpenLayers.Control.prototype.destroy.apply(this,arguments);
for(var a=this.controls.length-1;
a>=0;
a--){if(this.controls[a].events){this.controls[a].events.un({activate:this.redraw,deactivate:this.redraw,scope:this})
}OpenLayers.Event.stopObservingElement(this.controls[a].panel_div);
this.controls[a].panel_div=null
}},activate:function(){if(OpenLayers.Control.prototype.activate.apply(this,arguments)){for(var b=0,a=this.controls.length;
b<a;
b++){if(this.controls[b]==this.defaultControl){this.controls[b].activate()
}}this.redraw();
return true
}else{return false
}},deactivate:function(){if(OpenLayers.Control.prototype.deactivate.apply(this,arguments)){for(var b=0,a=this.controls.length;
b<a;
b++){this.controls[b].deactivate()
}return true
}else{return false
}},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);
for(var b=0,a=this.controls.length;
b<a;
b++){this.map.addControl(this.controls[b]);
this.controls[b].deactivate();
this.controls[b].events.on({activate:this.redraw,deactivate:this.redraw,scope:this})
}return this.div
},redraw:function(){this.div.innerHTML="";
if(this.active){for(var a=0,b=this.controls.length;
a<b;
a++){var c=this.controls[a].panel_div;
if(this.controls[a].active){c.className=this.controls[a].displayClass+"ItemActive"
}else{c.className=this.controls[a].displayClass+"ItemInactive"
}this.div.appendChild(c)
}}},activateControl:function(a){if(!this.active){return false
}if(a.type==OpenLayers.Control.TYPE_BUTTON){a.trigger();
this.redraw();
return
}if(a.type==OpenLayers.Control.TYPE_TOGGLE){if(a.active){a.deactivate()
}else{a.activate()
}this.redraw();
return
}for(var c=0,b=this.controls.length;
c<b;
c++){if(this.controls[c]!=a){if(this.controls[c].type!=OpenLayers.Control.TYPE_TOGGLE){this.controls[c].deactivate()
}}}a.activate()
},addControls:function(d){if(!(d instanceof Array)){d=[d]
}this.controls=this.controls.concat(d);
for(var b=0,c=d.length;
b<c;
b++){var a=document.createElement("div");
d[b].panel_div=a;
if(d[b].title!=""){d[b].panel_div.title=d[b].title
}OpenLayers.Event.observe(d[b].panel_div,"click",OpenLayers.Function.bind(this.onClick,this,d[b]));
OpenLayers.Event.observe(d[b].panel_div,"dblclick",OpenLayers.Function.bind(this.onDoubleClick,this,d[b]));
OpenLayers.Event.observe(d[b].panel_div,"mousedown",OpenLayers.Function.bindAsEventListener(OpenLayers.Event.stop))
}if(this.map){for(var b=0,c=d.length;
b<c;
b++){this.map.addControl(d[b]);
d[b].deactivate();
d[b].events.on({activate:this.redraw,deactivate:this.redraw,scope:this})
}this.redraw()
}},onClick:function(b,a){OpenLayers.Event.stop(a?a:window.event);
this.activateControl(b)
},onDoubleClick:function(b,a){OpenLayers.Event.stop(a?a:window.event)
},getControlsBy:function(a,c){var b=(typeof c.test=="function");
var d=OpenLayers.Array.filter(this.controls,function(e){return e[a]==c||(b&&c.test(e[a]))
});
return d
},getControlsByName:function(a){return this.getControlsBy("name",a)
},getControlsByClass:function(a){return this.getControlsBy("CLASS_NAME",a)
},CLASS_NAME:"OpenLayers.Control.Panel"});
OpenLayers.Control.Scale=OpenLayers.Class(OpenLayers.Control,{element:null,initialize:function(b,a){OpenLayers.Control.prototype.initialize.apply(this,[a]);
this.element=OpenLayers.Util.getElement(b)
},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);
if(!this.element){this.element=document.createElement("div");
this.div.appendChild(this.element)
}this.map.events.register("moveend",this,this.updateScale);
this.updateScale();
return this.div
},updateScale:function(){var a=this.map.getScale();
if(!a){return
}if(a>=9500&&a<=950000){a=Math.round(a/1000)+"K"
}else{if(a>=950000){a=Math.round(a/1000000)+"M"
}else{a=Math.round(a)
}}this.element.innerHTML=OpenLayers.i18n("scale",{scaleDenom:a})
},CLASS_NAME:"OpenLayers.Control.Scale"});
OpenLayers.Control.ScaleLine=OpenLayers.Class(OpenLayers.Control,{maxWidth:100,topOutUnits:"km",topInUnits:"m",bottomOutUnits:"mi",bottomInUnits:"ft",eTop:null,eBottom:null,geodesic:false,initialize:function(a){OpenLayers.Control.prototype.initialize.apply(this,[a])
},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);
if(!this.eTop){this.eTop=document.createElement("div");
this.eTop.className=this.displayClass+"Top";
var a=this.topInUnits.length;
this.div.appendChild(this.eTop);
if((this.topOutUnits=="")||(this.topInUnits=="")){this.eTop.style.visibility="hidden"
}else{this.eTop.style.visibility="visible"
}this.eBottom=document.createElement("div");
this.eBottom.className=this.displayClass+"Bottom";
this.div.appendChild(this.eBottom);
if((this.bottomOutUnits=="")||(this.bottomInUnits=="")){this.eBottom.style.visibility="hidden"
}else{this.eBottom.style.visibility="visible"
}}this.map.events.register("moveend",this,this.update);
this.update();
return this.div
},getBarLen:function(e){var b=parseInt(Math.log(e)/Math.log(10));
var d=Math.pow(10,b);
var a=parseInt(e/d);
var c;
if(a>5){c=5
}else{if(a>2){c=2
}else{c=1
}}return c*d
},update:function(){var k=this.map.getResolution();
if(!k){return
}var d=this.map.getUnits();
var f=OpenLayers.INCHES_PER_UNIT;
var m=this.maxWidth*k*f[d];
var b=1;
if(this.geodesic===true){var a=this.getGeodesicLength(this.maxWidth);
var g=m/f.km;
b=a/g;
m*=b
}var p;
var e;
if(m>100000){p=this.topOutUnits;
e=this.bottomOutUnits
}else{p=this.topInUnits;
e=this.bottomInUnits
}var i=m/f[p];
var l=m/f[e];
var j=this.getBarLen(i);
var h=this.getBarLen(l);
i=j/f[d]*f[p];
l=h/f[d]*f[e];
var c=i/k/b;
var o=l/k/b;
if(this.eBottom.style.visibility=="visible"){this.eBottom.style.width=Math.round(o)+"px";
this.eBottom.innerHTML=h+" "+e
}if(this.eTop.style.visibility=="visible"){this.eTop.style.width=Math.round(c)+"px";
this.eTop.innerHTML=j+" "+p
}},getGeodesicLength:function(d){var c=this.map;
var g=c.getPixelFromLonLat(c.getCenter());
var e=c.getLonLatFromPixel(g.add(0,-d/2));
var b=c.getLonLatFromPixel(g.add(0,d/2));
var a=c.getProjectionObject();
var f=new OpenLayers.Projection("EPSG:4326");
if(!a.equals(f)){e.transform(a,f);
b.transform(a,f)
}return OpenLayers.Util.distVincenty(e,b)
},CLASS_NAME:"OpenLayers.Control.ScaleLine"});
OpenLayers.Control.ZoomIn=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_BUTTON,trigger:function(){this.map.zoomIn()
},CLASS_NAME:"OpenLayers.Control.ZoomIn"});
OpenLayers.Control.ZoomOut=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_BUTTON,trigger:function(){this.map.zoomOut()
},CLASS_NAME:"OpenLayers.Control.ZoomOut"});
OpenLayers.Control.ZoomToMaxExtent=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_BUTTON,trigger:function(){if(this.map){this.map.zoomToMaxExtent()
}},CLASS_NAME:"OpenLayers.Control.ZoomToMaxExtent"});
OpenLayers.Event={observers:false,KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(a){return a.target||a.srcElement
},isLeftClick:function(a){return(((a.which)&&(a.which==1))||((a.button)&&(a.button==1)))
},isRightClick:function(a){return(((a.which)&&(a.which==3))||((a.button)&&(a.button==2)))
},stop:function(b,a){if(!a){if(b.preventDefault){b.preventDefault()
}else{b.returnValue=false
}}if(b.stopPropagation){b.stopPropagation()
}else{b.cancelBubble=true
}},findElement:function(a,c){var b=OpenLayers.Event.element(a);
while(b.parentNode&&(!b.tagName||(b.tagName.toUpperCase()!=c.toUpperCase()))){b=b.parentNode
}return b
},observe:function(f,a,g,e){var b=OpenLayers.Util.getElement(f);
e=e||false;
if(a=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||b.attachEvent)){a="keydown"
}if(!this.observers){this.observers={}
}if(!b._eventCacheID){var c="eventCacheID_";
if(b.id){c=b.id+"_"+c
}b._eventCacheID=OpenLayers.Util.createUniqueID(c)
}var d=b._eventCacheID;
if(!this.observers[d]){this.observers[d]=[]
}this.observers[d].push({element:b,name:a,observer:g,useCapture:e});
if(b.addEventListener){b.addEventListener(a,g,e)
}else{if(b.attachEvent){b.attachEvent("on"+a,g)
}}},stopObservingElement:function(b){var c=OpenLayers.Util.getElement(b);
var a=c._eventCacheID;
this._removeElementObservers(OpenLayers.Event.observers[a])
},_removeElementObservers:function(c){if(c){for(var e=c.length-1;
e>=0;
e--){var a=c[e];
var d=new Array(a.element,a.name,a.observer,a.useCapture);
var b=OpenLayers.Event.stopObserving.apply(this,d)
}}},stopObserving:function(e,h,d,j){j=j||false;
var c=OpenLayers.Util.getElement(e);
var a=c._eventCacheID;
if(h=="keypress"){if(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||c.detachEvent){h="keydown"
}}var g=false;
var k=OpenLayers.Event.observers[a];
if(k){var b=0;
while(!g&&b<k.length){var f=k[b];
if((f.name==h)&&(f.observer==d)&&(f.useCapture==j)){k.splice(b,1);
if(k.length==0){delete OpenLayers.Event.observers[a]
}g=true;
break
}b++
}}if(g){if(c.removeEventListener){c.removeEventListener(h,d,j)
}else{if(c&&c.detachEvent){c.detachEvent("on"+h,d)
}}}return g
},unloadCache:function(){if(OpenLayers.Event&&OpenLayers.Event.observers){for(var a in OpenLayers.Event.observers){var b=OpenLayers.Event.observers[a];
OpenLayers.Event._removeElementObservers.apply(this,[b])
}OpenLayers.Event.observers=false
}},CLASS_NAME:"OpenLayers.Event"};
OpenLayers.Event.observe(window,"unload",OpenLayers.Event.unloadCache,false);
if(window.Event){OpenLayers.Util.applyDefaults(window.Event,OpenLayers.Event)
}else{var Event=OpenLayers.Event
}OpenLayers.Events=OpenLayers.Class({BROWSER_EVENTS:["mouseover","mouseout","mousedown","mouseup","mousemove","click","dblclick","rightclick","dblrightclick","resize","focus","blur"],listeners:null,object:null,element:null,eventTypes:null,eventHandler:null,fallThrough:null,includeXY:false,clearMouseListener:null,initialize:function(g,b,d,c,f){OpenLayers.Util.extend(this,f);
this.object=g;
this.fallThrough=c;
this.listeners={};
this.eventHandler=OpenLayers.Function.bindAsEventListener(this.handleBrowserEvent,this);
this.clearMouseListener=OpenLayers.Function.bind(this.clearMouseCache,this);
this.eventTypes=[];
if(d!=null){for(var a=0,e=d.length;
a<e;
a++){this.addEventType(d[a])
}}if(b!=null){this.attachToElement(b)
}},destroy:function(){if(this.element){OpenLayers.Event.stopObservingElement(this.element);
if(this.element.hasScrollEvent){OpenLayers.Event.stopObserving(window,"scroll",this.clearMouseListener)
}}this.element=null;
this.listeners=null;
this.object=null;
this.eventTypes=null;
this.fallThrough=null;
this.eventHandler=null
},addEventType:function(a){if(!this.listeners[a]){this.eventTypes.push(a);
this.listeners[a]=[]
}},attachToElement:function(b){if(this.element){OpenLayers.Event.stopObservingElement(this.element)
}this.element=b;
for(var a=0,c=this.BROWSER_EVENTS.length;
a<c;
a++){var d=this.BROWSER_EVENTS[a];
this.addEventType(d);
OpenLayers.Event.observe(b,d,this.eventHandler)
}OpenLayers.Event.observe(b,"dragstart",OpenLayers.Event.stop)
},on:function(a){for(var b in a){if(b!="scope"){this.register(b,a.scope,a[b])
}}},register:function(d,b,a){if((a!=null)&&(OpenLayers.Util.indexOf(this.eventTypes,d)!=-1)){if(b==null){b=this.object
}var c=this.listeners[d];
c.push({obj:b,func:a})
}},registerPriority:function(d,b,a){if(a!=null){if(b==null){b=this.object
}var c=this.listeners[d];
if(c!=null){c.unshift({obj:b,func:a})
}}},un:function(a){for(var b in a){if(b!="scope"){this.unregister(b,a.scope,a[b])
}}},unregister:function(b,d,c){if(d==null){d=this.object
}var a=this.listeners[b];
if(a!=null){for(var f=0,e=a.length;
f<e;
f++){if(a[f].obj==d&&a[f].func==c){a.splice(f,1);
break
}}}},remove:function(a){if(this.listeners[a]!=null){this.listeners[a]=[]
}},triggerEvent:function(b,f){var a=this.listeners[b];
if(!a||a.length==0){return
}if(f==null){f={}
}f.object=this.object;
f.element=this.element;
if(!f.type){f.type=b
}var a=a.slice(),c;
for(var g=0,e=a.length;
g<e;
g++){var d=a[g];
c=d.func.apply(d.obj,[f]);
if((c!=undefined)&&(c==false)){break
}}if(!this.fallThrough){OpenLayers.Event.stop(f,true)
}return c
},handleBrowserEvent:function(a){if(this.includeXY){a.xy=this.getMousePosition(a)
}this.triggerEvent(a.type,a)
},clearMouseCache:function(){this.element.scrolls=null;
this.element.lefttop=null;
this.element.offsets=null
},getMousePosition:function(a){if(!this.includeXY){this.clearMouseCache()
}else{if(!this.element.hasScrollEvent){OpenLayers.Event.observe(window,"scroll",this.clearMouseListener);
this.element.hasScrollEvent=true
}}if(!this.element.scrolls){this.element.scrolls=[(document.documentElement.scrollLeft||document.body.scrollLeft),(document.documentElement.scrollTop||document.body.scrollTop)]
}if(!this.element.lefttop){this.element.lefttop=[(document.documentElement.clientLeft||0),(document.documentElement.clientTop||0)]
}if(!this.element.offsets){this.element.offsets=OpenLayers.Util.pagePosition(this.element);
this.element.offsets[0]+=this.element.scrolls[0];
this.element.offsets[1]+=this.element.scrolls[1]
}return new OpenLayers.Pixel((a.clientX+this.element.scrolls[0])-this.element.offsets[0]-this.element.lefttop[0],(a.clientY+this.element.scrolls[1])-this.element.offsets[1]-this.element.lefttop[1])
},CLASS_NAME:"OpenLayers.Events"});
OpenLayers.Format=OpenLayers.Class({options:null,externalProjection:null,internalProjection:null,data:null,keepData:false,initialize:function(a){OpenLayers.Util.extend(this,a);
this.options=a
},destroy:function(){},read:function(a){OpenLayers.Console.userError(OpenLayers.i18n("readNotImplemented"))
},write:function(a){OpenLayers.Console.userError(OpenLayers.i18n("writeNotImplemented"))
},CLASS_NAME:"OpenLayers.Format"});
OpenLayers.Lang.ar=OpenLayers.Util.applyDefaults({permalink:"ÙˆØµÙ„Ø© Ø¯Ø§Ø¦Ù…Ø©",baseLayer:"Ø§Ù„Ø·Ø¨Ù‚Ø© Ø§Ù„Ø§Ø³Ø§Ø³ÙŠØ©",readNotImplemented:"Ø§Ù„Ù‚Ø±Ø§Ø¡Ø© ØºÙŠØ± Ù…ØÙ‚Ù‚Ø©.",writeNotImplemented:"Ø§Ù„ÙƒØªØ§Ø¨Ø© ØºÙŠØ± Ù…ØÙ‚Ù‚Ø©",errorLoadingGML:"Ø®Ø·Ø£ Ø¹Ù†Ø¯ ØªØÙ…ÙŠÙ„ Ø§Ù„Ù…Ù„Ù  Ø¬ÙŠ Ø§Ù… Ø§Ù„ ${url}",scale:"Ø§Ù„Ù†Ø³Ø¨Ø© = 1 : ${scaleDenom}",W:"Øº",E:"Ø´Ø±",N:"Ø´Ù…",S:"Ø¬"});
OpenLayers.Lang["be-tarask"]=OpenLayers.Util.applyDefaults({unhandledRequest:"Ð ÐµÐ°Ð¿Ñ€Ð°Ñ†Ð°Ð²Ð°Ð½Ñ‹ Ð²Ñ‹Ð½Ñ–Ðº Ð·Ð°Ð¿Ñ‹Ñ‚Ñƒ ${statusText}",permalink:"Ð¡Ñ‚Ð°Ð»Ð°Ñ  Ñ Ð¿Ð°Ñ Ñ‹Ð»ÐºÐ°",overlays:"Ð¡Ð»Ð°Ñ–",baseLayer:"Ð‘Ð°Ð·Ð°Ð²Ñ‹ Ñ Ð»Ð¾Ð¹",sameProjection:"Ð Ð³Ð»Ñ Ð´Ð½Ð°Ñ  Ð¼Ð°Ð¿Ð° Ð¿Ñ€Ð°Ñ†ÑƒÐµ Ñ‚Ð¾Ð»ÑŒÐºÑ– ÐºÐ°Ð»Ñ– Ñ Ð½Ð° Ð¼Ð°Ðµ Ñ‚ÑƒÑŽ Ð¶ Ð¿Ñ€Ð°ÐµÐºÑ†Ñ‹ÑŽ, ÑˆÑ‚Ð¾ Ñ– Ð°Ñ Ð½Ð¾ÑžÐ½Ð°Ñ  Ð¼Ð°Ð¿Ð°",readNotImplemented:"Ð¤ÑƒÐ½ÐºÑ†Ñ‹Ñ Ð½Ð°Ð»ÑŒÐ½Ð°Ñ ÑŒÑ†ÑŒ Ñ‡Ñ‹Ñ‚Ð°Ð½ÑŒÐ½Ñ  Ð½Ñ  Ñ Ñ‚Ð²Ð¾Ñ€Ð°Ð½Ð°Ñ .",writeNotImplemented:"Ð¤ÑƒÐ½ÐºÑ†Ñ‹Ñ Ð½Ð°Ð»ÑŒÐ½Ð°Ñ ÑŒÑ†ÑŒ Ð·Ð°Ð¿Ñ–Ñ Ñƒ Ð½Ñ  Ñ Ñ‚Ð²Ð¾Ñ€Ð°Ð½Ð°Ñ .",noFID:"Ð ÐµÐ¼Ð°Ð³Ñ‡Ñ‹Ð¼Ð° Ð°Ð±Ð½Ð°Ð²Ñ–Ñ†ÑŒ Ð¼Ð°Ð³Ñ‡Ñ‹Ð¼Ð°Ñ ÑŒÑ†ÑŒ, Ð´Ð»Ñ  Ñ ÐºÐ¾Ð³Ð° Ð½Ðµ Ñ–Ñ Ð½ÑƒÐµ FID.",errorLoadingGML:"ÐŸÐ°Ð¼Ñ‹Ð»ÐºÐ° Ð·Ð°Ð³Ñ€ÑƒÐ·ÐºÑ– Ñ„Ð°Ð¹Ð»Ð° GML ${url}",browserNotSupported:"Ð’Ð°Ñˆ Ð±Ñ€Ð°ÑžÐ·Ñ Ñ€ Ð½Ðµ Ð¿Ð°Ð´Ñ‚Ñ€Ñ‹Ð¼Ð»Ñ–Ð²Ð°Ðµ Ð²Ñ ÐºÑ‚Ð°Ñ€Ð½ÑƒÑŽ Ð³Ñ€Ð°Ñ„Ñ–ÐºÑƒ. Ð£ Ñ†Ñ Ð¿ÐµÑ€Ð°ÑˆÐ½Ñ– Ð¼Ð¾Ð¼Ð°Ð½Ñ‚ Ð¿Ð°Ð´Ñ‚Ñ€Ñ‹Ð¼Ð»Ñ–Ð²Ð°ÑŽÑ†Ñ†Ð°: ${renderers}",componentShouldBe:"addFeatures : ÐºÐ°Ð¼Ð¿Ð°Ð½Ñ Ð½Ñ‚ Ð¿Ð°Ð²Ñ–Ð½ÐµÐ½ Ð±Ñ‹Ñ†ÑŒ ${geomType}",getFeatureError:"getFeatureFromEvent Ð²Ñ‹ÐºÐ»Ñ–ÐºÐ°Ð½Ñ‹ Ð´Ð»Ñ  Ñ Ð»Ð¾Ñ  Ð±Ñ Ð· Ñ€Ñ Ð½Ð´Ñ Ñ€Ñƒ. Ð—Ð²Ñ‹Ñ‡Ð°Ð¹Ð½Ð° Ð³Ñ Ñ‚Ð° Ð°Ð·Ð½Ð°Ñ‡Ð°Ðµ, ÑˆÑ‚Ð¾ Ð’Ñ‹ Ð·ÑŒÐ½Ñ–ÑˆÑ‡Ñ‹Ð»Ñ– Ñ Ð»Ð¾Ð¹, Ð°Ð»Ðµ Ð¿Ð°ÐºÑ–Ð½ÑƒÐ»Ñ– Ð·ÑŒÐ²Ñ Ð·Ð°Ð½Ñ‹ Ð·ÑŒ Ñ–Ð¼ Ð°Ð¿Ñ€Ð°Ñ†Ð¾ÑžÑˆÑ‡Ñ‹Ðº.",minZoomLevelError:"Ð£Ð»Ð°Ñ ÑŒÑ†Ñ–Ð²Ð°Ñ ÑŒÑ†ÑŒ minZoomLevel Ð¿Ñ€Ñ‹Ð·Ð½Ð°Ñ‡Ð°Ð½Ð° Ñ‚Ð¾Ð»ÑŒÐºÑ– Ð´Ð»Ñ  Ð²Ñ‹ÐºÐ°Ñ€Ñ‹Ñ Ñ‚Ð°Ð½ÑŒÐ½Ñ  Ñ Ð° Ñ Ð»Ð°Ñ Ð¼Ñ– Ð²Ñ‹Ñ‚Ð²Ð¾Ñ€Ð½Ñ‹Ð¼Ñ– Ð°Ð´ FixedZoomLevels. Ð¢Ð¾Ðµ, ÑˆÑ‚Ð¾  Ð³Ñ Ñ‚Ñ‹ wfs-Ñ Ð»Ð¾Ð¹ Ð¿Ñ€Ð°Ð²Ñ Ñ€Ð°ÐµÑ†Ñ†Ð° Ð½Ð° minZoomLevel â€” Ñ€Ñ Ñ…Ð° Ð¿Ñ€Ð¾ÑˆÐ»Ð°Ð³Ð°. Ð Ð»Ðµ Ð¼Ñ‹ Ð½Ñ  Ð¼Ð¾Ð¶Ð°Ð¼ Ð²Ñ‹Ð´Ð°Ð»Ñ–Ñ†ÑŒ Ð³Ñ Ñ‚ÑƒÑŽ Ð¼Ð°Ð³Ñ‡Ñ‹Ð¼Ð°Ñ ÑŒÑ†ÑŒ, Ñ‚Ð°Ð¼Ñƒ ÑˆÑ‚Ð¾ Ð°Ð´ Ñ Ðµ Ð·Ð°Ð»ÐµÐ¶Ð°Ñ†ÑŒ Ð½ÐµÐºÐ°Ñ‚Ð¾Ñ€Ñ‹Ñ  Ð·Ð°Ñ Ð½Ð°Ð²Ð°Ð½Ñ‹Ñ  Ð½Ð° OL Ð´Ð°Ñ Ñ‚Ð°Ñ Ð°Ð²Ð°Ð½ÑŒÐ½Ñ–. Ð¢Ñ‹Ð¼ Ð½Ñ  Ð¼ÐµÐ½Ñˆ, Ð¿Ñ€Ð°Ð²ÐµÑ€ÐºÐ° minZoomLevel Ð±ÑƒÐ´Ð·Ðµ Ð²Ñ‹Ð´Ð°Ð»ÐµÐ½Ð°Ñ  Ñž Ð²Ñ Ñ€Ñ Ñ–Ñ– 3.0. ÐšÐ°Ð»Ñ– Ð»Ð°Ñ ÐºÐ°, Ð²Ñ‹ÐºÐ°Ñ€Ñ‹Ñ Ñ‚Ð¾ÑžÐ²Ð°ÐµÑ†Ðµ Ð·Ð°Ð¼ÐµÑ Ñ‚ Ñ Ðµ ÑžÑ Ñ‚Ð°Ð½Ð¾ÑžÐºÑ– Ð¼Ñ–Ð½Ñ–Ð¼Ð°Ð»ÑŒÐ½Ð°Ð³Ð°/Ð¼Ð°ÐºÑ Ñ‹Ð¼Ð°Ð»ÑŒÐ½Ð°Ð³Ð° Ð¿Ð°Ð¼ÐµÑ€Ð°Ñž, Ñ Ðº Ð°Ð¿Ñ–Ñ Ð°Ð½Ð° Ñ‚ÑƒÑ‚: http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"WFS-Ñ‚Ñ€Ð°Ð½Ð·Ð°ÐºÑ†Ñ‹Ñ : ÐŸÐžÐ¡Ð¬ÐŸÐ•Ð¥ ${response}",commitFailed:"WFS-Ñ‚Ñ€Ð°Ð½Ð·Ð°ÐºÑ†Ñ‹Ñ : ÐŸÐ ÐœÐ«Ð›ÐšÐ  ${response}",googleWarning:"Ð Ðµ Ð°Ñ‚Ñ€Ñ‹Ð¼Ð°Ð»Ð°Ñ Ñ  Ð·Ð°Ð³Ñ€ÑƒÐ·Ñ–Ñ†ÑŒ Ñ Ð»Ð¾Ð¹ Google. \x3cbr\x3e\x3cbr\x3eÐšÐ°Ð± Ð¿Ð°Ð·Ð±Ð°Ð²Ñ–Ñ†Ñ†Ð° Ð³Ñ Ñ‚Ð°Ð³Ð° Ð¿Ð°Ð²ÐµÐ´Ð°Ð¼Ð»ÐµÐ½ÑŒÐ½Ñ , Ð²Ñ‹Ð±ÐµÑ€Ñ‹Ñ†Ðµ Ð½Ð¾Ð²Ñ‹ Ð±Ð°Ð·Ð°Ð²Ñ‹ Ñ Ð»Ð¾Ð¹ Ñƒ Ñ ÑŒÐ¿Ñ–Ñ Ðµ Ñž Ð²ÐµÑ€Ñ…Ð½Ñ–Ð¼ Ð¿Ñ€Ð°Ð²Ñ‹Ð¼ ÐºÑƒÑ†Ðµ.\x3cbr\x3e\x3cbr\x3e Ð¥ÑƒÑ‚Ñ‡Ñ Ð¹ Ð·Ð° ÑžÑ Ñ‘, Ð¿Ñ€Ñ‹Ñ‡Ñ‹Ð½Ð° Ñž Ñ‚Ñ‹Ð¼, ÑˆÑ‚Ð¾ Ñ ÐºÑ€Ñ‹Ð¿Ñ‚ Ð±Ñ–Ð±Ð»Ñ–Ñ Ñ‚Ñ ÐºÑ– Google Maps Ð½Ñ  Ð±Ñ‹Ñž ÑƒÐºÐ»ÑŽÑ‡Ð°Ð½Ñ‹Ñ  Ð°Ð»ÑŒÐ±Ð¾ Ð½Ðµ ÑžÑ‚Ñ€Ñ‹Ð¼Ð»Ñ–Ð²Ð°Ðµ Ñ Ð»ÑƒÑˆÐ½Ñ‹ API-ÐºÐ»ÑŽÑ‡ Ð´Ð»Ñ  Ð’Ð°ÑˆÐ°Ð³Ð° Ñ Ð°Ð¹Ñ‚Ð°.\x3cbr\x3e\x3cbr\x3eÐ Ð°Ñ Ð¿Ñ€Ð°Ñ†Ð¾ÑžÑˆÑ‡Ñ‹ÐºÐ°Ð¼: Ð”Ð»Ñ  Ñ‚Ð°Ð³Ð¾, ÐºÐ°Ð± Ð´Ð°Ð²ÐµÐ´Ð°Ñ†Ñ†Ð° Ñ Ðº Ð·Ñ€Ð°Ð±Ñ–Ñ†ÑŒ Ñ‚Ð°Ðº, ÐºÐ°Ð± ÑƒÑ Ñ‘ Ð¿Ñ€Ð°Ñ†Ð°Ð²Ð°Ð»Ð°, \x3ca href='http://trac.openlayers.org/wiki/Google' target='_blank'\x3eÐ½Ð°Ñ†Ñ–Ñ ÑŒÐ½Ñ–Ñ†Ðµ Ñ‚ÑƒÑ‚\x3c/a\x3e",getLayerWarning:"Ð ÐµÐ¼Ð°Ð³Ñ‡Ñ‹Ð¼Ð° Ð·Ð°Ð³Ñ€ÑƒÐ·Ñ–Ñ†ÑŒ Ñ Ð»Ð¾Ð¹ ${layerType}.\x3cbr\x3e\x3cbr\x3eÐšÐ°Ð± Ð¿Ð°Ð·Ð±Ð°Ð²Ñ–Ñ†Ñ†Ð° Ð³Ñ Ñ‚Ð°Ð³Ð° Ð¿Ð°Ð²ÐµÐ´Ð°Ð¼Ð»ÐµÐ½ÑŒÐ½Ñ , Ð²Ñ‹Ð±ÐµÑ€Ñ‹Ñ†Ðµ Ð½Ð¾Ð²Ñ‹ Ð±Ð°Ð·Ð°Ð²Ñ‹ Ñ Ð»Ð¾Ð¹ Ñƒ Ñ ÑŒÐ¿Ñ–Ñ Ðµ Ñž Ð²ÐµÑ€Ñ…Ð½Ñ–Ð¼ Ð¿Ñ€Ð°Ð²Ñ‹Ð¼ ÐºÑƒÑ†Ðµ.\x3cbr\x3e\x3cbr\x3eÐ¥ÑƒÑ‚Ñ‡Ñ Ð¹ Ð·Ð° ÑžÑ Ñ‘, Ð¿Ñ€Ñ‹Ñ‡Ñ‹Ð½Ð° Ñž Ñ‚Ñ‹Ð¼, ÑˆÑ‚Ð¾ Ñ ÐºÑ€Ñ‹Ð¿Ñ‚ Ð±Ñ–Ð±Ð»Ñ–Ñ Ñ‚Ñ ÐºÑ– ${layerLib} Ð½Ñ  Ð±Ñ‹Ñž Ñ Ð»ÑƒÑˆÐ½Ð° ÑžÐºÐ»ÑŽÑ‡Ð°Ð½Ñ‹.\x3cbr\x3e\x3cbr\x3eÐ Ð°Ñ Ð¿Ñ€Ð°Ñ†Ð¾ÑžÑˆÑ‡Ñ‹ÐºÐ°Ð¼: Ð”Ð»Ñ  Ñ‚Ð°Ð³Ð¾, ÐºÐ°Ð± Ð´Ð°Ð²ÐµÐ´Ð°Ñ†Ñ†Ð° Ñ Ðº Ð·Ñ€Ð°Ð±Ñ–Ñ†ÑŒ Ñ‚Ð°Ðº, ÐºÐ°Ð± ÑƒÑ Ñ‘ Ð¿Ñ€Ð°Ñ†Ð°Ð²Ð°Ð»Ð°, \x3ca href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'\x3eÐ½Ð°Ñ†Ñ–Ñ ÑŒÐ½Ñ–Ñ†Ðµ Ñ‚ÑƒÑ‚\x3c/a\x3e",scale:"ÐœÐ°ÑˆÑ‚Ð°Ð± = 1 : ${scaleDenom}",W:"Ð—",E:"Ð£",N:"ÐŸÐ½",S:"ÐŸÐ´",layerAlreadyAdded:"Ð’Ñ‹ Ð¿Ð°Ñ Ð¿Ñ€Ð°Ð±Ð°Ð²Ð°Ð»Ñ– Ð´Ð°Ð´Ð°Ñ†ÑŒ Ñ Ð»Ð¾Ð¹ ${layerName} Ð½Ð° Ð¼Ð°Ð¿Ñƒ, Ð°Ð»Ðµ Ñ‘Ð½ ÑƒÐ¶Ð¾ Ð´Ð°Ð´Ð°Ð´Ð·ÐµÐ½Ñ‹",reprojectDeprecated:"Ð’Ñ‹ Ð²Ñ‹ÐºÐ°Ñ€Ñ‹Ñ Ñ‚Ð¾ÑžÐ²Ð°ÐµÑ†Ðµ ÑžÑ Ñ‚Ð°Ð½Ð¾ÑžÐºÑƒ 'reproject' Ð´Ð»Ñ  Ñ Ð»Ð¾Ñ  ${layerName}. Ð“Ñ Ñ‚Ð°Ñ  ÑžÑ Ñ‚Ð°Ð½Ð¾ÑžÐºÐ° Ð·ÑŒÑ ÑžÐ»Ñ ÐµÑ†Ñ†Ð° Ñ Ð°Ñ Ñ‚Ð°Ñ€Ñ Ð»Ð°Ð¹: Ñ Ð½Ð° Ð²Ñ‹ÐºÐ°Ñ€Ñ‹Ñ Ñ‚Ð¾ÑžÐ²Ð°Ð»Ð°Ñ Ñ  Ð´Ð»Ñ  Ð¿Ð°Ð´Ñ‚Ñ€Ñ‹Ð¼ÐºÑ– Ð¿Ð°ÐºÐ°Ð·Ñƒ Ð·ÑŒÐ²ÐµÑ Ñ‚Ð°Ðº Ð½Ð° ÐºÐ°Ð¼Ñ Ñ€Ñ†Ñ‹Ð¹Ð½Ñ‹Ñ… Ð±Ð°Ð·Ð°Ð²Ñ‹Ñ… Ð¼Ð°Ð¿Ð°Ñ…, Ð°Ð»Ðµ Ð³Ñ Ñ‚Ð° Ñ„ÑƒÐ½ÐºÑ†Ñ‹Ñ  Ñ†Ñ Ð¿ÐµÑ€ Ñ€Ñ Ð°Ð»Ñ–Ð·Ð°Ð²Ð°Ð½Ð°Ñ  Ñž ÑƒÐ±ÑƒÐ´Ð°Ð²Ð°Ð½Ð°Ð¹ Ð¿Ð°Ð´Ñ‚Ñ€Ñ‹Ð¼Ñ†Ñ‹ Ñ Ñ„Ñ Ñ€Ñ‹Ñ‡Ð½Ð°Ð¹ Ð¿Ñ€Ð°ÐµÐºÑ†Ñ‹Ñ– ÐœÑ Ñ€ÐºÐ°Ñ‚Ð°Ñ€Ð°. Ð”Ð°Ð´Ð°Ñ‚ÐºÐ¾Ð²Ð°Ñ  Ñ–Ð½Ñ„Ð°Ñ€Ð¼Ð°Ñ†Ñ‹Ñ  Ñ‘Ñ ÑŒÑ†ÑŒ Ð½Ð° http://trac.openlayers.org/wiki/SphericalMercator.",methodDeprecated:"Ð“Ñ Ñ‚Ñ‹ Ð¼Ñ Ñ‚Ð°Ð´ Ñ Ð°Ñ Ñ‚Ð°Ñ€Ñ Ð»Ñ‹ Ñ– Ð±ÑƒÐ´Ð·Ðµ Ð²Ñ‹Ð´Ð°Ð»ÐµÐ½Ñ‹ Ñž Ð²Ñ Ñ€Ñ Ñ–Ñ– 3.0. ÐšÐ°Ð»Ñ– Ð»Ð°Ñ ÐºÐ°, Ð·Ð°Ð¼ÐµÑ Ñ‚ Ñ Ð³Ð¾ Ð²Ñ‹ÐºÐ°Ñ€Ñ‹Ñ Ñ‚Ð¾ÑžÐ²Ð°Ð¹Ñ†Ðµ ${newMethod}.",boundsAddError:"Ð’Ð°Ð¼ Ð½ÐµÐ°Ð±Ñ…Ð¾Ð´Ð½Ð° Ð¿Ð°Ð´Ð°Ñ†ÑŒ Ð°Ð±Ð¾Ð´Ð²Ð° Ð·Ð½Ð°Ñ‡Ñ Ð½ÑŒÐ½Ñ– x Ñ– y Ð´Ð»Ñ  Ñ„ÑƒÐ½ÐºÑ†Ñ‹Ñ– Ñ ÐºÐ»Ð°Ð´Ð°Ð½ÑŒÐ½Ñ .",lonlatAddError:"Ð’Ð°Ð¼ Ð½ÐµÐ°Ð±Ñ…Ð¾Ð´Ð½Ð° Ð¿Ð°Ð´Ð°Ñ†ÑŒ Ð°Ð±Ð¾Ð´Ð²Ð° Ð·Ð½Ð°Ñ‡Ñ Ð½ÑŒÐ½Ñ– lon Ñ– lat Ð´Ð»Ñ  Ñ„ÑƒÐ½ÐºÑ†Ñ‹Ñ– Ñ ÐºÐ»Ð°Ð´Ð°Ð½ÑŒÐ½Ñ .",pixelAddError:"Ð’Ð°Ð¼ Ð½ÐµÐ°Ð±Ñ…Ð¾Ð´Ð½Ð° Ð¿Ð°Ð´Ð°Ñ†ÑŒ Ð°Ð±Ð¾Ð´Ð²Ð° Ð·Ð½Ð°Ñ‡Ñ Ð½ÑŒÐ½Ñ– x Ñ– y Ð´Ð»Ñ  Ñ„ÑƒÐ½ÐºÑ†Ñ‹Ñ– Ñ ÐºÐ»Ð°Ð´Ð°Ð½ÑŒÐ½Ñ .",unsupportedGeometryType:"Ð¢Ñ‹Ð¿ Ð³ÐµÐ°Ð¼Ñ Ñ‚Ñ€Ñ‹Ñ– Ð½Ðµ Ð¿Ð°Ð´Ñ‚Ñ€Ñ‹Ð¼Ð»Ñ–Ð²Ð°ÐµÑ†Ñ†Ð°: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition failed: Ð²ÐµÑ€Ð°Ð³Ð¾Ð´Ð½Ð° Ñ Ð»ÐµÐ¼Ñ Ð½Ñ‚ Ð· Ñ–Ð´Ñ Ð½Ñ‚Ñ‹Ñ„Ñ–ÐºÐ°Ñ‚Ð°Ñ€Ð°Ð¼ ${elemId} Ð·Ð°Ð¹Ð¼Ð°Ðµ Ð½Ñ Ñ Ð»ÑƒÑˆÐ½Ð°Ðµ Ð¼ÐµÑ Ñ†Ð°.",filterEvaluateNotImplemented:"evaluate Ð½Ðµ Ñ€Ñ Ð°Ð»Ñ–Ð·Ð°Ð²Ð°Ð½Ñ‹ Ð´Ð»Ñ  Ð³Ñ Ñ‚Ð°Ð³Ð° Ñ‚Ñ‹Ð¿Ñƒ Ñ„Ñ–Ð»ÑŒÑ‚Ñ€Ñƒ."});
OpenLayers.Lang.bg=OpenLayers.Util.applyDefaults({permalink:"ÐŸÐ¾Ñ Ñ‚Ð¾Ñ Ð½Ð½Ð° Ð¿Ñ€ÐµÐ¿Ñ€Ð°Ñ‚ÐºÐ°",baseLayer:"ÐžÑ Ð½Ð¾Ð²ÐµÐ½ Ñ Ð»Ð¾Ð¹",errorLoadingGML:"Ð“Ñ€ÐµÑˆÐºÐ° Ð¿Ñ€Ð¸ Ð·Ð°Ñ€ÐµÐ¶Ð´Ð°Ð½Ðµ Ð½Ð° GML Ñ„Ð°Ð¹Ð» ${url}",scale:"ÐœÐ°Ñ‰Ð°Ð± = 1 : ${scaleDenom}",layerAlreadyAdded:"ÐžÐ¿Ð¸Ñ‚Ð°Ñ…Ñ‚Ðµ Ð´Ð° Ð´Ð¾Ð±Ð°Ð²Ð¸Ñ‚Ðµ Ñ Ð»Ð¾Ð¹ ${layerName} Ð² ÐºÐ°Ñ€Ñ‚Ð°Ñ‚Ð°, Ð½Ð¾ Ñ‚Ð¾Ð¹ Ð²ÐµÑ‡Ðµ Ðµ Ð´Ð¾Ð±Ð°Ð²ÐµÐ½",methodDeprecated:"Ð¢Ð¾Ð·Ð¸ Ð¼ÐµÑ‚Ð¾Ð´ Ðµ Ð¾Ñ Ñ‚Ð°Ñ€Ñ Ð» Ð¸ Ñ‰Ðµ Ð±ÑŠÐ´Ðµ Ð¿Ñ€ÐµÐ¼Ð°Ñ…Ð²Ð°Ñ‚ Ð² 3.0. Ð’Ð¼ÐµÑ Ñ‚Ð¾ Ð½ÐµÐ³Ð¾ Ð¸Ð·Ð¿Ð¾Ð»Ð·Ð²Ð°Ð¹Ñ‚Ðµ ${newMethod}."});
OpenLayers.Lang.br=OpenLayers.Util.applyDefaults({unhandledRequest:"Distro evel reked anveret ${statusText}",permalink:"Peurliamm",overlays:"GwiskadoÃ¹",baseLayer:"Gwiskad diazez",sameProjection:"Ne'z ar gartenn lec'hiaÃ± en-dro nemet pa vez heÃ±vel ar banndres anezhi ha hini ar gartenn bennaÃ±",readNotImplemented:"N'eo ket emplementet al lenn.",writeNotImplemented:"N'eo ket emplementet ar skrivaÃ±.",noFID:"N'haller ket hizivaat un elfenn ma n'eus ket a niverenn-anaout (FID) eviti.",errorLoadingGML:"Fazi e-ser kargaÃ± ar restr GML ${url}",browserNotSupported:"N'eo ket skoret an daskor vektorel gant ho merdeer. Setu aze an daskorerioÃ¹ skoret evit ar poent :\n${renderers}",componentShouldBe:"addFeatures : bez' e tlefe ar parzh besaÃ± eus ar seurt ${geomType}",getFeatureError:"Galvet eo bet getFeatureFromEvent called war ur gwiskad hep daskorer. Kement-se a dalvez ez eus bet freuzet ur gwiskad hag hoc'h eus miret un embreger bennak stag outaÃ±.",minZoomLevelError:"Ne zleer implijout ar perzh minZoomLevel nemet evit gwiskadoÃ¹ FixedZoomLevels-descendent. Ar fed ma wiria ar gwiskad WHS-se hag-eÃ± ez eus eus minZoomLevel zo un aspadenn gozh. Koulskoude n'omp ket evit e ziverkaÃ± kuit da derriÃ± arloadoÃ¹ diazezet war OL a c'hallfe bezaÃ± stag outaÃ±. Setu perak eo dispredet -- Lamet kuit e vo ar gwiriaÃ± minZoomLevel a-is er stumm 3.0. Ober gant an arventennoÃ¹ bihanaÃ±/brasaÃ± evel deskrivet amaÃ± e plas : http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"Treuzgread WFS : MAT EO ${response}",commitFailed:"Treuzgread WFS Transaction: C'HWITET ${response}",googleWarning:"N'eus ket bet gallet kargaÃ± ar gwiskad Google ent reizh.\x3cbr\x3e\x3cbr\x3eEvit en em zizober eus ar c'hemenn-maÃ±, dibabit ur BaseLayer nevez en diuzer gwiskadoÃ¹ er c'horn dehoÃ¹ el laez.\x3cbr\x3e\x3cbr\x3eSur a-walc'h eo peogwir n'eo ket bet ensoc'het levraoueg Google Maps pe neuze ne glot ket an alc'hwez API gant ho lec'hienn.\x3cbr\x3e\x3cbr\x3eDiorroerien : Evit reizhaÃ± an dra-se, \x3ca href='http://trac.openlayers.org/wiki/Google' target='_blank'\x3eclick here\x3c/a\x3e",getLayerWarning:"N'haller ket kargaÃ± ar gwiskad ${layerType} ent reizh.\x3cbr\x3e\x3cbr\x3eEvit en em zizober eus ar c'hemenn-maÃ±, dibabit ur BaseLayer nevez en diuzer gwiskadoÃ¹ er c'horn dehoÃ¹ el laez.\x3cbr\x3e\x3cbr\x3eSur a-walc'h eo peogwir n'eo ket bet ensoc'het mat al levraoueg ${layerLib}.\x3cbr\x3e\x3cbr\x3eDiorroerien : Evit gouzout penaos reizhaÃ± an dra-se, \x3ca href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'\x3eclick here\x3c/a\x3e",scale:"Skeul = 1 : ${scaleDenom}",W:"K",E:"R",N:"N",S:"S",layerAlreadyAdded:"Klasket hoc'h eus ouzhpennaÃ± ar gwiskad : ${layerName} d'ar gartenn, met ouzhpennet e oa bet c'hoazh",reprojectDeprecated:"Emaoc'h oc'h implijout an dibarzh 'reproject' war ar gwiskad ${layerName}. Dispredet eo an dibarzh-maÃ± : bet eo hag e talveze da ziskwel roadennoÃ¹ war-c'horre kartennoÃ¹ diazez kenwerzhel, un dra hag a c'haller ober bremaÃ± gant an arc'hwel dre skor banndres boullek Mercator. Muioc'h a ditouroÃ¹ a c'haller da gaout war http://trac.openlayers.org/wiki/SphericalMercator.",methodDeprecated:"Dispredet eo an daore-se ha tennet e vo kuit eus ar stumm 3.0. Grit gant ${newMethod} e plas.",boundsAddError:"Rekis eo tremen an div dalvoudenn x ha y d'an arc'hwel add.",lonlatAddError:"Rekis eo tremen an div dalvoudenn hedred ha ledred d'an arc'hwel add.",pixelAddError:"Rekis eo tremen an div dalvoudenn x ha y d'an arc'hwel add.",unsupportedGeometryType:"Seurt mentoniezh anskoret : ${geomType}",pagePositionFailed:"C'hwitet eo OpenLayers.Util.pagePosition : marteze emaÃ± lec'hiet fall an elfenn id ${elemId}.",filterEvaluateNotImplemented:"N'eo ket bet emplementet ar priziaÃ± evit seurt siloÃ¹ c'hoazh."});
OpenLayers.Lang.el=OpenLayers.Util.applyDefaults({scale:"ÎšÎ»Î¯Î¼Î±ÎºÎ± ~ 1 : ${scaleDenom}"});
OpenLayers.Lang.es={unhandledRequest:"Unhandled request return ${statusText}",permalink:"Permalink",overlays:"Capas de información",baseLayer:"Capas Base",sameProjection:"The overview map only works when it is in the same projection as the main map",readNotImplemented:"Read not implemented.",writeNotImplemented:"Write not implemented.",noFID:"Can't update a feature for which there is no FID.",errorLoadingGML:"Error in loading GML file ${url}",browserNotSupported:"Your browser does not support vector rendering. Currently supported renderers are:\n${renderers}",componentShouldBe:"addFeatures : component should be an ${geomType}",getFeatureError:"getFeatureFromEvent called on layer with no renderer. This usually means you destroyed a layer, but not some handler which is associated with it.",minZoomLevelError:"The minZoomLevel property is only intended for use with the FixedZoomLevels-descendent layers. That this wfs layer checks for minZoomLevel is a relic of thepast. We cannot, however, remove it without possibly breaking OL based applications that may depend on it. Therefore we are deprecating it -- the minZoomLevel check below will be removed at 3.0. Please instead use min/max resolution setting as described here: http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"WFS Transaction: SUCCESS ${response}",commitFailed:"WFS Transaction: FAILED ${response}",googleWarning:"The Google Layer was unable to load correctly.<br><br>To get rid of this message, select a new BaseLayer in the layer switcher in the upper-right corner.<br><br>Most likely, this is because the Google Maps library script was either not included, or does not contain the correct API key for your site.<br><br>Developers: For help getting this working correctly, <a href='http://trac.openlayers.org/wiki/Google' target='_blank'>click here</a>",getLayerWarning:"The ${layerType} Layer was unable to load correctly.<br><br>To get rid of this message, select a new BaseLayer in the layer switcher in the upper-right corner.<br><br>Most likely, this is because the ${layerLib} library script was not correctly included.<br><br>Developers: For help getting this working correctly, <a href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'>click here</a>",scale:"Scale = 1 : ${scaleDenom}",W:"W",E:"E",N:"N",S:"S",layerAlreadyAdded:"You tried to add the layer: ${layerName} to the map, but it has already been added",reprojectDeprecated:"You are using the 'reproject' option on the ${layerName} layer. This option is deprecated: its use was designed to support displaying data over commercial basemaps, but that functionality should now be achieved by using Spherical Mercator support. More information is available from http://trac.openlayers.org/wiki/SphericalMercator.",methodDeprecated:"This method has been deprecated and will be removed in 3.0. Please use ${newMethod} instead.",boundsAddError:"You must pass both x and y values to the add function.",lonlatAddError:"You must pass both lon and lat values to the add function.",pixelAddError:"You must pass both x and y values to the add function.",unsupportedGeometryType:"Unsupported geometry type: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition failed: element with id ${elemId} may be misplaced.",end:"",filterEvaluateNotImplemented:"evaluate is not implemented for this filter type."};
OpenLayers.Lang.ca={unhandledRequest:"Unhandled request return ${statusText}",permalink:"Permalink",overlays:"Capes d'informació",baseLayer:"Capes Base",sameProjection:"The overview map only works when it is in the same projection as the main map",readNotImplemented:"Read not implemented.",writeNotImplemented:"Write not implemented.",noFID:"Can't update a feature for which there is no FID.",errorLoadingGML:"Error in loading GML file ${url}",browserNotSupported:"Your browser does not support vector rendering. Currently supported renderers are:\n${renderers}",componentShouldBe:"addFeatures : component should be an ${geomType}",getFeatureError:"getFeatureFromEvent called on layer with no renderer. This usually means you destroyed a layer, but not some handler which is associated with it.",minZoomLevelError:"The minZoomLevel property is only intended for use with the FixedZoomLevels-descendent layers. That this wfs layer checks for minZoomLevel is a relic of thepast. We cannot, however, remove it without possibly breaking OL based applications that may depend on it. Therefore we are deprecating it -- the minZoomLevel check below will be removed at 3.0. Please instead use min/max resolution setting as described here: http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"WFS Transaction: SUCCESS ${response}",commitFailed:"WFS Transaction: FAILED ${response}",googleWarning:"The Google Layer was unable to load correctly.<br><br>To get rid of this message, select a new BaseLayer in the layer switcher in the upper-right corner.<br><br>Most likely, this is because the Google Maps library script was either not included, or does not contain the correct API key for your site.<br><br>Developers: For help getting this working correctly, <a href='http://trac.openlayers.org/wiki/Google' target='_blank'>click here</a>",getLayerWarning:"The ${layerType} Layer was unable to load correctly.<br><br>To get rid of this message, select a new BaseLayer in the layer switcher in the upper-right corner.<br><br>Most likely, this is because the ${layerLib} library script was not correctly included.<br><br>Developers: For help getting this working correctly, <a href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'>click here</a>",scale:"Scale = 1 : ${scaleDenom}",W:"W",E:"E",N:"N",S:"S",layerAlreadyAdded:"You tried to add the layer: ${layerName} to the map, but it has already been added",reprojectDeprecated:"You are using the 'reproject' option on the ${layerName} layer. This option is deprecated: its use was designed to support displaying data over commercial basemaps, but that functionality should now be achieved by using Spherical Mercator support. More information is available from http://trac.openlayers.org/wiki/SphericalMercator.",methodDeprecated:"This method has been deprecated and will be removed in 3.0. Please use ${newMethod} instead.",boundsAddError:"You must pass both x and y values to the add function.",lonlatAddError:"You must pass both lon and lat values to the add function.",pixelAddError:"You must pass both x and y values to the add function.",unsupportedGeometryType:"Unsupported geometry type: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition failed: element with id ${elemId} may be misplaced.",end:"",filterEvaluateNotImplemented:"evaluate is not implemented for this filter type."};
OpenLayers.Lang.en={unhandledRequest:"Unhandled request return ${statusText}",permalink:"Permalink",overlays:"Overlays",baseLayer:"Base Layer",sameProjection:"The overview map only works when it is in the same projection as the main map",readNotImplemented:"Read not implemented.",writeNotImplemented:"Write not implemented.",noFID:"Can't update a feature for which there is no FID.",errorLoadingGML:"Error in loading GML file ${url}",browserNotSupported:"Your browser does not support vector rendering. Currently supported renderers are:\n${renderers}",componentShouldBe:"addFeatures : component should be an ${geomType}",getFeatureError:"getFeatureFromEvent called on layer with no renderer. This usually means you destroyed a layer, but not some handler which is associated with it.",minZoomLevelError:"The minZoomLevel property is only intended for use with the FixedZoomLevels-descendent layers. That this wfs layer checks for minZoomLevel is a relic of thepast. We cannot, however, remove it without possibly breaking OL based applications that may depend on it. Therefore we are deprecating it -- the minZoomLevel check below will be removed at 3.0. Please instead use min/max resolution setting as described here: http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"WFS Transaction: SUCCESS ${response}",commitFailed:"WFS Transaction: FAILED ${response}",googleWarning:"The Google Layer was unable to load correctly.<br><br>To get rid of this message, select a new BaseLayer in the layer switcher in the upper-right corner.<br><br>Most likely, this is because the Google Maps library script was either not included, or does not contain the correct API key for your site.<br><br>Developers: For help getting this working correctly, <a href='http://trac.openlayers.org/wiki/Google' target='_blank'>click here</a>",getLayerWarning:"The ${layerType} Layer was unable to load correctly.<br><br>To get rid of this message, select a new BaseLayer in the layer switcher in the upper-right corner.<br><br>Most likely, this is because the ${layerLib} library script was not correctly included.<br><br>Developers: For help getting this working correctly, <a href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'>click here</a>",scale:"Scale = 1 : ${scaleDenom}",W:"W",E:"E",N:"N",S:"S",layerAlreadyAdded:"You tried to add the layer: ${layerName} to the map, but it has already been added",reprojectDeprecated:"You are using the 'reproject' option on the ${layerName} layer. This option is deprecated: its use was designed to support displaying data over commercial basemaps, but that functionality should now be achieved by using Spherical Mercator support. More information is available from http://trac.openlayers.org/wiki/SphericalMercator.",methodDeprecated:"This method has been deprecated and will be removed in 3.0. Please use ${newMethod} instead.",boundsAddError:"You must pass both x and y values to the add function.",lonlatAddError:"You must pass both lon and lat values to the add function.",pixelAddError:"You must pass both x and y values to the add function.",unsupportedGeometryType:"Unsupported geometry type: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition failed: element with id ${elemId} may be misplaced.",end:"",filterEvaluateNotImplemented:"evaluate is not implemented for this filter type."};
OpenLayers.Lang.fi=OpenLayers.Util.applyDefaults({permalink:"Ikilinkki",overlays:"Kerrokset",baseLayer:"Peruskerros",sameProjection:"Yleiskuvakarttaa voi kÃ¤yttÃ¤Ã¤ vain, kun sillÃ¤ on sama projektio kuin pÃ¤Ã¤kartalla.",W:"L",E:"I",N:"P",S:"E"});
OpenLayers.Lang.fur=OpenLayers.Util.applyDefaults({permalink:"Leam Permanent",overlays:"Livei parsore",baseLayer:"Livel di base",browserNotSupported:"Il to sgarfadÃ´r nol supuarte la renderizazion vetoriÃ¢l. Al moment a son supuartÃ¢ts:\n${renderers}",scale:"Scjale = 1 : ${scaleDenom}",W:"O",E:"E",N:"N",S:"S"});
OpenLayers.Lang.gl=OpenLayers.Util.applyDefaults({unhandledRequest:"Solicitude non xerada; a resposta foi: ${statusText}",permalink:"LigazÃ³n permanente",overlays:"Capas superpostas",baseLayer:"Capa base",sameProjection:"A vista xeral do mapa sÃ³ funciona cando estÃ¡ na mesma proxecciÃ³n cÃ³ mapa principal",readNotImplemented:"Lectura non implementada.",writeNotImplemented:"Escritura non implementada.",noFID:"Non se pode actualizar a funcionalidade para a que non hai FID.",errorLoadingGML:"Erro ao cargar o ficheiro GML $(url)",browserNotSupported:"O seu navegador non soporta a renderizaciÃ³n de vectores. Os renderizadores soportados actualmente son:\n${renderers}",componentShouldBe:"addFeatures: o compoÃ±ente debera ser de tipo ${geomType}",getFeatureError:"getFeatureFromEvent ten sido chamado a unha capa sen renderizador. Isto normalmente significa que destruÃu unha capa, mais non o executador que estÃ¡ asociado con ela.",minZoomLevelError:"A propiedade minZoomLevel Ã© sÃ³ para uso conxuntamente coas capas FixedZoomLevels-descendent. O feito de que esa capa wfs verifique o minZoomLevel Ã© unha reliquia do pasado. Non podemos, con todo, eliminala sen a posibilidade de non romper as aplicaciÃ³ns baseadas en OL que poidan depender dela. Por iso a estamos deixando obsoleta (a comprobaciÃ³n minZoomLevel de embaixo serÃ¡ eliminada na versiÃ³n 3.0). Por favor, no canto diso use o axuste de resoluciÃ³n mÃn/mÃ¡x tal e como estÃ¡ descrito aquÃ: http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"TransacciÃ³n WFS: Ã‰XITO ${response}",commitFailed:"TransacciÃ³n WFS: FALLIDA ${response}",googleWarning:"A capa do Google non puido cargarse correctamente.\x3cbr\x3e\x3cbr\x3ePara evitar esta mensaxe, escolla unha nova capa base no seleccionador de capas na marxe superior dereita.\x3cbr\x3e\x3cbr\x3eProbablemente, isto acontece porque a escritura da librarÃa do Google Maps ou ben non foi incluÃda ou ben non contÃ©n a clave API correcta para o seu sitio.\x3cbr\x3e\x3cbr\x3eDesenvolvedores: para axudar a facer funcionar isto correctamente, \x3ca href='http://trac.openlayers.org/wiki/Google' target='_blank'\x3epremede aquÃ\x3c/a\x3e",getLayerWarning:"A capa ${layerType} foi incapaz de cargarse correctamente.\x3cbr\x3e\x3cbr\x3ePara evitar esta mensaxe, escolla unha nova capa base no seleccionador de capas na marxe superior dereita.\x3cbr\x3e\x3cbr\x3eProbablemente, isto acontece porque a escritura da librarÃa ${layerLib} non foi ben incluÃda.\x3cbr\x3e\x3cbr\x3eDesenvolvedores: para axudar a facer funcionar isto correctamente, \x3ca href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'\x3epremede aquÃ\x3c/a\x3e",scale:"Escala = 1 : ${scaleDenom}",W:"O",E:"L",N:"N",S:"S",layerAlreadyAdded:"Intentou engadir a capa: ${layerName} ao mapa, pero xa fora engadida",reprojectDeprecated:'EstÃ¡ usando a opciÃ³n "reproject" na capa ${layerName}. Esta opciÃ³n estÃ¡ obsoleta: o seu uso foi deseÃ±ado para a visualizaciÃ³n de datos sobre mapas base comerciais, pero esta funcionalidade debera agora ser obtida utilizando a proxecciÃ³n Spherical Mercator. Hai dispoÃ±ible mÃ¡is informaciÃ³n en http://trac.openlayers.org/wiki/SphericalMercator.',methodDeprecated:"Este mÃ©todo estÃ¡ obsoleto e serÃ¡ eliminado na versiÃ³n 3.0. Por favor, no canto deste use ${newMethod}.",boundsAddError:"Debe achegar os valores x e y Ã¡ funciÃ³n add.",lonlatAddError:"Debe achegar tanto o valor lon coma o lat Ã¡ funciÃ³n add.",pixelAddError:"Debe achegar os valores x e y Ã¡ funciÃ³n add.",unsupportedGeometryType:"Tipo xeomÃ©trico non soportado: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition fallou: o elemento con id ${elemId} pode non estar na sÃºa posiciÃ³n.",filterEvaluateNotImplemented:"avaliar non estÃ¡ implementado para este tipo de filtro."});
OpenLayers.Lang.gsw=OpenLayers.Util.applyDefaults({unhandledRequest:"Nit behandleti AafrogsruckmÃ¤ldig ${statusText}",permalink:"Permalink",overlays:"Iberlagerige",baseLayer:"Grundcharte",sameProjection:"D Ibersichts-Charte funktioniert nume, wÃ¤nn si di glych ProjÃ¤ktion brucht wie d Hauptcharte",readNotImplemented:"LÃ¤se nit implementiert.",writeNotImplemented:"Schrybe nit implementiert.",noFID:"E Feature, wu s kei FID derfir git, cha nit aktualisiert wÃ¤re.",errorLoadingGML:"FÃ¤hler bim Lade vu dr GML-Datei ${url}",browserNotSupported:"Dyy Browser unterstitzt kei Vektordarstellig. AktuÃ¤ll unterstitzti Renderer:\n${renderers}",componentShouldBe:"addFeatures : KomponÃ¤nt sott dr Typ ${geomType} syy",getFeatureError:"getFeatureFromEvent isch uf eme Layer ohni Renderer ufgruefe wore. Des heisst normalerwys, ass Du e Layer kaputt gmacht hesch, aber nit dr Handler, wu derzue ghert.",minZoomLevelError:"D minZoomLevel-Eigeschaft isch nume dÃ¤nk fir d Layer, wu vu dr FixedZoomLevels abstamme. Ass dÃ¤Ã¤ wfs-Layer minZoomLevel prieft, scih e Relikt us dr Vergangeheit. Mir chenne s aber nit Ã¤ndere ohni OL_basierti AawÃ¤ndige villicht kaputt gehn, wu dervu abhÃ¤nge.  Us dÃ¤m Grund het die Funktion d Eigeschaft 'deprecated' iberchuu. D minZoomLevel-Priefig unte wird in dr Version 3.0 usegnuu. Bitte verwÃ¤nd statt dÃ¤m e min/max-Uflesig wie s do bschriben isch: http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"WFS-Transaktion: ERFOLGRYCH ${response}",commitFailed:"WFS-Transaktion: FÃ„HLGSCHLAA ${response}",googleWarning:"Dr Google-Layer het nit korrÃ¤kt chenne glade wÃ¤re.\x3cbr\x3e\x3cbr\x3eGo die MÃ¤ldig nimi z kriege, wehl e andere Hintergrundlayer us em LayerSwitcher im rÃ¤chte obere Ecke.\x3cbr\x3e\x3cbr\x3eDÃ¤Ã¤ FÃ¤hler git s seli hyfig, wel s Skript vu dr Google-Maps-Bibliothek nit yybunde woren isch oder wel s kei giltige API-Schlissel fir Dyy URL din het.\x3cbr\x3e\x3cbr\x3eEntwickler: Fir Hilf zum korrÃ¤kte Yybinde vum Google-Layer \x3ca href='http://trac.openlayers.org/wiki/Google' target='_blank'\x3edoo drucke\x3c/a\x3e",getLayerWarning:"Dr ${layerType}-Layer het nit korrÃ¤kt chenne glade wÃ¤re.\x3cbr\x3e\x3cbr\x3eGo die MÃ¤ldig nimi z kriege, wehl e andere Hintergrundlayer us em LayerSwitcher im rÃ¤chte obere Ecke.\x3cbr\x3e\x3cbr\x3eDÃ¤Ã¤ FÃ¤hler git s seli hyfig, wel s Skript vu dr '${layerLib}'-Bibliothek nit yybunde woren isch oder wel s kei giltige API-Schlissel fir Dyy URL din het.\x3cbr\x3e\x3cbr\x3eEntwickler: Fir Hilf zum korrÃ¤kte Yybinde vu Layer \x3ca href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'\x3edoo drucke\x3c/a\x3e",scale:"MaÃŸstab = 1 : ${scaleDenom}",W:"W",E:"O",N:"N",S:"S",layerAlreadyAdded:"Du hesch versuecht dÃ¤Ã¤ Layer in d Charte yyzfiege: ${layerName}, aber Ã¤r isch schoi yygfiegt",reprojectDeprecated:"Du bruchsch d 'reproject'-Option bim ${layerName}-Layer. Die Option isch nimi giltig: si isch aagleit wore go   Date iber kommerziÃ¤lli Grundcharte lege, aber des sott mer jetz mache mit dr Unterstitzig vu Spherical Mercator. Meh Informatione git s uf http://trac.openlayers.org/wiki/SphericalMercator.",methodDeprecated:"Die Methode isch veraltet un wird us dr Version 3.0 usegnuu. Bitte verwÃ¤bnd statt dÃ¤m ${newMethod}.",boundsAddError:"Du muesch e x-WÃ¤rt un e y-WÃ¤rt yygee bi dr Zuefieg-Funktion",lonlatAddError:"Du meusch e Lengi- un e Breiti-Grad yygee bi dr Zuefieg-Funktion.",pixelAddError:"Du muesch x- un y-WÃ¤rt aagee bi dr Zuefieg-Funktion.",unsupportedGeometryType:"Nit unterstitze Geometrii-Typ: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition fÃ¤hlgschlaa: ElemÃ¤nt mit ID ${elemId} isch villicht falsch gsetzt.",filterEvaluateNotImplemented:"evaluiere isch nit implemÃ¤ntiert in dÃ¤m Filtertyp."});
OpenLayers.Lang.hr=OpenLayers.Util.applyDefaults({unhandledRequest:"NepodrÅ¾ani zahtjev ${statusText}",permalink:"Permalink",overlays:"Overlays",baseLayer:"Osnovna karta",sameProjection:"Pregledna karta radi jedino kao je u istoj projekciji kao i glava karta",readNotImplemented:"ÄŒitanje nije implementirano.",writeNotImplemented:"Pisanje nije implementirano.",noFID:"Ne mogu aÅ¾urirati znaÄ ajku za koju ne postoji FID.",errorLoadingGML:"GreÅ¡ka u uÄ itavanju GML datoteke ${url}",browserNotSupported:"VaÅ¡ preglednik ne podrÅ¾ava vektorsko renderiranje. Trenutno podrÅ¾ani rendereri su: ${renderers}",componentShouldBe:"addFeatures : komponenta bi trebala biti ${geomType}",getFeatureError:"getFeatureFromEvent je pozvao Layer bez renderera. Ovo obiÄ no znaÄ i da ste uniÅ¡tiili Layer, a ne neki Handler koji je povezan s njim.",commitSuccess:"WFS Transakcija: USPJEÅ NA ${response}",commitFailed:"WFS Transakcija: NEUSPJEÅ NA ${response}",scale:"Mjerilo = 1 : ${scaleDenom}",layerAlreadyAdded:"PokuÅ¡ali ste dodati layer:  ${layerName} na kartu, ali je veÄ‡ dodan",methodDeprecated:"Ova metoda nije odobrena i biti Ä‡e maknuta u 3.0. Koristite ${newMethod}.",boundsAddError:"Morate dati obje vrijednosti ,  x i y  da bi dodali funkciju.",lonlatAddError:"Morate dati obje vrijednosti , (lon i lat) da bi dodali funkciju.",pixelAddError:"Morate dati obje vrijednosti ,  x i y  da bi dodali funkciju.",unsupportedGeometryType:"NepodrÅ¾ani tip geometrije: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition nije uspjelo: element sa id ${elemId} moÅ¾e biti krivo smjeÅ¡ten."});
OpenLayers.Lang.hsb=OpenLayers.Util.applyDefaults({unhandledRequest:"WotmoÅ‚wa njewobdÅºÄ›Å‚aneho napraÅ¡owanja ${statusText}",permalink:"Trajny wotkaz",overlays:"NaworÅ¡towanja",baseLayer:"ZakÅ‚adna runina",sameProjection:"PÅ™ehladowa karta jenoÅ¾ funguje, hdyÅ¾ je w samsnej projekciji kaÅ¾ hÅ‚owna karta",readNotImplemented:"ÄŒitanje njeimplementowane.",writeNotImplemented:"Pisanje njeimplementowane.",noFID:"Funkcija, za kotruÅ¾ FID njeje, njeda so aktualizowaÄ‡.",errorLoadingGML:"Zmylk pÅ™i zaÄ itowanju dataje ${url}",browserNotSupported:"TwÃ³j wobhladowak wektorowe rysowanje njepodpÄ›ruje. Tuchwilu podpÄ›rowane rysowaki su:\n${renderers}",componentShouldBe:"addFeatures: komponenta mÄ›Å‚a ${geomType} byÄ‡",getFeatureError:"getFeatureFromEvent bu na worÅ¡Ä‡e bjez rysowak zawoÅ‚any. To zwjetÅ¡a woznamjenja, zo sy worÅ¡tu zniÄ iÅ‚, ale nic wobdÅºÄ›Å‚ak, kotryÅ¾ je z njej zwjazany.",minZoomLevelError:"KajkosÄ‡ minZoomLevel je jenoÅ¾ za wuÅ¾iwanje z worÅ¡tami myslena, kotreÅ¾ wot FixedZoomLevels pochadÅºeja. Zo tuta worÅ¡ta wfs za minZoomLevel pÅ™epruwuje, je relikt zaÅ„dÅºenosÄ‡e. NjemÃ³Å¾emy wÅ¡ak ju wotstroniÄ‡, bjeztoho zo aplikacije, kotreÅ¾ na OpenLayers bazÄ›ruja a snano tutu kajkosÄ‡ wuÅ¾iwaja, hiÅ¾o njefunguja. Tohodla smy ju jako zestarjenu woznamjenili -- pÅ™epruwowanje za minZoomLevel budu so we wersiji 3.0 wotstronjeÄ‡. ProÅ¡u wuÅ¾ij mÄ›sto toho nastajenje min/max, kaÅ¾ je tu wopisane: http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"WFS-Transakcija: WUSPÄšÅ NA ${response}",commitFailed:"WFS-Transakcija: NJEPORADÅ¹ENA ${response}",googleWarning:"WorÅ¡ta Google njemÃ³Å¾eÅ¡e so korektnje zaÄ itaÄ‡.\x3cbr\x3e\x3cbr\x3eZo by tutu zdÅºÄ›lenku wotbyÅ‚, wubjer nowy BaseLayer z wubÄ›ra worÅ¡tow horjeka naprawo.\x3cbr\x3e\x3cbr\x3eNajskerje so to stawa, dokelÅ¾ skript biblioteki Google Maps pak njebu zapÅ™ijaty pak njewobsahuje korektny kluÄ  API za twoje sydÅ‚o.\x3cbr\x3e\x3cbr\x3eWuwiwarjo: Za pomoc ke korektnemu fungowanju worÅ¡tow\n\x3ca href='http://trac.openlayers.org/wiki/Google' target='_blank'\x3etu kliknyÄ‡\x3c/a\x3e",getLayerWarning:"WorÅ¡ta ${layerType} njemÃ³Å¾eÅ¡e so korektnje zaÄ itaÄ‡.\x3cbr\x3e\x3cbr\x3eZo by tutu zdÅºÄ›lenku wotbyÅ‚, wubjer nowy BaseLayer z wubÄ›ra worÅ¡tow horjeka naprawo.\x3cbr\x3e\x3cbr\x3eNajskerje so to stawa, dokelÅ¾ skript biblioteki ${layerLib} njebu korektnje zapÅ™ijaty.\x3cbr\x3e\x3cbr\x3eWuwiwarjo: Za pomoc ke korektnemu fungowanju worÅ¡tow\n\x3ca href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'\x3etu kliknyÄ‡\x3c/a\x3e",scale:"MÄ›ritko = 1 : ${scaleDenom}",W:"Z",E:"W",N:"S",S:"J",layerAlreadyAdded:"Sy spytaÅ‚ runinu ${layerName} karÄ‡e dodaÄ‡, ale je so hiÅ¾o dodaÅ‚a",reprojectDeprecated:'WuÅ¾iwaÅ¡ opciju "reproject" woÅ™Å¡ty ${layerName}. Tuta opcija je zestarjena: jeje wuÅ¾iwanje bÄ› myslene, zo by zwobraznjenje datow nad komercielnymi bazowymi kartami podpÄ›raÅ‚o, ale funkcionalnosÄ‡ mÄ›Å‚a so nÄ›tko z pomocu Sperical Mercator docpÄ›Ä‡. DalÅ¡e informacije steja na http://trac.openlayers.org/wiki/SphericalMercator k dispoziciji.',methodDeprecated:"Tuta metoda je so njeschwaliÅ‚a a budÅºe so w 3.0 wotstronjeÄ‡. ProÅ¡u wuÅ¾ij ${newMethod} mÄ›sto toho.",boundsAddError:'DyrbiÅ¡ hÃ³dnotu x kaÅ¾ teÅ¾ y funkciji "add" pÅ™epodaÄ‡.',lonlatAddError:'DyrbiÅ¡ hÃ³dnotu lon kaÅ¾ teÅ¾ lat funkciji "add" pÅ™epodaÄ‡.',pixelAddError:'DyrbiÅ¡ hÃ³dnotu x kaÅ¾ teÅ¾ y funkciji "add" pÅ™epodaÄ‡.',unsupportedGeometryType:"NjepodpÄ›rowany geometrijowy typ: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition je so njeporadÅºiÅ‚: element z id ${elemId} bu snano wopak zamÄ›stnjeny.",filterEvaluateNotImplemented:"wuhÃ³dnoÄ‡enje njeje za tutÃ³n filtrowy typ implementowany."});
OpenLayers.Lang.hu=OpenLayers.Util.applyDefaults({unhandledRequest:"Nem kezelt kÃ©rÃ©s visszatÃ©rÃ©se ${statusText}",permalink:"Permalink",overlays:"RÃ¡vetÃtÃ©sek",baseLayer:"AlaprÃ©teg",sameProjection:"Az Ã¡ttekintÅ‘ tÃ©rkÃ©p csak abban az esetben mÅ±kÃ¶dik, ha ugyanazon a vetÃ¼leten van, mint a fÅ‘ tÃ©rkÃ©p.",readNotImplemented:"OlvasÃ¡s nincs vÃ©grehajtva.",writeNotImplemented:"Ã rÃ¡s nincs vÃ©grehajtva.",noFID:"Nem frissÃthetÅ‘ olyan jellemzÅ‘, amely nem rendelkezik FID-del.",errorLoadingGML:"Hiba GML-fÃ¡jl betÃ¶ltÃ©sekor ${url}",browserNotSupported:"A bÃ¶ngÃ©szÅ‘je nem tÃ¡mogatja a vektoros renderelÃ©st. A jelenleg tÃ¡mogatott renderelÅ‘k:\n${renderers}",componentShouldBe:"addFeatures : az Ã¶sszetevÅ‘nek ilyen tÃpusÃºnak kell lennie: ${geomType}",getFeatureError:"getFeatureFromEvent rÃ©teget hÃvott meg renderelÅ‘ nÃ©lkÃ¼l. Ez rendszerint azt jelenti, hogy megsemmisÃtett egy fÃ³liÃ¡t, de nÃ©hÃ¡ny ahhoz tÃ¡rsÃtott kezelÅ‘t nem.",minZoomLevelError:"A minZoomLevel tulajdonsÃ¡got csak a kÃ¶vetkezÅ‘vel valÃ³ hasznÃ¡latra szÃ¡ntÃ¡k: FixedZoomLevels-leszÃ¡rmazott fÃ³liÃ¡k. Ez azt jelenti, hogy a minZoomLevel wfs fÃ³lia jelÃ¶lÅ‘nÃ©gyzetei mÃ¡r a mÃºltÃ©. Mi azonban nem tÃ¡volÃthatjuk el annak a veszÃ©lye nÃ©lkÃ¼l, hogy az esetlegesen ettÅ‘l fÃ¼ggÅ‘ OL alapÃº alkalmazÃ¡sokat tÃ¶nkretennÃ©nk. EzÃ©rt ezt Ã©rvÃ©nytelenÃtjÃ¼k -- a minZoomLevel az alul levÅ‘ jelÃ¶lÅ‘nÃ©gyzet a 3.0-s verziÃ³bÃ³l el lesz tÃ¡volÃtva. KÃ©rjÃ¼k, helyette hasznÃ¡lja a  min/max felbontÃ¡s beÃ¡llÃtÃ¡st, amelyrÅ‘l az alÃ¡bbi helyen talÃ¡l leÃrÃ¡st: http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"WFS tranzakciÃ³: SIKERES ${response}",commitFailed:"WFS tranzakciÃ³: SIKERTELEN ${response}",googleWarning:"A Google fÃ³lia betÃ¶ltÃ©se sikertelen.\x3cbr\x3e\x3cbr\x3eAhhoz, hogy ez az Ã¼zenet eltÅ±njÃ¶n, vÃ¡lasszon egy Ãºj BaseLayer fÃ³liÃ¡t a jobb felsÅ‘ sarokban talÃ¡lhatÃ³ fÃ³liakapcsolÃ³ segÃtsÃ©gÃ©vel.\x3cbr\x3e\x3cbr\x3eNagy valÃ³szÃnÅ±sÃ©ggel ez azÃ©rt van, mert a Google Maps kÃ¶nyvtÃ¡r parancsfÃ¡jlja nem talÃ¡lhatÃ³, vagy nem tartalmazza az Ã–n oldalÃ¡hoz tartozÃ³ megfelelÅ‘ API-kulcsot.\x3cbr\x3e\x3cbr\x3eFejlesztÅ‘knek: A helyes mÅ±kÃ¶dtetÃ©sre vonatkozÃ³ segÃtsÃ©g az alÃ¡bbi helyen Ã©rhetÅ‘ el, \x3ca href='http://trac.openlayers.org/wiki/Google' target='_blank'\x3ekattintson ide\x3c/a\x3e",getLayerWarning:"A(z) ${layerType} fÃ³lia nem tÃ¶ltÅ‘dÃ¶tt be helyesen.\x3cbr\x3e\x3cbr\x3eAhhoz, hogy ez az Ã¼zenet eltÅ±njÃ¶n, vÃ¡lasszon egy Ãºj BaseLayer fÃ³liÃ¡t a jobb felsÅ‘ sarokban talÃ¡lhatÃ³ fÃ³liakapcsolÃ³ segÃtsÃ©gÃ©vel.\x3cbr\x3e\x3cbr\x3eNagy valÃ³szÃnÅ±sÃ©ggel ez azÃ©rt van, mert a(z) ${layerLib} kÃ¶nyvtÃ¡r parancsfÃ¡jlja helytelen.\x3cbr\x3e\x3cbr\x3eFejlesztÅ‘knek: A helyes mÅ±kÃ¶dtetÃ©sre vonatkozÃ³ segÃtsÃ©g az alÃ¡bbi helyen Ã©rhetÅ‘ el, \x3ca href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'\x3ekattintson ide\x3c/a\x3e",scale:"LÃ©ptÃ©k = 1 : ${scaleDenom}",W:"Ny",E:"K",N:"Ã‰",S:"D",layerAlreadyAdded:"MegprÃ³bÃ¡lta hozzÃ¡adni a(z) ${layerName} fÃ³liÃ¡t a tÃ©rkÃ©phez, de az mÃ¡r hozzÃ¡ van adva",reprojectDeprecated:"Ã–n a 'reproject' beÃ¡llÃtÃ¡st hasznÃ¡lja a(z) ${layerName} fÃ³liÃ¡n. Ez a beÃ¡llÃtÃ¡s Ã©rvÃ©nytelen: hasznÃ¡lata az Ã¼zleti alaptÃ©rkÃ©pek fÃ¶lÃ¶tti adatok megjelenÃtÃ©sÃ©nek tÃ¡mogatÃ¡sÃ¡ra szolgÃ¡lt, de ezt a funkciÃ³ ezentÃºl a GÃ¶mbi Mercator hasznÃ¡latÃ¡val Ã©rhetÅ‘ el. TovÃ¡bbi informÃ¡ciÃ³ az alÃ¡bbi helyen Ã©rhetÅ‘ el: http://trac.openlayers.org/wiki/SphericalMercator",methodDeprecated:"Ez a mÃ³dszer Ã©rvÃ©nytelenÃtve lett Ã©s a 3.0-s verziÃ³bÃ³l el lesz tÃ¡volÃtva. HasznÃ¡lja a(z) ${newMethod} mÃ³dszert helyette.",boundsAddError:"Az x Ã©s y Ã©rtÃ©keknek egyarÃ¡nt meg kell felelnie, hogy a funkciÃ³t hozzÃ¡adhassa.",lonlatAddError:"A hossz. Ã©s szÃ©l. Ã©rtÃ©keknek egyarÃ¡nt meg kell felelnie, hogy a funkciÃ³t hozzÃ¡adhassa.",pixelAddError:"Az x Ã©s y Ã©rtÃ©keknek egyarÃ¡nt meg kell felelnie, hogy a funkciÃ³t hozzÃ¡adhassa.",unsupportedGeometryType:"Nem tÃ¡mogatott geometriatÃpus: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition sikertelen: lehetsÃ©ges, hogy a(z) ${elemId} azonosÃtÃ³jÃº elem tÃ©ves helyre kerÃ¼lt.",filterEvaluateNotImplemented:"ennÃ©l a szÅ±rÅ‘tÃpusnÃ¡l kiÃ©rtÃ©kelÃ©s nem hajtÃ³dik vÃ©gre."});
OpenLayers.Lang.ia=OpenLayers.Util.applyDefaults({unhandledRequest:"Le responsa a un requesta non esseva maneate: ${statusText}",permalink:"Permaligamine",overlays:"Superpositiones",baseLayer:"Strato de base",sameProjection:"Le mini-carta functiona solmente si illo es in le mesme projection que le carta principal",readNotImplemented:"Lectura non implementate.",writeNotImplemented:"Scriptura non implementate.",noFID:"Non pote actualisar un elemento sin FID.",errorLoadingGML:"Error al cargamento del file GML ${url}",browserNotSupported:"Tu navigator non supporta le rendition de vectores. Le renditores actualmente supportate es:\n${renderers}",componentShouldBe:"addFeatures: le componente debe esser del typo ${geomType}",getFeatureError:"getFeatureFromEvent ha essite appellate in un strato sin renditor. Isto significa generalmente que tu ha destruite un strato, ma lassava un gestor associate con illo.",minZoomLevelError:"Le proprietate minZoomLevel es solmente pro uso con le stratos descendente de FixedZoomLevels. Le facto que iste strato WFS verifica minZoomLevel es un reliquia del passato. Nonobstante, si nos lo remove immediatemente, nos pote rumper applicationes a base de OL que depende de illo. Ergo nos lo declara obsolete; le verification de minZoomLevel in basso essera removite in version 3.0. Per favor usa in su loco le configuration de resolutiones min/max como describite a: http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"Transaction WFS: SUCCESSO ${response}",commitFailed:"Transaction WFS: FALLEVA ${response}",googleWarning:"Le strato Google non poteva esser cargate correctemente.\x3cbr\x3e\x3cbr\x3ePro disfacer te de iste message, selige un nove BaseLayer in le selector de strato in alto a dextra.\x3cbr\x3e\x3cbr\x3eMulto probabilemente, isto es proque le script del libreria de Google Maps non esseva includite o non contine le clave API correcte pro tu sito.\x3cbr\x3e\x3cbr\x3eDisveloppatores: Pro adjuta de corriger isto, \x3ca href='http://trac.openlayers.org/wiki/Google' target='_blank'\x3eclicca hic\x3c/a",getLayerWarning:"Le strato ${layerType} non poteva esser cargate correctemente.\x3cbr\x3e\x3cbr\x3ePro disfacer te de iste message, selige un nove BaseLayer in le selector de strato in alto a dextra.\x3cbr\x3e\x3cbr\x3eMulto probabilemente, isto es proque le script del libreria de ${layerLib} non esseva correctemente includite.\x3cbr\x3e\x3cbr\x3eDisveloppatores: Pro adjuta de corriger isto, \x3ca href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'\x3eclicca hic\x3c/a\x3e",scale:"Scala = 1 : ${scaleDenom}",W:"W",E:"E",N:"N",S:"S",layerAlreadyAdded:"Tu tentava adder le strato: ${layerName} al carta, ma illo es ja presente",reprojectDeprecated:"Tu usa le option 'reproject' in le strato ${layerName} layer. Iste option es obsolescente: illo esseva pro poter monstrar datos super cartas de base commercial, ma iste functionalitate pote ora esser attingite con le uso de Spherical Mercator. Ulterior information es disponibile a http://trac.openlayers.org/wiki/SphericalMercator.",methodDeprecated:"Iste methodo ha essite declarate obsolescente e essera removite in version 3.0. Per favor usa ${newMethod} in su loco.",boundsAddError:"Tu debe passar le duo valores x e y al function add.",lonlatAddError:"Tu debe passar le duo valores lon e lat al function add.",pixelAddError:"Tu debe passar le duo valores x e y al function add.",unsupportedGeometryType:"Typo de geometria non supportate: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition falleva: le elemento con id ${elemId} pote esser mal placiate.",filterEvaluateNotImplemented:'"evaluate" non es implementate pro iste typo de filtro.'});
OpenLayers.Lang.id=OpenLayers.Util.applyDefaults({unhandledRequest:"Permintaan yang tak tertangani menghasilkan ${statusText}",permalink:"Pranala permanen",overlays:"Hamparan",baseLayer:"Lapisan Dasar",sameProjection:"Peta tinjauan hanya bekerja bila dalam proyeksi yang sama dengan peta utama",readNotImplemented:"Membaca tidak diterapkan.",writeNotImplemented:"Menyimpan tidak diterapkan.",noFID:"Tidak dapat memperbarui fitur yang tidak memiliki FID.",errorLoadingGML:"Kesalahan dalam memuat berkas GML ${url}",browserNotSupported:"Peramban Anda tidak mendukung penggambaran vektor. Penggambar yang didukung saat ini adalah:\n${renderers}",componentShouldBe:"addFeatures : komponen harus berupa ${geomType}",getFeatureError:"getFeatureFromEvent diterapkan pada lapisan tanpa penggambar. Ini biasanya berarti Anda menghapus sebuah lapisan, tetapi tidak menghapus penangan yang terkait dengannya.",minZoomLevelError:"Properti minZoomLevel hanya ditujukan bekerja dengan lapisan FixedZoomLevels-descendent. Pengecekan minZoomLevel oleh lapisan wfs adalah peninggalan masa lalu. Kami tidak dapat menghapusnya tanpa kemungkinan merusak aplikasi berbasis OL yang mungkin bergantung padanya. Karenanya, kami menganggapnya tidak berlaku -- Cek minZoomLevel di bawah ini akan dihapus pada 3.0. Silakan gunakan penyetelan resolusi min/maks seperti dijabarkan di sini: http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"WFS Transaksi: BERHASIL ${respon}",commitFailed:"WFS Transaksi: GAGAL ${respon}",googleWarning:"Lapisan Google tidak dapat dimuat dengan benar.\x3cbr\x3e\x3cbr\x3eUntuk menghilangkan pesan ini, pilih suatu BaseLayer baru melalui penukar lapisan (layer switcher) di ujung kanan atas.\x3cbr\x3e\x3cbr\x3eKemungkinan besar ini karena pustaka skrip Google Maps tidak disertakan atau tidak mengandung kunci API yang tepat untuk situs Anda.\x3cbr\x3e\x3cbr\x3ePengembang: Untuk bantuan mengatasi masalah ini, \x3ca href='http://trac.openlayers.org/wiki/Google' target='_blank'\x3eklik di sini\x3c/a\x3e",getLayerWarning:"Lapisan ${layerType} tidak dapat dimuat dengan benar.\x3cbr\x3e\x3cbr\x3eUntuk menghilangkan pesan ini, pilih suatu BaseLayer baru melalui penukar lapisan (layer switcher) di ujung kanan atas.\x3cbr\x3e\x3cbr\x3eKemungkinan besar ini karena pustaka skrip Google Maps tidak disertakan dengan benar.\x3cbr\x3e\x3cbr\x3ePengembang: Untuk bantuan mengatasi masalah ini, \x3ca href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'\x3eklik di sini\x3c/a\x3e",scale:"Sekala = 1 : $(sekala Denom)",W:"B",E:"T",N:"U",S:"S",layerAlreadyAdded:"Anda mencoba menambahkan lapisan: ${layerName} ke dalam peta, tapi lapisan itu telah ditambahkan",reprojectDeprecated:"Anda menggunakan opsi 'reproject' pada lapisan ${layerName}. Opsi ini telah ditinggalkan: penggunaannya dirancang untuk mendukung tampilan data melalui peta dasar komersial, tapi fungsionalitas tersebut saat ini harus dilakukan dengan menggunakan dukungan Spherical Mercator. Informasi lebih lanjut tersedia di http://trac.openlayers.org/wiki/SphericalMercator.",methodDeprecated:"Metode ini telah usang dan akan dihapus di 3.0. Sebaliknya, harap gunakan ${newMethod}.",boundsAddError:"Anda harus memberikan kedua nilai x dan y ke fungsi penambah.",lonlatAddError:"Anda harus memberikan kedua nilai lon dan lat ke fungsi penambah.",pixelAddError:"Anda harus memberikan kedua nilai x dan y ke fungsi penambah.",unsupportedGeometryType:"Tipe geometri tak didukung: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition gagal: elemen dengan id ${elemId} mungkin salah tempat.",filterEvaluateNotImplemented:"evaluasi tidak tersedia untuk tipe filter ini."});
OpenLayers.Lang.io=OpenLayers.Util.applyDefaults({scale:"Skalo = 1 : ${scaleDenom}"});
OpenLayers.Lang.is=OpenLayers.Util.applyDefaults({permalink:"Varanlegur tengill",overlays:"Ãžekjur",baseLayer:"Grunnlag",sameProjection:"YfirlitskortiÃ° virkar aÃ°eins ef Ã¾aÃ° er Ã sÃ¶mu vÃ¶rpun og aÃ°alkortiÃ°",readNotImplemented:"Skrifun er Ã³ÃºtfÃ¦rÃ°.",writeNotImplemented:"Lestur er Ã³ÃºtfÃ¦rÃ°ur.",errorLoadingGML:"Villa kom upp viÃ° aÃ° hlaÃ°a inn GML skrÃ¡nni ${url}",scale:"Skali = 1 : ${scaleDenom}",layerAlreadyAdded:"ÃžÃº reyndir aÃ° bÃ¦ta laginu ${layerName} Ã¡ kortiÃ° en Ã¾aÃ° er Ã¾egar bÃºiÃ° aÃ° bÃ¦ta Ã¾vÃ viÃ°",methodDeprecated:"Ãžetta fall hefur veriÃ° Ãºrelt og verÃ°ur fjarlÃ¦gt Ã 3.0. NotaÃ°u ${newMethod} Ã staÃ°in."});
OpenLayers.Lang.ja=OpenLayers.Util.applyDefaults({unhandledRequest:"æœªå‡¦ç †ã ®è¦ æ±‚ã ¯ ${statusText} ã‚’è¿”ã —ã ¾ã ™",permalink:"ãƒ‘ãƒ¼ãƒžãƒªãƒ³ã‚¯",overlays:"ã‚ªãƒ¼ãƒ ãƒ¼ãƒ¬ã‚¤",baseLayer:"åŸºåº•ãƒ¬ã‚¤ãƒ¤ãƒ¼",sameProjection:"æ¦‚è¦³åœ°å›³ã ¯ãƒ¡ã‚¤ãƒ³ã ®åœ°å›³ã ¨å Œã ˜æŠ•å½±æ³•ã‚’ã ¨ã‚‹å ´å ˆã ®ã ¿æ©Ÿèƒ½ã —ã ¾ã ™",readNotImplemented:"èªã ¿è¾¼ã ¿ã ¯å®Ÿè£…ã •ã‚Œã ¦ã „ã ¾ã ›ã‚“ã€‚",writeNotImplemented:"æ›¸ã  è¾¼ã ¿ã ¯å®Ÿè£…ã •ã‚Œã ¦ã „ã ¾ã ›ã‚“ã€‚",noFID:"FID ã ®ã ªã „åœ°ç‰©ã ¯æ›´æ–°ã §ã  ã ¾ã ›ã‚“ã€‚",errorLoadingGML:"GML ãƒ•ã‚¡ã‚¤ãƒ« ${url} ã ®èªã ¿è¾¼ã ¿ã‚¨ãƒ©ãƒ¼",browserNotSupported:"ã ‚ã ªã Ÿã ®ãƒ–ãƒ©ã‚¦ã‚¶ã ¯ãƒ™ã‚¯ã‚¿ãƒ¼ã‚°ãƒ©ãƒ•ã‚£ãƒƒã‚¯ã‚¹ã ®æ  å†™ã «å¯¾å¿œã —ã ¦ã „ã ¾ã ›ã‚“ã€‚ç ¾æ™‚ç‚¹ã §å¯¾å¿œã —ã ¦ã „ã‚‹ã‚½ãƒ•ãƒˆã‚¦ã‚§ã‚¢ã ¯ä»¥ä¸‹ã ®ã‚‚ã ®ã §ã ™ã€‚\n${renderers}",componentShouldBe:"addFeatures: è¦ ç´ ã ¯ ${geomType} ã §ã ‚ã‚‹ã ¹ã  ã §ã ™",getFeatureError:"getFeatureFromEvent ã Œãƒ¬ãƒ³ãƒ€ãƒ©ãƒ¼ã ®ã ªã „ãƒ¬ã‚¤ãƒ¤ãƒ¼ã ‹ã‚‰å‘¼ã °ã‚Œã ¾ã —ã Ÿã€‚é€šå¸¸ã€ ã “ã‚Œã ¯ã ‚ã ªã Ÿã Œãƒ¬ã‚¤ãƒ¤ãƒ¼ã‚’ã€ ã  ã‚Œã «é–¢é€£ã ¥ã ‘ã‚‰ã‚Œã Ÿã „ã  ã ¤ã ‹ã ®ãƒ ãƒ³ãƒ‰ãƒ©ã‚’é™¤ã „ã ¦ã€ ç ´å£Šã —ã ¦ã —ã ¾ã £ã Ÿã “ã ¨ã‚’æ„ å‘³ã —ã ¾ã ™ã€‚",minZoomLevelError:"minZoomLevel ãƒ—ãƒãƒ‘ãƒ†ã‚£ã ¯ FixedZoomLevels ã‚’ç¶™æ‰¿ã ™ã‚‹ãƒ¬ã‚¤ãƒ¤ãƒ¼ã §ã ®ä½¿ç”¨ã ®ã ¿ã‚’æƒ³å®šã —ã ¦ã „ã ¾ã ™ã€‚ã “ã ® minZoomLevel ã «å¯¾ã ™ã‚‹ WFS ãƒ¬ã‚¤ãƒ¤ãƒ¼ã ®æ¤œæŸ»ã ¯æ´å ²çš„ã ªã‚‚ã ®ã §ã ™ã€‚ã —ã ‹ã —ã ªã Œã‚‰ã€ ã “ã ®æ¤œæŸ»ã‚’é™¤åŽ»ã ™ã‚‹ã ¨ã  ã‚Œã «ä¾ å˜ã ™ã‚‹ OpenLayers ãƒ™ãƒ¼ã‚¹ã ®ã‚¢ãƒ—ãƒªã‚±ãƒ¼ã‚·ãƒ§ãƒ³ã‚’ç ´å£Šã —ã ¦ã —ã ¾ã †å ¯èƒ½æ€§ã Œã ‚ã‚Šã ¾ã ™ã€‚ã‚ˆã £ã ¦å»ƒæ¢ã Œäºˆå®šã •ã‚Œã ¦ã Šã‚Šã€ ã “ã ® minZoomLevel æ¤œæŸ»ã ¯ãƒ ãƒ¼ã‚¸ãƒ§ãƒ³3.0ã §é™¤åŽ»ã •ã‚Œã ¾ã ™ã€‚ä»£ã‚ ã‚Šã «ã€ http://trac.openlayers.org/wiki/SettingZoomLevels ã §è§£èª¬ã •ã‚Œã ¦ã „ã‚‹ã€ æœ€å° ã Šã‚ˆã ³æœ€å¤§è§£åƒ åº¦è¨å®šã‚’ä½¿ç”¨ã —ã ¦ã  ã  ã •ã „ã€‚",commitSuccess:"WFS ãƒˆãƒ©ãƒ³ã‚¶ã‚¯ã‚·ãƒ§ãƒ³: æˆ åŠŸ ${response}",commitFailed:"WFS ãƒˆãƒ©ãƒ³ã‚¶ã‚¯ã‚·ãƒ§ãƒ³: å¤±æ•— ${response}",googleWarning:"Google ãƒ¬ã‚¤ãƒ¤ãƒ¼ã Œæ£ã —ã  èªã ¿è¾¼ã ¿ã‚’è¡Œã ˆã ¾ã ›ã‚“ã §ã —ã Ÿã€‚\x3cbr\x3e\x3cbr\x3eã “ã ®ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã‚’æ¶ˆã ™ã «ã ¯ã€ å ³ä¸Šã ®éš…ã «ã ‚ã‚‹ãƒ¬ã‚¤ãƒ¤ãƒ¼åˆ‡ã‚Šæ›¿ã ˆéƒ¨åˆ†ã §æ–°ã —ã „åŸºåº•ãƒ¬ã‚¤ãƒ¤ãƒ¼ã‚’é ¸ã‚“ã §ã  ã  ã •ã „ã€‚\x3cbr\x3e\x3cbr\x3eã Šã  ã‚‰ã  ã€ ã “ã‚Œã ¯ Google ãƒžãƒƒãƒ—ç”¨ãƒ©ã‚¤ãƒ–ãƒ©ãƒªã ®ã‚¹ã‚¯ãƒªãƒ—ãƒˆã Œçµ„ã ¿è¾¼ã ¾ã‚Œã ¦ã „ã ªã „ã ‹ã€ ã ‚ã ªã Ÿã ®ã‚µã‚¤ãƒˆã «å¯¾å¿œã ™ã‚‹æ£ã —ã „ API ã‚ãƒ¼ã Œè¨å®šã •ã‚Œã ¦ã „ã ªã „ã Ÿã‚ ã §ã ™ã€‚\x3cbr\x3e\x3cbr\x3eé–‹ç™ºè€…ã ®æ–¹ã ¸: æ£ã —ã „å‹•ä½œã‚’ã •ã ›ã‚‹ã Ÿã‚ ã «\x3ca href='http://trac.openlayers.org/wiki/Google' target='_blank'\x3eã “ã ¡ã‚‰ã ®ã‚¦ã‚£ã‚\x3c/a\x3eã‚’å ‚ç…§ã —ã ¦ã  ã  ã •ã „ã€‚",getLayerWarning:"${layerType} ãƒ¬ã‚¤ãƒ¤ãƒ¼ã Œæ£ã —ã  èªã ¿è¾¼ã ¿ã‚’è¡Œã ˆã ¾ã ›ã‚“ã §ã —ã Ÿã€‚\x3cbr\x3e\x3cbr\x3eã “ã ®ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸ã‚’æ¶ˆã ™ã «ã ¯ã€ å ³ä¸Šã ®éš…ã «ã ‚ã‚‹ãƒ¬ã‚¤ãƒ¤ãƒ¼åˆ‡ã‚Šæ›¿ã ˆéƒ¨åˆ†ã §æ–°ã —ã „åŸºåº•ãƒ¬ã‚¤ãƒ¤ãƒ¼ã‚’é ¸ã‚“ã §ã  ã  ã •ã „ã€‚\x3cbr\x3e\x3cbr\x3eã Šã  ã‚‰ã  ã€ ã “ã‚Œã ¯ ${layerLib} ãƒ©ã‚¤ãƒ–ãƒ©ãƒªã ®ã‚¹ã‚¯ãƒªãƒ—ãƒˆã Œæ£ã —ã  çµ„ã ¿è¾¼ã ¾ã‚Œã ¦ã „ã ªã „ã Ÿã‚ ã §ã ™ã€‚\x3cbr\x3e\x3cbr\x3eé–‹ç™ºè€…ã ®æ–¹ã ¸: æ£ã —ã „å‹•ä½œã‚’ã •ã ›ã‚‹ã Ÿã‚ ã «\x3ca href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'\x3eã “ã ¡ã‚‰ã ®ã‚¦ã‚£ã‚\x3c/a\x3eã‚’å ‚ç…§ã —ã ¦ã  ã  ã •ã „ã€‚",scale:"ç¸®å°º = 1 : ${scaleDenom}",W:"è¥¿",E:"æ ±",N:"åŒ—",S:"å —",layerAlreadyAdded:"ã ‚ã ªã Ÿã ¯ã€Œ${layerName}ã€ ã‚’åœ°å›³ã «è¿½åŠ ã —ã‚ˆã †ã ¨è©¦ã ¿ã ¾ã —ã Ÿã Œã€ ã  ã ®ãƒ¬ã‚¤ãƒ¤ãƒ¼ã ¯æ—¢ã «è¿½åŠ ã •ã‚Œã ¦ã „ã ¾ã ™",reprojectDeprecated:"ã ‚ã ªã Ÿã ¯ã€Œ${layerName}ã€ ãƒ¬ã‚¤ãƒ¤ãƒ¼ã § reproject ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã‚’ä½¿ã £ã ¦ã „ã ¾ã ™ã€‚ã “ã ®ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã ¯å•†ç”¨ã ®åŸºåº•åœ°å›³ä¸Šã «æƒ…å ±ã‚’è¡¨ç¤ºã ™ã‚‹ç›®çš„ã §è¨è¨ˆã •ã‚Œã ¾ã —ã Ÿã Œã€ ç ¾åœ¨ã §ã ¯ã  ã ®æ©Ÿèƒ½ã ¯ Spherical Mercator ã‚µãƒ ãƒ¼ãƒˆã‚’åˆ©ç”¨ã —ã ¦å®Ÿç ¾ã •ã‚Œã ¦ã Šã‚Šã€ ã “ã ®ã‚ªãƒ—ã‚·ãƒ§ãƒ³ã ®ä½¿ç”¨ã ¯é žæŽ¨å¥¨ã §ã ™ã€‚è¿½åŠ ã ®æƒ…å ±ã ¯ http://trac.openlayers.org/wiki/SphericalMercator ã §å…¥æ‰‹ã §ã  ã ¾ã ™ã€‚",methodDeprecated:"ã “ã ®ãƒ¡ã‚½ãƒƒãƒ‰ã ¯å»ƒæ¢ã Œäºˆå®šã •ã‚Œã ¦ã Šã‚Šã€ ãƒ ãƒ¼ã‚¸ãƒ§ãƒ³3.0ã §é™¤åŽ»ã •ã‚Œã ¾ã ™ã€‚ä»£ã‚ ã‚Šã « ${newMethod} ã‚’ä½¿ç”¨ã —ã ¦ã  ã  ã •ã „ã€‚",boundsAddError:"x ã ¨ y ä¸¡æ–¹ã ®å€¤ã‚’ add é–¢æ•°ã «æ¸¡ã •ã ªã ‘ã‚Œã °ã ªã‚Šã ¾ã ›ã‚“ã€‚",lonlatAddError:"lon ã ¨ lat ä¸¡æ–¹ã ®å€¤ã‚’ add é–¢æ•°ã «æ¸¡ã •ã ªã ‘ã‚Œã °ã ªã‚Šã ¾ã ›ã‚“ã€‚",pixelAddError:"x ã ¨ y ã ®å€¤ä¸¡æ–¹ã‚’ add é–¢æ•°ã «æ¸¡ã •ã ªã ‘ã‚Œã °ã ªã‚Šã ¾ã ›ã‚“ã€‚",unsupportedGeometryType:"æœªå¯¾å¿œã ®å½¢çŠ¶åž‹: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition ã Œå¤±æ•—ã —ã ¾ã —ã Ÿ: id ${elemId} ã‚’ã‚‚ã ¤è¦ ç´ ã Œèª¤ã £ã Ÿä½ ç½®ã «ã ‚ã‚‹å ¯èƒ½æ€§ã Œã ‚ã‚Šã ¾ã ™ã€‚",filterEvaluateNotImplemented:"ã “ã ®ãƒ•ã‚£ãƒ«ã‚¿ãƒ¼åž‹ã «ã ¤ã „ã ¦ evaluate ã ¯å®Ÿè£…ã •ã‚Œã ¦ã „ã ¾ã ›ã‚“ã€‚"});
OpenLayers.Lang.km=OpenLayers.Util.applyDefaults({permalink:"áž áŸ†ážŽáž—áŸ’áž‡áž¶áž”áŸ‹áž¢áž…áž·áž“áŸ’áž áŸ’ážšáŸƒáž™áŸ ",baseLayer:"ážŸáŸ’ážšáž‘áž¶áž”áŸ‹áž”áž¶áž â€‹",errorLoadingGML:"áž€áŸ†áž áž»ážŸáž€áŸ†áž¡áž»áž„áž–áŸ áž›áž•áŸ’áž‘áž»áž€áž¯áž€ážŸáž¶ážš GML ${url}",scale:"áž˜áž¶áž áŸ’ážšážŠáŸ’áž‹áž¶áž“ = áŸ¡ áŸ– ${scaleDenom}"});
OpenLayers.Lang.ksh=OpenLayers.Util.applyDefaults({unhandledRequest:"Met dÃ¤ Antwoot op en Aanfrooch ham_mer nix aanjefange: ${statusText}",permalink:"Lengk op Duuer",overlays:"DrÃ¶vver jelaat",baseLayer:"Jrund-Nivoh",sameProjection:"De Ã–vverseeschs_Kaat deiht et bloÃŸ, wann se de sÃ¤lve ProjÃ¤xjuhn bruche deiht, wi de Houp_Kaat",readNotImplemented:'â€ž\x3ccode lang="en"\x3eread\x3c/code\x3eâ€œ is em Projramm nit fÃ¼rjesinn.',writeNotImplemented:'â€ž\x3ccode lang="en"\x3ewrite\x3c/code\x3eâ€œ is em Projramm nit fÃ¼rjesinn.',noFID:'En Saach, woh kein \x3ci lang="en"\x3eFID\x3c/i\x3e fÃ¶r doh es, lÃ¶ht sesch nit Ã¤ndere.',errorLoadingGML:'FÃ¤hler beim \x3ci lang="en"\x3eGML\x3c/i\x3e-Datei-Laade vun \x3ccode\x3e${url}\x3c/code\x3e',browserNotSupported:"Dinge Brauser kann kein VÃ¤ktore uÃŸjÃ¤vve. De Zoote UÃŸjaabe, di em Momang jon, sen:\n${renderers}",componentShouldBe:'\x3ccode lang="en"\x3eaddFeatures\x3c/code\x3e: dÃ¤ Aandeil sullt vun dÃ¤ Zoot â€ž\x3ccode lang="en"\x3e${geomType}\x3c/code\x3eâ€œ sin.',getFeatureError:'\x3ccode lang="en"\x3egetFeatureFromEvent\x3c/code\x3e es vun enem Nivoh opjeroofe woode, woh et kei Projramm zom UÃŸjÃ¤vve jit. Dat bedÃ¼gg fÃ¶r jewÃ¶hnlesch, dat De e Nivoh kapott jemaat hÃ¤s, Ã¤vver nit e Projramm fÃ¶r domet Ã¶mzejonn, wat domet verbonge es.',minZoomLevelError:'De Eijeschaff â€ž\x3ccode lang="en"\x3eminZoomLevel\x3c/code\x3eâ€œ es bloÃŸ dofÃ¶r jedaach, dat mer se met dÃ¤ NivvohÃŸ bruch, di vun \x3ccode lang="en"\x3eFixedZoomLevels\x3c/code\x3e affhange don. Dat dat \x3ci lang="en"\x3eWFS\x3c/i\x3e-Nivvoh Ã¶vverhoup de Eijeschaff â€ž\x3ccode lang="en"\x3eminZoomLevel\x3c/code\x3eâ€œ prÃ¶hfe deiht, es noch Ã¶vveresch vun frÃ¶hjer. Mer kÃ¼nne dat Ã¤vver jez nit fott lohÃŸe, oohne dat mer Jevaa loufe, dat Aanwendunge vun OpenLayers nit mieh loufe, di sesch doh velleijsch noch drop am verlohÃŸe sin. DrÃ¶m sare mer, dat mer et nit mieh han welle, un de â€ž\x3ccode lang="en"\x3eminZoomLevel\x3c/code\x3eâ€œ-Eijeschaff weed hee vun de Version 3.0 af nit mieh jeprÃ¶Ã¶f wÃ¤de. Nemm dofÃ¶r de Enstellung fÃ¶r de hÃ¼hÃŸte un de kleinÃŸte OplÃ¶hsung, esu wi et en http://trac.openlayers.org/wiki/SettingZoomLevels opjeschrevve es.',commitSuccess:'DÃ¤ \x3ci lang="en"\x3eWFS\x3c/i\x3e-VÃ¶rjang es joot jeloufe: ${response}',commitFailed:'DÃ¤ \x3ci lang="en"\x3eWFS\x3c/i\x3e-VÃ¶rjang es scheif jejange: ${response}',googleWarning:'Dat Nivvoh \x3ccode lang="en"\x3eGoogle\x3c/code\x3e kunnt nit reschtesch jelaade wÃ¤Ã¤de.\x3cbr /\x3e\x3cbr /\x3eÃ–m hee di Nohreesch loÃŸ ze krijje, donn en ander Jrund-Nivvoh uÃŸsÃ¶hke, rÃ¤hÃŸ bovve en de Ã„k.\x3cbr /\x3e\x3cbr /\x3eWascheinlesch es dat wiel dat \x3ci lang="en"\x3eGoogle-Maps\x3c/i\x3e-Skrepp entweeder nit reschtesch enjebonge wood, udder nit dÃ¤ reschtejje \x3ci lang="en"\x3eAPI\x3c/i\x3e-SchlÃ¶ÃŸel fÃ¶r Ding Web-ÃŸait scheke deiht.\x3cbr /\x3e\x3cbr /\x3eFÃ¶r Projrammierer jidd_et HÃ¶lp do_drÃ¶vver, \x3ca href="http://trac.openlayers.org/wiki/Google" target="_blank"\x3ewi mer dat aan et Loufe brengk\x3c/a\x3e.',getLayerWarning:'Dat Nivvoh \x3ccode\x3e${layerType}\x3c/code\x3e kunnt nit reschtesch jelaade wÃ¤Ã¤de.\x3cbr /\x3e\x3cbr /\x3eÃ–m hee di Nohreesch loÃŸ ze krijje, donn en ander Jrund-Nivvoh uÃŸsÃ¶hkre, rÃ¤hÃŸ bovve en de Ã„k.\x3cbr /\x3e\x3cbr /\x3eWascheinlesch es dat, wiel dat Skrepp \x3ccode\x3e${layerLib}\x3c/code\x3e nit reschtesch enjebonge wood.\x3cbr /\x3e\x3cbr /\x3eFÃ¶r Projrammierer jidd_Et HÃ¶lp do_drÃ¶vver, \x3ca href="http://trac.openlayers.org/wiki/${layerLib}" target="_blank"\x3ewi mer dat aan et Loufe brengk\x3c/a\x3e.',scale:"MohÃŸshtaab = 1 : ${scaleDenom}",W:"W",E:"O",N:"N",S:"S",layerAlreadyAdded:"Do hÃ¤ÃŸ versÃ¶hk, dat Nivvoh \x3ccode\x3e${layerName}\x3c/code\x3e en di Kaat eren ze brÃ¤nge, et wohr Ã¤vver ald do dren.",reprojectDeprecated:"Do bruchs de UÃŸwahl \x3ccode\x3ereproject\x3c/code\x3e op dÃ¤m Nivvoh \x3ccode\x3e${layerName}\x3c/code\x3e. Di UÃŸwahl es nit mieh jÃ¤hn jesinn. Se wohr dofÃ¶r jedaach, Ã¶m Date op jeschÃ¤Ã¤fsmÃ¤ÃŸesch eruÃŸ jejovve Kaate bovve drop ze moole, wat Ã¤vver enzwesche besser met dÃ¤ Ã–ngershtÃ¶zung fÃ¶r de ÃŸfÃ¤Ã¤resche MÃ¤kaator Beldscher jeiht. Doh kanns De mieh drÃ¶vver fenge op dÃ¤ Sigg: http://trac.openlayers.org/wiki/SphericalMercator.",methodDeprecated:"Hee di Metood es nim_mih aktoÃ¤ll un et weed se en dÃ¤ Version 3.0 nit mieh jÃ¤vve. Nemm \x3ccode\x3e${newMethod}\x3c/code\x3e dofÃ¶Ã¶r.",boundsAddError:"Do moÃŸ beeds vun de \x3ccode\x3ex\x3c/code\x3e un \x3ccode\x3ey\x3c/code\x3e WÃ¤Ã¤te aan de FungkÃŸjohn \x3ccode\x3eadd\x3c/code\x3e jÃ¤vve.",lonlatAddError:"Do moÃŸ beeds \x3ccode\x3elon\x3c/code\x3e un \x3ccode\x3elat\x3c/code\x3e aan de FungkÃŸjohn \x3ccode\x3eadd\x3c/code\x3e jÃ¤vve.",pixelAddError:"Do moÃŸ beeds \x3ccode\x3ex\x3c/code\x3e un \x3ccode\x3ey\x3c/code\x3e aan de FungkÃŸjohn \x3ccode\x3eadd\x3c/code\x3e jÃ¤vve.",unsupportedGeometryType:"De Zoot Jommetrii dom_mer nit ongershtÃ¶ze: \x3ccode\x3e${geomType}\x3c/code\x3e",pagePositionFailed:'\x3ccode lang="en"\x3eOpenLayers.Util.pagePosition\x3c/code\x3e es donevve jejange: dat Denge met dÃ¤ KÃ¤nnong \x3ccode\x3e${elemId}\x3c/code\x3e kÃ¼nnt am verkeehte Plaz sin.',filterEvaluateNotImplemented:'â€ž\x3ccode lang="en"\x3eevaluate\x3c/code\x3eâ€œ es fÃ¶r di Zoot Fellter nit enjereschdt.'});
OpenLayers.Lang.nds=OpenLayers.Util.applyDefaults({unhandledRequest:"Unbehannelt TrÃ¼chmellels fÃ¶r de Anfraag ${statusText}",permalink:"Permalink",overlays:"Overlays",baseLayer:"Achtergrundkoort",sameProjection:"De Ã–versichtskoort geiht blot, wenn de sÃ¼lve Projekschoon as bi de HÃ¶Ã¶ftkoort bruukt warrt",readNotImplemented:"Lesen is nich inricht.",writeNotImplemented:"Schrieven is nich inricht.",noFID:"En Feature, dat keen FID hett, kann nich aktuell maakt warrn.",errorLoadingGML:"Fehler biâ€™t Laden vun de GML-Datei ${url}",browserNotSupported:"Dien Browser Ã¼nnerstÃ¼tt keen Vektorbiller. ÃœnnerstÃ¼tt Renderers:\n${renderers}",componentShouldBe:"addFeatures : Kumponent schull man den Typ ${geomType} hebben",getFeatureError:"getFeatureFromEvent is von en Laag ahn Render opropen worrn. Dat bedÃ¼Ã¼dt normalerwies, dat en Laag wegmaakt worrn is, aver nich de Handler, de dor op verwiest.",commitSuccess:"WFS-Transakschoon: hett klappt ${response}",commitFailed:"WFS-Transakschoon: hett nich klappt ${response}",scale:"Skaal = 1 : ${scaleDenom}",layerAlreadyAdded:"Du versÃ¶chst de Laag â€ž${layerName}â€œ to de Koort totofÃ¶gen, man de is al tofÃ¶Ã¶gt",methodDeprecated:"Disse Methood is oold un schall dat in 3.0 nich mehr geven. Bruuk dor man beter ${newMethod} fÃ¶r.",boundsAddError:"De Weert x un y, de mÃ¶Ã¶t all beid an de add-Funkschoon Ã¶vergeven warrn.",lonlatAddError:"De Weert lon un lat, de mÃ¶Ã¶t all beid an de add-Funkschoon Ã¶vergeven warrn.",pixelAddError:"De Weert x un y, de mÃ¶Ã¶t all beid an de add-Funkschoon Ã¶vergeven warrn.",unsupportedGeometryType:"Nich Ã¼nnerstÃ¼tt Geometrie-Typ: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition gÃ¼ng nich: Element mit de Id ${elemId} is villicht anâ€™n verkehrten Platz."});
OpenLayers.Lang.nn=OpenLayers.Util.applyDefaults({scale:"Skala = 1 : ${scaleDenom}",layerAlreadyAdded:"Du freista Ã¥ leggja til laget Â«${layerName}Â» pÃ¥ kartet, men det har alt vorte lagt til.",boundsAddError:"Du er nÃ¸ydd til Ã¥ gje bÃ¥de ein x- og ein y-verdi til Â«addÂ»-funksjonen.",lonlatAddError:"Du er nÃ¸ydd til Ã¥ gje bÃ¥de lon- og lat-verdiar til Â«addÂ»-funksjonen.",pixelAddError:"Du er nÃ¸ydd til Ã¥ gje bÃ¥de ein x- og ein y-verdi til Â«addÂ»-funksjonen."});
OpenLayers.Lang.oc=OpenLayers.Util.applyDefaults({unhandledRequest:"RequÃ¨sta pas gerida, retorna ${statusText}",permalink:"Permaligam",overlays:"Calques",baseLayer:"Calc de basa",sameProjection:"La carta de situacion fonciona pas que quora sa projeccion es la meteissa que la de la carta principala",readNotImplemented:"Lectura pas implementada.",writeNotImplemented:"Escritura pas implementada.",noFID:"Impossible de metre a jorn un objÃ¨cte sens identificant (fid).",errorLoadingGML:"Error al cargament del fichiÃ¨r GML ${url}",browserNotSupported:"VÃ²stre navegidor supÃ²rta pas lo rendut vectorial. Los renderers actualament suportats son : \n${renderers}",componentShouldBe:"addFeatures : lo compausant deuriÃ¡ Ã¨sser de tipe ${geomType}",getFeatureError:"getFeatureFromEvent es estat apelat sus un calc sens renderer. AquÃ² significa generalament qu'avÃ¨tz destruch aqueste jaÃ§, mas qu'avÃ¨tz conservat un handler que li Ã¨ra associat.",minZoomLevelError:"La proprietat minZoomLevel deu Ã¨sser utilizada solament per de jaces FixedZoomLevels-descendent. Lo fach qu'aqueste jaÃ§ WFS verifique la presÃ©ncia de minZoomLevel es una relica del passat. Ã‡aquelÃ , la podÃ¨m suprimir sens copar d'aplicacions que ne poiriÃ¡n dependre. Es per aquÃ² que la depreciam -- la verificacion del minZoomLevel serÃ  suprimida en version 3.0. A la plaÃ§a, mercÃ©s d'utilizar los paramÃ¨tres de resolucions min/max tal coma descrich sus : http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"Transaccion WFS : SUCCES ${response}",commitFailed:"Transaccion WFS : FRACAS ${response}",googleWarning:"Lo jaÃ§ Google es pas estat en mesura de se cargar corrÃ¨ctament.\x3cbr\x3e\x3cbr\x3ePer suprimir aqueste messatge, causissÃ¨tz una BaseLayer novÃ¨la dins lo selector de jaÃ§ en naut a drecha.\x3cbr\x3e\x3cbr\x3eAquÃ² es possiblament causat par la non-inclusion de la librariÃ¡ Google Maps, o alara perque que la clau de l'API correspond pas a vÃ²stre site.\x3cbr\x3e\x3cbr\x3eDesvolopaires : per saber cossÃ corregir aquÃ², \x3ca href='http://trac.openlayers.org/wiki/Google' target='_blank'\x3eclicatz aicÃ\x3c/a\x3e",getLayerWarning:"Lo jaÃ§ ${layerType} es pas en mesura de se cargar corrÃ¨ctament.\x3cbr\x3e\x3cbr\x3ePer suprimir aqueste messatge, causissÃ¨tz una  BaseLayer novÃ¨la dins lo selector de jaÃ§ en naut a drecha.\x3cbr\x3e\x3cbr\x3eAquÃ² es possiblament causat per la non-inclusion de la librariÃ¡ ${layerLib}.\x3cbr\x3e\x3cbr\x3eDesvolopaires : per saber cossÃ corregir aquÃ, \x3ca href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'\x3eclicatz aicÃ\x3c/a\x3e",scale:"Escala ~ 1 : ${scaleDenom}",W:"O",E:"Ãˆ",N:"N",S:"S",layerAlreadyAdded:"AvÃ¨tz ensajat d'apondre a la carta lo calc : ${layerName}, mas ja es present",reprojectDeprecated:"Utilizatz l'opcion 'reproject' sul jaÃ§ ${layerName}. Aquesta opcion es despreciada : Son usatge permetiÃ¡ d'afichar de donadas al dessÃºs de jaces raster comercials. Aquesta foncionalitat ara es suportada en utilizant lo supÃ²rt de la projeccion Mercator Esferica. Mai d'informacion es disponibla sus http://trac.openlayers.org/wiki/SphericalMercator.",methodDeprecated:"Aqueste metÃ²de es despreciada, e serÃ  suprimida a la version 3.0. MercÃ©s d'utilizar ${newMethod} a la plaÃ§a.",boundsAddError:"Vos cal passar las doas valors x e y a la foncion add.",lonlatAddError:"Vos cal passar las doas valors lon e lat a la foncion add.",pixelAddError:"Vos cal passar las doas valors x e y a la foncion add.",unsupportedGeometryType:"Tipe de geometria pas suportat : ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition a fracassat : l'element d'id ${elemId} poiriÃ¡ Ã¨sser mal posicionat.",filterEvaluateNotImplemented:"evaluar es pas encara estat implementat per aqueste tipe de filtre."});
OpenLayers.Lang.pt=OpenLayers.Util.applyDefaults({unhandledRequest:"Servidor devolveu erro nÃ£o contemplado ${statusText}",permalink:"LigaÃ§Ã£o permanente",overlays:"SobreposiÃ§Ãµes",baseLayer:"Camada Base",sameProjection:"O mapa panorÃ¢mico sÃ³ funciona quando estÃ¡ na mesma projeÃ§Ã£o que o mapa principal",readNotImplemented:"Leitura nÃ£o implementada.",writeNotImplemented:"Escrita nÃ£o implementada.",noFID:"NÃ£o Ã© possÃvel atualizar um elemento para a qual nÃ£o hÃ¡ FID.",errorLoadingGML:"Erro ao carregar ficheiro GML ${url}",browserNotSupported:"O seu navegador nÃ£o suporta renderizaÃ§Ã£o vetorial. Actualmente os renderizadores suportados sÃ£o:\n${renderers}",componentShouldBe:"addFeatures: componente deve ser um(a) ${geomType}",getFeatureError:"getFeatureFromEvent foi chamado numa camada sem renderizador. Isto normalmente significa que destruiu uma camada, mas nÃ£o um manipulador ''(handler)'' que lhe estÃ¡ associado.",minZoomLevelError:"A propriedade minZoomLevel sÃ³ deve ser usada com as camadas descendentes da FixedZoomLevels. A verificaÃ§Ã£o da propriedade por esta camada wfs Ã© uma relÃquia do passado. No entanto, nÃ£o podemos removÃª-la sem correr o risco de afectar aplicaÃ§Ãµes OL que dependam dela. Portanto, estamos a tornÃ¡-la obsoleta -- a verificaÃ§Ã£o minZoomLevel serÃ¡ removida na versÃ£o 3.0. Em vez dela, por favor, use as opÃ§Ãµes de resoluÃ§Ã£o min/max descritas aqui: http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"TransacÃ§Ã£o WFS: SUCESSO ${response}",commitFailed:"TransacÃ§Ã£o WFS: FALHOU ${response}",googleWarning:"A Camada Google nÃ£o foi correctamente carregada.\x3cbr\x3e\x3cbr\x3ePara deixar de receber esta mensagem, seleccione uma nova Camada-Base no ''switcher'' de camadas no canto superior direito.\x3cbr\x3e\x3cbr\x3eProvavelmente, isto acontece porque o ''script'' da biblioteca do Google Maps nÃ£o foi incluÃdo ou nÃ£o contÃ©m a chave API correcta para o seu sÃtio.\x3cbr\x3e\x3cbr\x3eProgramadores: Para ajuda sobre como solucionar o problema \x3ca href='http://trac.openlayers.org/wiki/Google' target='_blank'\x3eclique aqui\x3c/a\x3e .",getLayerWarning:"A camada ${layerType} nÃ£o foi correctamente carregada.\x3cbr\x3e\x3cbr\x3ePara desactivar esta mensagem, seleccione uma nova Camada-Base no ''switcher'' de camadas no canto superior direito.\x3cbr\x3e\x3cbr\x3eProvavelmente, isto acontece porque o ''script'' da biblioteca ${layerLib} nÃ£o foi incluÃdo correctamente.\x3cbr\x3e\x3cbr\x3eProgramadores: Para ajuda sobre como solucionar o problema \x3ca href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'\x3eclique aqui\x3c/a\x3e .",scale:"Escala = 1 : ${scaleDenom}",W:"O",E:"E",N:"N",S:"S",layerAlreadyAdded:"VocÃª tentou adicionar a camada: ${layerName} ao mapa, mas ela jÃ¡ tinha sido adicionada antes",reprojectDeprecated:"EstÃ¡ usando a opÃ§Ã£o 'reproject' na camada ${layerName}. Esta opÃ§Ã£o Ã© obsoleta: foi concebida para permitir a apresentaÃ§Ã£o de dados sobre mapas-base comerciais, mas esta funcionalidade Ã© agora suportada pelo Mercator EsfÃ©rico. Mais informaÃ§Ã£o estÃ¡ disponÃvel em http://trac.openlayers.org/wiki/SphericalMercator.",methodDeprecated:"Este mÃ©todo foi declarado obsoleto e serÃ¡ removido na versÃ£o 3.0. Por favor, use ${newMethod} em vez disso.",boundsAddError:"VocÃª deve passar tanto o valor x como o y Ã  funÃ§Ã£o de adiÃ§Ã£o.",lonlatAddError:"VocÃª deve passar tanto o valor lon como o lat Ã  funÃ§Ã£o de adiÃ§Ã£o.",pixelAddError:"VocÃª deve passar tanto o valor x como o y Ã  funÃ§Ã£o de adiÃ§Ã£o.",unsupportedGeometryType:"Tipo de geometria nÃ£o suportado: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition falhou: o elemento com o id ${elemId} poderÃ¡ estar mal-posicionado.",filterEvaluateNotImplemented:"avaliar nÃ£o estÃ¡ implementado para este tipo de filtro."});
OpenLayers.Lang.ru=OpenLayers.Util.applyDefaults({unhandledRequest:"Ð ÐµÐ¾Ð±Ñ€Ð°Ð±Ð¾Ñ‚Ð°Ð½Ð½Ñ‹Ð¹ Ð·Ð°Ð¿Ñ€Ð¾Ñ  Ð²ÐµÑ€Ð½ÑƒÐ» ${statusText}",permalink:"ÐŸÐ¾Ñ Ñ‚Ð¾Ñ Ð½Ð½Ð°Ñ  Ñ Ñ Ñ‹Ð»ÐºÐ°",overlays:"Ð¡Ð»Ð¾Ð¸",baseLayer:"ÐžÑ Ð½Ð¾Ð²Ð½Ð¾Ð¹ Ñ Ð»Ð¾Ð¹",sameProjection:"ÐžÐ±Ð·Ð¾Ñ€Ð½Ð°Ñ  ÐºÐ°Ñ€Ñ‚Ð° Ñ€Ð°Ð±Ð¾Ñ‚Ð°ÐµÑ‚ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ Ñ‚Ð¾Ð³Ð´Ð°, ÐºÐ¾Ð³Ð´Ð° Ð¸Ð¼ÐµÐµÑ‚ Ñ‚Ñƒ Ð¶Ðµ Ð¿Ñ€Ð¾ÐµÐºÑ†Ð¸ÑŽ, Ñ‡Ñ‚Ð¾ Ð¸ Ð¾Ñ Ð½Ð¾Ð²Ð½Ð°Ñ ",readNotImplemented:"Ð§Ñ‚ÐµÐ½Ð¸Ðµ Ð½Ðµ Ñ€ÐµÐ°Ð»Ð¸Ð·Ð¾Ð²Ð°Ð½Ð¾.",writeNotImplemented:"Ð—Ð°Ð¿Ð¸Ñ ÑŒ Ð½Ðµ Ñ€ÐµÐ°Ð»Ð¸Ð·Ð¾Ð²Ð°Ð½Ð°.",noFID:"Ð ÐµÐ²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð¾ Ð¾Ð±Ð½Ð¾Ð²Ð¸Ñ‚ÑŒ Ð¾Ð±ÑŠÐµÐºÑ‚, Ð´Ð»Ñ  ÐºÐ¾Ñ‚Ð¾Ñ€Ð¾Ð³Ð¾ Ð½ÐµÑ‚ FID.",errorLoadingGML:"ÐžÑˆÐ¸Ð±ÐºÐ° Ð¿Ñ€Ð¸ Ð·Ð°Ð³Ñ€ÑƒÐ·ÐºÐµ Ñ„Ð°Ð¹Ð»Ð° GML ${url}",browserNotSupported:"Ð’Ð°Ñˆ Ð±Ñ€Ð°ÑƒÐ·ÐµÑ€ Ð½Ðµ Ð¿Ð¾Ð´Ð´ÐµÑ€Ð¶Ð¸Ð²Ð°ÐµÑ‚ Ð²ÐµÐºÑ‚Ð¾Ñ€Ð½ÑƒÑŽ Ð³Ñ€Ð°Ñ„Ð¸ÐºÑƒ. Ð Ð° Ð´Ð°Ð½Ð½Ñ‹Ð¹ Ð¼Ð¾Ð¼ÐµÐ½Ñ‚ Ð¿Ð¾Ð´Ð´ÐµÑ€Ð¶Ð¸Ð²Ð°ÑŽÑ‚Ñ Ñ :\n${renderers}",componentShouldBe:"addFeatures: ÐºÐ¾Ð¼Ð¿Ð¾Ð½ÐµÐ½Ñ‚ Ð´Ð¾Ð»Ð¶ÐµÐ½ Ð±Ñ‹Ñ‚ÑŒ ${geomType}",getFeatureError:"getFeatureFromEvent Ð²Ñ‹Ð·Ð²Ð°Ð½ Ð´Ð»Ñ  Ñ Ð»Ð¾Ñ  Ð±ÐµÐ· Ñ€ÐµÐ½Ð´ÐµÑ€ÐµÑ€Ð°. ÐžÐ±Ñ‹Ñ‡Ð½Ð¾ Ñ Ñ‚Ð¾ Ð³Ð¾Ð²Ð¾Ñ€Ð¸Ñ‚ Ð¾ Ñ‚Ð¾Ð¼, Ñ‡Ñ‚Ð¾ Ð²Ñ‹ ÑƒÐ½Ð¸Ñ‡Ñ‚Ð¾Ð¶Ð¸Ð»Ð¸ Ñ Ð»Ð¾Ð¹, Ð½Ð¾ Ð¾Ñ Ñ‚Ð°Ð²Ð¸Ð»Ð¸ Ñ Ð²Ñ Ð·Ð°Ð½Ð½Ñ‹Ð¹ Ñ  Ð½Ð¸Ð¼ Ð¾Ð±Ñ€Ð°Ð±Ð¾Ñ‚Ñ‡Ð¸Ðº.",minZoomLevelError:"Ð¡Ð²Ð¾Ð¹Ñ Ñ‚Ð²Ð¾ minZoomLevel Ð¿Ñ€ÐµÐ´Ð½Ð°Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¾ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ Ð´Ð»Ñ  Ð¸Ñ Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ  Ñ Ð¾ Ñ Ð»Ð¾Ñ Ð¼Ð¸, Ñ Ð²Ð»Ñ ÑŽÑ‰Ð¸Ð¼Ð¸Ñ Ñ  Ð¿Ð¾Ñ‚Ð¾Ð¼ÐºÐ°Ð¼Ð¸ FixedZoomLevels. Ð¢Ð¾, Ñ‡Ñ‚Ð¾ Ñ Ñ‚Ð¾Ñ‚ WFS-Ñ Ð»Ð¾Ð¹ Ð¿Ñ€Ð¾Ð²ÐµÑ€Ñ ÐµÑ‚Ñ Ñ  Ð½Ð° minZoomLevel â€” Ñ€ÐµÐ»Ð¸ÐºÑ‚ Ð¿Ñ€Ð¾ÑˆÐ»Ð¾Ð³Ð¾. ÐžÐ´Ð½Ð°ÐºÐ¾ Ð¼Ñ‹ Ð½Ðµ Ð¼Ð¾Ð¶ÐµÐ¼ ÑƒÐ´Ð°Ð»Ð¸Ñ‚ÑŒ Ñ Ñ‚Ñƒ Ñ„ÑƒÐ½ÐºÑ†Ð¸ÑŽ, Ñ‚Ð°Ðº ÐºÐ°Ðº, Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð¾, Ð¾Ñ‚ Ð½ÐµÑ‘ Ð·Ð°Ð²Ð¸Ñ Ñ Ñ‚ Ð½ÐµÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ðµ Ð¾Ñ Ð½Ð¾Ð²Ð°Ð½Ð½Ñ‹Ðµ Ð½Ð° OpenLayers Ð¿Ñ€Ð¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ . Ð¤ÑƒÐ½ÐºÑ†Ð¸Ñ  Ð¾Ð±ÑŠÑ Ð²Ð»ÐµÐ½Ð° ÑƒÑ Ñ‚Ð°Ñ€ÐµÐ²ÑˆÐµÐ¹ â€” Ð¿Ñ€Ð¾Ð²ÐµÑ€ÐºÐ° minZoomLevel Ð±ÑƒÐ´ÐµÑ‚ ÑƒÐ´Ð°Ð»ÐµÐ½Ð° Ð² 3.0. ÐŸÐ¾Ð¶Ð°Ð»ÑƒÐ¹Ñ Ñ‚Ð°, Ð¸Ñ Ð¿Ð¾Ð»ÑŒÐ·ÑƒÐ¹Ñ‚Ðµ Ð²Ð¼ÐµÑ Ñ‚Ð¾ Ð½ÐµÑ‘ Ð½Ð°Ñ Ñ‚Ñ€Ð¾Ð¹ÐºÑƒ Ð¼Ð¸Ð½/Ð¼Ð°ÐºÑ  Ñ€Ð°Ð·Ñ€ÐµÑˆÐµÐ½Ð¸Ñ , Ð¾Ð¿Ð¸Ñ Ð°Ð½Ð½ÑƒÑŽ Ð·Ð´ÐµÑ ÑŒ: http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"Ð¢Ñ€Ð°Ð½Ð·Ð°ÐºÑ†Ð¸Ñ  WFS: Ð£Ð¡ÐŸÐ•Ð¨Ð Ðž ${response}",commitFailed:"Ð¢Ñ€Ð°Ð½Ð·Ð°ÐºÑ†Ð¸Ñ  WFS: ÐžÐ¨Ð˜Ð‘ÐšÐ  ${response}",googleWarning:"Ð¡Ð»Ð¾Ð¹ Google Ð½Ðµ ÑƒÐ´Ð°Ð»Ð¾Ñ ÑŒ Ð½Ð¾Ñ€Ð¼Ð°Ð»ÑŒÐ½Ð¾ Ð·Ð°Ð³Ñ€ÑƒÐ·Ð¸Ñ‚ÑŒ.\x3cbr\x3e\x3cbr\x3eÐ§Ñ‚Ð¾Ð±Ñ‹ Ð¸Ð·Ð±Ð°Ð²Ð¸Ñ‚ÑŒÑ Ñ  Ð¾Ñ‚ Ñ Ñ‚Ð¾Ð³Ð¾ Ñ Ð¾Ð¾Ð±Ñ‰ÐµÐ½Ð¸Ñ , Ð²Ñ‹Ð±Ð¸Ñ‚Ðµ Ð´Ñ€ÑƒÐ³Ð¾Ð¹ Ð¾Ñ Ð½Ð¾Ð²Ð½Ð¾Ð¹ Ñ Ð»Ð¾Ð¹ Ð² Ð¿ÐµÑ€ÐµÐºÐ»ÑŽÑ‡Ð°Ñ‚ÐµÐ»Ðµ Ð² Ð¿Ñ€Ð°Ð²Ð¾Ð¼ Ð²ÐµÑ€Ñ…Ð½ÐµÐ¼ ÑƒÐ³Ð»Ñƒ.\x3cbr\x3e\x3cbr\x3eÐ¡ÐºÐ¾Ñ€ÐµÐµ Ð²Ñ ÐµÐ³Ð¾, Ð¿Ñ€Ð¸Ñ‡Ð¸Ð½Ð° Ð² Ñ‚Ð¾Ð¼, Ñ‡Ñ‚Ð¾ Ð±Ð¸Ð±Ð»Ð¸Ð¾Ñ‚ÐµÐºÐ° Google Maps Ð½Ðµ Ð±Ñ‹Ð»Ð° Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð° Ð¸Ð»Ð¸ Ð½Ðµ Ñ Ð¾Ð´ÐµÑ€Ð¶Ð¸Ñ‚ ÐºÐ¾Ñ€Ñ€ÐµÐºÑ‚Ð½Ð¾Ð³Ð¾ API-ÐºÐ»ÑŽÑ‡Ð° Ð´Ð»Ñ  Ð²Ð°ÑˆÐµÐ³Ð¾ Ñ Ð°Ð¹Ñ‚Ð°.\x3cbr\x3e\x3cbr\x3eÐ Ð°Ð·Ñ€Ð°Ð±Ð¾Ñ‚Ñ‡Ð¸ÐºÐ°Ð¼: Ñ‡Ñ‚Ð¾Ð±Ñ‹ ÑƒÐ·Ð½Ð°Ñ‚ÑŒ, ÐºÐ°Ðº Ñ Ð´ÐµÐ»Ð°Ñ‚ÑŒ, Ñ‡Ñ‚Ð¾Ð±Ñ‹ Ð²Ñ Ñ‘ Ð·Ð°Ñ€Ð°Ð±Ð¾Ñ‚Ð°Ð»Ð¾, \x3ca href='http://trac.openlayers.org/wiki/Google' target='_blank'\x3eÑ‰Ñ‘Ð»ÐºÐ½Ð¸Ñ‚Ðµ Ñ‚ÑƒÑ‚\x3c/a\x3e",getLayerWarning:"Ð¡Ð»Ð¾Ð¹ ${layerType} Ð½Ðµ ÑƒÐ´Ð°Ð»Ð¾Ñ ÑŒ Ð½Ð¾Ñ€Ð¼Ð°Ð»ÑŒÐ½Ð¾ Ð·Ð°Ð³Ñ€ÑƒÐ·Ð¸Ñ‚ÑŒ. \x3cbr\x3e\x3cbr\x3eÐ§Ñ‚Ð¾Ð±Ñ‹ Ð¸Ð·Ð±Ð°Ð²Ð¸Ñ‚ÑŒÑ Ñ  Ð¾Ñ‚ Ñ Ñ‚Ð¾Ð³Ð¾ Ñ Ð¾Ð¾Ð±Ñ‰ÐµÐ½Ð¸Ñ , Ð²Ñ‹Ð±Ð¸Ñ‚Ðµ Ð´Ñ€ÑƒÐ³Ð¾Ð¹ Ð¾Ñ Ð½Ð¾Ð²Ð½Ð¾Ð¹ Ñ Ð»Ð¾Ð¹ Ð² Ð¿ÐµÑ€ÐµÐºÐ»ÑŽÑ‡Ð°Ñ‚ÐµÐ»Ðµ Ð² Ð¿Ñ€Ð°Ð²Ð¾Ð¼ Ð²ÐµÑ€Ñ…Ð½ÐµÐ¼ ÑƒÐ³Ð»Ñƒ.\x3cbr\x3e\x3cbr\x3eÐ¡ÐºÐ¾Ñ€ÐµÐµ Ð²Ñ ÐµÐ³Ð¾, Ð¿Ñ€Ð¸Ñ‡Ð¸Ð½Ð° Ð² Ñ‚Ð¾Ð¼, Ñ‡Ñ‚Ð¾ Ð±Ð¸Ð±Ð»Ð¸Ð¾Ñ‚ÐµÐºÐ° ${layerLib} Ð½Ðµ Ð±Ñ‹Ð»Ð° Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð° Ð¸Ð»Ð¸ Ð±Ñ‹Ð»Ð° Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð° Ð½ÐµÐºÐ¾Ñ€Ñ€ÐµÐºÑ‚Ð½Ð¾.\x3cbr\x3e\x3cbr\x3eÐ Ð°Ð·Ñ€Ð°Ð±Ð¾Ñ‚Ñ‡Ð¸ÐºÐ°Ð¼: Ñ‡Ñ‚Ð¾Ð±Ñ‹ ÑƒÐ·Ð½Ð°Ñ‚ÑŒ, ÐºÐ°Ðº Ñ Ð´ÐµÐ»Ð°Ñ‚ÑŒ, Ñ‡Ñ‚Ð¾Ð±Ñ‹ Ð²Ñ Ñ‘ Ð·Ð°Ñ€Ð°Ð±Ð¾Ñ‚Ð°Ð»Ð¾, \x3ca href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'\x3eÑ‰Ñ‘Ð»ÐºÐ½Ð¸Ñ‚Ðµ Ñ‚ÑƒÑ‚\x3c/a\x3e",scale:"ÐœÐ°Ñ ÑˆÑ‚Ð°Ð± = 1 : ${scaleDenom}",W:"Ð—",E:"Ð’",N:"Ð¡",S:"Ð®",layerAlreadyAdded:"Ð’Ñ‹ Ð¿Ð¾Ð¿Ñ‹Ñ‚Ð°Ð»Ð¸Ñ ÑŒ Ð´Ð¾Ð±Ð°Ð²Ð¸Ñ‚ÑŒ Ñ Ð»Ð¾Ð¹ Â«${layerName}Â» Ð½Ð° ÐºÐ°Ñ€Ñ‚Ñƒ, Ð½Ð¾ Ð¾Ð½ ÑƒÐ¶Ðµ Ð±Ñ‹Ð» Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½",reprojectDeprecated:"Ð’Ñ‹ Ð¸Ñ Ð¿Ð¾Ð»ÑŒÐ·ÑƒÐµÑ‚Ðµ Ð¾Ð¿Ñ†Ð¸ÑŽ 'reproject' Ð´Ð»Ñ  Ñ Ð»Ð¾Ñ  ${layerName}. ÐÑ‚Ð° Ð¾Ð¿Ñ†Ð¸Ñ  Ñ Ð²Ð»Ñ ÐµÑ‚Ñ Ñ  ÑƒÑ Ñ‚Ð°Ñ€ÐµÐ²ÑˆÐµÐ¹: ÐµÐµ Ð¸Ñ Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ð½Ð¸Ðµ Ð¿Ñ€ÐµÐ´Ð¿Ð¾Ð»Ð°Ð³Ð°Ð»Ð¾Ñ ÑŒ Ð´Ð»Ñ  Ð¿Ð¾Ð´Ð´ÐµÑ€Ð¶ÐºÐ¸ Ð¿Ð¾ÐºÐ°Ð·Ð° Ð´Ð°Ð½Ð½Ñ‹Ñ… Ð¿Ð¾Ð²ÐµÑ€Ñ… ÐºÐ¾Ð¼Ð¼ÐµÑ€Ñ‡ÐµÑ ÐºÐ¸Ñ… Ð±Ð°Ð·Ð¾Ð²Ñ‹Ñ… ÐºÐ°Ñ€Ñ‚, Ð½Ð¾ Ñ‚ÐµÐ¿ÐµÑ€ÑŒ Ñ Ñ‚Ð¾Ñ‚ Ñ„ÑƒÐ½ÐºÑ†Ð¸Ð¾Ð½Ð°Ð» Ð½ÐµÑ Ñ‘Ñ‚ Ð²Ñ Ñ‚Ñ€Ð¾ÐµÐ½Ð½Ð°Ñ  Ð¿Ð¾Ð´Ð´ÐµÑ€Ð¶ÐºÐ° Ñ Ñ„ÐµÑ€Ð¸Ñ‡ÐµÑ ÐºÐ¾Ð¹ Ð¿Ñ€Ð¾ÐµÐºÑ†Ð¸Ð¸ ÐœÐµÑ€ÐºÐ°Ñ‚Ð¾Ñ€Ð°. Ð‘Ð¾Ð»ÑŒÑˆÐµ Ñ Ð²ÐµÐ´ÐµÐ½Ð¸Ð¹ Ð´Ð¾Ñ Ñ‚ÑƒÐ¿Ð½Ð¾ Ð½Ð° http://trac.openlayers.org/wiki/SphericalMercator.",methodDeprecated:"ÐÑ‚Ð¾Ñ‚ Ð¼ÐµÑ‚Ð¾Ð´ Ñ Ñ‡Ð¸Ñ‚Ð°ÐµÑ‚Ñ Ñ  ÑƒÑ Ñ‚Ð°Ñ€ÐµÐ²ÑˆÐ¸Ð¼ Ð¸ Ð±ÑƒÐ´ÐµÑ‚ ÑƒÐ´Ð°Ð»Ñ‘Ð½ Ð² Ð²ÐµÑ€Ñ Ð¸Ð¸ 3.0. ÐŸÐ¾Ð¶Ð°Ð»ÑƒÐ¹Ñ Ñ‚Ð°, Ð¿Ð¾Ð»ÑŒÐ·ÑƒÐ¹Ñ‚ÐµÑ ÑŒ ${newMethod}.",boundsAddError:"Ð¤ÑƒÐ½ÐºÑ†Ð¸Ð¸ add Ð½Ð°Ð´Ð¾ Ð¿ÐµÑ€ÐµÐ´Ð°Ð²Ð°Ñ‚ÑŒ Ð¾Ð±Ð° Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ , x Ð¸ y.",lonlatAddError:"Ð¤ÑƒÐ½ÐºÑ†Ð¸Ð¸ add Ð½Ð°Ð´Ð¾ Ð¿ÐµÑ€ÐµÐ´Ð°Ð²Ð°Ñ‚ÑŒ Ð¾Ð±Ð° Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ , lon Ð¸ lat.",pixelAddError:"Ð¤ÑƒÐ½ÐºÑ†Ð¸Ð¸ add Ð½Ð°Ð´Ð¾ Ð¿ÐµÑ€ÐµÐ´Ð°Ð²Ð°Ñ‚ÑŒ Ð¾Ð±Ð° Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ , x Ð¸ y.",unsupportedGeometryType:"Ð ÐµÐ¿Ð¾Ð´Ð´ÐµÑ€Ð¶Ð¸Ð²Ð°ÐµÐ¼Ñ‹Ð¹ Ñ‚Ð¸Ð¿ Ð³ÐµÐ¾Ð¼ÐµÑ‚Ñ€Ð¸Ð¸: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition failed: Ñ Ð»ÐµÐ¼ÐµÐ½Ñ‚ Ñ  id ${elemId} Ð¼Ð¾Ð¶ÐµÑ‚ Ð½Ð°Ñ…Ð¾Ð´Ð¸Ñ‚ÑŒÑ Ñ  Ð½Ðµ Ð² Ð½ÑƒÐ¶Ð½Ð¾Ð¼ Ð¼ÐµÑ Ñ‚Ðµ.",filterEvaluateNotImplemented:"evaluate Ð½Ðµ Ñ€ÐµÐ°Ð»Ð¸Ð·Ð¾Ð²Ð°Ð½Ð¾ Ð´Ð»Ñ  Ñ„Ð¸Ð»ÑŒÑ‚Ñ€Ð° Ð´Ð°Ð½Ð½Ð¾Ð³Ð¾ Ñ‚Ð¸Ð¿Ð°."});
OpenLayers.Lang.sk=OpenLayers.Util.applyDefaults({unhandledRequest:"NeobslÃºÅ¾enÃ© poÅ¾iadavky vracajÃº ${statusText}",permalink:"TrvalÃ½ odkaz",overlays:"Prekrytia",baseLayer:"ZÃ¡kladnÃ¡ vrstva",sameProjection:"PrehÄ¾adovÃ¡ mapka funguje iba vtedy, keÄ  je v rovnakej projekcii ako hlavnÃ¡ mapa",readNotImplemented:"ÄŒÃtanie nie je implementovanÃ©.",writeNotImplemented:"ZÃ¡pis nie je implementovanÃ½.",noFID:"Nie je moÅ¾nÃ© aktualizovaÅ¥ vlastnosÅ¥, pre ktorÃº neexistuje FID.",errorLoadingGML:"Chyba pri naÄ ÃtanÃ sÃºboru GML ${url}",browserNotSupported:"VÃ¡Å¡ prehliadaÄ  nepodporuje vykresÄ¾ovanie vektorov. MomentÃ¡lne podporovanÃ© vykresÄ¾ovaÄ e sÃº:\n${renderers}",componentShouldBe:"addFeatures: komponent by mal byÅ¥ ${geomType}",getFeatureError:"getFeatureFromEvent bola zavolanÃ¡ na vrstve bez vykresÄ¾ovaÄ a. To zvyÄ ajne znamenÃ¡, Å¾e ste odstrÃ¡nili vrstvu, ale nie niektorÃº z obslÃºh, ktorÃ¡ je s Åˆou asociovanÃ¡.",minZoomLevelError:"VlastnosÅ¥ minZoomLevel je urÄ enÃ½ iba na pouÅ¾itie s vrstvami odvodenÃ½mi od FixedZoomLevels. To, Å¾e tÃ¡to wfs vrstva kontroluje minZoomLevel je pozostatok z minulosti. NemÃ´Å¾eme ho vÅ¡ak odstrÃ¡niÅ¥, aby sme sa vyhli moÅ¾nÃ©mu poruÅ¡eniu aplikÃ¡ciÃ zaloÅ¾enÃ½ch na Open Layers, ktorÃ© na tomto mÃ´Å¾e zÃ¡visieÅ¥. Preto ho oznaÄ ujeme ako zavrhovanÃ½ - dolu uvedenÃ¡ kontrola minZoomLevel bude odstrÃ¡nenÃ¡ vo verzii 3.0. PouÅ¾ite prosÃm namiesto toho kontrolu min./max. rozlÃÅ¡enia podÄ¾a tu uvedenÃ©ho popisu: http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"Transakcia WFS: ÃšSPEÅ NÃ  ${response}",commitFailed:"Transakcia WFS: ZLYHALA ${response}",googleWarning:"Vrstvu Google nebolo moÅ¾nÃ© sprÃ¡vne naÄ ÃtaÅ¥.\x3cbr\x3e\x3cbr\x3eAby ste sa tejto sprÃ¡vy zbavili vyberte novÃº BaseLayer v prepÃnaÄ i vrstiev v pravom hornom rohu.\x3cbr\x3e\x3cbr\x3eToto sa stalo pravdepodobne preto, Å¾e skript kniÅ¾nice Google Maps buÄ  nebol naÄ ÃtanÃ½ alebo neobsahuje sprÃ¡vny kÄ¾ÃºÄ  API pre vaÅ¡u lokalitu.\x3cbr\x3e\x3cbr\x3eVÃ½vojÃ¡ri: Tu mÃ´Å¾ete zÃskaÅ¥ \x3ca href='http://trac.openlayers.org/wiki/Google' target='_blank'\x3epomoc so sfunkÄ nenÃm\x3c/a\x3e",getLayerWarning:"Vrstvu ${layerType} nebolo moÅ¾nÃ© sprÃ¡vne naÄ ÃtaÅ¥.\x3cbr\x3e\x3cbr\x3eAby ste sa tejto sprÃ¡vy zbavili vyberte novÃº BaseLayer v prepÃnaÄ i vrstiev v pravom hornom rohu.\x3cbr\x3e\x3cbr\x3eToto sa stalo pravdepodobne preto, Å¾e skript kniÅ¾nice ${layerType} buÄ  nebol naÄ ÃtanÃ½ alebo neobsahuje sprÃ¡vny kÄ¾ÃºÄ  API pre vaÅ¡u lokalitu.\x3cbr\x3e\x3cbr\x3eVÃ½vojÃ¡ri: Tu mÃ´Å¾ete zÃskaÅ¥ \x3ca href='http://trac.openlayers.org/wiki/${layerType}' target='_blank'\x3epomoc so sfunkÄ nenÃm\x3c/a\x3e",scale:"Mierka = 1 : ${scaleDenom}",layerAlreadyAdded:"PokÃºsili ste sa do mapy pridaÅ¥ vrstvu ${layerName}, ale tÃ¡ uÅ¾ bola pridanÃ¡",reprojectDeprecated:"PouÅ¾Ãvate voÄ¾by â€žreprojectâ€œ vrstvy ${layerType}. TÃ¡to voÄ¾ba je zzavrhovanÃ¡: jej pouÅ¾itie bolo navrhnutÃ© na podporu zobrazovania Ãºdajov nad komerÄ nÃ½mi zÃ¡kladovÃ½mi mapami, ale tÃºto funkcionalitu je teraz moÅ¾nÃ© dosiahnuÅ¥ pomocou Spherical Mercator. ÄŽalÅ¡ie informÃ¡cie zÃskate na strÃ¡nke http://trac.openlayers.org/wiki/SphericalMercator.",methodDeprecated:"TÃ¡to metÃ³da je zavrhovanÃ¡ a bude odstrÃ¡nenÃ¡ vo verzii 3.0. PouÅ¾ite prosÃm namiesto nej metÃ³du ${newMethod}.",boundsAddError:"SÄ Ãtacej funkcii musÃte daÅ¥ hodnoty x aj y.",lonlatAddError:"SÄ Ãtacej funkcii musÃte daÅ¥ hodnoty lon (zem. dÄºÅ¾ka) aj lat (zem. Å¡Ãrka).",pixelAddError:"SÄ Ãtacej funkcii musÃte daÅ¥ hodnoty x aj y.",unsupportedGeometryType:"NepodporovanÃ½ typ geometrie: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition zlyhalo: prvok s id ${elemId} mÃ´Å¾e byÅ¥ zle umiestnenÃ½.",filterEvaluateNotImplemented:"evaluate nie je implementovanÃ½ pre tento typ filtra"});
OpenLayers.Lang.te=OpenLayers.Util.applyDefaults({permalink:"à°¸à± à°¥à°¿à°°à°²à°¿à°‚à°•à± ",W:"à°ª",E:"à°¤à±‚",N:"à°‰",S:"à°¦"});
OpenLayers.Lang.vi=OpenLayers.Util.applyDefaults({unhandledRequest:"KhÃ´ng xá» lÃ½ Ä‘Æ°á»£c pháº£n há»“i ${statusText} cho yÃªu cáº§u",permalink:"LiÃªn káº¿t thÆ°á» ng trá»±c",overlays:"Láº¥p báº£n Ä‘á»“",baseLayer:"Lá»›p ná» n",sameProjection:"Báº£n Ä‘á»“ toÃ n cáº£nh chá»‰ hoáº¡t Ä‘á»™ng khi cÃ¹ng phÃ©p chiáº¿u vá»›i báº£n Ä‘á»“ chÃnh",readNotImplemented:"ChÆ°a há»— trá»£ chá»©c nÄƒng Ä‘á» c.",writeNotImplemented:"ChÆ°a há»— trá»£ chá»©c nÄƒng viáº¿t.",noFID:"KhÃ´ng thá»ƒ cáºp nháºt tÃnh nÄƒng thiáº¿u FID.",errorLoadingGML:"Lá»—i táº£i táºp tin GML táº¡i ${url}",browserNotSupported:"TrÃ¬nh duyá»‡t cá»§a báº¡n khÃ´ng há»— trá»£ chá»©c nÄƒng váº½ báº±ng vectÆ¡. Hiá»‡n há»— trá»£ cÃ¡c bá»™ káº¿t xuáº¥t:\n${renderers}",componentShouldBe:"addFeatures: bá»™ pháºn cáº§n pháº£i lÃ  ${geomType}",getFeatureError:"getFeatureFromEvent Ä‘Æ°á»£c gá» i tá»« lá»›p khÃ´ng cÃ³ bá»™ káº¿t xuáº¥t. ThÆ°á» ng thÃ¬ cÃ³ láº½ lá»›p bá»‹ xÃ³a nhÆ°ng má»™t pháº§n xá» lÃ½ cá»§a nÃ³ váº«n cÃ²n.",minZoomLevelError:"Chá»‰ nÃªn sá» dá»¥ng thuá»™c tÃnh minZoomLevel vá»›i cÃ¡c lá»›p FixedZoomLevels-descendent. Viá»‡c lá»›p wfs nÃ y tÃ¬m cho minZoomLevel lÃ  di tÃch cÃ²n láº¡i tá»« xÆ°a. Tuy nhiÃªn, náº¿u chÃºng tÃ´i dá» i nÃ³ thÃ¬ sáº½ vá»¡ cÃ¡c chÆ°Æ¡ng trÃ¬nh OpenLayers mÃ  dá»±a trÃªn nÃ³. Bá»Ÿi váºy chÃºng tÃ´i pháº£n Ä‘á»‘i sá» dá»¥ng nÃ³\x26nbsp;â€“ bÆ°á»›c tÃ¬m cho minZoomLevel sáº½ Ä‘Æ°á»£c dá» i vÃ o phiÃªn báº£n 3.0. Xin sá» dá»¥ng thiáº¿t láºp Ä‘á»™ phÃ¢n tÃch tá»‘i thiá»ƒu / tá»‘i Ä‘a thay tháº¿, theo hÆ°á»›ng dáº«n nÃ y: http://trac.openlayers.org/wiki/SettingZoomLevels",commitSuccess:"Giao dá»‹ch WFS: THÃ€NH CÃ”NG ${response}",commitFailed:"Giao dá»‹ch WFS: THáº¤T Báº I ${response}",googleWarning:"KhÃ´ng thá»ƒ táº£i lá»›p Google Ä‘Ãºng Ä‘áº¯n.\x3cbr\x3e\x3cbr\x3eÄ á»ƒ trÃ¡nh thÃ´ng bÃ¡o nÃ y láº§n sau, hÃ£y chá» n BaseLayer má»›i dÃ¹ng Ä‘iá» u khiá»ƒn chá» n lá»›p á»Ÿ gÃ³c trÃªn pháº£i.\x3cbr\x3e\x3cbr\x3eCháº¯c script thÆ° viá»‡n Google Maps hoáº·c khÃ´ng Ä‘Æ°á»£c bao gá»“m hoáº·c khÃ´ng chá»©a khÃ³a API há»£p vá»›i website cá»§a báº¡n.\x3cbr\x3e\x3cbr\x3e\x3ca href='http://trac.openlayers.org/wiki/Google' target='_blank'\x3eTrá»£ giÃºp vá»  tÃnh nÄƒng nÃ y\x3c/a\x3e cho ngÆ°á» i phÃ¡t triá»ƒn.",getLayerWarning:"KhÃ´ng thá»ƒ táº£i lá»›p ${layerType} Ä‘Ãºng Ä‘áº¯n.\x3cbr\x3e\x3cbr\x3eÄ á»ƒ trÃ¡nh thÃ´ng bÃ¡o nÃ y láº§n sau, hÃ£y chá» n BaseLayer má»›i dÃ¹ng Ä‘iá» u khiá»ƒn chá» n lá»›p á»Ÿ gÃ³c trÃªn pháº£i.\x3cbr\x3e\x3cbr\x3eCháº¯c script thÆ° viá»‡n ${layerLib} khÃ´ng Ä‘Æ°á»£c bao gá»“m Ä‘Ãºng kiá»ƒu.\x3cbr\x3e\x3cbr\x3e\x3ca href='http://trac.openlayers.org/wiki/${layerLib}' target='_blank'\x3eTrá»£ giÃºp vá»  tÃnh nÄƒng nÃ y\x3c/a\x3e cho ngÆ°á» i phÃ¡t triá»ƒn.",scale:"Tá»· lá»‡ = 1 : ${scaleDenom}",W:"T",E:"Ä ",N:"B",S:"N",layerAlreadyAdded:"Báº¡n muá»‘n thÃªm lá»›p ${layerName} vÃ o báº£n Ä‘á»“, nhÆ°ng lá»›p nÃ y Ä‘Ã£ Ä‘Æ°á»£c thÃªm",reprojectDeprecated:"Báº¡n Ä‘ang Ã¡p dá»¥ng cháº¿ Ä‘á»™ â€œreprojectâ€  vÃ o lá»›p ${layerName}. Cháº¿ Ä‘á»™ nÃ y Ä‘Ã£ bá»‹ pháº£n Ä‘á»‘i: nÃ³ cÃ³ má»¥c Ä‘Ãch há»— trá»£ láº¥p dá»¯ liá»‡u trÃªn cÃ¡c ná» n báº£n Ä‘á»“ thÆ°Æ¡ng máº¡i; nÃªn thá»±c hiá»‡n hiá»‡u á»©ng Ä‘Ã³ dÃ¹ng tÃnh nÄƒng Mercator HÃ¬nh cáº§u. CÃ³ sáºµn thÃªm chi tiáº¿t táº¡i http://trac.openlayers.org/wiki/SphericalMercator .",methodDeprecated:"PhÆ°Æ¡ng thá»©c nÃ y Ä‘Ã£ bá»‹ pháº£n Ä‘á»‘i vÃ  sáº½ bá»‹ dá» i vÃ o phiÃªn báº£n 3.0. Xin hÃ£y sá» dá»¥ng ${newMethod} thay tháº¿.",boundsAddError:"Cáº§n pháº£i cho cáº£ giÃ¡ trá»‹ x vÃ  y vÃ o hÃ m add.",lonlatAddError:"Cáº§n pháº£i cho cáº£ giÃ¡ trá»‹ lon vÃ  lat vÃ o hÃ m add.",pixelAddError:"Cáº§n pháº£i cho cáº£ giÃ¡ trá»‹ x vÃ  y vÃ o hÃ m add.",unsupportedGeometryType:"KhÃ´ng há»— trá»£ kiá»ƒu Ä‘á»‹a lÃ½: ${geomType}",pagePositionFailed:"OpenLayers.Util.pagePosition bá»‹ tháº¥t báº¡i: nguyÃªn tá»‘ vá»›i ID ${elemId} cÃ³ thá»ƒ á»Ÿ chá»— sai.",filterEvaluateNotImplemented:"chÆ°a há»— trá»£ evaluate cho loáº¡i bá»™ lá» c nÃ y."});
OpenLayers.Popup.AnchoredBubble=OpenLayers.Class(OpenLayers.Popup.Anchored,{rounded:false,initialize:function(d,g,c,f,e,b,a){this.padding=new OpenLayers.Bounds(0,OpenLayers.Popup.AnchoredBubble.CORNER_SIZE,0,OpenLayers.Popup.AnchoredBubble.CORNER_SIZE);
OpenLayers.Popup.Anchored.prototype.initialize.apply(this,arguments)
},draw:function(a){OpenLayers.Popup.Anchored.prototype.draw.apply(this,arguments);
this.setContentHTML();
this.setBackgroundColor();
this.setOpacity();
return this.div
},updateRelativePosition:function(){this.setRicoCorners()
},setSize:function(a){OpenLayers.Popup.Anchored.prototype.setSize.apply(this,arguments);
this.setRicoCorners()
},setBackgroundColor:function(a){if(a!=undefined){this.backgroundColor=a
}if(this.div!=null){if(this.contentDiv!=null){this.div.style.background="transparent";
OpenLayers.Rico.Corner.changeColor(this.groupDiv,this.backgroundColor)
}}},setOpacity:function(a){OpenLayers.Popup.Anchored.prototype.setOpacity.call(this,a);
if(this.div!=null){if(this.groupDiv!=null){OpenLayers.Rico.Corner.changeOpacity(this.groupDiv,this.opacity)
}}},setBorder:function(a){this.border=0
},setRicoCorners:function(){var a=this.getCornersToRound(this.relativePosition);
var b={corners:a,color:this.backgroundColor,bgColor:"transparent",blend:false};
if(!this.rounded){OpenLayers.Rico.Corner.round(this.div,b);
this.rounded=true
}else{OpenLayers.Rico.Corner.reRound(this.groupDiv,b);
this.setBackgroundColor();
this.setOpacity()
}},getCornersToRound:function(){var a=["tl","tr","bl","br"];
var b=OpenLayers.Bounds.oppositeQuadrant(this.relativePosition);
OpenLayers.Util.removeItem(a,b);
return a.join(" ")
},CLASS_NAME:"OpenLayers.Popup.AnchoredBubble"});
OpenLayers.Popup.AnchoredBubble.CORNER_SIZE=5;
OpenLayers.Popup.Framed=OpenLayers.Class(OpenLayers.Popup.Anchored,{imageSrc:null,imageSize:null,isAlphaImage:false,positionBlocks:null,blocks:null,fixedRelativePosition:false,initialize:function(d,g,c,f,e,b,a){OpenLayers.Popup.Anchored.prototype.initialize.apply(this,arguments);
if(this.fixedRelativePosition){this.updateRelativePosition();
this.calculateRelativePosition=function(h){return this.relativePosition
}
}this.contentDiv.style.position="absolute";
this.contentDiv.style.zIndex=1;
if(b){this.closeDiv.style.zIndex=1
}this.groupDiv.style.position="absolute";
this.groupDiv.style.top="0px";
this.groupDiv.style.left="0px";
this.groupDiv.style.height="100%";
this.groupDiv.style.width="100%"
},destroy:function(){this.imageSrc=null;
this.imageSize=null;
this.isAlphaImage=null;
this.fixedRelativePosition=false;
this.positionBlocks=null;
for(var a=0;
a<this.blocks.length;
a++){var b=this.blocks[a];
if(b.image){b.div.removeChild(b.image)
}b.image=null;
if(b.div){this.groupDiv.removeChild(b.div)
}b.div=null
}this.blocks=null;
OpenLayers.Popup.Anchored.prototype.destroy.apply(this,arguments)
},setBackgroundColor:function(a){},setBorder:function(){},setOpacity:function(a){},setSize:function(a){OpenLayers.Popup.Anchored.prototype.setSize.apply(this,arguments);
this.updateBlocks()
},updateRelativePosition:function(){this.padding=this.positionBlocks[this.relativePosition].padding;
if(this.closeDiv){var a=this.getContentDivPadding();
this.closeDiv.style.right=a.right+this.padding.right+"px";
this.closeDiv.style.top=a.top+this.padding.top+"px"
}this.updateBlocks()
},calculateNewPx:function(a){var b=OpenLayers.Popup.Anchored.prototype.calculateNewPx.apply(this,arguments);
b=b.offset(this.positionBlocks[this.relativePosition].offset);
return b
},createBlocks:function(){this.blocks=[];
var a=null;
for(var h in this.positionBlocks){a=h;
break
}var d=this.positionBlocks[a];
for(var g=0;
g<d.blocks.length;
g++){var c={};
this.blocks.push(c);
var e=this.id+"_FrameDecorationDiv_"+g;
c.div=OpenLayers.Util.createDiv(e,null,null,null,"absolute",null,"hidden",null);
var f=this.id+"_FrameDecorationImg_"+g;
var b=(this.isAlphaImage)?OpenLayers.Util.createAlphaImageDiv:OpenLayers.Util.createImage;
c.image=b(f,null,this.imageSize,this.imageSrc,"absolute",null,null,null);
c.div.appendChild(c.image);
this.groupDiv.appendChild(c.div)
}},updateBlocks:function(){if(!this.blocks){this.createBlocks()
}if(this.size&&this.relativePosition){var e=this.positionBlocks[this.relativePosition];
for(var c=0;
c<e.blocks.length;
c++){var m=e.blocks[c];
var a=this.blocks[c];
var o=m.anchor.left;
var f=m.anchor.bottom;
var k=m.anchor.right;
var j=m.anchor.top;
var g=(isNaN(m.size.w))?this.size.w-(k+o):m.size.w;
var d=(isNaN(m.size.h))?this.size.h-(f+j):m.size.h;
a.div.style.width=(g<0?0:g)+"px";
a.div.style.height=(d<0?0:d)+"px";
a.div.style.left=(o!=null)?o+"px":"";
a.div.style.bottom=(f!=null)?f+"px":"";
a.div.style.right=(k!=null)?k+"px":"";
a.div.style.top=(j!=null)?j+"px":"";
a.image.style.left=m.position.x+"px";
a.image.style.top=m.position.y+"px"
}this.contentDiv.style.left=this.padding.left+"px";
this.contentDiv.style.top=this.padding.top+"px"
}},CLASS_NAME:"OpenLayers.Popup.Framed"});
OpenLayers.Projection=OpenLayers.Class({proj:null,projCode:null,initialize:function(b,a){OpenLayers.Util.extend(this,a);
this.projCode=b;
if(window.Proj4js){this.proj=new Proj4js.Proj(b)
}},getCode:function(){return this.proj?this.proj.srsCode:this.projCode
},getUnits:function(){return this.proj?this.proj.units:null
},toString:function(){return this.getCode()
},equals:function(a){if(a&&a.getCode){return this.getCode()==a.getCode()
}else{return false
}},destroy:function(){delete this.proj;
delete this.projCode
},CLASS_NAME:"OpenLayers.Projection"});
OpenLayers.Projection.transforms={};
OpenLayers.Projection.addTransform=function(a,c,b){if(!OpenLayers.Projection.transforms[a]){OpenLayers.Projection.transforms[a]={}
}OpenLayers.Projection.transforms[a][c]=b
};
OpenLayers.Projection.transform=function(b,a,c){if(a.proj&&c.proj){b=Proj4js.transform(a.proj,c.proj,b)
}else{if(a&&c&&OpenLayers.Projection.transforms[a.getCode()]&&OpenLayers.Projection.transforms[a.getCode()][c.getCode()]){OpenLayers.Projection.transforms[a.getCode()][c.getCode()](b)
}}return b
};
OpenLayers.Protocol.WFS.v1=OpenLayers.Class(OpenLayers.Protocol,{version:null,srsName:"EPSG:4326",featureType:null,featureNS:null,geometryName:"the_geom",schema:null,featurePrefix:"feature",formatOptions:null,readFormat:null,initialize:function(b){OpenLayers.Protocol.prototype.initialize.apply(this,[b]);
if(!b.format){this.format=OpenLayers.Format.WFST(OpenLayers.Util.extend({version:this.version,featureType:this.featureType,featureNS:this.featureNS,featurePrefix:this.featurePrefix,geometryName:this.geometryName,srsName:this.srsName,schema:this.schema},this.formatOptions))
}if(!this.featureNS&&this.featurePrefix){var a=this.format.readNode;
this.format.readNode=function(c,d){if(!this.featureNS&&c.prefix==this.featurePrefix){this.featureNS=c.namespaceURI;
this.setNamespace("feature",this.featureNS)
}return a.apply(this,arguments)
}
}},destroy:function(){if(this.options&&!this.options.format){this.format.destroy()
}this.format=null;
OpenLayers.Protocol.prototype.destroy.apply(this)
},read:function(c){OpenLayers.Protocol.prototype.read.apply(this,arguments);
c=OpenLayers.Util.extend({},c);
OpenLayers.Util.applyDefaults(c,this.options||{});
var b=new OpenLayers.Protocol.Response({requestType:"read"});
var a=OpenLayers.Format.XML.prototype.write.apply(this.format,[this.format.writeNode("wfs:GetFeature",c)]);
b.priv=OpenLayers.Request.POST({url:c.url,callback:this.createCallback(this.handleRead,b,c),params:c.params,headers:c.headers,data:a});
return b
},handleRead:function(b,c){if(c.callback){var a=b.priv;
if(a.status>=200&&a.status<300){b.features=this.parseFeatures(a);
b.code=OpenLayers.Protocol.Response.SUCCESS
}else{b.code=OpenLayers.Protocol.Response.FAILURE
}c.callback.call(c.scope,b)
}},parseFeatures:function(a){var b=a.responseXML;
if(!b||!b.documentElement){b=a.responseText
}if(!b||b.length<=0){return null
}return(this.readFormat!==null)?this.readFormat.read(b):this.format.read(b)
},commit:function(a,c){c=OpenLayers.Util.extend({},c);
OpenLayers.Util.applyDefaults(c,this.options);
var b=new OpenLayers.Protocol.Response({requestType:"commit",reqFeatures:a});
b.priv=OpenLayers.Request.POST({url:c.url,data:this.format.write(a,c),callback:this.createCallback(this.handleCommit,b,c)});
return b
},handleCommit:function(d,e){if(e.callback){var a=d.priv;
var b=a.responseXML;
if(!b||!b.documentElement){b=a.responseText
}var c=this.format.read(b)||{};
d.insertIds=c.insertIds||[];
d.code=(c.success)?OpenLayers.Protocol.Response.SUCCESS:OpenLayers.Protocol.Response.FAILURE;
e.callback.call(e.scope,d)
}},filterDelete:function(b,g){g=OpenLayers.Util.extend({},g);
OpenLayers.Util.applyDefaults(g,this.options);
var f=new OpenLayers.Protocol.Response({requestType:"commit"});
var e=this.format.createElementNSPlus("wfs:Transaction",{attributes:{service:"WFS",version:this.version}});
var a=this.format.createElementNSPlus("wfs:Delete",{attributes:{typeName:(g.featureNS?this.featurePrefix+":":"")+g.featureType}});
if(g.featureNS){a.setAttribute("xmlns:"+this.featurePrefix,g.featureNS)
}var d=this.format.writeNode("ogc:Filter",b);
a.appendChild(d);
e.appendChild(a);
var c=OpenLayers.Format.XML.prototype.write.apply(this.format,[e]);
return OpenLayers.Request.POST({url:this.url,callback:g.callback||function(){},data:c})
},abort:function(a){if(a){a.priv.abort()
}},CLASS_NAME:"OpenLayers.Protocol.WFS.v1"});
OpenLayers.Renderer.SVG=OpenLayers.Class(OpenLayers.Renderer.Elements,{xmlns:"http://www.w3.org/2000/svg",xlinkns:"http://www.w3.org/1999/xlink",MAX_PIXEL:15000,translationParameters:null,symbolMetrics:null,isGecko:null,supportUse:null,initialize:function(a){if(!this.supported()){return
}OpenLayers.Renderer.Elements.prototype.initialize.apply(this,arguments);
this.translationParameters={x:0,y:0};
this.supportUse=(navigator.userAgent.toLowerCase().indexOf("applewebkit/5")==-1);
this.isGecko=(navigator.userAgent.toLowerCase().indexOf("gecko/")!=-1);
this.symbolMetrics={}
},destroy:function(){OpenLayers.Renderer.Elements.prototype.destroy.apply(this,arguments)
},supported:function(){var a="http://www.w3.org/TR/SVG11/feature#";
return(document.implementation&&(document.implementation.hasFeature("org.w3c.svg","1.0")||document.implementation.hasFeature(a+"SVG","1.1")||document.implementation.hasFeature(a+"BasicStructure","1.1")))
},inValidRange:function(d,c,e){var b=d+(e?0:this.translationParameters.x);
var a=c+(e?0:this.translationParameters.y);
return(b>=-this.MAX_PIXEL&&b<=this.MAX_PIXEL&&a>=-this.MAX_PIXEL&&a<=this.MAX_PIXEL)
},setExtent:function(f,a){OpenLayers.Renderer.Elements.prototype.setExtent.apply(this,arguments);
var e=this.getResolution();
var c=-f.left/e;
var b=f.top/e;
if(a){this.left=c;
this.top=b;
var g="0 0 "+this.size.w+" "+this.size.h;
this.rendererRoot.setAttributeNS(null,"viewBox",g);
this.translate(0,0);
return true
}else{var d=this.translate(c-this.left,b-this.top);
if(!d){this.setExtent(f,true)
}return d
}},translate:function(b,a){if(!this.inValidRange(b,a,true)){return false
}else{var c="";
if(b||a){c="translate("+b+","+a+")"
}this.root.setAttributeNS(null,"transform",c);
this.translationParameters={x:b,y:a};
return true
}},setSize:function(a){OpenLayers.Renderer.prototype.setSize.apply(this,arguments);
this.rendererRoot.setAttributeNS(null,"width",this.size.w);
this.rendererRoot.setAttributeNS(null,"height",this.size.h)
},getNodeType:function(a,c){var b=null;
switch(a.CLASS_NAME){case"OpenLayers.Geometry.Point":if(c.externalGraphic){b="image"
}else{if(this.isComplexSymbol(c.graphicName)){b=this.supportUse===false?"svg":"use"
}else{b="circle"
}}break;
case"OpenLayers.Geometry.Rectangle":b="rect";
break;
case"OpenLayers.Geometry.LineString":b="polyline";
break;
case"OpenLayers.Geometry.LinearRing":b="polygon";
break;
case"OpenLayers.Geometry.Polygon":case"OpenLayers.Geometry.Curve":case"OpenLayers.Geometry.Surface":b="path";
break;
default:break
}return b
},setStyle:function(f,l,b){l=l||f._style;
b=b||f._options;
var p=parseFloat(f.getAttributeNS(null,"r"));
var o=1;
var e;
if(f._geometryClass=="OpenLayers.Geometry.Point"&&p){f.style.visibility="";
if(l.graphic===false){f.style.visibility="hidden"
}else{if(l.externalGraphic){e=this.getPosition(f);
if(l.graphicTitle){f.setAttributeNS(null,"title",l.graphicTitle)
}if(l.graphicWidth&&l.graphicHeight){f.setAttributeNS(null,"preserveAspectRatio","none")
}var d=l.graphicWidth||l.graphicHeight;
var t=l.graphicHeight||l.graphicWidth;
d=d?d:l.pointRadius*2;
t=t?t:l.pointRadius*2;
var s=(l.graphicXOffset!=undefined)?l.graphicXOffset:-(0.5*d);
var j=(l.graphicYOffset!=undefined)?l.graphicYOffset:-(0.5*t);
var a=l.graphicOpacity||l.fillOpacity;
f.setAttributeNS(null,"x",(e.x+s).toFixed());
f.setAttributeNS(null,"y",(e.y+j).toFixed());
f.setAttributeNS(null,"width",d);
f.setAttributeNS(null,"height",t);
f.setAttributeNS(this.xlinkns,"href",l.externalGraphic);
f.setAttributeNS(null,"style","opacity: "+a)
}else{if(this.isComplexSymbol(l.graphicName)){var c=l.pointRadius*3;
var q=c*2;
var u=this.importSymbol(l.graphicName);
e=this.getPosition(f);
o=this.symbolMetrics[u][0]*3/q;
var k=f.parentNode;
var m=f.nextSibling;
if(k){k.removeChild(f)
}if(this.supportUse===false){var h=document.getElementById(u);
f.firstChild&&f.removeChild(f.firstChild);
f.appendChild(h.firstChild.cloneNode(true));
f.setAttributeNS(null,"viewBox",h.getAttributeNS(null,"viewBox"))
}else{f.setAttributeNS(this.xlinkns,"href","#"+u)
}f.setAttributeNS(null,"width",q);
f.setAttributeNS(null,"height",q);
f.setAttributeNS(null,"x",e.x-c);
f.setAttributeNS(null,"y",e.y-c);
if(m){k.insertBefore(f,m)
}else{if(k){k.appendChild(f)
}}}else{f.setAttributeNS(null,"r",l.pointRadius)
}}}var i=l.rotation;
if((i!==undefined||f._rotation!==undefined)&&e){f._rotation=i;
i|=0;
if(f.nodeName!=="svg"){f.setAttributeNS(null,"transform","rotate("+i+" "+e.x+" "+e.y+")")
}else{var g=this.symbolMetrics[u];
f.firstChild.setAttributeNS(null,"transform","rotate("+l.rotation+" "+g[1]+" "+g[2]+")")
}}}if(b.isFilled){f.setAttributeNS(null,"fill",l.fillColor);
f.setAttributeNS(null,"fill-opacity",l.fillOpacity)
}else{f.setAttributeNS(null,"fill","none")
}if(b.isStroked){f.setAttributeNS(null,"stroke",l.strokeColor);
f.setAttributeNS(null,"stroke-opacity",l.strokeOpacity);
f.setAttributeNS(null,"stroke-width",l.strokeWidth*o);
f.setAttributeNS(null,"stroke-linecap",l.strokeLinecap);
f.setAttributeNS(null,"stroke-linejoin","round");
f.setAttributeNS(null,"stroke-dasharray",this.dashStyle(l,o))
}else{f.setAttributeNS(null,"stroke","none")
}if(l.pointerEvents){f.setAttributeNS(null,"pointer-events",l.pointerEvents)
}if(l.cursor!=null){f.setAttributeNS(null,"cursor",l.cursor)
}return f
},dashStyle:function(a,d){var c=a.strokeWidth*d;
var b=a.strokeDashstyle;
switch(b){case"solid":return"none";
case"dot":return[1,4*c].join();
case"dash":return[4*c,4*c].join();
case"dashdot":return[4*c,4*c,1,4*c].join();
case"longdash":return[8*c,4*c].join();
case"longdashdot":return[8*c,4*c,1,4*c].join();
default:return OpenLayers.String.trim(b).replace(/\s+/g,",")
}},createNode:function(b,a){var c=document.createElementNS(this.xmlns,b);
if(a){c.setAttributeNS(null,"id",a)
}return c
},nodeTypeCompare:function(b,a){return(a==b.nodeName)
},createRenderRoot:function(){return this.nodeFactory(this.container.id+"_svgRoot","svg")
},createRoot:function(a){return this.nodeFactory(this.container.id+a,"g")
},createDefs:function(){var a=this.nodeFactory(this.container.id+"_defs","defs");
this.rendererRoot.appendChild(a);
return a
},drawPoint:function(a,b){return this.drawCircle(a,b,1)
},drawCircle:function(b,c,f){var a=this.getResolution();
var e=(c.x/a+this.left);
var d=(this.top-c.y/a);
if(this.inValidRange(e,d)){b.setAttributeNS(null,"cx",e);
b.setAttributeNS(null,"cy",d);
b.setAttributeNS(null,"r",f);
return b
}else{return false
}},drawLineString:function(c,a){var b=this.getComponentsString(a.components);
if(b.path){c.setAttributeNS(null,"points",b.path);
return(b.complete?c:null)
}else{return false
}},drawLinearRing:function(c,a){var b=this.getComponentsString(a.components);
if(b.path){c.setAttributeNS(null,"points",b.path);
return(b.complete?c:null)
}else{return false
}},drawPolygon:function(a,g){var f="";
var h=true;
var k=true;
var b,i;
for(var c=0,e=g.components.length;
c<e;
c++){f+=" M";
b=this.getComponentsString(g.components[c].components," ");
i=b.path;
if(i){f+=" "+i;
k=b.complete&&k
}else{h=false
}}f+=" z";
if(h){a.setAttributeNS(null,"d",f);
a.setAttributeNS(null,"fill-rule","evenodd");
return k?a:null
}else{return false
}},drawRectangle:function(a,b){var e=this.getResolution();
var d=(b.x/e+this.left);
var c=(this.top-b.y/e);
if(this.inValidRange(d,c)){a.setAttributeNS(null,"x",d);
a.setAttributeNS(null,"y",c);
a.setAttributeNS(null,"width",b.width/e);
a.setAttributeNS(null,"height",b.height/e);
return a
}else{return false
}},drawSurface:function(b,e){var c=null;
var h=true;
for(var a=0,f=e.components.length;
a<f;
a++){if((a%3)==0&&(a/3)==0){var g=this.getShortString(e.components[a]);
if(!g){h=false
}c="M "+g
}else{if((a%3)==1){var g=this.getShortString(e.components[a]);
if(!g){h=false
}c+=" C "+g
}else{var g=this.getShortString(e.components[a]);
if(!g){h=false
}c+=" "+g
}}}c+=" Z";
if(h){b.setAttributeNS(null,"d",c);
return b
}else{return false
}},drawText:function(b,i,h){var a=this.getResolution();
var g=(h.x/a+this.left);
var d=(h.y/a-this.top);
var f=this.nodeFactory(b+this.LABEL_ID_SUFFIX,"text");
var e=this.nodeFactory(b+this.LABEL_ID_SUFFIX+"_tspan","tspan");
f.setAttributeNS(null,"x",g);
f.setAttributeNS(null,"y",-d);
if(i.fontColor){f.setAttributeNS(null,"fill",i.fontColor)
}if(i.fontOpacity){f.setAttributeNS(null,"opacity",i.fontOpacity)
}if(i.fontFamily){f.setAttributeNS(null,"font-family",i.fontFamily)
}if(i.fontSize){f.setAttributeNS(null,"font-size",i.fontSize)
}if(i.fontWeight){f.setAttributeNS(null,"font-weight",i.fontWeight)
}if(i.labelSelect===true){f.setAttributeNS(null,"pointer-events","visible");
f._featureId=b;
e._featureId=b;
e._geometry=h;
e._geometryClass=h.CLASS_NAME
}else{f.setAttributeNS(null,"pointer-events","none")
}var c=i.labelAlign||"cm";
f.setAttributeNS(null,"text-anchor",OpenLayers.Renderer.SVG.LABEL_ALIGN[c[0]]||"middle");
if(this.isGecko){f.setAttributeNS(null,"dominant-baseline",OpenLayers.Renderer.SVG.LABEL_ALIGN[c[1]]||"central")
}else{e.setAttributeNS(null,"baseline-shift",OpenLayers.Renderer.SVG.LABEL_VSHIFT[c[1]]||"-35%")
}e.textContent=i.label;
if(!f.parentNode){f.appendChild(e);
this.textRoot.appendChild(f)
}},getComponentsString:function(b,a){var d=[];
var h=true;
var c=b.length;
var g=[];
var e,f,k;
for(var l=0;
l<c;
l++){f=b[l];
d.push(f);
e=this.getShortString(f);
if(e){g.push(e)
}else{if(l>0){if(this.getShortString(b[l-1])){g.push(this.clipLine(b[l],b[l-1]))
}}if(l<c-1){if(this.getShortString(b[l+1])){g.push(this.clipLine(b[l],b[l+1]))
}}h=false
}}return{path:g.join(a||","),complete:h}
},clipLine:function(b,e){if(e.equals(b)){return""
}var c=this.getResolution();
var i=this.MAX_PIXEL-this.translationParameters.x;
var h=this.MAX_PIXEL-this.translationParameters.y;
var a=e.x/c+this.left;
var g=this.top-e.y/c;
var j=b.x/c+this.left;
var f=this.top-b.y/c;
var d;
if(j<-i||j>i){d=(f-g)/(j-a);
j=j<0?-i:i;
f=g+(j-a)*d
}if(f<-h||f>h){d=(j-a)/(f-g);
f=f<0?-h:h;
j=a+(f-g)*d
}return j+","+f
},getShortString:function(d){var a=this.getResolution();
var c=(d.x/a+this.left);
var b=(this.top-d.y/a);
if(this.inValidRange(c,b)){return c+","+b
}else{return false
}},getPosition:function(a){return({x:parseFloat(a.getAttributeNS(null,"cx")),y:parseFloat(a.getAttributeNS(null,"cy"))})
},importSymbol:function(j){if(!this.defs){this.defs=this.createDefs()
}var f=this.container.id+"-"+j;
if(document.getElementById(f)!=null){return f
}var h=OpenLayers.Renderer.symbol[j];
if(!h){throw new Error(j+" is not a valid symbol name");
return
}var l=this.nodeFactory(f,"symbol");
var g=this.nodeFactory(null,"polygon");
l.appendChild(g);
var c=new OpenLayers.Bounds(Number.MAX_VALUE,Number.MAX_VALUE,0,0);
var a="";
var o,m;
for(var k=0;
k<h.length;
k=k+2){o=h[k];
m=h[k+1];
c.left=Math.min(c.left,o);
c.bottom=Math.min(c.bottom,m);
c.right=Math.max(c.right,o);
c.top=Math.max(c.top,m);
a+=" "+o+","+m
}g.setAttributeNS(null,"points",a);
var d=c.getWidth();
var b=c.getHeight();
var e=[c.left-d,c.bottom-b,d*3,b*3];
l.setAttributeNS(null,"viewBox",e.join(" "));
this.symbolMetrics[f]=[Math.max(d,b),c.getCenterLonLat().lon,c.getCenterLonLat().lat];
this.defs.appendChild(l);
return l.id
},getFeatureIdFromEvent:function(b){var a=OpenLayers.Renderer.Elements.prototype.getFeatureIdFromEvent.apply(this,arguments);
if(this.supportUse===false&&!a){var c=b.target;
a=c.parentNode&&c!=this.rendererRoot&&c.parentNode._featureId
}return a
},CLASS_NAME:"OpenLayers.Renderer.SVG"});
OpenLayers.Renderer.SVG.LABEL_ALIGN={l:"start",r:"end",b:"bottom",t:"hanging"};
OpenLayers.Renderer.SVG.LABEL_VSHIFT={t:"-70%",b:"0"};
OpenLayers.Renderer.VML=OpenLayers.Class(OpenLayers.Renderer.Elements,{xmlns:"urn:schemas-microsoft-com:vml",symbolCache:{},offset:null,initialize:function(e){if(!this.supported()){return
}if(!document.namespaces.olv){document.namespaces.add("olv",this.xmlns);
var c=document.createStyleSheet();
var a=["shape","rect","oval","fill","stroke","imagedata","group","textbox"];
for(var b=0,d=a.length;
b<d;
b++){c.addRule("olv\\:"+a[b],"behavior: url(#default#VML); position: absolute; display: inline-block;")
}}OpenLayers.Renderer.Elements.prototype.initialize.apply(this,arguments)
},destroy:function(){OpenLayers.Renderer.Elements.prototype.destroy.apply(this,arguments)
},supported:function(){return !!(document.namespaces)
},setExtent:function(d,g){OpenLayers.Renderer.Elements.prototype.setExtent.apply(this,arguments);
var j=this.getResolution();
var h=(d.left/j)|0;
var a=(d.top/j-this.size.h)|0;
if(g||!this.offset){this.offset={x:h,y:a};
h=0;
a=0
}else{h=h-this.offset.x;
a=a-this.offset.y
}var f=h+" "+a;
this.root.coordorigin=f;
var c=[this.root,this.vectorRoot,this.textRoot];
var b;
for(var k=0,l=c.length;
k<l;
++k){b=c[k];
var e=this.size.w+" "+this.size.h;
b.coordsize=e
}this.root.style.flip="y";
return true
},setSize:function(c){OpenLayers.Renderer.prototype.setSize.apply(this,arguments);
var a=[this.rendererRoot,this.root,this.vectorRoot,this.textRoot];
var g=this.size.w+"px";
var d=this.size.h+"px";
var f;
for(var b=0,e=a.length;
b<e;
++b){f=a[b];
f.style.width=g;
f.style.height=d
}},getNodeType:function(a,c){var b=null;
switch(a.CLASS_NAME){case"OpenLayers.Geometry.Point":if(c.externalGraphic){b="olv:rect"
}else{if(this.isComplexSymbol(c.graphicName)){b="olv:shape"
}else{b="olv:oval"
}}break;
case"OpenLayers.Geometry.Rectangle":b="olv:rect";
break;
case"OpenLayers.Geometry.LineString":case"OpenLayers.Geometry.LinearRing":case"OpenLayers.Geometry.Polygon":case"OpenLayers.Geometry.Curve":case"OpenLayers.Geometry.Surface":b="olv:shape";
break;
default:break
}return b
},setStyle:function(b,j,a,e){j=j||b._style;
a=a||b._options;
var m=1;
var c=j.fillColor;
if(b._geometryClass==="OpenLayers.Geometry.Point"){if(j.externalGraphic){if(j.graphicTitle){b.title=j.graphicTitle
}var s=j.graphicWidth||j.graphicHeight;
var q=j.graphicHeight||j.graphicWidth;
s=s?s:j.pointRadius*2;
q=q?q:j.pointRadius*2;
var f=this.getResolution();
var o=(j.graphicXOffset!=undefined)?j.graphicXOffset:-(0.5*s);
var i=(j.graphicYOffset!=undefined)?j.graphicYOffset:-(0.5*q);
b.style.left=(((e.x/f-this.offset.x)+o)|0)+"px";
b.style.top=(((e.y/f-this.offset.y)-(i+q))|0)+"px";
b.style.width=s+"px";
b.style.height=q+"px";
b.style.flip="y";
c="none";
a.isStroked=false
}else{if(this.isComplexSymbol(j.graphicName)){var k=this.importSymbol(j.graphicName);
b.path=k.path;
b.coordorigin=k.left+","+k.bottom;
var p=k.size;
b.coordsize=p+","+p;
this.drawCircle(b,e,j.pointRadius);
b.style.flip="y"
}else{this.drawCircle(b,e,j.pointRadius)
}}}if(a.isFilled){b.fillcolor=c
}else{b.filled="false"
}var r=b.getElementsByTagName("fill");
var h=(r.length==0)?null:r[0];
if(!a.isFilled){if(h){b.removeChild(h)
}}else{if(!h){h=this.createNode("olv:fill",b.id+"_fill")
}h.opacity=j.fillOpacity;
if(b._geometryClass==="OpenLayers.Geometry.Point"&&j.externalGraphic){if(j.graphicOpacity){h.opacity=j.graphicOpacity
}h.src=j.externalGraphic;
h.type="frame";
if(!(j.graphicWidth&&j.graphicHeight)){h.aspect="atmost"
}}if(h.parentNode!=b){b.appendChild(h)
}}var d=j.rotation;
if(d!==b._rotation){b._rotation=d;
if(j.externalGraphic){this.graphicRotate(b,o,i,j);
h.opacity=0
}else{if(b._geometryClass==="OpenLayers.Geometry.Point"){b.style.rotation=d||0
}}}if(a.isStroked){b.strokecolor=j.strokeColor;
b.strokeweight=j.strokeWidth+"px"
}else{b.stroked=false
}var l=b.getElementsByTagName("stroke");
var g=(l.length==0)?null:l[0];
if(!a.isStroked){if(g){b.removeChild(g)
}}else{if(!g){g=this.createNode("olv:stroke",b.id+"_stroke");
b.appendChild(g)
}g.opacity=j.strokeOpacity;
g.endcap=!j.strokeLinecap||j.strokeLinecap=="butt"?"flat":j.strokeLinecap;
g.dashstyle=this.dashStyle(j)
}if(j.cursor!="inherit"&&j.cursor!=null){b.style.cursor=j.cursor
}return b
},graphicRotate:function(u,l,g,j){var j=j||u._style;
var d=u._options;
var h=j.rotation||0;
var a,q;
if(!(j.graphicWidth&&j.graphicHeight)){var o=new Image();
o.onreadystatechange=OpenLayers.Function.bind(function(){if(o.readyState=="complete"||o.readyState=="interactive"){a=o.width/o.height;
q=Math.max(j.pointRadius*2,j.graphicWidth||0,j.graphicHeight||0);
l=l*a;
j.graphicWidth=q*a;
j.graphicHeight=q;
this.graphicRotate(u,l,g,j)
}},this);
o.src=j.externalGraphic;
return
}else{q=Math.max(j.graphicWidth,j.graphicHeight);
a=j.graphicWidth/j.graphicHeight
}var t=Math.round(j.graphicWidth||q*a);
var r=Math.round(j.graphicHeight||q);
u.style.width=t+"px";
u.style.height=r+"px";
var s=document.getElementById(u.id+"_image");
if(!s){s=this.createNode("olv:imagedata",u.id+"_image");
u.appendChild(s)
}s.style.width=t+"px";
s.style.height=r+"px";
s.src=j.externalGraphic;
s.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='', sizingMethod='scale')";
var i=h*Math.PI/180;
var m=Math.sin(i);
var f=Math.cos(i);
var k="progid:DXImageTransform.Microsoft.Matrix(M11="+f+",M12="+(-m)+",M21="+m+",M22="+f+",SizingMethod='auto expand')\n";
var b=j.graphicOpacity||j.fillOpacity;
if(b&&b!=1){k+="progid:DXImageTransform.Microsoft.BasicImage(opacity="+b+")\n"
}u.style.filter=k;
var e=new OpenLayers.Geometry.Point(-l,-g);
var c=new OpenLayers.Bounds(0,0,t,r).toGeometry();
c.rotate(j.rotation,e);
var p=c.getBounds();
u.style.left=Math.round(parseInt(u.style.left)+p.left)+"px";
u.style.top=Math.round(parseInt(u.style.top)-p.bottom)+"px"
},postDraw:function(b){b.style.visibility="visible";
var a=b._style.fillColor;
var c=b._style.strokeColor;
if(a=="none"&&b.fillcolor!=a){b.fillcolor=a
}if(c=="none"&&b.strokecolor!=c){b.strokecolor=c
}},setNodeDimension:function(e,c){var b=c.getBounds();
if(b){var d=this.getResolution();
var a=new OpenLayers.Bounds((b.left/d-this.offset.x)|0,(b.bottom/d-this.offset.y)|0,(b.right/d-this.offset.x)|0,(b.top/d-this.offset.y)|0);
e.style.left=a.left+"px";
e.style.top=a.top+"px";
e.style.width=a.getWidth()+"px";
e.style.height=a.getHeight()+"px";
e.coordorigin=a.left+" "+a.top;
e.coordsize=a.getWidth()+" "+a.getHeight()
}},dashStyle:function(b){var a=b.strokeDashstyle;
switch(a){case"solid":case"dot":case"dash":case"dashdot":case"longdash":case"longdashdot":return a;
default:var c=a.split(/[ ,]/);
if(c.length==2){if(1*c[0]>=2*c[1]){return"longdash"
}return(c[0]==1||c[1]==1)?"dot":"dash"
}else{if(c.length==4){return(1*c[0]>=2*c[1])?"longdashdot":"dashdot"
}}return"solid"
}},createNode:function(b,a){var c=document.createElement(b);
if(a){c.id=a
}c.unselectable="on";
c.onselectstart=OpenLayers.Function.False;
return c
},nodeTypeCompare:function(a,e){var b=e;
var d=b.indexOf(":");
if(d!=-1){b=b.substr(d+1)
}var c=a.nodeName;
d=c.indexOf(":");
if(d!=-1){c=c.substr(d+1)
}return(b==c)
},createRenderRoot:function(){return this.nodeFactory(this.container.id+"_vmlRoot","div")
},createRoot:function(a){return this.nodeFactory(this.container.id+a,"olv:group")
},drawPoint:function(a,b){return this.drawCircle(a,b,1)
},drawCircle:function(b,c,d){if(!isNaN(c.x)&&!isNaN(c.y)){var e=this.getResolution();
b.style.left=(((c.x/e-this.offset.x)|0)-d)+"px";
b.style.top=(((c.y/e-this.offset.y)|0)-d)+"px";
var a=d*2;
b.style.width=a+"px";
b.style.height=a+"px";
return b
}return false
},drawLineString:function(a,b){return this.drawLine(a,b,false)
},drawLinearRing:function(a,b){return this.drawLine(a,b,true)
},drawLine:function(h,e,b){this.setNodeDimension(h,e);
var j=this.getResolution();
var g=e.components.length;
var l=new Array(g);
var c,f,d;
for(var a=0;
a<g;
a++){c=e.components[a];
f=(c.x/j-this.offset.x)|0;
d=(c.y/j-this.offset.y)|0;
l[a]=" "+f+","+d+" l "
}var k=(b)?" x e":" e";
h.path="m"+l.join("")+k;
return h
},drawPolygon:function(g,c){this.setNodeDimension(g,c);
var h=this.getResolution();
var e=[];
var m,l,k,a,f,o,d,b;
for(k=0,a=c.components.length;
k<a;
k++){m=c.components[k];
e.push("m");
for(l=0,f=m.components.length;
l<f;
l++){o=m.components[l];
d=(o.x/h-this.offset.x)|0;
b=(o.y/h-this.offset.y)|0;
e.push(" "+d+","+b);
if(l==0){e.push(" l")
}}e.push(" x ")
}e.push("e");
g.path=e.join("");
return g
},drawRectangle:function(c,a){var b=this.getResolution();
c.style.left=((a.x/b-this.offset.x)|0)+"px";
c.style.top=((a.y/b-this.offset.y)|0)+"px";
c.style.width=((a.width/b)|0)+"px";
c.style.height=((a.height/b)|0)+"px";
return c
},drawText:function(c,i,g){var f=this.nodeFactory(c+this.LABEL_ID_SUFFIX,"olv:rect");
var e=this.nodeFactory(c+this.LABEL_ID_SUFFIX+"_textbox","olv:textbox");
var b=this.getResolution();
f.style.left=((g.x/b-this.offset.x)|0)+"px";
f.style.top=((g.y/b-this.offset.y)|0)+"px";
f.style.flip="y";
e.innerText=i.label;
if(i.fontColor){e.style.color=i.fontColor
}if(i.fontOpacity){e.style.filter="alpha(opacity="+(i.fontOpacity*100)+")"
}if(i.fontFamily){e.style.fontFamily=i.fontFamily
}if(i.fontSize){e.style.fontSize=i.fontSize
}if(i.fontWeight){e.style.fontWeight=i.fontWeight
}if(i.labelSelect===true){f._featureId=c;
e._featureId=c;
e._geometry=g;
e._geometryClass=g.CLASS_NAME
}e.style.whiteSpace="nowrap";
e.inset="1px,0px,0px,0px";
if(!f.parentNode){f.appendChild(e);
this.textRoot.appendChild(f)
}var d=i.labelAlign||"cm";
var h=e.clientWidth*(OpenLayers.Renderer.VML.LABEL_SHIFT[d[0]||"c"]);
var a=e.clientHeight*(OpenLayers.Renderer.VML.LABEL_SHIFT[d[1]||"m"]);
f.style.left=parseInt(f.style.left)-h-1+"px";
f.style.top=parseInt(f.style.top)+a+"px"
},drawSurface:function(j,f){this.setNodeDimension(j,f);
var a=this.getResolution();
var h=[];
var c,g,e;
for(var b=0,d=f.components.length;
b<d;
b++){c=f.components[b];
g=(c.x/a-this.offset.x)|0;
e=(c.y/a-this.offset.y)|0;
if((b%3)==0&&(b/3)==0){h.push("m")
}else{if((b%3)==1){h.push(" c")
}}h.push(" "+g+","+e)
}h.push(" x e");
j.path=h.join("");
return j
},moveRoot:function(b){var a=this.map.getLayer(b.container.id);
if(a instanceof OpenLayers.Layer.Vector.RootContainer){a=this.map.getLayer(this.container.id)
}a&&a.renderer.clear();
OpenLayers.Renderer.Elements.prototype.moveRoot.apply(this,arguments);
a&&a.redraw()
},importSymbol:function(k){var h=this.container.id+"-"+k;
var g=this.symbolCache[h];
if(g){return g
}var j=OpenLayers.Renderer.symbol[k];
if(!j){throw new Error(k+" is not a valid symbol name");
return
}var e=new OpenLayers.Bounds(Number.MAX_VALUE,Number.MAX_VALUE,0,0);
var l=["m"];
for(var a=0;
a<j.length;
a=a+2){var c=j[a];
var b=j[a+1];
e.left=Math.min(e.left,c);
e.bottom=Math.min(e.bottom,b);
e.right=Math.max(e.right,c);
e.top=Math.max(e.top,b);
l.push(c);
l.push(b);
if(a==0){l.push("l")
}}l.push("x e");
var f=l.join(" ");
var d=(e.getWidth()-e.getHeight())/2;
if(d>0){e.bottom=e.bottom-d;
e.top=e.top+d
}else{e.left=e.left+d;
e.right=e.right-d
}g={path:f,size:e.getWidth(),left:e.left,bottom:e.bottom};
this.symbolCache[h]=g;
return g
},CLASS_NAME:"OpenLayers.Renderer.VML"});
OpenLayers.Renderer.VML.LABEL_SHIFT={l:0,c:0.5,r:1,t:0,m:0.5,b:1};
OpenLayers.Tile=OpenLayers.Class({EVENT_TYPES:["loadstart","loadend","reload","unload"],events:null,id:null,layer:null,url:null,bounds:null,size:null,position:null,isLoading:false,initialize:function(b,d,c,e,a){this.layer=b;
this.position=d.clone();
this.bounds=c.clone();
this.url=e;
this.size=a.clone();
this.id=OpenLayers.Util.createUniqueID("Tile_");
this.events=new OpenLayers.Events(this,null,this.EVENT_TYPES)
},unload:function(){if(this.isLoading){this.isLoading=false;
this.events.triggerEvent("unload")
}},destroy:function(){this.layer=null;
this.bounds=null;
this.size=null;
this.position=null;
this.events.destroy();
this.events=null
},clone:function(a){if(a==null){a=new OpenLayers.Tile(this.layer,this.position,this.bounds,this.url,this.size)
}OpenLayers.Util.applyDefaults(a,this);
return a
},draw:function(){var a=this.layer.maxExtent;
var b=(a&&this.bounds.intersectsBounds(a,false));
this.shouldDraw=(b||this.layer.displayOutsideMaxExtent);
this.clear();
return this.shouldDraw
},moveTo:function(c,b,a){if(a==null){a=true
}this.bounds=c.clone();
this.position=b.clone();
if(a){this.draw()
}},clear:function(){},getBoundsFromBaseLayer:function(e){var d=OpenLayers.i18n("reprojectDeprecated",{layerName:this.layer.name});
OpenLayers.Console.warn(d);
var b=this.layer.map.getLonLatFromLayerPx(e);
var a=e.clone();
a.x+=this.size.w;
a.y+=this.size.h;
var f=this.layer.map.getLonLatFromLayerPx(a);
if(b.lon>f.lon){if(b.lon<0){b.lon=-180-(b.lon+180)
}else{f.lon=180+f.lon+180
}}var c=new OpenLayers.Bounds(b.lon,f.lat,f.lon,b.lat);
return c
},showTile:function(){if(this.shouldDraw){this.show()
}},show:function(){},hide:function(){},CLASS_NAME:"OpenLayers.Tile"});
OpenLayers.Control.MouseToolbar=OpenLayers.Class(OpenLayers.Control.MouseDefaults,{mode:null,buttons:null,direction:"vertical",buttonClicked:null,initialize:function(a,b){OpenLayers.Control.prototype.initialize.apply(this,arguments);
this.position=new OpenLayers.Pixel(OpenLayers.Control.MouseToolbar.X,OpenLayers.Control.MouseToolbar.Y);
if(a){this.position=a
}if(b){this.direction=b
}this.measureDivs=[]
},destroy:function(){for(var b in this.buttons){var a=this.buttons[b];
a.map=null;
a.events.destroy()
}OpenLayers.Control.MouseDefaults.prototype.destroy.apply(this,arguments)
},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);
OpenLayers.Control.MouseDefaults.prototype.draw.apply(this,arguments);
this.buttons={};
var b=new OpenLayers.Size(28,28);
var a=new OpenLayers.Pixel(OpenLayers.Control.MouseToolbar.X,0);
this._addButton("zoombox","drag-rectangle-off.png","drag-rectangle-on.png",a,b,"Shift->Drag to zoom to area");
a=a.add((this.direction=="vertical"?0:b.w),(this.direction=="vertical"?b.h:0));
this._addButton("pan","panning-hand-off.png","panning-hand-on.png",a,b,"Drag the map to pan.");
a=a.add((this.direction=="vertical"?0:b.w),(this.direction=="vertical"?b.h:0));
this.switchModeTo("pan");
return this.div
},_addButton:function(i,d,c,h,f,g){var e=OpenLayers.Util.getImagesLocation()+d;
var b=OpenLayers.Util.getImagesLocation()+c;
var a=OpenLayers.Util.createAlphaImageDiv("OpenLayers_Control_MouseToolbar_"+i,h,f,e,"absolute");
this.div.appendChild(a);
a.imgLocation=e;
a.activeImgLocation=b;
a.events=new OpenLayers.Events(this,a,null,true);
a.events.on({mousedown:this.buttonDown,mouseup:this.buttonUp,dblclick:OpenLayers.Event.stop,scope:this});
a.action=i;
a.title=g;
a.alt=g;
a.map=this.map;
this.buttons[i]=a;
return a
},buttonDown:function(a){if(!OpenLayers.Event.isLeftClick(a)){return
}this.buttonClicked=a.element.action;
OpenLayers.Event.stop(a)
},buttonUp:function(a){if(!OpenLayers.Event.isLeftClick(a)){return
}if(this.buttonClicked!=null){if(this.buttonClicked==a.element.action){this.switchModeTo(a.element.action)
}OpenLayers.Event.stop(a);
this.buttonClicked=null
}},defaultDblClick:function(b){this.switchModeTo("pan");
this.performedDrag=false;
var a=this.map.getLonLatFromViewPortPx(b.xy);
this.map.setCenter(a,this.map.zoom+1);
OpenLayers.Event.stop(b);
return false
},defaultMouseDown:function(b){if(!OpenLayers.Event.isLeftClick(b)){return
}this.mouseDragStart=b.xy.clone();
this.performedDrag=false;
this.startViaKeyboard=false;
if(b.shiftKey&&this.mode!="zoombox"){this.switchModeTo("zoombox");
this.startViaKeyboard=true
}else{if(b.altKey&&this.mode!="measure"){this.switchModeTo("measure")
}else{if(!this.mode){this.switchModeTo("pan")
}}}switch(this.mode){case"zoombox":this.map.div.style.cursor="crosshair";
this.zoomBox=OpenLayers.Util.createDiv("zoomBox",this.mouseDragStart,null,null,"absolute","2px solid red");
this.zoomBox.style.backgroundColor="white";
this.zoomBox.style.filter="alpha(opacity=50)";
this.zoomBox.style.opacity="0.50";
this.zoomBox.style.fontSize="1px";
this.zoomBox.style.zIndex=this.map.Z_INDEX_BASE.Popup-1;
this.map.viewPortDiv.appendChild(this.zoomBox);
this.performedDrag=true;
break;
case"measure":var a="";
if(this.measureStart){var c=this.map.getLonLatFromViewPortPx(this.mouseDragStart);
a=OpenLayers.Util.distVincenty(this.measureStart,c);
a=Math.round(a*100)/100;
a=a+"km";
this.measureStartBox=this.measureBox
}this.measureStart=this.map.getLonLatFromViewPortPx(this.mouseDragStart);
this.measureBox=OpenLayers.Util.createDiv(null,this.mouseDragStart.add(-2-parseInt(this.map.layerContainerDiv.style.left),-2-parseInt(this.map.layerContainerDiv.style.top)),null,null,"absolute");
this.measureBox.style.width="4px";
this.measureBox.style.height="4px";
this.measureBox.style.fontSize="1px";
this.measureBox.style.backgroundColor="red";
this.measureBox.style.zIndex=this.map.Z_INDEX_BASE.Popup-1;
this.map.layerContainerDiv.appendChild(this.measureBox);
if(a){this.measureBoxDistance=OpenLayers.Util.createDiv(null,this.mouseDragStart.add(-2-parseInt(this.map.layerContainerDiv.style.left),2-parseInt(this.map.layerContainerDiv.style.top)),null,null,"absolute");
this.measureBoxDistance.innerHTML=a;
this.measureBoxDistance.style.zIndex=this.map.Z_INDEX_BASE.Popup-1;
this.map.layerContainerDiv.appendChild(this.measureBoxDistance);
this.measureDivs.push(this.measureBoxDistance)
}this.measureBox.style.zIndex=this.map.Z_INDEX_BASE.Popup-1;
this.map.layerContainerDiv.appendChild(this.measureBox);
this.measureDivs.push(this.measureBox);
break;
default:this.map.div.style.cursor="move";
break
}document.onselectstart=OpenLayers.Function.False;
OpenLayers.Event.stop(b)
},switchModeTo:function(a){if(a!=this.mode){if(this.mode&&this.buttons[this.mode]){OpenLayers.Util.modifyAlphaImageDiv(this.buttons[this.mode],null,null,null,this.buttons[this.mode].imgLocation)
}if(this.mode=="measure"&&a!="measure"){for(var c=0,b=this.measureDivs.length;
c<b;
c++){if(this.measureDivs[c]){this.map.layerContainerDiv.removeChild(this.measureDivs[c])
}}this.measureDivs=[];
this.measureStart=null
}this.mode=a;
if(this.buttons[a]){OpenLayers.Util.modifyAlphaImageDiv(this.buttons[a],null,null,null,this.buttons[a].activeImgLocation)
}switch(this.mode){case"zoombox":this.map.div.style.cursor="crosshair";
break;
default:this.map.div.style.cursor="";
break
}}},leaveMode:function(){this.switchModeTo("pan")
},defaultMouseMove:function(c){if(this.mouseDragStart!=null){switch(this.mode){case"zoombox":var b=Math.abs(this.mouseDragStart.x-c.xy.x);
var f=Math.abs(this.mouseDragStart.y-c.xy.y);
this.zoomBox.style.width=Math.max(1,b)+"px";
this.zoomBox.style.height=Math.max(1,f)+"px";
if(c.xy.x<this.mouseDragStart.x){this.zoomBox.style.left=c.xy.x+"px"
}if(c.xy.y<this.mouseDragStart.y){this.zoomBox.style.top=c.xy.y+"px"
}break;
default:var b=this.mouseDragStart.x-c.xy.x;
var f=this.mouseDragStart.y-c.xy.y;
var d=this.map.getSize();
var e=new OpenLayers.Pixel(d.w/2+b,d.h/2+f);
var a=this.map.getLonLatFromViewPortPx(e);
this.map.setCenter(a,null,true);
this.mouseDragStart=c.xy.clone()
}this.performedDrag=true
}},defaultMouseUp:function(a){if(!OpenLayers.Event.isLeftClick(a)){return
}switch(this.mode){case"zoombox":this.zoomBoxEnd(a);
if(this.startViaKeyboard){this.leaveMode()
}break;
case"pan":if(this.performedDrag){this.map.setCenter(this.map.center)
}}document.onselectstart=null;
this.mouseDragStart=null;
this.map.div.style.cursor="default"
},defaultMouseOut:function(a){if(this.mouseDragStart!=null&&OpenLayers.Util.mouseLeft(a,this.map.div)){if(this.zoomBox){this.removeZoomBox();
if(this.startViaKeyboard){this.leaveMode()
}}this.mouseDragStart=null;
this.map.div.style.cursor="default"
}},defaultClick:function(a){if(this.performedDrag){this.performedDrag=false;
return false
}},CLASS_NAME:"OpenLayers.Control.MouseToolbar"});
OpenLayers.Control.MouseToolbar.X=6;
OpenLayers.Control.MouseToolbar.Y=300;
OpenLayers.Control.NavigationHistory=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_TOGGLE,previous:null,previousOptions:null,next:null,nextOptions:null,limit:50,autoActivate:true,clearOnDeactivate:false,registry:null,nextStack:null,previousStack:null,listeners:null,restoring:false,initialize:function(b){OpenLayers.Control.prototype.initialize.apply(this,[b]);
this.registry=OpenLayers.Util.extend({moveend:this.getState},this.registry);
var c={trigger:OpenLayers.Function.bind(this.previousTrigger,this),displayClass:this.displayClass+" "+this.displayClass+"Previous"};
OpenLayers.Util.extend(c,this.previousOptions);
this.previous=new OpenLayers.Control.Button(c);
var a={trigger:OpenLayers.Function.bind(this.nextTrigger,this),displayClass:this.displayClass+" "+this.displayClass+"Next"};
OpenLayers.Util.extend(a,this.nextOptions);
this.next=new OpenLayers.Control.Button(a);
this.clear()
},onPreviousChange:function(b,a){if(b&&!this.previous.active){this.previous.activate()
}else{if(!b&&this.previous.active){this.previous.deactivate()
}}},onNextChange:function(b,a){if(b&&!this.next.active){this.next.activate()
}else{if(!b&&this.next.active){this.next.deactivate()
}}},destroy:function(){OpenLayers.Control.prototype.destroy.apply(this);
this.previous.destroy();
this.next.destroy();
this.deactivate();
for(var a in this){this[a]=null
}},setMap:function(a){this.map=a;
this.next.setMap(a);
this.previous.setMap(a)
},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);
this.next.draw();
this.previous.draw()
},previousTrigger:function(){var b=this.previousStack.shift();
var a=this.previousStack.shift();
if(a!=undefined){this.nextStack.unshift(b);
this.previousStack.unshift(a);
this.restoring=true;
this.restore(a);
this.restoring=false;
this.onNextChange(this.nextStack[0],this.nextStack.length);
this.onPreviousChange(this.previousStack[1],this.previousStack.length-1)
}else{this.previousStack.unshift(b)
}return a
},nextTrigger:function(){var a=this.nextStack.shift();
if(a!=undefined){this.previousStack.unshift(a);
this.restoring=true;
this.restore(a);
this.restoring=false;
this.onNextChange(this.nextStack[0],this.nextStack.length);
this.onPreviousChange(this.previousStack[1],this.previousStack.length-1)
}return a
},clear:function(){this.previousStack=[];
this.previous.deactivate();
this.nextStack=[];
this.next.deactivate()
},getState:function(){return{center:this.map.getCenter(),resolution:this.map.getResolution()}
},restore:function(b){var a=this.map.getZoomForResolution(b.resolution);
this.map.setCenter(b.center,a)
},setListeners:function(){this.listeners={};
for(var a in this.registry){this.listeners[a]=OpenLayers.Function.bind(function(){if(!this.restoring){var b=this.registry[a].apply(this,arguments);
this.previousStack.unshift(b);
if(this.previousStack.length>1){this.onPreviousChange(this.previousStack[1],this.previousStack.length-1)
}if(this.previousStack.length>(this.limit+1)){this.previousStack.pop()
}if(this.nextStack.length>0){this.nextStack=[];
this.onNextChange(null,0)
}}return true
},this)
}},activate:function(){var a=false;
if(this.map){if(OpenLayers.Control.prototype.activate.apply(this)){if(this.listeners==null){this.setListeners()
}for(var b in this.listeners){this.map.events.register(b,this,this.listeners[b])
}a=true;
if(this.previousStack.length==0){this.initStack()
}}}return a
},initStack:function(){if(this.map.getCenter()){this.listeners.moveend()
}},deactivate:function(){var b=false;
if(this.map){if(OpenLayers.Control.prototype.deactivate.apply(this)){for(var a in this.listeners){this.map.events.unregister(a,this,this.listeners[a])
}if(this.clearOnDeactivate){this.clear()
}b=true
}}return b
},CLASS_NAME:"OpenLayers.Control.NavigationHistory"});
OpenLayers.Control.PanPanel=OpenLayers.Class(OpenLayers.Control.Panel,{slideFactor:50,initialize:function(a){OpenLayers.Control.Panel.prototype.initialize.apply(this,[a]);
this.addControls([new OpenLayers.Control.Pan(OpenLayers.Control.Pan.NORTH,{slideFactor:this.slideFactor}),new OpenLayers.Control.Pan(OpenLayers.Control.Pan.SOUTH,{slideFactor:this.slideFactor}),new OpenLayers.Control.Pan(OpenLayers.Control.Pan.EAST,{slideFactor:this.slideFactor}),new OpenLayers.Control.Pan(OpenLayers.Control.Pan.WEST,{slideFactor:this.slideFactor})])
},CLASS_NAME:"OpenLayers.Control.PanPanel"});
OpenLayers.Control.PanZoomBar=OpenLayers.Class(OpenLayers.Control.PanZoom,{zoomStopWidth:18,zoomStopHeight:11,slider:null,sliderEvents:null,zoombarDiv:null,divEvents:null,zoomWorldIcon:false,forceFixedZoomLevel:false,mouseDragStart:null,zoomStart:null,initialize:function(){OpenLayers.Control.PanZoom.prototype.initialize.apply(this,arguments)
},destroy:function(){this._removeZoomBar();
this.map.events.un({changebaselayer:this.redraw,scope:this});
OpenLayers.Control.PanZoom.prototype.destroy.apply(this,arguments);
delete this.mouseDragStart;
delete this.zoomStart
},setMap:function(a){OpenLayers.Control.PanZoom.prototype.setMap.apply(this,arguments);
this.map.events.register("changebaselayer",this,this.redraw)
},redraw:function(){if(this.div!=null){this.removeButtons();
this._removeZoomBar()
}this.draw()
},draw:function(d){OpenLayers.Control.prototype.draw.apply(this,arguments);
d=this.position.clone();
this.buttons=[];
var b=new OpenLayers.Size(18,18);
var c=new OpenLayers.Pixel(d.x+b.w/2,d.y);
var a=b.w;
if(this.zoomWorldIcon){c=new OpenLayers.Pixel(d.x+b.w,d.y)
}this._addButton("panup","north-mini.png",c,b);
d.y=c.y+b.h;
this._addButton("panleft","west-mini.png",d,b);
if(this.zoomWorldIcon){this._addButton("zoomworld","zoom-world-mini.png",d.add(b.w,0),b);
a*=2
}this._addButton("panright","east-mini.png",d.add(a,0),b);
this._addButton("pandown","south-mini.png",c.add(0,b.h*2),b);
this._addButton("zoomin","zoom-plus-mini.png",c.add(0,b.h*3+5),b);
c=this._addZoomBar(c.add(0,b.h*4+5));
this._addButton("zoomout","zoom-minus-mini.png",c,b);
return this.div
},_addZoomBar:function(e){var b=OpenLayers.Util.getImagesLocation();
var d=this.id+"_"+this.map.id;
var f=this.map.getNumZoomLevels()-1-this.map.getZoom();
var g=OpenLayers.Util.createAlphaImageDiv(d,e.add(-1,f*this.zoomStopHeight),new OpenLayers.Size(20,9),b+"slider.png","absolute");
this.slider=g;
this.sliderEvents=new OpenLayers.Events(this,g,null,true,{includeXY:true});
this.sliderEvents.on({mousedown:this.zoomBarDown,mousemove:this.zoomBarDrag,mouseup:this.zoomBarUp,dblclick:this.doubleClick,click:this.doubleClick});
var a=new OpenLayers.Size();
a.h=this.zoomStopHeight*this.map.getNumZoomLevels();
a.w=this.zoomStopWidth;
var c=null;
if(OpenLayers.Util.alphaHack()){var d=this.id+"_"+this.map.id;
c=OpenLayers.Util.createAlphaImageDiv(d,e,new OpenLayers.Size(a.w,this.zoomStopHeight),b+"zoombar.png","absolute",null,"crop");
c.style.height=a.h+"px"
}else{c=OpenLayers.Util.createDiv("OpenLayers_Control_PanZoomBar_Zoombar"+this.map.id,e,a,b+"zoombar.png")
}this.zoombarDiv=c;
this.divEvents=new OpenLayers.Events(this,c,null,true,{includeXY:true});
this.divEvents.on({mousedown:this.divClick,mousemove:this.passEventToSlider,dblclick:this.doubleClick,click:this.doubleClick});
this.div.appendChild(c);
this.startTop=parseInt(c.style.top);
this.div.appendChild(g);
this.map.events.register("zoomend",this,this.moveZoomBar);
e=e.add(0,this.zoomStopHeight*this.map.getNumZoomLevels());
return e
},_removeZoomBar:function(){this.sliderEvents.un({mousedown:this.zoomBarDown,mousemove:this.zoomBarDrag,mouseup:this.zoomBarUp,dblclick:this.doubleClick,click:this.doubleClick});
this.sliderEvents.destroy();
this.divEvents.un({mousedown:this.divClick,mousemove:this.passEventToSlider,dblclick:this.doubleClick,click:this.doubleClick});
this.divEvents.destroy();
this.div.removeChild(this.zoombarDiv);
this.zoombarDiv=null;
this.div.removeChild(this.slider);
this.slider=null;
this.map.events.unregister("zoomend",this,this.moveZoomBar)
},passEventToSlider:function(a){this.sliderEvents.handleBrowserEvent(a)
},divClick:function(d){if(!OpenLayers.Event.isLeftClick(d)){return
}var c=d.xy.y;
var b=OpenLayers.Util.pagePosition(d.object)[1];
var a=(c-b)/this.zoomStopHeight;
if(this.forceFixedZoomLevel||!this.map.fractionalZoom){a=Math.floor(a)
}var e=(this.map.getNumZoomLevels()-1)-a;
e=Math.min(Math.max(e,0),this.map.getNumZoomLevels()-1);
this.map.zoomTo(e);
OpenLayers.Event.stop(d)
},zoomBarDown:function(a){if(!OpenLayers.Event.isLeftClick(a)){return
}this.map.events.on({mousemove:this.passEventToSlider,mouseup:this.passEventToSlider,scope:this});
this.mouseDragStart=a.xy.clone();
this.zoomStart=a.xy.clone();
this.div.style.cursor="move";
this.zoombarDiv.offsets=null;
OpenLayers.Event.stop(a)
},zoomBarDrag:function(d){if(this.mouseDragStart!=null){var c=this.mouseDragStart.y-d.xy.y;
var b=OpenLayers.Util.pagePosition(this.zoombarDiv);
if((d.clientY-b[1])>0&&(d.clientY-b[1])<parseInt(this.zoombarDiv.style.height)-2){var a=parseInt(this.slider.style.top)-c;
this.slider.style.top=a+"px";
this.mouseDragStart=d.xy.clone()
}OpenLayers.Event.stop(d)
}},zoomBarUp:function(c){if(!OpenLayers.Event.isLeftClick(c)){return
}if(this.mouseDragStart){this.div.style.cursor="";
this.map.events.un({mouseup:this.passEventToSlider,mousemove:this.passEventToSlider,scope:this});
var b=this.zoomStart.y-c.xy.y;
var a=this.map.zoom;
if(!this.forceFixedZoomLevel&&this.map.fractionalZoom){a+=b/this.zoomStopHeight;
a=Math.min(Math.max(a,0),this.map.getNumZoomLevels()-1)
}else{a+=Math.round(b/this.zoomStopHeight)
}this.map.zoomTo(a);
this.mouseDragStart=null;
this.zoomStart=null;
OpenLayers.Event.stop(c)
}},moveZoomBar:function(){var a=((this.map.getNumZoomLevels()-1)-this.map.getZoom())*this.zoomStopHeight+this.startTop+1;
this.slider.style.top=a+"px"
},CLASS_NAME:"OpenLayers.Control.PanZoomBar"});
OpenLayers.Control.Permalink=OpenLayers.Class(OpenLayers.Control,{argParserClass:OpenLayers.Control.ArgParser,element:null,base:"",displayProjection:null,initialize:function(c,a,b){OpenLayers.Control.prototype.initialize.apply(this,[b]);
this.element=OpenLayers.Util.getElement(c);
this.base=a||document.location.href
},destroy:function(){if(this.element.parentNode==this.div){this.div.removeChild(this.element)
}this.element=null;
this.map.events.unregister("moveend",this,this.updateLink);
OpenLayers.Control.prototype.destroy.apply(this,arguments)
},setMap:function(b){OpenLayers.Control.prototype.setMap.apply(this,arguments);
for(var d=0,c=this.map.controls.length;
d<c;
d++){var a=this.map.controls[d];
if(a.CLASS_NAME==this.argParserClass.CLASS_NAME){if(a.displayProjection!=this.displayProjection){this.displayProjection=a.displayProjection
}break
}}if(d==this.map.controls.length){this.map.addControl(new this.argParserClass({displayProjection:this.displayProjection}))
}},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);
if(!this.element){this.div.className=this.displayClass;
this.element=document.createElement("a");
this.element.innerHTML=OpenLayers.i18n("permalink");
this.element.href="";
this.div.appendChild(this.element)
}this.map.events.on({moveend:this.updateLink,changelayer:this.updateLink,changebaselayer:this.updateLink,scope:this});
this.updateLink();
return this.div
},updateLink:function(){var a=this.base;
if(a.indexOf("?")!=-1){a=a.substring(0,a.indexOf("?"))
}a+="?"+OpenLayers.Util.getParameterString(this.createParams());
this.element.href=a
},createParams:function(h,g,b){h=h||this.map.getCenter();
var a=OpenLayers.Util.getParameters(this.base);
if(h){a.zoom=g||this.map.getZoom();
var f=h.lat;
var j=h.lon;
if(this.displayProjection){var k=OpenLayers.Projection.transform({x:j,y:f},this.map.getProjectionObject(),this.displayProjection);
j=k.x;
f=k.y
}a.lat=Math.round(f*100000)/100000;
a.lon=Math.round(j*100000)/100000;
b=b||this.map.layers;
a.layers="";
for(var c=0,e=b.length;
c<e;
c++){var d=b[c];
if(d.isBaseLayer){a.layers+=(d==this.map.baseLayer)?"B":"0"
}else{a.layers+=(d.getVisibility())?"T":"F"
}}}return a
},CLASS_NAME:"OpenLayers.Control.Permalink"});
OpenLayers.Control.ZoomPanel=OpenLayers.Class(OpenLayers.Control.Panel,{initialize:function(a){OpenLayers.Control.Panel.prototype.initialize.apply(this,[a]);
this.addControls([new OpenLayers.Control.ZoomIn(),new OpenLayers.Control.ZoomToMaxExtent(),new OpenLayers.Control.ZoomOut()])
},CLASS_NAME:"OpenLayers.Control.ZoomPanel"});
OpenLayers.Format.CSWGetDomain=function(b){b=OpenLayers.Util.applyDefaults(b,OpenLayers.Format.CSWGetDomain.DEFAULTS);
var a=OpenLayers.Format.CSWGetDomain["v"+b.version.replace(/\./g,"_")];
if(!a){throw"Unsupported CSWGetDomain version: "+b.version
}return new a(b)
};
OpenLayers.Format.CSWGetDomain.DEFAULTS={version:"2.0.2"};
OpenLayers.Format.CSWGetRecords=function(b){b=OpenLayers.Util.applyDefaults(b,OpenLayers.Format.CSWGetRecords.DEFAULTS);
var a=OpenLayers.Format.CSWGetRecords["v"+b.version.replace(/\./g,"_")];
if(!a){throw"Unsupported CSWGetRecords version: "+b.version
}return new a(b)
};
OpenLayers.Format.CSWGetRecords.DEFAULTS={version:"2.0.2"};
OpenLayers.Format.JSON=OpenLayers.Class(OpenLayers.Format,{indent:"    ",space:" ",newline:"\n",level:0,pretty:false,initialize:function(a){OpenLayers.Format.prototype.initialize.apply(this,[a])
},read:function(json,filter){try{if(/^[\],:{}\s]*$/.test(json.replace(/\\["\\\/bfnrtu]/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){var object=eval("("+json+")");
if(typeof filter==="function"){function walk(k,v){if(v&&typeof v==="object"){for(var i in v){if(v.hasOwnProperty(i)){v[i]=walk(i,v[i])
}}}return filter(k,v)
}object=walk("",object)
}if(this.keepData){this.data=object
}return object
}}catch(e){}return null
},write:function(c,a){this.pretty=!!a;
var d=null;
var e=typeof c;
if(this.serialize[e]){try{d=this.serialize[e].apply(this,[c])
}catch(b){OpenLayers.Console.error("Trouble serializing: "+b)
}}return d
},writeIndent:function(){var b=[];
if(this.pretty){for(var a=0;
a<this.level;
++a){b.push(this.indent)
}}return b.join("")
},writeNewline:function(){return(this.pretty)?this.newline:""
},writeSpace:function(){return(this.pretty)?this.space:""
},serialize:{object:function(a){if(a==null){return"null"
}if(a.constructor==Date){return this.serialize.date.apply(this,[a])
}if(a.constructor==Array){return this.serialize.array.apply(this,[a])
}var d=["{"];
this.level+=1;
var b,f,c;
var e=false;
for(b in a){if(a.hasOwnProperty(b)){f=OpenLayers.Format.JSON.prototype.write.apply(this,[b,this.pretty]);
c=OpenLayers.Format.JSON.prototype.write.apply(this,[a[b],this.pretty]);
if(f!=null&&c!=null){if(e){d.push(",")
}d.push(this.writeNewline(),this.writeIndent(),f,":",this.writeSpace(),c);
e=true
}}}this.level-=1;
d.push(this.writeNewline(),this.writeIndent(),"}");
return d.join("")
},array:function(c){var a;
var b=["["];
this.level+=1;
for(var e=0,d=c.length;
e<d;
++e){a=OpenLayers.Format.JSON.prototype.write.apply(this,[c[e],this.pretty]);
if(a!=null){if(e>0){b.push(",")
}b.push(this.writeNewline(),this.writeIndent(),a)
}}this.level-=1;
b.push(this.writeNewline(),this.writeIndent(),"]");
return b.join("")
},string:function(b){var a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};
if(/["\\\x00-\x1f]/.test(b)){return'"'+b.replace(/([\x00-\x1f\\"])/g,function(c,e){var d=a[e];
if(d){return d
}d=e.charCodeAt();
return"\\u00"+Math.floor(d/16).toString(16)+(d%16).toString(16)
})+'"'
}return'"'+b+'"'
},number:function(a){return isFinite(a)?String(a):"null"
},"boolean":function(a){return String(a)
},date:function(a){function b(c){return(c<10)?"0"+c:c
}return'"'+a.getFullYear()+"-"+b(a.getMonth()+1)+"-"+b(a.getDate())+"T"+b(a.getHours())+":"+b(a.getMinutes())+":"+b(a.getSeconds())+'"'
}},CLASS_NAME:"OpenLayers.Format.JSON"});
OpenLayers.Format.WFST=function(b){b=OpenLayers.Util.applyDefaults(b,OpenLayers.Format.WFST.DEFAULTS);
var a=OpenLayers.Format.WFST["v"+b.version.replace(/\./g,"_")];
if(!a){throw"Unsupported WFST version: "+b.version
}return new a(b)
};
OpenLayers.Format.WFST.DEFAULTS={version:"1.0.0"};
OpenLayers.Format.XML=OpenLayers.Class(OpenLayers.Format,{namespaces:null,namespaceAlias:null,defaultPrefix:null,readers:{},writers:{},xmldom:null,initialize:function(a){if(window.ActiveXObject){this.xmldom=new ActiveXObject("Microsoft.XMLDOM")
}OpenLayers.Format.prototype.initialize.apply(this,[a]);
this.namespaces=OpenLayers.Util.extend({},this.namespaces);
this.namespaceAlias={};
for(var b in this.namespaces){this.namespaceAlias[this.namespaces[b]]=b
}},destroy:function(){this.xmldom=null;
OpenLayers.Format.prototype.destroy.apply(this,arguments)
},setNamespace:function(a,b){this.namespaces[a]=b;
this.namespaceAlias[b]=a
},read:function(a){var b=a.indexOf("<");
if(b>0){a=a.substring(b)
}var c=OpenLayers.Util.Try(OpenLayers.Function.bind((function(){var d;
if(window.ActiveXObject&&!this.xmldom){d=new ActiveXObject("Microsoft.XMLDOM")
}else{d=this.xmldom
}d.loadXML(a);
return d
}),this),function(){return new DOMParser().parseFromString(a,"text/xml")
},function(){var d=new XMLHttpRequest();
d.open("GET","data:text/xml;charset=utf-8,"+encodeURIComponent(a),false);
if(d.overrideMimeType){d.overrideMimeType("text/xml")
}d.send(null);
return d.responseXML
});
if(this.keepData){this.data=c
}return c
},write:function(d){var a;
if(this.xmldom){a=d.xml
}else{var c=new XMLSerializer();
if(d.nodeType==1){var b=document.implementation.createDocument("","",null);
if(b.importNode){d=b.importNode(d,true)
}b.appendChild(d);
a=c.serializeToString(b)
}else{a=c.serializeToString(d)
}}return a
},createElementNS:function(a,b){var c;
if(this.xmldom){if(typeof a=="string"){c=this.xmldom.createNode(1,b,a)
}else{c=this.xmldom.createNode(1,b,"")
}}else{c=document.createElementNS(a,b)
}return c
},createTextNode:function(b){var a;
if(this.xmldom){a=this.xmldom.createTextNode(b)
}else{a=document.createTextNode(b)
}return a
},getElementsByTagNameNS:function(d,c,b){var j=[];
if(d.getElementsByTagNameNS){j=d.getElementsByTagNameNS(c,b)
}else{var a=d.getElementsByTagName("*");
var h,e;
for(var f=0,g=a.length;
f<g;
++f){h=a[f];
e=(h.prefix)?(h.prefix+":"+b):b;
if((b=="*")||(e==h.nodeName)){if((c=="*")||(c==h.namespaceURI)){j.push(h)
}}}}return j
},getAttributeNodeNS:function(b,a,j){var h=null;
if(b.getAttributeNodeNS){h=b.getAttributeNodeNS(a,j)
}else{var d=b.attributes;
var g,c;
for(var e=0,f=d.length;
e<f;
++e){g=d[e];
if(g.namespaceURI==a){c=(g.prefix)?(g.prefix+":"+j):j;
if(c==g.nodeName){h=g;
break
}}}}return h
},getAttributeNS:function(c,b,d){var e="";
if(c.getAttributeNS){e=c.getAttributeNS(b,d)||""
}else{var a=this.getAttributeNodeNS(c,b,d);
if(a){e=a.nodeValue
}}return e
},getChildValue:function(c,a){var d=a||"";
if(c){for(var b=c.firstChild;
b;
b=b.nextSibling){switch(b.nodeType){case 3:case 4:d+=b.nodeValue
}}}return d
},concatChildValues:function(e,b){var a="";
var c=e.firstChild;
var d;
while(c){d=c.nodeValue;
if(d){a+=d
}c=c.nextSibling
}if(a==""&&b!=undefined){a=b
}return a
},isSimpleContent:function(b){var a=true;
for(var c=b.firstChild;
c;
c=c.nextSibling){if(c.nodeType===1){a=false;
break
}}return a
},contentType:function(a){var c=false,e=false;
var d=OpenLayers.Format.XML.CONTENT_TYPE.EMPTY;
for(var b=a.firstChild;
b;
b=b.nextSibling){switch(b.nodeType){case 1:e=true;
break;
case 8:break;
default:c=true
}if(e&&c){break
}}if(e&&c){d=OpenLayers.Format.XML.CONTENT_TYPE.MIXED
}else{if(e){return OpenLayers.Format.XML.CONTENT_TYPE.COMPLEX
}else{if(c){return OpenLayers.Format.XML.CONTENT_TYPE.SIMPLE
}}}return d
},hasAttributeNS:function(a,d,c){var b=false;
if(a.hasAttributeNS){b=a.hasAttributeNS(d,c)
}else{b=!!this.getAttributeNodeNS(a,d,c)
}return b
},setAttributeNS:function(b,a,d,c){if(b.setAttributeNS){b.setAttributeNS(a,d,c)
}else{if(this.xmldom){if(a){var e=b.ownerDocument.createNode(2,d,a);
e.nodeValue=c;
b.setAttributeNode(e)
}else{b.setAttribute(d,c)
}}else{throw"setAttributeNS not implemented"
}}},createElementNSPlus:function(f,e){e=e||{};
var b=e.uri||this.namespaces[e.prefix];
if(!b){var d=f.indexOf(":");
b=this.namespaces[f.substring(0,d)]
}if(!b){b=this.namespaces[this.defaultPrefix]
}var a=this.createElementNS(b,f);
if(e.attributes){this.setAttributes(a,e.attributes)
}var c=e.value;
if(c!=null){if(typeof c=="boolean"){c=String(c)
}a.appendChild(this.createTextNode(c))
}return a
},setAttributes:function(a,c){var b,e;
for(var d in c){if(c[d]!=null&&c[d].toString){b=c[d].toString();
e=this.namespaces[d.substring(0,d.indexOf(":"))]||null;
this.setAttributeNS(a,e,d,b)
}}},readNode:function(a,c){if(!c){c={}
}var b=this.readers[a.namespaceURI?this.namespaceAlias[a.namespaceURI]:this.defaultPrefix];
if(b){var e=a.localName||a.nodeName.split(":").pop();
var d=b[e]||b["*"];
if(d){d.apply(this,[a,c])
}}return c
},readChildNodes:function(b,c){if(!c){c={}
}var a=b.childNodes;
var d;
for(var f=0,e=a.length;
f<e;
++f){d=a[f];
if(d.nodeType==1){this.readNode(d,c)
}}return c
},writeNode:function(e,c,a){var b,g;
var f=e.indexOf(":");
if(f>0){b=e.substring(0,f);
g=e.substring(f+1)
}else{if(a){b=this.namespaceAlias[a.namespaceURI]
}else{b=this.defaultPrefix
}g=e
}var d=this.writers[b][g].apply(this,[c]);
if(a){a.appendChild(d)
}return d
},getChildEl:function(a,b,c){return a&&this.getThisOrNextEl(a.firstChild,b,c)
},getNextEl:function(a,b,c){return a&&this.getThisOrNextEl(a.nextSibling,b,c)
},getThisOrNextEl:function(b,c,a){outer:for(var d=b;
d;
d=d.nextSibling){switch(d.nodeType){case 1:if((!c||c===(d.localName||d.nodeName.split(":").pop()))&&(!a||a===d.namespaceURI)){break outer
}d=null;
break outer;
case 3:if(/^\s*$/.test(d.nodeValue)){break
}case 4:case 6:case 12:case 10:case 11:d=null;
break outer
}}return d||null
},lookupNamespaceURI:function(c,d){var b=null;
if(c){if(c.lookupNamespaceURI){b=c.lookupNamespaceURI(d)
}else{outer:switch(c.nodeType){case 1:if(c.namespaceURI!==null&&c.prefix===d){b=c.namespaceURI;
break outer
}var f=c.attributes.length;
if(f){var e;
for(var a=0;
a<f;
++a){e=c.attributes[a];
if(e.prefix==="xmlns"&&e.name==="xmlns:"+d){b=e.value||null;
break outer
}else{if(e.name==="xmlns"&&d===null){b=e.value||null;
break outer
}}}}b=this.lookupNamespaceURI(c.parentNode,d);
break outer;
case 2:b=this.lookupNamespaceURI(c.ownerElement,d);
break outer;
case 9:b=this.lookupNamespaceURI(c.documentElement,d);
break outer;
case 6:case 12:case 10:case 11:break outer;
default:b=this.lookupNamespaceURI(c.parentNode,d);
break outer
}}}return b
},CLASS_NAME:"OpenLayers.Format.XML"});
OpenLayers.Format.XML.CONTENT_TYPE={EMPTY:0,SIMPLE:1,COMPLEX:2,MIXED:3};
OpenLayers.Format.XML.lookupNamespaceURI=OpenLayers.Function.bind(OpenLayers.Format.XML.prototype.lookupNamespaceURI,OpenLayers.Format.XML.prototype);
OpenLayers.Handler=OpenLayers.Class({id:null,control:null,map:null,keyMask:null,active:false,evt:null,initialize:function(a,c,b){OpenLayers.Util.extend(this,b);
this.control=a;
this.callbacks=c;
if(a.map){this.setMap(a.map)
}OpenLayers.Util.extend(this,b);
this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")
},setMap:function(a){this.map=a
},checkModifiers:function(a){if(this.keyMask==null){return true
}var b=(a.shiftKey?OpenLayers.Handler.MOD_SHIFT:0)|(a.ctrlKey?OpenLayers.Handler.MOD_CTRL:0)|(a.altKey?OpenLayers.Handler.MOD_ALT:0);
return(b==this.keyMask)
},activate:function(){if(this.active){return false
}var a=OpenLayers.Events.prototype.BROWSER_EVENTS;
for(var c=0,b=a.length;
c<b;
c++){if(this[a[c]]){this.register(a[c],this[a[c]])
}}this.active=true;
return true
},deactivate:function(){if(!this.active){return false
}var a=OpenLayers.Events.prototype.BROWSER_EVENTS;
for(var c=0,b=a.length;
c<b;
c++){if(this[a[c]]){this.unregister(a[c],this[a[c]])
}}this.active=false;
return true
},callback:function(b,a){if(b&&this.callbacks[b]){this.callbacks[b].apply(this.control,a)
}},register:function(a,b){this.map.events.registerPriority(a,this,b);
this.map.events.registerPriority(a,this,this.setEvent)
},unregister:function(a,b){this.map.events.unregister(a,this,b);
this.map.events.unregister(a,this,this.setEvent)
},setEvent:function(a){this.evt=a;
return true
},destroy:function(){this.deactivate();
this.control=this.map=null
},CLASS_NAME:"OpenLayers.Handler"});
OpenLayers.Handler.MOD_NONE=0;
OpenLayers.Handler.MOD_SHIFT=1;
OpenLayers.Handler.MOD_CTRL=2;
OpenLayers.Handler.MOD_ALT=4;
OpenLayers.Map=OpenLayers.Class({Z_INDEX_BASE:{BaseLayer:100,Overlay:325,Feature:725,Popup:750,Control:1000},EVENT_TYPES:["preaddlayer","addlayer","removelayer","changelayer","movestart","move","moveend","zoomend","popupopen","popupclose","addmarker","removemarker","clearmarkers","mouseover","mouseout","mousemove","dragstart","drag","dragend","changebaselayer"],id:null,fractionalZoom:false,events:null,allOverlays:false,div:null,dragging:false,size:null,viewPortDiv:null,layerContainerOrigin:null,layerContainerDiv:null,layers:null,controls:null,popups:null,baseLayer:null,center:null,resolution:null,zoom:0,panRatio:1.5,viewRequestID:0,tileSize:null,projection:"EPSG:4326",units:"degrees",resolutions:null,maxResolution:1.40625,minResolution:null,maxScale:null,minScale:null,maxExtent:null,minExtent:null,restrictedExtent:null,numZoomLevels:16,theme:null,displayProjection:null,fallThrough:true,panTween:null,eventListeners:null,panMethod:OpenLayers.Easing.Expo.easeOut,panDuration:50,paddingForPopups:null,initialize:function(c,g){if(arguments.length===1&&typeof c==="object"){g=c;
c=g&&g.div
}this.tileSize=new OpenLayers.Size(OpenLayers.Map.TILE_WIDTH,OpenLayers.Map.TILE_HEIGHT);
this.maxExtent=new OpenLayers.Bounds(-180,-90,180,90);
this.paddingForPopups=new OpenLayers.Bounds(15,15,15,15);
this.theme=OpenLayers._getScriptLocation()+"theme/default/style.css";
OpenLayers.Util.extend(this,g);
this.layers=[];
this.id=OpenLayers.Util.createUniqueID("OpenLayers.Map_");
this.div=OpenLayers.Util.getElement(c);
if(!this.div){this.div=document.createElement("div");
this.div.style.height="1px";
this.div.style.width="1px"
}OpenLayers.Element.addClass(this.div,"olMap");
var b=this.id+"_OpenLayers_ViewPort";
this.viewPortDiv=OpenLayers.Util.createDiv(b,null,null,null,"relative",null,"hidden");
this.viewPortDiv.style.width="100%";
this.viewPortDiv.style.height="100%";
this.viewPortDiv.className="olMapViewport";
this.div.appendChild(this.viewPortDiv);
b=this.id+"_OpenLayers_Container";
this.layerContainerDiv=OpenLayers.Util.createDiv(b);
this.layerContainerDiv.style.zIndex=this.Z_INDEX_BASE.Popup-1;
this.viewPortDiv.appendChild(this.layerContainerDiv);
this.events=new OpenLayers.Events(this,this.div,this.EVENT_TYPES,this.fallThrough,{includeXY:true});
this.updateSize();
if(this.eventListeners instanceof Object){this.events.on(this.eventListeners)
}this.events.register("movestart",this,this.updateSize);
if(OpenLayers.String.contains(navigator.appName,"Microsoft")){this.events.register("resize",this,this.updateSize)
}else{this.updateSizeDestroy=OpenLayers.Function.bind(this.updateSize,this);
OpenLayers.Event.observe(window,"resize",this.updateSizeDestroy)
}if(this.theme){var a=true;
var f=document.getElementsByTagName("link");
for(var h=0,d=f.length;
h<d;
++h){if(OpenLayers.Util.isEquivalentUrl(f.item(h).href,this.theme)){a=false;
break
}}if(a){var e=document.createElement("link");
e.setAttribute("rel","stylesheet");
e.setAttribute("type","text/css");
e.setAttribute("href",this.theme);
document.getElementsByTagName("head")[0].appendChild(e)
}}if(this.controls==null){if(OpenLayers.Control!=null){this.controls=[new OpenLayers.Control.Navigation(),new OpenLayers.Control.PanZoom(),new OpenLayers.Control.ArgParser(),new OpenLayers.Control.Attribution()]
}else{this.controls=[]
}}for(var h=0,d=this.controls.length;
h<d;
h++){this.addControlToMap(this.controls[h])
}this.popups=[];
this.unloadDestroy=OpenLayers.Function.bind(this.destroy,this);
OpenLayers.Event.observe(window,"unload",this.unloadDestroy);
if(g&&g.layers){this.addLayers(g.layers);
if(g.center){this.setCenter(g.center,g.zoom)
}}},render:function(a){this.div=OpenLayers.Util.getElement(a);
OpenLayers.Element.addClass(this.div,"olMap");
this.events.attachToElement(this.div);
this.viewPortDiv.parentNode.removeChild(this.viewPortDiv);
this.div.appendChild(this.viewPortDiv);
this.updateSize()
},unloadDestroy:null,updateSizeDestroy:null,destroy:function(){if(!this.unloadDestroy){return false
}if(this.panTween&&this.panTween.playing){this.panTween.stop()
}OpenLayers.Event.stopObserving(window,"unload",this.unloadDestroy);
this.unloadDestroy=null;
if(this.updateSizeDestroy){OpenLayers.Event.stopObserving(window,"resize",this.updateSizeDestroy)
}else{this.events.unregister("resize",this,this.updateSize)
}this.paddingForPopups=null;
if(this.controls!=null){for(var a=this.controls.length-1;
a>=0;
--a){this.controls[a].destroy()
}this.controls=null
}if(this.layers!=null){for(var a=this.layers.length-1;
a>=0;
--a){this.layers[a].destroy(false)
}this.layers=null
}if(this.viewPortDiv){this.div.removeChild(this.viewPortDiv)
}this.viewPortDiv=null;
if(this.eventListeners){this.events.un(this.eventListeners);
this.eventListeners=null
}this.events.destroy();
this.events=null
},setOptions:function(a){OpenLayers.Util.extend(this,a)
},getTileSize:function(){return this.tileSize
},getBy:function(c,a,d){var b=(typeof d.test=="function");
var e=OpenLayers.Array.filter(this[c],function(f){return f[a]==d||(b&&d.test(f[a]))
});
return e
},getLayersBy:function(b,a){return this.getBy("layers",b,a)
},getLayersByName:function(a){return this.getLayersBy("name",a)
},getLayersByClass:function(a){return this.getLayersBy("CLASS_NAME",a)
},getControlsBy:function(b,a){return this.getBy("controls",b,a)
},getControlsByClass:function(a){return this.getControlsBy("CLASS_NAME",a)
},getLayer:function(c){var e=null;
for(var b=0,d=this.layers.length;
b<d;
b++){var a=this.layers[b];
if(a.id==c){e=a;
break
}}return e
},setLayerZIndex:function(b,a){b.setZIndex(this.Z_INDEX_BASE[b.isBaseLayer?"BaseLayer":"Overlay"]+a*5)
},resetLayersZIndex:function(){for(var a=0,b=this.layers.length;
a<b;
a++){var c=this.layers[a];
this.setLayerZIndex(c,a)
}},addLayer:function(a){for(var d=0,c=this.layers.length;
d<c;
d++){if(this.layers[d]==a){var b=OpenLayers.i18n("layerAlreadyAdded",{layerName:a.name});
OpenLayers.Console.warn(b);
return false
}}if(this.allOverlays){a.isBaseLayer=false
}if(this.events.triggerEvent("preaddlayer",{layer:a})===false){return
}a.div.className="olLayerDiv";
a.div.style.overflow="";
this.setLayerZIndex(a,this.layers.length);
if(a.isFixed){this.viewPortDiv.appendChild(a.div)
}else{this.layerContainerDiv.appendChild(a.div)
}this.layers.push(a);
a.setMap(this);
if(a.isBaseLayer||(this.allOverlays&&!this.baseLayer)){if(this.baseLayer==null){this.setBaseLayer(a)
}else{a.setVisibility(false)
}}else{a.redraw()
}this.events.triggerEvent("addlayer",{layer:a});
a.afterAdd()
},addLayers:function(a){for(var c=0,b=a.length;
c<b;
c++){this.addLayer(a[c])
}},removeLayer:function(a,c){if(c==null){c=true
}if(a.isFixed){this.viewPortDiv.removeChild(a.div)
}else{this.layerContainerDiv.removeChild(a.div)
}OpenLayers.Util.removeItem(this.layers,a);
a.removeMap(this);
a.map=null;
if(this.baseLayer==a){this.baseLayer=null;
if(c){for(var e=0,d=this.layers.length;
e<d;
e++){var b=this.layers[e];
if(b.isBaseLayer||this.allOverlays){this.setBaseLayer(b);
break
}}}}this.resetLayersZIndex();
this.events.triggerEvent("removelayer",{layer:a})
},getNumLayers:function(){return this.layers.length
},getLayerIndex:function(a){return OpenLayers.Util.indexOf(this.layers,a)
},setLayerIndex:function(b,e){var c=this.getLayerIndex(b);
if(e<0){e=0
}else{if(e>this.layers.length){e=this.layers.length
}}if(c!=e){this.layers.splice(c,1);
this.layers.splice(e,0,b);
for(var a=0,d=this.layers.length;
a<d;
a++){this.setLayerZIndex(this.layers[a],a)
}this.events.triggerEvent("changelayer",{layer:b,property:"order"});
if(this.allOverlays){if(e===0){this.setBaseLayer(b)
}else{if(this.baseLayer!==this.layers[0]){this.setBaseLayer(this.layers[0])
}}}}},raiseLayer:function(c,a){var b=this.getLayerIndex(c)+a;
this.setLayerIndex(c,b)
},setBaseLayer:function(a){if(a!=this.baseLayer){if(OpenLayers.Util.indexOf(this.layers,a)!=-1){var c=this.getCenter();
var b=OpenLayers.Util.getResolutionFromScale(this.getScale(),a.units);
if(this.baseLayer!=null&&!this.allOverlays){this.baseLayer.setVisibility(false)
}this.baseLayer=a;
this.viewRequestID++;
if(!this.allOverlays||this.baseLayer.visibility){this.baseLayer.setVisibility(true)
}if(c!=null){var d=this.getZoomForResolution(b||this.resolution,true);
this.setCenter(c,d,false,true)
}this.events.triggerEvent("changebaselayer",{layer:this.baseLayer})
}}},addControl:function(b,a){this.controls.push(b);
this.addControlToMap(b,a)
},addControls:function(f,d){var b=(arguments.length===1)?[]:d;
for(var a=0,e=f.length;
a<e;
a++){var c=f[a];
var g=(b[a])?b[a]:null;
this.addControl(c,g)
}},addControlToMap:function(c,b){c.outsideViewport=(c.div!=null);
if(this.displayProjection&&!c.displayProjection){c.displayProjection=this.displayProjection
}c.setMap(this);
var a=c.draw(b);
if(a){if(!c.outsideViewport){a.style.zIndex=this.Z_INDEX_BASE.Control+this.controls.length;
this.viewPortDiv.appendChild(a)
}}if(c.autoActivate){c.activate()
}},getControl:function(c){var e=null;
for(var a=0,d=this.controls.length;
a<d;
a++){var b=this.controls[a];
if(b.id==c){e=b;
break
}}return e
},removeControl:function(a){if((a)&&(a==this.getControl(a.id))){if(a.div&&(a.div.parentNode==this.viewPortDiv)){this.viewPortDiv.removeChild(a.div)
}OpenLayers.Util.removeItem(this.controls,a)
}},addPopup:function(c,b){if(b){for(var d=this.popups.length-1;
d>=0;
--d){this.removePopup(this.popups[d])
}}c.map=this;
this.popups.push(c);
var a=c.draw();
if(a){a.style.zIndex=this.Z_INDEX_BASE.Popup+this.popups.length;
this.layerContainerDiv.appendChild(a)
}},removePopup:function(a){OpenLayers.Util.removeItem(this.popups,a);
if(a.div){try{this.layerContainerDiv.removeChild(a.div)
}catch(b){}}a.map=null
},getSize:function(){var a=null;
if(this.size!=null){a=this.size.clone()
}return a
},updateSize:function(){var a=this.getCurrentSize();
if(a&&!isNaN(a.h)&&!isNaN(a.w)){this.events.clearMouseCache();
var d=this.getSize();
if(d==null){this.size=d=a
}if(!a.equals(d)){this.size=a;
for(var b=0,f=this.layers.length;
b<f;
b++){this.layers[b].onMapResize()
}var e=this.getCenter();
if(this.baseLayer!=null&&e!=null){var c=this.getZoom();
this.zoom=null;
this.setCenter(e,c)
}}}},getCurrentSize:function(){var a=new OpenLayers.Size(this.div.clientWidth,this.div.clientHeight);
if(a.w==0&&a.h==0||isNaN(a.w)&&isNaN(a.h)){a.w=this.div.offsetWidth;
a.h=this.div.offsetHeight
}if(a.w==0&&a.h==0||isNaN(a.w)&&isNaN(a.h)){a.w=parseInt(this.div.style.width);
a.h=parseInt(this.div.style.height)
}return a
},calculateBounds:function(e,f){var c=null;
if(e==null){e=this.getCenter()
}if(f==null){f=this.getResolution()
}if((e!=null)&&(f!=null)){var b=this.getSize();
var d=b.w*f;
var a=b.h*f;
c=new OpenLayers.Bounds(e.lon-d/2,e.lat-a/2,e.lon+d/2,e.lat+a/2)
}return c
},getCenter:function(){var a=null;
if(this.center){a=this.center.clone()
}return a
},getZoom:function(){return this.zoom
},pan:function(b,a,c){c=OpenLayers.Util.applyDefaults(c,{animate:true,dragging:false});
var d=this.getViewPortPxFromLonLat(this.getCenter());
var f=d.add(b,a);
if(!c.dragging||!f.equals(d)){var e=this.getLonLatFromViewPortPx(f);
if(c.animate){this.panTo(e)
}else{this.setCenter(e,null,c.dragging)
}}},panTo:function(d){if(this.panMethod&&this.getExtent().scale(this.panRatio).containsLonLat(d)){if(!this.panTween){this.panTween=new OpenLayers.Tween(this.panMethod)
}var c=this.getCenter();
if(d.lon==c.lon&&d.lat==c.lat){return
}var b={lon:c.lon,lat:c.lat};
var a={lon:d.lon,lat:d.lat};
this.panTween.start(b,a,this.panDuration,{callbacks:{start:OpenLayers.Function.bind(function(e){this.events.triggerEvent("movestart")
},this),eachStep:OpenLayers.Function.bind(function(e){e=new OpenLayers.LonLat(e.lon,e.lat);
this.moveTo(e,this.zoom,{dragging:true,noEvent:true})
},this),done:OpenLayers.Function.bind(function(e){e=new OpenLayers.LonLat(e.lon,e.lat);
this.moveTo(e,this.zoom,{noEvent:true});
this.events.triggerEvent("moveend")
},this)}})
}else{this.setCenter(d)
}},setCenter:function(a,c,d,b){this.moveTo(a,c,{dragging:d,forceZoomChange:b,caller:"setCenter"})
},moveTo:function(d,m,e){if(!e){e={}
}if(m!=null){m=parseFloat(m);
if(!this.fractionalZoom){m=Math.round(m)
}}var k=e.dragging;
var r=e.forceZoomChange;
var f=e.noEvent;
if(this.panTween&&e.caller=="setCenter"){this.panTween.stop()
}if(!this.center&&!this.isValidLonLat(d)){d=this.maxExtent.getCenterLonLat()
}if(this.restrictedExtent!=null){if(d==null){d=this.getCenter()
}if(m==null){m=this.getZoom()
}var a=this.getResolutionForZoom(m);
var p=this.calculateBounds(d,a);
if(!this.restrictedExtent.containsBounds(p)){var q=this.restrictedExtent.getCenterLonLat();
if(p.getWidth()>this.restrictedExtent.getWidth()){d=new OpenLayers.LonLat(q.lon,d.lat)
}else{if(p.left<this.restrictedExtent.left){d=d.add(this.restrictedExtent.left-p.left,0)
}else{if(p.right>this.restrictedExtent.right){d=d.add(this.restrictedExtent.right-p.right,0)
}}}if(p.getHeight()>this.restrictedExtent.getHeight()){d=new OpenLayers.LonLat(d.lon,q.lat)
}else{if(p.bottom<this.restrictedExtent.bottom){d=d.add(0,this.restrictedExtent.bottom-p.bottom)
}else{if(p.top>this.restrictedExtent.top){d=d.add(0,this.restrictedExtent.top-p.top)
}}}}}var o=r||((this.isValidZoomLevel(m))&&(m!=this.getZoom()));
var b=(this.isValidLonLat(d))&&(!d.equals(this.center));
if(o||b||!k){if(!this.dragging&&!f){this.events.triggerEvent("movestart")
}if(b){if((!o)&&(this.center)){this.centerLayerContainer(d)
}this.center=d.clone()
}if((o)||(this.layerContainerOrigin==null)){this.layerContainerOrigin=this.center.clone();
this.layerContainerDiv.style.left="0px";
this.layerContainerDiv.style.top="0px"
}if(o){this.zoom=m;
this.resolution=this.getResolutionForZoom(m);
this.viewRequestID++
}var l=this.getExtent();
if(this.baseLayer.visibility){this.baseLayer.moveTo(l,o,k);
if(k){this.baseLayer.events.triggerEvent("move")
}else{this.baseLayer.events.triggerEvent("moveend",{zoomChanged:o})
}}l=this.baseLayer.getExtent();
for(var c=0,h=this.layers.length;
c<h;
c++){var g=this.layers[c];
if(g!==this.baseLayer&&!g.isBaseLayer){var j=g.calculateInRange();
if(g.inRange!=j){g.inRange=j;
if(!j){g.display(false)
}this.events.triggerEvent("changelayer",{layer:g,property:"visibility"})
}if(j&&g.visibility){g.moveTo(l,o,k);
if(k){g.events.triggerEvent("move")
}else{g.events.triggerEvent("moveend",{zoomChanged:o})
}}}}if(o){for(var c=0,h=this.popups.length;
c<h;
c++){this.popups[c].updatePosition()
}}this.events.triggerEvent("move");
if(o){this.events.triggerEvent("zoomend")
}}if(!k&&!f){this.events.triggerEvent("moveend")
}this.dragging=!!k
},centerLayerContainer:function(c){var b=this.getViewPortPxFromLonLat(this.layerContainerOrigin);
var a=this.getViewPortPxFromLonLat(c);
if((b!=null)&&(a!=null)){this.layerContainerDiv.style.left=Math.round(b.x-a.x)+"px";
this.layerContainerDiv.style.top=Math.round(b.y-a.y)+"px"
}},isValidZoomLevel:function(a){return((a!=null)&&(a>=0)&&(a<this.getNumZoomLevels()))
},isValidLonLat:function(a){var c=false;
if(a!=null){var b=this.getMaxExtent();
c=b.containsLonLat(a)
}return c
},getProjection:function(){var a=this.getProjectionObject();
return a?a.getCode():null
},getProjectionObject:function(){var a=null;
if(this.baseLayer!=null){a=this.baseLayer.projection
}return a
},getMaxResolution:function(){var a=null;
if(this.baseLayer!=null){a=this.baseLayer.maxResolution
}return a
},getMaxExtent:function(b){var a=null;
if(b&&b.restricted&&this.restrictedExtent){a=this.restrictedExtent
}else{if(this.baseLayer!=null){a=this.baseLayer.maxExtent
}}return a
},getNumZoomLevels:function(){var a=null;
if(this.baseLayer!=null){a=this.baseLayer.numZoomLevels
}return a
},getExtent:function(){var a=null;
if(this.baseLayer!=null){a=this.baseLayer.getExtent()
}return a
},getResolution:function(){var a=null;
if(this.baseLayer!=null){a=this.baseLayer.getResolution()
}else{if(this.allOverlays===true&&this.layers.length>0){a=this.layers[0].getResolution()
}}return a
},getUnits:function(){var a=null;
if(this.baseLayer!=null){a=this.baseLayer.units
}return a
},getScale:function(){var a=null;
if(this.baseLayer!=null){var c=this.getResolution();
var b=this.baseLayer.units;
a=OpenLayers.Util.getScaleFromResolution(c,b)
}return a
},getZoomForExtent:function(a,c){var b=null;
if(this.baseLayer!=null){b=this.baseLayer.getZoomForExtent(a,c)
}return b
},getResolutionForZoom:function(b){var a=null;
if(this.baseLayer){a=this.baseLayer.getResolutionForZoom(b)
}return a
},getZoomForResolution:function(b,a){var c=null;
if(this.baseLayer!=null){c=this.baseLayer.getZoomForResolution(b,a)
}return c
},zoomTo:function(a){if(this.isValidZoomLevel(a)){this.setCenter(null,a)
}},zoomIn:function(){this.zoomTo(this.getZoom()+1)
},zoomOut:function(){this.zoomTo(this.getZoom()-1)
},zoomToExtent:function(b,a){var d=b.getCenterLonLat();
if(this.baseLayer.wrapDateLine){var c=this.getMaxExtent();
b=b.clone();
while(b.right<b.left){b.right+=c.getWidth()
}d=b.getCenterLonLat().wrapDateLine(c)
}this.setCenter(d,this.getZoomForExtent(b,a))
},zoomToMaxExtent:function(a){var c=(a)?a.restricted:true;
var b=this.getMaxExtent({restricted:c});
this.zoomToExtent(b)
},zoomToScale:function(c,b){var g=OpenLayers.Util.getResolutionFromScale(c,this.baseLayer.units);
var f=this.getSize();
var a=f.w*g;
var e=f.h*g;
var d=this.getCenter();
var h=new OpenLayers.Bounds(d.lon-a/2,d.lat-e/2,d.lon+a/2,d.lat+e/2);
this.zoomToExtent(h,b)
},getLonLatFromViewPortPx:function(a){var b=null;
if(this.baseLayer!=null){b=this.baseLayer.getLonLatFromViewPortPx(a)
}return b
},getViewPortPxFromLonLat:function(b){var a=null;
if(this.baseLayer!=null){a=this.baseLayer.getViewPortPxFromLonLat(b)
}return a
},getLonLatFromPixel:function(a){return this.getLonLatFromViewPortPx(a)
},getPixelFromLonLat:function(b){var a=this.getViewPortPxFromLonLat(b);
a.x=Math.round(a.x);
a.y=Math.round(a.y);
return a
},getViewPortPxFromLayerPx:function(b){var a=null;
if(b!=null){var d=parseInt(this.layerContainerDiv.style.left);
var c=parseInt(this.layerContainerDiv.style.top);
a=b.add(d,c)
}return a
},getLayerPxFromViewPortPx:function(a){var b=null;
if(a!=null){var d=-parseInt(this.layerContainerDiv.style.left);
var c=-parseInt(this.layerContainerDiv.style.top);
b=a.add(d,c);
if(isNaN(b.x)||isNaN(b.y)){b=null
}}return b
},getLonLatFromLayerPx:function(a){a=this.getViewPortPxFromLayerPx(a);
return this.getLonLatFromViewPortPx(a)
},getLayerPxFromLonLat:function(b){var a=this.getPixelFromLonLat(b);
return this.getLayerPxFromViewPortPx(a)
},CLASS_NAME:"OpenLayers.Map"});
OpenLayers.Map.TILE_WIDTH=256;
OpenLayers.Map.TILE_HEIGHT=256;
OpenLayers.Marker=OpenLayers.Class({icon:null,lonlat:null,events:null,map:null,initialize:function(a,c){this.lonlat=a;
var b=(c)?c:OpenLayers.Marker.defaultIcon();
if(this.icon==null){this.icon=b
}else{this.icon.url=b.url;
this.icon.size=b.size;
this.icon.offset=b.offset;
this.icon.calculateOffset=b.calculateOffset
}this.events=new OpenLayers.Events(this,this.icon.imageDiv,null)
},destroy:function(){this.erase();
this.map=null;
this.events.destroy();
this.events=null;
if(this.icon!=null){this.icon.destroy();
this.icon=null
}},draw:function(a){return this.icon.draw(a)
},erase:function(){if(this.icon!=null){this.icon.erase()
}},moveTo:function(a){if((a!=null)&&(this.icon!=null)){this.icon.moveTo(a)
}this.lonlat=this.map.getLonLatFromLayerPx(a)
},isDrawn:function(){var a=(this.icon&&this.icon.isDrawn());
return a
},onScreen:function(){var b=false;
if(this.map){var a=this.map.getExtent();
b=a.containsLonLat(this.lonlat)
}return b
},inflate:function(b){if(this.icon){var a=new OpenLayers.Size(this.icon.size.w*b,this.icon.size.h*b);
this.icon.setSize(a)
}},setOpacity:function(a){this.icon.setOpacity(a)
},setUrl:function(a){this.icon.setUrl(a)
},display:function(a){this.icon.display(a)
},CLASS_NAME:"OpenLayers.Marker"});
OpenLayers.Marker.defaultIcon=function(){var b=OpenLayers.Util.getImagesLocation()+"marker.png";
var c=new OpenLayers.Size(21,25);
var a=function(d){return new OpenLayers.Pixel(-(d.w/2),-d.h)
};
return new OpenLayers.Icon(b,c,null,a)
};
OpenLayers.Popup.FramedCloud=OpenLayers.Class(OpenLayers.Popup.Framed,{contentDisplayClass:"olFramedCloudPopupContent",autoSize:true,panMapIfOutOfView:true,imageSize:new OpenLayers.Size(676,736),isAlphaImage:false,fixedRelativePosition:false,positionBlocks:{tl:{offset:new OpenLayers.Pixel(44,0),padding:new OpenLayers.Bounds(8,40,8,9),blocks:[{size:new OpenLayers.Size("auto","auto"),anchor:new OpenLayers.Bounds(0,51,22,0),position:new OpenLayers.Pixel(0,0)},{size:new OpenLayers.Size(22,"auto"),anchor:new OpenLayers.Bounds(null,50,0,0),position:new OpenLayers.Pixel(-638,0)},{size:new OpenLayers.Size("auto",19),anchor:new OpenLayers.Bounds(0,32,22,null),position:new OpenLayers.Pixel(0,-631)},{size:new OpenLayers.Size(22,18),anchor:new OpenLayers.Bounds(null,32,0,null),position:new OpenLayers.Pixel(-638,-632)},{size:new OpenLayers.Size(81,35),anchor:new OpenLayers.Bounds(null,0,0,null),position:new OpenLayers.Pixel(0,-688)}]},tr:{offset:new OpenLayers.Pixel(-45,0),padding:new OpenLayers.Bounds(8,40,8,9),blocks:[{size:new OpenLayers.Size("auto","auto"),anchor:new OpenLayers.Bounds(0,51,22,0),position:new OpenLayers.Pixel(0,0)},{size:new OpenLayers.Size(22,"auto"),anchor:new OpenLayers.Bounds(null,50,0,0),position:new OpenLayers.Pixel(-638,0)},{size:new OpenLayers.Size("auto",19),anchor:new OpenLayers.Bounds(0,32,22,null),position:new OpenLayers.Pixel(0,-631)},{size:new OpenLayers.Size(22,19),anchor:new OpenLayers.Bounds(null,32,0,null),position:new OpenLayers.Pixel(-638,-631)},{size:new OpenLayers.Size(81,35),anchor:new OpenLayers.Bounds(0,0,null,null),position:new OpenLayers.Pixel(-215,-687)}]},bl:{offset:new OpenLayers.Pixel(45,0),padding:new OpenLayers.Bounds(8,9,8,40),blocks:[{size:new OpenLayers.Size("auto","auto"),anchor:new OpenLayers.Bounds(0,21,22,32),position:new OpenLayers.Pixel(0,0)},{size:new OpenLayers.Size(22,"auto"),anchor:new OpenLayers.Bounds(null,21,0,32),position:new OpenLayers.Pixel(-638,0)},{size:new OpenLayers.Size("auto",21),anchor:new OpenLayers.Bounds(0,0,22,null),position:new OpenLayers.Pixel(0,-629)},{size:new OpenLayers.Size(22,21),anchor:new OpenLayers.Bounds(null,0,0,null),position:new OpenLayers.Pixel(-638,-629)},{size:new OpenLayers.Size(81,33),anchor:new OpenLayers.Bounds(null,null,0,0),position:new OpenLayers.Pixel(-101,-674)}]},br:{offset:new OpenLayers.Pixel(-44,0),padding:new OpenLayers.Bounds(8,9,8,40),blocks:[{size:new OpenLayers.Size("auto","auto"),anchor:new OpenLayers.Bounds(0,21,22,32),position:new OpenLayers.Pixel(0,0)},{size:new OpenLayers.Size(22,"auto"),anchor:new OpenLayers.Bounds(null,21,0,32),position:new OpenLayers.Pixel(-638,0)},{size:new OpenLayers.Size("auto",21),anchor:new OpenLayers.Bounds(0,0,22,null),position:new OpenLayers.Pixel(0,-629)},{size:new OpenLayers.Size(22,21),anchor:new OpenLayers.Bounds(null,0,0,null),position:new OpenLayers.Pixel(-638,-629)},{size:new OpenLayers.Size(81,33),anchor:new OpenLayers.Bounds(0,null,null,0),position:new OpenLayers.Pixel(-311,-674)}]}},minSize:new OpenLayers.Size(105,10),maxSize:new OpenLayers.Size(600,660),initialize:function(d,g,c,f,e,b,a){this.imageSrc=OpenLayers.Util.getImagesLocation()+"cloud-popup-relative.png";
OpenLayers.Popup.Framed.prototype.initialize.apply(this,arguments);
this.contentDiv.className=this.contentDisplayClass
},destroy:function(){OpenLayers.Popup.Framed.prototype.destroy.apply(this,arguments)
},CLASS_NAME:"OpenLayers.Popup.FramedCloud"});
OpenLayers.Request={DEFAULT_CONFIG:{method:"GET",url:window.location.href,async:true,user:undefined,password:undefined,params:null,proxy:OpenLayers.ProxyHost,headers:{},data:null,callback:function(){},success:null,failure:null,scope:null},events:new OpenLayers.Events(this,null,["complete","success","failure"]),issue:function(a){var d=OpenLayers.Util.extend(this.DEFAULT_CONFIG,{proxy:OpenLayers.ProxyHost});
a=OpenLayers.Util.applyDefaults(a,d);
var c=new OpenLayers.Request.XMLHttpRequest();
var i=a.url;
if(a.params){var b=OpenLayers.Util.getParameterString(a.params);
if(b.length>0){var f=(i.indexOf("?")>-1)?"&":"?";
i+=f+b
}}if(a.proxy&&(i.indexOf("http")==0)){if(typeof a.proxy=="function"){i=a.proxy(i)
}else{i=a.proxy+encodeURIComponent(i)
}}c.open(a.method,i,a.async,a.user,a.password);
for(var e in a.headers){c.setRequestHeader(e,a.headers[e])
}var h=this.events;
var g=this;
c.onreadystatechange=function(){if(c.readyState==OpenLayers.Request.XMLHttpRequest.DONE){var j=h.triggerEvent("complete",{request:c,config:a,requestUrl:i});
if(j!==false){g.runCallbacks({request:c,config:a,requestUrl:i})
}}};
if(a.async===false){c.send(a.data)
}else{window.setTimeout(function(){c.send(a.data)
},0)
}return c
},runCallbacks:function(b){var c=b.request;
var a=b.config;
var e=(a.scope)?OpenLayers.Function.bind(a.callback,a.scope):a.callback;
var d;
if(a.success){d=(a.scope)?OpenLayers.Function.bind(a.success,a.scope):a.success
}var f;
if(a.failure){f=(a.scope)?OpenLayers.Function.bind(a.failure,a.scope):a.failure
}e(c);
if(!c.status||(c.status>=200&&c.status<300)){this.events.triggerEvent("success",b);
if(d){d(c)
}}if(c.status&&(c.status<200||c.status>=300)){this.events.triggerEvent("failure",b);
if(f){f(c)
}}},GET:function(a){a=OpenLayers.Util.extend(a,{method:"GET"});
return OpenLayers.Request.issue(a)
},POST:function(a){a=OpenLayers.Util.extend(a,{method:"POST"});
a.headers=a.headers?a.headers:{};
if(!("CONTENT-TYPE" in OpenLayers.Util.upperCaseObject(a.headers))){a.headers["Content-Type"]="application/xml"
}return OpenLayers.Request.issue(a)
},PUT:function(a){a=OpenLayers.Util.extend(a,{method:"PUT"});
a.headers=a.headers?a.headers:{};
if(!("CONTENT-TYPE" in OpenLayers.Util.upperCaseObject(a.headers))){a.headers["Content-Type"]="application/xml"
}return OpenLayers.Request.issue(a)
},DELETE:function(a){a=OpenLayers.Util.extend(a,{method:"DELETE"});
return OpenLayers.Request.issue(a)
},HEAD:function(a){a=OpenLayers.Util.extend(a,{method:"HEAD"});
return OpenLayers.Request.issue(a)
},OPTIONS:function(a){a=OpenLayers.Util.extend(a,{method:"OPTIONS"});
return OpenLayers.Request.issue(a)
}};
OpenLayers.Tile.Image=OpenLayers.Class(OpenLayers.Tile,{url:null,imgDiv:null,frame:null,layerAlphaHack:null,isBackBuffer:false,lastRatio:1,isFirstDraw:true,backBufferTile:null,initialize:function(b,d,c,e,a){OpenLayers.Tile.prototype.initialize.apply(this,arguments);
this.url=e;
this.frame=document.createElement("div");
this.frame.style.overflow="hidden";
this.frame.style.position="absolute";
this.layerAlphaHack=this.layer.alpha&&OpenLayers.Util.alphaHack()
},destroy:function(){if(this.imgDiv!=null){if(this.layerAlphaHack){OpenLayers.Event.stopObservingElement(this.imgDiv.childNodes[0])
}OpenLayers.Event.stopObservingElement(this.imgDiv);
if(this.imgDiv.parentNode==this.frame){this.frame.removeChild(this.imgDiv);
this.imgDiv.map=null
}this.imgDiv.urls=null;
this.imgDiv.src=OpenLayers.Util.getImagesLocation()+"blank.gif"
}this.imgDiv=null;
if((this.frame!=null)&&(this.frame.parentNode==this.layer.div)){this.layer.div.removeChild(this.frame)
}this.frame=null;
if(this.backBufferTile){this.backBufferTile.destroy();
this.backBufferTile=null
}this.layer.events.unregister("loadend",this,this.resetBackBuffer);
OpenLayers.Tile.prototype.destroy.apply(this,arguments)
},clone:function(a){if(a==null){a=new OpenLayers.Tile.Image(this.layer,this.position,this.bounds,this.url,this.size)
}a=OpenLayers.Tile.prototype.clone.apply(this,[a]);
a.imgDiv=null;
return a
},draw:function(){if(this.layer!=this.layer.map.baseLayer&&this.layer.reproject){this.bounds=this.getBoundsFromBaseLayer(this.position)
}var a=OpenLayers.Tile.prototype.draw.apply(this,arguments);
if(OpenLayers.Util.indexOf(this.layer.SUPPORTED_TRANSITIONS,this.layer.transitionEffect)!=-1){if(a){if(!this.backBufferTile){this.backBufferTile=this.clone();
this.backBufferTile.hide();
this.backBufferTile.isBackBuffer=true;
this.events.register("loadend",this,this.resetBackBuffer);
this.layer.events.register("loadend",this,this.resetBackBuffer)
}this.startTransition()
}else{if(this.backBufferTile){this.backBufferTile.clear()
}}}else{if(a&&this.isFirstDraw){this.events.register("loadend",this,this.showTile);
this.isFirstDraw=false
}}if(!a){return false
}if(this.isLoading){this.events.triggerEvent("reload")
}else{this.isLoading=true;
this.events.triggerEvent("loadstart")
}return this.renderTile()
},resetBackBuffer:function(){this.showTile();
if(this.backBufferTile&&(this.isFirstDraw||!this.layer.numLoadingTiles)){this.isFirstDraw=false;
var a=this.layer.maxExtent;
var b=(a&&this.bounds.intersectsBounds(a,false));
if(b){this.backBufferTile.position=this.position;
this.backBufferTile.bounds=this.bounds;
this.backBufferTile.size=this.size;
this.backBufferTile.imageSize=this.layer.getImageSize(this.bounds)||this.size;
this.backBufferTile.imageOffset=this.layer.imageOffset;
this.backBufferTile.resolution=this.layer.getResolution();
this.backBufferTile.renderTile()
}this.backBufferTile.hide()
}},renderTile:function(){if(this.imgDiv==null){this.initImgDiv()
}this.imgDiv.viewRequestID=this.layer.map.viewRequestID;
if(this.layer.async){this.layer.getURLasync(this.bounds,this,"url",this.positionImage)
}else{if(this.layer.url instanceof Array){this.imgDiv.urls=this.layer.url.slice()
}this.url=this.layer.getURL(this.bounds);
this.positionImage()
}return true
},positionImage:function(){if(this.layer==null){return
}OpenLayers.Util.modifyDOMElement(this.frame,null,this.position,this.size);
var a=this.layer.getImageSize(this.bounds);
if(this.layerAlphaHack){OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv,null,null,a,this.url)
}else{OpenLayers.Util.modifyDOMElement(this.imgDiv,null,null,a);
this.imgDiv.src=this.url
}},clear:function(){if(this.imgDiv){this.hide();
if(OpenLayers.Tile.Image.useBlankTile){this.imgDiv.src=OpenLayers.Util.getImagesLocation()+"blank.gif"
}}},initImgDiv:function(){var b=this.layer.imageOffset;
var d=this.layer.getImageSize(this.bounds);
if(this.layerAlphaHack){this.imgDiv=OpenLayers.Util.createAlphaImageDiv(null,b,d,null,"relative",null,null,null,true)
}else{this.imgDiv=OpenLayers.Util.createImage(null,b,d,null,"relative",null,null,true)
}this.imgDiv.className="olTileImage";
this.frame.style.zIndex=this.isBackBuffer?0:1;
this.frame.appendChild(this.imgDiv);
this.layer.div.appendChild(this.frame);
if(this.layer.opacity!=null){OpenLayers.Util.modifyDOMElement(this.imgDiv,null,null,null,null,null,null,this.layer.opacity)
}this.imgDiv.map=this.layer.map;
var a=function(){if(this.isLoading){this.isLoading=false;
this.events.triggerEvent("loadend")
}};
if(this.layerAlphaHack){OpenLayers.Event.observe(this.imgDiv.childNodes[0],"load",OpenLayers.Function.bind(a,this))
}else{OpenLayers.Event.observe(this.imgDiv,"load",OpenLayers.Function.bind(a,this))
}var c=function(){if(this.imgDiv._attempts>OpenLayers.IMAGE_RELOAD_ATTEMPTS){a.call(this)
}};
OpenLayers.Event.observe(this.imgDiv,"error",OpenLayers.Function.bind(c,this))
},checkImgURL:function(){if(this.layer){var a=this.layerAlphaHack?this.imgDiv.firstChild.src:this.imgDiv.src;
if(!OpenLayers.Util.isEquivalentUrl(a,this.url)){this.hide()
}}},startTransition:function(){if(!this.backBufferTile||!this.backBufferTile.imgDiv){return
}var b=1;
if(this.backBufferTile.resolution){b=this.backBufferTile.resolution/this.layer.getResolution()
}if(b!=this.lastRatio){if(this.layer.transitionEffect=="resize"){var a=new OpenLayers.LonLat(this.backBufferTile.bounds.left,this.backBufferTile.bounds.top);
var f=new OpenLayers.Size(this.backBufferTile.size.w*b,this.backBufferTile.size.h*b);
var e=this.layer.map.getLayerPxFromLonLat(a);
OpenLayers.Util.modifyDOMElement(this.backBufferTile.frame,null,e,f);
var c=this.backBufferTile.imageSize;
c=new OpenLayers.Size(c.w*b,c.h*b);
var d=this.backBufferTile.imageOffset;
if(d){d=new OpenLayers.Pixel(d.x*b,d.y*b)
}OpenLayers.Util.modifyDOMElement(this.backBufferTile.imgDiv,null,d,c);
this.backBufferTile.show()
}}else{if(this.layer.singleTile){this.backBufferTile.show()
}else{this.backBufferTile.hide()
}}this.lastRatio=b
},show:function(){this.frame.style.display="";
if(OpenLayers.Util.indexOf(this.layer.SUPPORTED_TRANSITIONS,this.layer.transitionEffect)!=-1){if(navigator.userAgent.toLowerCase().indexOf("gecko")!=-1){this.frame.scrollLeft=this.frame.scrollLeft
}}},hide:function(){this.frame.style.display="none"
},CLASS_NAME:"OpenLayers.Tile.Image"});
OpenLayers.Tile.Image.useBlankTile=(OpenLayers.Util.getBrowserName()=="safari"||OpenLayers.Util.getBrowserName()=="opera");
OpenLayers.Control.OverviewMap=OpenLayers.Class(OpenLayers.Control,{element:null,ovmap:null,size:new OpenLayers.Size(180,90),layers:null,minRectSize:15,minRectDisplayClass:"RectReplacement",minRatio:8,maxRatio:32,mapOptions:null,autoPan:false,handlers:null,resolutionFactor:1,initialize:function(a){this.layers=[];
this.handlers={};
OpenLayers.Control.prototype.initialize.apply(this,[a])
},destroy:function(){if(!this.mapDiv){return
}if(this.handlers.click){this.handlers.click.destroy()
}if(this.handlers.drag){this.handlers.drag.destroy()
}this.mapDiv.removeChild(this.extentRectangle);
this.extentRectangle=null;
if(this.rectEvents){this.rectEvents.destroy();
this.rectEvents=null
}if(this.ovmap){this.ovmap.destroy();
this.ovmap=null
}this.element.removeChild(this.mapDiv);
this.mapDiv=null;
this.div.removeChild(this.element);
this.element=null;
if(this.maximizeDiv){OpenLayers.Event.stopObservingElement(this.maximizeDiv);
this.div.removeChild(this.maximizeDiv);
this.maximizeDiv=null
}if(this.minimizeDiv){OpenLayers.Event.stopObservingElement(this.minimizeDiv);
this.div.removeChild(this.minimizeDiv);
this.minimizeDiv=null
}this.map.events.un({moveend:this.update,changebaselayer:this.baseLayerDraw,scope:this});
OpenLayers.Control.prototype.destroy.apply(this,arguments)
},draw:function(){OpenLayers.Control.prototype.draw.apply(this,arguments);
if(!(this.layers.length>0)){if(this.map.baseLayer){var b=this.map.baseLayer.clone();
this.layers=[b]
}else{this.map.events.register("changebaselayer",this,this.baseLayerDraw);
return this.div
}}this.element=document.createElement("div");
this.element.className=this.displayClass+"Element";
this.element.style.display="none";
this.mapDiv=document.createElement("div");
this.mapDiv.style.width=this.size.w+"px";
this.mapDiv.style.height=this.size.h+"px";
this.mapDiv.style.position="relative";
this.mapDiv.style.overflow="hidden";
this.mapDiv.id=OpenLayers.Util.createUniqueID("overviewMap");
this.extentRectangle=document.createElement("div");
this.extentRectangle.style.position="absolute";
this.extentRectangle.style.zIndex=1000;
this.extentRectangle.className=this.displayClass+"ExtentRectangle";
this.mapDiv.appendChild(this.extentRectangle);
this.element.appendChild(this.mapDiv);
this.div.appendChild(this.element);
if(!this.outsideViewport){this.div.className+=" "+this.displayClass+"Container";
var c=OpenLayers.Util.getImagesLocation();
var f=c+"layer-switcher-maximize.png";
this.maximizeDiv=OpenLayers.Util.createAlphaImageDiv(this.displayClass+"MaximizeButton",null,new OpenLayers.Size(18,18),f,"absolute");
this.maximizeDiv.style.display="none";
this.maximizeDiv.className=this.displayClass+"MaximizeButton";
OpenLayers.Event.observe(this.maximizeDiv,"click",OpenLayers.Function.bindAsEventListener(this.maximizeControl,this));
this.div.appendChild(this.maximizeDiv);
var f=c+"layer-switcher-minimize.png";
this.minimizeDiv=OpenLayers.Util.createAlphaImageDiv("OpenLayers_Control_minimizeDiv",null,new OpenLayers.Size(18,18),f,"absolute");
this.minimizeDiv.style.display="none";
this.minimizeDiv.className=this.displayClass+"MinimizeButton";
OpenLayers.Event.observe(this.minimizeDiv,"click",OpenLayers.Function.bindAsEventListener(this.minimizeControl,this));
this.div.appendChild(this.minimizeDiv);
var d=["dblclick","mousedown"];
for(var a=0,e=d.length;
a<e;
a++){OpenLayers.Event.observe(this.maximizeDiv,d[a],OpenLayers.Event.stop);
OpenLayers.Event.observe(this.minimizeDiv,d[a],OpenLayers.Event.stop)
}this.minimizeControl()
}else{this.element.style.display=""
}if(this.map.getExtent()){this.update()
}this.map.events.register("moveend",this,this.update);
return this.div
},baseLayerDraw:function(){this.draw();
this.map.events.unregister("changebaselayer",this,this.baseLayerDraw)
},rectDrag:function(h){var c=this.handlers.drag.last.x-h.x;
var a=this.handlers.drag.last.y-h.y;
if(c!=0||a!=0){var f=this.rectPxBounds.top;
var i=this.rectPxBounds.left;
var d=Math.abs(this.rectPxBounds.getHeight());
var b=this.rectPxBounds.getWidth();
var e=Math.max(0,(f-a));
e=Math.min(e,this.ovmap.size.h-this.hComp-d);
var g=Math.max(0,(i-c));
g=Math.min(g,this.ovmap.size.w-this.wComp-b);
this.setRectPxBounds(new OpenLayers.Bounds(g,e+d,g+b,e))
}},mapDivClick:function(f){var i=this.rectPxBounds.getCenterPixel();
var b=f.xy.x-i.x;
var a=f.xy.y-i.y;
var d=this.rectPxBounds.top;
var j=this.rectPxBounds.left;
var g=Math.abs(this.rectPxBounds.getHeight());
var h=this.rectPxBounds.getWidth();
var c=Math.max(0,(d+a));
c=Math.min(c,this.ovmap.size.h-g);
var e=Math.max(0,(j+b));
e=Math.min(e,this.ovmap.size.w-h);
this.setRectPxBounds(new OpenLayers.Bounds(e,c+g,e+h,c));
this.updateMapToRect()
},maximizeControl:function(a){this.element.style.display="";
this.showToggle(false);
if(a!=null){OpenLayers.Event.stop(a)
}},minimizeControl:function(a){this.element.style.display="none";
this.showToggle(true);
if(a!=null){OpenLayers.Event.stop(a)
}},showToggle:function(a){this.maximizeDiv.style.display=a?"":"none";
this.minimizeDiv.style.display=a?"none":""
},update:function(){if(this.ovmap==null){this.createMap()
}if(this.autoPan||!this.isSuitableOverview()){this.updateOverview()
}this.updateRectToMap()
},isSuitableOverview:function(){var d=this.map.getExtent();
var c=this.map.maxExtent;
var a=new OpenLayers.Bounds(Math.max(d.left,c.left),Math.max(d.bottom,c.bottom),Math.min(d.right,c.right),Math.min(d.top,c.top));
if(this.ovmap.getProjection()!=this.map.getProjection()){a=a.transform(this.map.getProjectionObject(),this.ovmap.getProjectionObject())
}var b=this.ovmap.getResolution()/this.map.getResolution();
return((b>this.minRatio)&&(b<=this.maxRatio)&&(this.ovmap.getExtent().containsBounds(a)))
},updateOverview:function(){var a=this.map.getResolution();
var d=this.ovmap.getResolution();
var b=d/a;
if(b>this.maxRatio){d=this.minRatio*a
}else{if(b<=this.minRatio){d=this.maxRatio*a
}}var c;
if(this.ovmap.getProjection()!=this.map.getProjection()){c=this.map.center.clone();
c.transform(this.map.getProjectionObject(),this.ovmap.getProjectionObject())
}else{c=this.map.center
}this.ovmap.setCenter(c,this.ovmap.getZoomForResolution(d*this.resolutionFactor));
this.updateRectToMap()
},createMap:function(){var c=OpenLayers.Util.extend({controls:[],maxResolution:"auto",fallThrough:false},this.mapOptions);
this.ovmap=new OpenLayers.Map(this.mapDiv,c);
OpenLayers.Event.stopObserving(window,"unload",this.ovmap.unloadDestroy);
this.ovmap.addLayers(this.layers);
this.ovmap.zoomToMaxExtent();
this.wComp=parseInt(OpenLayers.Element.getStyle(this.extentRectangle,"border-left-width"))+parseInt(OpenLayers.Element.getStyle(this.extentRectangle,"border-right-width"));
this.wComp=(this.wComp)?this.wComp:2;
this.hComp=parseInt(OpenLayers.Element.getStyle(this.extentRectangle,"border-top-width"))+parseInt(OpenLayers.Element.getStyle(this.extentRectangle,"border-bottom-width"));
this.hComp=(this.hComp)?this.hComp:2;
this.handlers.drag=new OpenLayers.Handler.Drag(this,{move:this.rectDrag,done:this.updateMapToRect},{map:this.ovmap});
this.handlers.click=new OpenLayers.Handler.Click(this,{click:this.mapDivClick},{single:true,"double":false,stopSingle:true,stopDouble:true,pixelTolerance:1,map:this.ovmap});
this.handlers.click.activate();
this.rectEvents=new OpenLayers.Events(this,this.extentRectangle,null,true);
this.rectEvents.register("mouseover",this,function(d){if(!this.handlers.drag.active&&!this.map.dragging){this.handlers.drag.activate()
}});
this.rectEvents.register("mouseout",this,function(d){if(!this.handlers.drag.dragging){this.handlers.drag.deactivate()
}});
if(this.ovmap.getProjection()!=this.map.getProjection()){var a=this.map.getProjectionObject().getUnits()||this.map.units||this.map.baseLayer.units;
var b=this.ovmap.getProjectionObject().getUnits()||this.ovmap.units||this.ovmap.baseLayer.units;
this.resolutionFactor=a&&b?OpenLayers.INCHES_PER_UNIT[a]/OpenLayers.INCHES_PER_UNIT[b]:1
}},updateRectToMap:function(){var b;
if(this.ovmap.getProjection()!=this.map.getProjection()){b=this.map.getExtent().transform(this.map.getProjectionObject(),this.ovmap.getProjectionObject())
}else{b=this.map.getExtent()
}var a=this.getRectBoundsFromMapBounds(b);
if(a){this.setRectPxBounds(a)
}},updateMapToRect:function(){var a=this.getMapBoundsFromRectBounds(this.rectPxBounds);
if(this.ovmap.getProjection()!=this.map.getProjection()){a=a.transform(this.ovmap.getProjectionObject(),this.map.getProjectionObject())
}this.map.panTo(a.getCenterLonLat())
},setRectPxBounds:function(c){var f=Math.max(c.top,0);
var d=Math.max(c.left,0);
var a=Math.min(c.top+Math.abs(c.getHeight()),this.ovmap.size.h-this.hComp);
var g=Math.min(c.left+c.getWidth(),this.ovmap.size.w-this.wComp);
var b=Math.max(g-d,0);
var h=Math.max(a-f,0);
if(b<this.minRectSize||h<this.minRectSize){this.extentRectangle.className=this.displayClass+this.minRectDisplayClass;
var e=d+(b/2)-(this.minRectSize/2);
var i=f+(h/2)-(this.minRectSize/2);
this.extentRectangle.style.top=Math.round(i)+"px";
this.extentRectangle.style.left=Math.round(e)+"px";
this.extentRectangle.style.height=this.minRectSize+"px";
this.extentRectangle.style.width=this.minRectSize+"px"
}else{this.extentRectangle.className=this.displayClass+"ExtentRectangle";
this.extentRectangle.style.top=Math.round(f)+"px";
this.extentRectangle.style.left=Math.round(d)+"px";
this.extentRectangle.style.height=Math.round(h)+"px";
this.extentRectangle.style.width=Math.round(b)+"px"
}this.rectPxBounds=new OpenLayers.Bounds(Math.round(d),Math.round(a),Math.round(g),Math.round(f))
},getRectBoundsFromMapBounds:function(b){var e=new OpenLayers.LonLat(b.left,b.bottom);
var d=new OpenLayers.LonLat(b.right,b.top);
var a=this.getOverviewPxFromLonLat(e);
var f=this.getOverviewPxFromLonLat(d);
var c=null;
if(a&&f){c=new OpenLayers.Bounds(a.x,a.y,f.x,f.y)
}return c
},getMapBoundsFromRectBounds:function(b){var a=new OpenLayers.Pixel(b.left,b.bottom);
var e=new OpenLayers.Pixel(b.right,b.top);
var d=this.getLonLatFromOverviewPx(a);
var c=this.getLonLatFromOverviewPx(e);
return new OpenLayers.Bounds(d.lon,d.lat,c.lon,c.lat)
},getLonLatFromOverviewPx:function(d){var a=this.ovmap.size;
var f=this.ovmap.getResolution();
var e=this.ovmap.getExtent().getCenterLonLat();
var c=d.x-(a.w/2);
var b=d.y-(a.h/2);
return new OpenLayers.LonLat(e.lon+c*f,e.lat-b*f)
},getOverviewPxFromLonLat:function(b){var d=this.ovmap.getResolution();
var a=this.ovmap.getExtent();
var c=null;
if(a){c=new OpenLayers.Pixel(Math.round(1/d*(b.lon-a.left)),Math.round(1/d*(a.top-b.lat)))
}return c
},CLASS_NAME:"OpenLayers.Control.OverviewMap"});
OpenLayers.Feature=OpenLayers.Class({layer:null,id:null,lonlat:null,data:null,marker:null,popupClass:OpenLayers.Popup.AnchoredBubble,popup:null,initialize:function(b,a,c){this.layer=b;
this.lonlat=a;
this.data=(c!=null)?c:{};
this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")
},destroy:function(){if((this.layer!=null)&&(this.layer.map!=null)){if(this.popup!=null){this.layer.map.removePopup(this.popup)
}}if(this.layer!=null&&this.marker!=null){this.layer.removeMarker(this.marker)
}this.layer=null;
this.id=null;
this.lonlat=null;
this.data=null;
if(this.marker!=null){this.destroyMarker(this.marker);
this.marker=null
}if(this.popup!=null){this.destroyPopup(this.popup);
this.popup=null
}},onScreen:function(){var b=false;
if((this.layer!=null)&&(this.layer.map!=null)){var a=this.layer.map.getExtent();
b=a.containsLonLat(this.lonlat)
}return b
},createMarker:function(){if(this.lonlat!=null){this.marker=new OpenLayers.Marker(this.lonlat,this.data.icon)
}return this.marker
},destroyMarker:function(){this.marker.destroy()
},createPopup:function(c){if(this.lonlat!=null){var a=this.id+"_popup";
var b=(this.marker)?this.marker.icon:null;
if(!this.popup){this.popup=new this.popupClass(a,this.lonlat,this.data.popupSize,this.data.popupContentHTML,b,c)
}if(this.data.overflow!=null){this.popup.contentDiv.style.overflow=this.data.overflow
}this.popup.feature=this
}return this.popup
},destroyPopup:function(){if(this.popup){this.popup.feature=null;
this.popup.destroy();
this.popup=null
}},CLASS_NAME:"OpenLayers.Feature"});
OpenLayers.Format.CSWGetDomain.v2_0_2=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance",csw:"http://www.opengis.net/cat/csw/2.0.2"},defaultPrefix:"csw",version:"2.0.2",schemaLocation:"http://www.opengis.net/cat/csw/2.0.2 http://schemas.opengis.net/csw/2.0.2/CSW-discovery.xsd",PropertyName:null,ParameterName:null,initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a])
},read:function(a){if(typeof a=="string"){a=OpenLayers.Format.XML.prototype.read.apply(this,[a])
}if(a&&a.nodeType==9){a=a.documentElement
}var b={};
this.readNode(a,b);
return b
},readers:{csw:{GetDomainResponse:function(a,b){this.readChildNodes(a,b)
},DomainValues:function(b,c){if(!(c.DomainValues instanceof Array)){c.DomainValues=[]
}var f=b.attributes;
var d={};
for(var a=0,e=f.length;
a<e;
++a){d[f[a].name]=f[a].nodeValue
}this.readChildNodes(b,d);
c.DomainValues.push(d)
},PropertyName:function(a,b){b.PropertyName=this.getChildValue(a)
},ParameterName:function(a,b){b.ParameterName=this.getChildValue(a)
},ListOfValues:function(a,b){if(!(b.ListOfValues instanceof Array)){b.ListOfValues=[]
}this.readChildNodes(a,b.ListOfValues)
},Value:function(b,d){var f=b.attributes;
var c={};
for(var a=0,e=f.length;
a<e;
++a){c[f[a].name]=f[a].nodeValue
}c.value=this.getChildValue(b);
d.push({Value:c})
},ConceptualScheme:function(a,b){b.ConceptualScheme={};
this.readChildNodes(a,b.ConceptualScheme)
},Name:function(a,b){b.Name=this.getChildValue(a)
},Document:function(a,b){b.Document=this.getChildValue(a)
},Authority:function(a,b){b.Authority=this.getChildValue(a)
},RangeOfValues:function(a,b){b.RangeOfValues={};
this.readChildNodes(a,b.RangeOfValues)
},MinValue:function(b,d){var f=b.attributes;
var c={};
for(var a=0,e=f.length;
a<e;
++a){c[f[a].name]=f[a].nodeValue
}c.value=this.getChildValue(b);
d.MinValue=c
},MaxValue:function(b,d){var f=b.attributes;
var c={};
for(var a=0,e=f.length;
a<e;
++a){c[f[a].name]=f[a].nodeValue
}c.value=this.getChildValue(b);
d.MaxValue=c
}}},write:function(a){var b=this.writeNode("csw:GetDomain",a);
return OpenLayers.Format.XML.prototype.write.apply(this,[b])
},writers:{csw:{GetDomain:function(a){var b=this.createElementNSPlus("csw:GetDomain",{attributes:{service:"CSW",version:this.version}});
if(a.PropertyName||this.PropertyName){this.writeNode("csw:PropertyName",a.PropertyName||this.PropertyName,b)
}else{if(a.ParameterName||this.ParameterName){this.writeNode("csw:ParameterName",a.ParameterName||this.ParameterName,b)
}}this.readChildNodes(b,a);
return b
},PropertyName:function(b){var a=this.createElementNSPlus("csw:PropertyName",{value:b});
return a
},ParameterName:function(b){var a=this.createElementNSPlus("csw:ParameterName",{value:b});
return a
}}},CLASS_NAME:"OpenLayers.Format.CSWGetDomain.v2_0_2"});
OpenLayers.Format.OWSCommon={};
OpenLayers.Format.OWSCommon.v1_1_0=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{ows:"http://www.opengis.net/ows/1.1",xlink:"http://www.w3.org/1999/xlink"},readers:{ows:{ServiceIdentification:function(a,b){b.serviceIdentification={};
this.readChildNodes(a,b.serviceIdentification)
},Title:function(a,b){b.title=this.getChildValue(a)
},Abstract:function(a,b){b["abstract"]=this.getChildValue(a)
},Keywords:function(a,b){b.keywords={};
this.readChildNodes(a,b.keywords)
},Keyword:function(b,a){a[this.getChildValue(b)]=true
},ServiceType:function(a,b){b.serviceType={codeSpace:a.getAttribute("codeSpace"),value:this.getChildValue(a)}
},ServiceTypeVersion:function(a,b){b.serviceTypeVersion=this.getChildValue(a)
},Fees:function(a,b){b.fees=this.getChildValue(a)
},AccessConstraints:function(a,b){b.accessConstraints=this.getChildValue(a)
},ServiceProvider:function(a,b){b.serviceProvider={};
this.readChildNodes(a,b.serviceProvider)
},ProviderName:function(a,b){b.providerName=this.getChildValue(a)
},ProviderSite:function(a,b){b.providerSite=this.getAttributeNS(a,this.namespaces.xlink,"href")
},ServiceContact:function(a,b){b.serviceContact={};
this.readChildNodes(a,b.serviceContact)
},IndividualName:function(b,a){a.individualName=this.getChildValue(b)
},PositionName:function(b,a){a.positionName=this.getChildValue(b)
},ContactInfo:function(b,a){a.contactInfo={};
this.readChildNodes(b,a.contactInfo)
},Phone:function(b,a){a.phone={};
this.readChildNodes(b,a.phone)
},Voice:function(b,a){a.voice=this.getChildValue(b)
},Address:function(b,a){a.address={};
this.readChildNodes(b,a.address)
},DeliveryPoint:function(b,a){a.deliveryPoint=this.getChildValue(b)
},City:function(b,a){a.city=this.getChildValue(b)
},AdministrativeArea:function(b,a){a.administrativeArea=this.getChildValue(b)
},PostalCode:function(b,a){a.postalCode=this.getChildValue(b)
},Country:function(b,a){a.country=this.getChildValue(b)
},ElectronicMailAddress:function(b,a){a.electronicMailAddress=this.getChildValue(b)
},Role:function(b,a){a.role=this.getChildValue(b)
},OperationsMetadata:function(a,b){b.operationsMetadata={};
this.readChildNodes(a,b.operationsMetadata)
},Operation:function(a,c){var b=a.getAttribute("name");
c[b]={};
this.readChildNodes(a,c[b])
},DCP:function(b,a){a.dcp={};
this.readChildNodes(b,a.dcp)
},HTTP:function(b,a){a.http={};
this.readChildNodes(b,a.http)
},Get:function(b,a){a.get=this.getAttributeNS(b,this.namespaces.xlink,"href")
},Post:function(b,a){a.post=this.getAttributeNS(b,this.namespaces.xlink,"href")
},Parameter:function(a,b){if(!b.parameters){b.parameters={}
}var c=a.getAttribute("name");
b.parameters[c]={};
this.readChildNodes(a,b.parameters[c])
},AllowedValues:function(a,b){b.allowedValues={};
this.readChildNodes(a,b.allowedValues)
},AnyValue:function(a,b){b.anyValue=true
},Value:function(a,b){b[this.getChildValue(a)]=true
},Range:function(a,b){b.range={};
this.readChildNodes(a,b.range)
},MinimumValue:function(b,a){a.minValue=this.getChildValue(b)
},MaximumValue:function(b,a){a.maxValue=this.getChildValue(b)
}}},CLASS_NAME:"OpenLayers.Format.OWSCommon.v1_1_0"});
OpenLayers.Format.SOSCapabilities=OpenLayers.Class(OpenLayers.Format.XML,{defaultVersion:"1.0.0",version:null,parser:null,initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a]);
this.options=a
},read:function(c){if(typeof c=="string"){c=OpenLayers.Format.XML.prototype.read.apply(this,[c])
}var a=c.documentElement;
var f=this.version||a.getAttribute("version")||this.defaultVersion;
if(!this.parser||this.parser.version!==f){var b=OpenLayers.Format.SOSCapabilities["v"+f.replace(/\./g,"_")];
if(!b){throw"Can't find a SOS capabilities parser for version "+f
}var d=new b(this.options)
}var e=d.read(c);
e.version=f;
return e
},CLASS_NAME:"OpenLayers.Format.SOSCapabilities"});
OpenLayers.Format.WFSCapabilities=OpenLayers.Class(OpenLayers.Format.XML,{defaultVersion:"1.1.0",version:null,initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a]);
this.options=a
},read:function(c){if(typeof c=="string"){c=OpenLayers.Format.XML.prototype.read.apply(this,[c])
}var a=c.documentElement;
var f=this.version;
if(!f){f=a.getAttribute("version");
if(!f){f=this.defaultVersion
}}var b=OpenLayers.Format.WFSCapabilities["v"+f.replace(/\./g,"_")];
if(!b){throw"Can't find a WFS capabilities parser for version "+f
}var d=new b(this.options);
var e=d.read(c);
e.version=f;
return e
},CLASS_NAME:"OpenLayers.Format.WFSCapabilities"});
OpenLayers.Format.WFSDescribeFeatureType=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{xsd:"http://www.w3.org/2001/XMLSchema"},initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a])
},readers:{xsd:{schema:function(j,b){var k=[];
var g={};
var l={complexTypes:k,customTypes:g};
this.readChildNodes(j,l);
var m=j.attributes;
var d,f;
for(var a=0,c=m.length;
a<c;
++a){d=m[a];
f=d.name;
if(f.indexOf("xmlns")==0){this.setNamespace(f.split(":")[1]||"",d.value)
}else{b[f]=d.value
}}b.featureTypes=k;
b.targetPrefix=this.namespaceAlias[b.targetNamespace];
var e,h;
for(var a=0,c=k.length;
a<c;
++a){e=k[a];
h=g[e.typeName];
if(g[e.typeName]){e.typeName=h.name
}}},complexType:function(c,a){var b={typeName:c.getAttribute("name")};
this.readChildNodes(c,b);
a.complexTypes.push(b)
},complexContent:function(a,b){this.readChildNodes(a,b)
},extension:function(a,b){this.readChildNodes(a,b)
},sequence:function(b,c){var a={elements:[]};
this.readChildNodes(b,a);
c.properties=a.elements
},element:function(h,k){if(k.elements){var a={};
var j=h.attributes;
var d;
for(var b=0,c=j.length;
b<c;
++b){d=j[b];
a[d.name]=d.value
}var e=a.type;
if(!e){e={};
this.readChildNodes(h,e);
a.restriction=e;
a.type=e.base
}var g=e.base||e;
a.localType=g.split(":").pop();
k.elements.push(a)
}if(k.complexTypes){var e=h.getAttribute("type");
var f=e.split(":").pop();
k.customTypes[f]={name:h.getAttribute("name"),type:e}
}},simpleType:function(a,b){this.readChildNodes(a,b)
},restriction:function(a,b){b.base=a.getAttribute("base");
this.readRestriction(a,b)
}}},readRestriction:function(g,a){var f=g.childNodes;
var c,b,h;
for(var e=0,d=f.length;
e<d;
++e){c=f[e];
if(c.nodeType==1){b=c.nodeName.split(":").pop();
h=c.getAttribute("value");
if(!a[b]){a[b]=h
}else{if(typeof a[b]=="string"){a[b]=[a[b]]
}a[b].push(h)
}}}},read:function(b){if(typeof b=="string"){b=OpenLayers.Format.XML.prototype.read.apply(this,[b])
}if(b&&b.nodeType==9){b=b.documentElement
}var a={};
this.readNode(b,a);
return a
},CLASS_NAME:"OpenLayers.Format.WFSDescribeFeatureType"});
OpenLayers.Format.WFST.v1=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance",wfs:"http://www.opengis.net/wfs",gml:"http://www.opengis.net/gml",ogc:"http://www.opengis.net/ogc"},defaultPrefix:"wfs",version:null,schemaLocations:null,srsName:null,extractAttributes:true,xy:true,stateName:null,initialize:function(a){this.stateName={};
this.stateName[OpenLayers.State.INSERT]="wfs:Insert";
this.stateName[OpenLayers.State.UPDATE]="wfs:Update";
this.stateName[OpenLayers.State.DELETE]="wfs:Delete";
OpenLayers.Format.XML.prototype.initialize.apply(this,[a])
},getSrsName:function(a,c){var b=c&&c.srsName;
if(!b){if(a&&a.layer){b=a.layer.projection.getCode()
}else{b=this.srsName
}}return b
},read:function(a){if(typeof a=="string"){a=OpenLayers.Format.XML.prototype.read.apply(this,[a])
}if(a&&a.nodeType==9){a=a.documentElement
}var b={};
if(a){this.readNode(a,b)
}if(b.features){b=b.features
}return b
},readers:{wfs:{FeatureCollection:function(a,b){b.features=[];
this.readChildNodes(a,b)
}}},write:function(b){var c=this.writeNode("wfs:Transaction",b);
var a=this.schemaLocationAttr();
if(a){this.setAttributeNS(c,this.namespaces.xsi,"xsi:schemaLocation",a)
}return OpenLayers.Format.XML.prototype.write.apply(this,[c])
},writers:{wfs:{GetFeature:function(a){var b=this.createElementNSPlus("wfs:GetFeature",{attributes:{service:"WFS",version:this.version,outputFormat:a&&a.outputFormat,maxFeatures:a&&a.maxFeatures,"xsi:schemaLocation":this.schemaLocationAttr(a)}});
this.writeNode("Query",a,b);
return b
},Transaction:function(c){var d=this.createElementNSPlus("wfs:Transaction",{attributes:{service:"WFS",version:this.version}});
if(c){var f,b;
for(var a=0,e=c.length;
a<e;
++a){b=c[a];
f=this.stateName[b.state];
if(f){this.writeNode(f,b,d)
}}}return d
},Insert:function(a){var b=this.createElementNSPlus("wfs:Insert");
this.srsName=this.getSrsName(a);
this.writeNode("feature:_typeName",a,b);
return b
},Update:function(c){var a=this.createElementNSPlus("wfs:Update",{attributes:{typeName:(this.featureNS?this.featurePrefix+":":"")+this.featureType}});
if(this.featureNS){a.setAttribute("xmlns:"+this.featurePrefix,this.featureNS)
}if(this.geometryName!==null){this.writeNode("Property",{name:this.geometryName,value:c},a)
}for(var b in c.attributes){if(c.attributes[b]!==undefined){this.writeNode("Property",{name:b,value:c.attributes[b]},a)
}}this.writeNode("ogc:Filter",new OpenLayers.Filter.FeatureId({fids:[c.fid]}),a);
return a
},Property:function(b){var a=this.createElementNSPlus("wfs:Property");
this.writeNode("Name",b.name,a);
if(b.value!==null){this.writeNode("Value",b.value,a)
}return a
},Name:function(a){return this.createElementNSPlus("wfs:Name",{value:a})
},Value:function(a){var c;
if(a instanceof OpenLayers.Feature.Vector){c=this.createElementNSPlus("wfs:Value");
this.srsName=this.getSrsName(a);
var b=this.writeNode("feature:_geometry",a.geometry).firstChild;
c.appendChild(b)
}else{c=this.createElementNSPlus("wfs:Value",{value:a})
}return c
},Delete:function(a){var b=this.createElementNSPlus("wfs:Delete",{attributes:{typeName:(this.featureNS?this.featurePrefix+":":"")+this.featureType}});
if(this.featureNS){b.setAttribute("xmlns:"+this.featurePrefix,this.featureNS)
}this.writeNode("ogc:Filter",new OpenLayers.Filter.FeatureId({fids:[a.fid]}),b);
return b
}}},schemaLocationAttr:function(e){e=OpenLayers.Util.extend({featurePrefix:this.featurePrefix,schema:this.schema},e);
var d=OpenLayers.Util.extend({},this.schemaLocations);
if(e.schema){d[e.featurePrefix]=e.schema
}var c=[];
var a;
for(var f in d){a=this.namespaces[f];
if(a){c.push(a+" "+d[f])
}}var b=c.join(" ")||undefined;
return b
},setFilterProperty:function(a){if(a.filters){for(var c=0,b=a.filters.length;
c<b;
++c){this.setFilterProperty(a.filters[c])
}}else{if(a instanceof OpenLayers.Filter.Spatial){a.property=this.geometryName
}}},CLASS_NAME:"OpenLayers.Format.WFST.v1"});
OpenLayers.Format.WMC=OpenLayers.Class({defaultVersion:"1.1.0",version:null,layerOptions:null,layerParams:null,parser:null,initialize:function(a){OpenLayers.Util.extend(this,a);
this.options=a
},read:function(a,g){if(typeof a=="string"){a=OpenLayers.Format.XML.prototype.read.apply(this,[a])
}var e=a.documentElement;
var d=this.version;
if(!d){d=e.getAttribute("version")
}var c=this.getParser(d);
var h=c.read(a,g);
var b;
if(g&&g.map){this.context=h;
if(g.map instanceof OpenLayers.Map){b=this.mergeContextToMap(h,g.map)
}else{var f=g.map;
if(OpenLayers.Util.isElement(f)||typeof f=="string"){f={div:f}
}b=this.contextToMap(h,f)
}}else{b=h
}return b
},getParser:function(b){var c=b||this.version||this.defaultVersion;
if(!this.parser||this.parser.VERSION!=c){var a=OpenLayers.Format.WMC["v"+c.replace(/\./g,"_")];
if(!a){throw"Can't find a WMC parser for version "+c
}this.parser=new a(this.options)
}return this.parser
},getLayerFromContext:function(a){var g,d;
var e={queryable:a.queryable,visibility:a.visibility,maxExtent:a.maxExtent,numZoomLevels:a.numZoomLevels,units:a.units,isBaseLayer:a.isBaseLayer,opacity:a.opacity,displayInLayerSwitcher:a.displayInLayerSwitcher,singleTile:a.singleTile,minScale:a.minScale,maxScale:a.maxScale};
if(this.layerOptions){OpenLayers.Util.applyDefaults(e,this.layerOptions)
}var c={layers:a.name,transparent:a.transparent,version:a.version};
if(a.formats&&a.formats.length>0){c.format=a.formats[0].value;
for(g=0,d=a.formats.length;
g<d;
g++){var b=a.formats[g];
if(b.current==true){c.format=b.value;
break
}}}if(a.styles&&a.styles.length>0){for(g=0,d=a.styles.length;
g<d;
g++){var h=a.styles[g];
if(h.current==true){if(h.href){c.sld=h.href
}else{if(h.body){c.sld_body=h.body
}else{c.styles=h.name
}}break
}}}if(this.layerParams){OpenLayers.Util.applyDefaults(c,this.layerParams)
}var f=new OpenLayers.Layer.WMS(a.title||a.name,a.url,c,e);
return f
},getLayersFromContext:function(a){var b=[];
for(var d=0,c=a.length;
d<c;
d++){b.push(this.getLayerFromContext(a[d]))
}return b
},contextToMap:function(c,b){b=OpenLayers.Util.applyDefaults({maxExtent:c.maxExtent,projection:c.projection},b);
var a=new OpenLayers.Map(b);
a.addLayers(this.getLayersFromContext(c.layersContext));
a.setCenter(c.bounds.getCenterLonLat(),a.getZoomForExtent(c.bounds,true));
return a
},mergeContextToMap:function(a,b){b.addLayers(this.getLayersFromContext(a.layersContext));
return b
},write:function(b,e){b=this.toContext(b);
var d=e&&e.version;
var c=this.getParser(d);
var a=c.write(b,e);
return a
},layerToContext:function(b){var a=this.getParser();
var c={queryable:b.queryable,visibility:b.visibility,name:b.params.LAYERS,title:b.name,metadataURL:b.metadataURL,version:b.params.VERSION,url:b.url,maxExtent:b.maxExtent,transparent:b.params.TRANSPARENT,numZoomLevels:b.numZoomLevels,units:b.units,isBaseLayer:b.isBaseLayer,opacity:b.opacity,displayInLayerSwitcher:b.displayInLayerSwitcher,singleTile:b.singleTile,minScale:(b.options.resolutions||b.options.scales||b.options.maxResolution||b.options.minScale)?b.minScale:undefined,maxScale:(b.options.resolutions||b.options.scales||b.options.minResolution||b.options.maxScale)?b.maxScale:undefined,formats:[{value:b.params.FORMAT,current:true}],styles:[{href:b.params.SLD,body:b.params.SLD_BODY,name:b.params.STYLES||a.defaultStyleName,title:a.defaultStyleTitle,current:true}]};
return c
},toContext:function(d){var b={};
var c=d.layers;
if(d.CLASS_NAME=="OpenLayers.Map"){b.bounds=d.getExtent();
b.maxExtent=d.maxExtent;
b.projection=d.projection;
b.size=d.getSize()
}else{OpenLayers.Util.applyDefaults(b,d);
if(b.layers!=undefined){delete (b.layers)
}}if(b.layersContext==undefined){b.layersContext=[]
}if(c!=undefined&&c instanceof Array){for(var a=0,e=c.length;
a<e;
a++){var f=c[a];
if(f instanceof OpenLayers.Layer.WMS){b.layersContext.push(this.layerToContext(f))
}}}return b
},CLASS_NAME:"OpenLayers.Format.WMC"});
OpenLayers.Format.WMSCapabilities=OpenLayers.Class(OpenLayers.Format.XML,{defaultVersion:"1.1.1",version:null,parser:null,initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a]);
this.options=a
},read:function(c){if(typeof c=="string"){c=OpenLayers.Format.XML.prototype.read.apply(this,[c])
}var a=c.documentElement;
var f=this.version||a.getAttribute("version")||this.defaultVersion;
if(!this.parser||this.parser.version!==f){var b=OpenLayers.Format.WMSCapabilities["v"+f.replace(/\./g,"_")];
if(!b){throw"Can't find a WMS capabilities parser for version "+f
}var d=new b(this.options)
}var e=d.read(c);
e.version=f;
return e
},CLASS_NAME:"OpenLayers.Format.WMSCapabilities"});
OpenLayers.Format.WMSDescribeLayer=OpenLayers.Class(OpenLayers.Format.XML,{defaultVersion:"1.1.1",version:null,initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a]);
this.options=a
},read:function(c){if(typeof c=="string"){c=OpenLayers.Format.XML.prototype.read.apply(this,[c])
}var a=c.documentElement;
var f=this.version;
if(!f){f=a.getAttribute("version");
if(!f){f=this.defaultVersion
}}if(f=="1.1.1"||f=="1.1.0"){f="1.1"
}var b=OpenLayers.Format.WMSDescribeLayer["v"+f.replace(/\./g,"_")];
if(!b){throw"Can't find a WMS DescribeLayer parser for version "+f
}var d=new b(this.options);
var e=d.read(c);
e.version=f;
return e
},CLASS_NAME:"OpenLayers.Format.WMSDescribeLayer"});
OpenLayers.Format.WMSGetFeatureInfo=OpenLayers.Class(OpenLayers.Format.XML,{layerIdentifier:"_layer",featureIdentifier:"_feature",regExes:{trimSpace:(/^\s*|\s*$/g),removeSpace:(/\s*/g),splitSpace:(/\s+/),trimComma:(/\s*,\s*/g)},gmlFormat:null,initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,arguments);
OpenLayers.Util.extend(this,a);
this.options=a
},read:function(c){var d;
if(typeof c=="string"){c=OpenLayers.Format.XML.prototype.read.apply(this,[c])
}var e=c.documentElement;
if(e){var a=this;
var b=this["read_"+e.nodeName];
if(b){d=b.call(this,e)
}else{d=new OpenLayers.Format.GML((this.options?this.options:{})).read(c)
}}else{d=c
}return d
},read_msGMLOutput:function(o){var k=[];
var f=this.getSiblingNodesByTagCriteria(o,this.layerIdentifier);
if(f){for(var p=0,d=f.length;
p<d;
++p){var g=f[p];
var a=g.nodeName;
if(g.prefix){a=a.split(":")[1]
}var a=a.replace(this.layerIdentifier,"");
var b=this.getSiblingNodesByTagCriteria(g,this.featureIdentifier);
if(b){for(var m=0;
m<b.length;
m++){var c=b[m];
var h=this.parseGeometry(c);
var l=this.parseAttributes(c);
var e=new OpenLayers.Feature.Vector(h.geometry,l,null);
e.bounds=h.bounds;
e.type=a;
k.push(e)
}}}}return k
},read_FeatureInfoResponse:function(a){var k=[];
var c=this.getElementsByTagNameNS(a,"*","FIELDS");
for(var b=0,d=c.length;
b<d;
b++){var g=c[b];
var e=null;
var m={};
for(var l=0,f=g.attributes.length;
l<f;
l++){var h=g.attributes[l];
m[h.nodeName]=h.nodeValue
}k.push(new OpenLayers.Feature.Vector(e,m,null))
}return k
},getSiblingNodesByTagCriteria:function(e,h){var i=[];
var b,d,c,f,a;
if(e&&e.hasChildNodes()){b=e.childNodes;
c=b.length;
for(var g=0;
g<c;
g++){a=b[g];
while(a&&a.nodeType!=1){a=a.nextSibling;
g++
}d=(a?a.nodeName:"");
if(d.length>0&&d.indexOf(h)>-1){i.push(a)
}else{f=this.getSiblingNodesByTagCriteria(a,h);
if(f.length>0){(i.length==0)?i=f:i.push(f)
}}}}return i
},parseAttributes:function(c){var d={};
if(c.nodeType==1){var b=c.childNodes;
n=b.length;
for(var e=0;
e<n;
++e){var a=b[e];
if(a.nodeType==1){var h=a.childNodes;
if(h.length==1){var g=h[0];
if(g.nodeType==3||g.nodeType==4){var j=(a.prefix)?a.nodeName.split(":")[1]:a.nodeName;
var f=g.nodeValue.replace(this.regExes.trimSpace,"");
d[j]=f
}}}}}return d
},parseGeometry:function(a){if(!this.gmlFormat){this.gmlFormat=new OpenLayers.Format.GML()
}var c=this.gmlFormat.parseFeature(a);
var b,d=null;
if(c&&c.geometry){b=c.geometry.clone();
d=c.bounds&&c.bounds.clone();
c.destroy()
}return{geometry:b,bounds:d}
},CLASS_NAME:"OpenLayers.Format.WMSGetFeatureInfo"});
OpenLayers.Handler.Click=OpenLayers.Class(OpenLayers.Handler,{delay:300,single:true,"double":false,pixelTolerance:0,stopSingle:false,stopDouble:false,timerId:null,down:null,rightclickTimerId:null,initialize:function(a,c,b){OpenLayers.Handler.prototype.initialize.apply(this,arguments);
if(this.pixelTolerance!=null){this.mousedown=function(d){this.down=d.xy;
return true
}
}},mousedown:null,mouseup:function(b){var a=true;
if(this.checkModifiers(b)&&this.control.handleRightClicks&&OpenLayers.Event.isRightClick(b)){a=this.rightclick(b)
}return a
},rightclick:function(c){if(this.passesTolerance(c)){if(this.rightclickTimerId!=null){this.clearTimer();
this.callback("dblrightclick",[c]);
return !this.stopDouble
}else{var b=this["double"]?OpenLayers.Util.extend({},c):this.callback("rightclick",[c]);
var a=OpenLayers.Function.bind(this.delayedRightCall,this,b);
this.rightclickTimerId=window.setTimeout(a,this.delay)
}}return !this.stopSingle
},delayedRightCall:function(a){this.rightclickTimerId=null;
if(a){this.callback("rightclick",[a])
}return !this.stopSingle
},dblclick:function(a){if(this.passesTolerance(a)){if(this["double"]){this.callback("dblclick",[a])
}this.clearTimer()
}return !this.stopDouble
},click:function(b){if(this.passesTolerance(b)){if(this.timerId!=null){this.clearTimer()
}else{var a=this.single?OpenLayers.Util.extend({},b):null;
this.timerId=window.setTimeout(OpenLayers.Function.bind(this.delayedCall,this,a),this.delay)
}}return !this.stopSingle
},passesTolerance:function(c){var a=true;
if(this.pixelTolerance!=null&&this.down){var b=Math.sqrt(Math.pow(this.down.x-c.xy.x,2)+Math.pow(this.down.y-c.xy.y,2));
if(b>this.pixelTolerance){a=false
}}return a
},clearTimer:function(){if(this.timerId!=null){window.clearTimeout(this.timerId);
this.timerId=null
}if(this.rightclickTimerId!=null){window.clearTimeout(this.rightclickTimerId);
this.rightclickTimerId=null
}},delayedCall:function(a){this.timerId=null;
if(a){this.callback("click",[a])
}},deactivate:function(){var a=false;
if(OpenLayers.Handler.prototype.deactivate.apply(this,arguments)){this.clearTimer();
this.down=null;
a=true
}return a
},CLASS_NAME:"OpenLayers.Handler.Click"});
OpenLayers.Handler.Drag=OpenLayers.Class(OpenLayers.Handler,{started:false,stopDown:true,dragging:false,last:null,start:null,oldOnselectstart:null,interval:0,timeoutId:null,documentDrag:false,documentEvents:null,initialize:function(a,c,b){OpenLayers.Handler.prototype.initialize.apply(this,arguments)
},down:function(a){},move:function(a){},up:function(a){},out:function(a){},mousedown:function(b){var a=true;
this.dragging=false;
if(this.checkModifiers(b)&&OpenLayers.Event.isLeftClick(b)){this.started=true;
this.start=b.xy;
this.last=b.xy;
OpenLayers.Element.addClass(this.map.viewPortDiv,"olDragDown");
this.down(b);
this.callback("down",[b.xy]);
OpenLayers.Event.stop(b);
if(!this.oldOnselectstart){this.oldOnselectstart=(document.onselectstart)?document.onselectstart:OpenLayers.Function.True;
document.onselectstart=OpenLayers.Function.False
}a=!this.stopDown
}else{this.started=false;
this.start=null;
this.last=null
}return a
},mousemove:function(a){if(this.started&&!this.timeoutId&&(a.xy.x!=this.last.x||a.xy.y!=this.last.y)){if(this.documentDrag===true&&this.documentEvents){if(a.element===document){this.adjustXY(a);
this.setEvent(a)
}else{this.destroyDocumentEvents()
}}if(this.interval>0){this.timeoutId=setTimeout(OpenLayers.Function.bind(this.removeTimeout,this),this.interval)
}this.dragging=true;
this.move(a);
this.callback("move",[a.xy]);
if(!this.oldOnselectstart){this.oldOnselectstart=document.onselectstart;
document.onselectstart=OpenLayers.Function.False
}this.last=this.evt.xy
}return true
},removeTimeout:function(){this.timeoutId=null
},mouseup:function(b){if(this.started){if(this.documentDrag===true&&this.documentEvents){this.adjustXY(b);
this.destroyDocumentEvents()
}var a=(this.start!=this.last);
this.started=false;
this.dragging=false;
OpenLayers.Element.removeClass(this.map.viewPortDiv,"olDragDown");
this.up(b);
this.callback("up",[b.xy]);
if(a){this.callback("done",[b.xy])
}document.onselectstart=this.oldOnselectstart
}return true
},mouseout:function(b){if(this.started&&OpenLayers.Util.mouseLeft(b,this.map.div)){if(this.documentDrag===true){this.documentEvents=new OpenLayers.Events(this,document,null,null,{includeXY:true});
this.documentEvents.on({mousemove:this.mousemove,mouseup:this.mouseup});
OpenLayers.Element.addClass(document.body,"olDragDown")
}else{var a=(this.start!=this.last);
this.started=false;
this.dragging=false;
OpenLayers.Element.removeClass(this.map.viewPortDiv,"olDragDown");
this.out(b);
this.callback("out",[]);
if(a){this.callback("done",[b.xy])
}if(document.onselectstart){document.onselectstart=this.oldOnselectstart
}}}return true
},click:function(a){return(this.start==this.last)
},activate:function(){var a=false;
if(OpenLayers.Handler.prototype.activate.apply(this,arguments)){this.dragging=false;
a=true
}return a
},deactivate:function(){var a=false;
if(OpenLayers.Handler.prototype.deactivate.apply(this,arguments)){this.started=false;
this.dragging=false;
this.start=null;
this.last=null;
a=true;
OpenLayers.Element.removeClass(this.map.viewPortDiv,"olDragDown")
}return a
},adjustXY:function(a){var b=OpenLayers.Util.pagePosition(this.map.div);
a.xy.x-=b[0];
a.xy.y-=b[1]
},destroyDocumentEvents:function(){OpenLayers.Element.removeClass(document.body,"olDragDown");
this.documentEvents.destroy();
this.documentEvents=null
},CLASS_NAME:"OpenLayers.Handler.Drag"});
OpenLayers.Handler.Feature=OpenLayers.Class(OpenLayers.Handler,{EVENTMAP:{click:{"in":"click",out:"clickout"},mousemove:{"in":"over",out:"out"},dblclick:{"in":"dblclick",out:null},mousedown:{"in":null,out:null},mouseup:{"in":null,out:null}},feature:null,lastFeature:null,down:null,up:null,clickTolerance:4,geometryTypes:null,stopClick:true,stopDown:true,stopUp:false,initialize:function(b,d,a,c){OpenLayers.Handler.prototype.initialize.apply(this,[b,a,c]);
this.layer=d
},mousedown:function(a){this.down=a.xy;
return this.handle(a)?!this.stopDown:true
},mouseup:function(a){this.up=a.xy;
return this.handle(a)?!this.stopUp:true
},click:function(a){return this.handle(a)?!this.stopClick:true
},mousemove:function(a){if(!this.callbacks.over&&!this.callbacks.out){return true
}this.handle(a);
return true
},dblclick:function(a){return !this.handle(a)
},geometryTypeMatches:function(a){return this.geometryTypes==null||OpenLayers.Util.indexOf(this.geometryTypes,a.geometry.CLASS_NAME)>-1
},handle:function(e){if(this.feature&&!this.feature.layer){this.feature=null
}var a=e.type;
var d=false;
var c=!!(this.feature);
var b=(a=="click"||a=="dblclick");
this.feature=this.layer.getFeatureFromEvent(e);
if(this.feature&&!this.feature.layer){this.feature=null
}if(this.lastFeature&&!this.lastFeature.layer){this.lastFeature=null
}if(this.feature){var f=(this.feature!=this.lastFeature);
if(this.geometryTypeMatches(this.feature)){if(c&&f){if(this.lastFeature){this.triggerCallback(a,"out",[this.lastFeature])
}this.triggerCallback(a,"in",[this.feature])
}else{if(!c||b){this.triggerCallback(a,"in",[this.feature])
}}this.lastFeature=this.feature;
d=true
}else{if(this.lastFeature&&(c&&f||b)){this.triggerCallback(a,"out",[this.lastFeature])
}this.feature=null
}}else{if(this.lastFeature&&(c||b)){this.triggerCallback(a,"out",[this.lastFeature])
}}return d
},triggerCallback:function(b,c,e){var a=this.EVENTMAP[b][c];
if(a){if(b=="click"&&this.up&&this.down){var d=Math.sqrt(Math.pow(this.up.x-this.down.x,2)+Math.pow(this.up.y-this.down.y,2));
if(d<=this.clickTolerance){this.callback(a,e)
}}else{this.callback(a,e)
}}},activate:function(){var a=false;
if(OpenLayers.Handler.prototype.activate.apply(this,arguments)){this.moveLayerToTop();
this.map.events.on({removelayer:this.handleMapEvents,changelayer:this.handleMapEvents,scope:this});
a=true
}return a
},deactivate:function(){var a=false;
if(OpenLayers.Handler.prototype.deactivate.apply(this,arguments)){this.moveLayerBack();
this.feature=null;
this.lastFeature=null;
this.down=null;
this.up=null;
this.map.events.un({removelayer:this.handleMapEvents,changelayer:this.handleMapEvents,scope:this});
a=true
}return a
},handleMapEvents:function(a){if(!a.property||a.property=="order"){this.moveLayerToTop()
}},moveLayerToTop:function(){var a=Math.max(this.map.Z_INDEX_BASE.Feature-1,this.layer.getZIndex())+1;
this.layer.setZIndex(a)
},moveLayerBack:function(){var a=this.layer.getZIndex()-1;
if(a>=this.map.Z_INDEX_BASE.Feature){this.layer.setZIndex(a)
}else{this.map.setLayerZIndex(this.layer,this.map.getLayerIndex(this.layer))
}},CLASS_NAME:"OpenLayers.Handler.Feature"});
OpenLayers.Handler.Hover=OpenLayers.Class(OpenLayers.Handler,{delay:500,pixelTolerance:null,stopMove:false,px:null,timerId:null,initialize:function(a,c,b){OpenLayers.Handler.prototype.initialize.apply(this,arguments)
},mousemove:function(a){if(this.passesTolerance(a.xy)){this.clearTimer();
this.callback("move",[a]);
this.px=a.xy;
a=OpenLayers.Util.extend({},a);
this.timerId=window.setTimeout(OpenLayers.Function.bind(this.delayedCall,this,a),this.delay)
}return !this.stopMove
},mouseout:function(a){if(OpenLayers.Util.mouseLeft(a,this.map.div)){this.clearTimer();
this.callback("move",[a])
}return true
},passesTolerance:function(c){var a=true;
if(this.pixelTolerance&&this.px){var b=Math.sqrt(Math.pow(this.px.x-c.x,2)+Math.pow(this.px.y-c.y,2));
if(b<this.pixelTolerance){a=false
}}return a
},clearTimer:function(){if(this.timerId!=null){window.clearTimeout(this.timerId);
this.timerId=null
}},delayedCall:function(a){this.callback("pause",[a])
},deactivate:function(){var a=false;
if(OpenLayers.Handler.prototype.deactivate.apply(this,arguments)){this.clearTimer();
a=true
}return a
},CLASS_NAME:"OpenLayers.Handler.Hover"});
OpenLayers.Handler.Keyboard=OpenLayers.Class(OpenLayers.Handler,{KEY_EVENTS:["keydown","keyup"],eventListener:null,initialize:function(a,c,b){OpenLayers.Handler.prototype.initialize.apply(this,arguments);
this.eventListener=OpenLayers.Function.bindAsEventListener(this.handleKeyEvent,this)
},destroy:function(){this.deactivate();
this.eventListener=null;
OpenLayers.Handler.prototype.destroy.apply(this,arguments)
},activate:function(){if(OpenLayers.Handler.prototype.activate.apply(this,arguments)){for(var b=0,a=this.KEY_EVENTS.length;
b<a;
b++){OpenLayers.Event.observe(document,this.KEY_EVENTS[b],this.eventListener)
}return true
}else{return false
}},deactivate:function(){var a=false;
if(OpenLayers.Handler.prototype.deactivate.apply(this,arguments)){for(var c=0,b=this.KEY_EVENTS.length;
c<b;
c++){OpenLayers.Event.stopObserving(document,this.KEY_EVENTS[c],this.eventListener)
}a=true
}return a
},handleKeyEvent:function(a){if(this.checkModifiers(a)){this.callback(a.type,[a])
}},CLASS_NAME:"OpenLayers.Handler.Keyboard"});
OpenLayers.Handler.MouseWheel=OpenLayers.Class(OpenLayers.Handler,{wheelListener:null,mousePosition:null,interval:0,delta:0,cumulative:true,initialize:function(a,c,b){OpenLayers.Handler.prototype.initialize.apply(this,arguments);
this.wheelListener=OpenLayers.Function.bindAsEventListener(this.onWheelEvent,this)
},destroy:function(){OpenLayers.Handler.prototype.destroy.apply(this,arguments);
this.wheelListener=null
},onWheelEvent:function(d){if(!this.map||!this.checkModifiers(d)){return
}var a=false;
var g=false;
var m=false;
var j=OpenLayers.Event.element(d);
while((j!=null)&&!m&&!a){if(!a){try{if(j.currentStyle){k=j.currentStyle.overflow
}else{var h=document.defaultView.getComputedStyle(j,null);
var k=h.getPropertyValue("overflow")
}a=(k&&(k=="auto")||(k=="scroll"))
}catch(l){}}if(!g){for(var b=0,c=this.map.layers.length;
b<c;
b++){if(j==this.map.layers[b].div||j==this.map.layers[b].pane){g=true;
break
}}}m=(j==this.map.div);
j=j.parentNode
}if(!a&&m){if(g){var f=0;
if(!d){d=window.event
}if(d.wheelDelta){f=d.wheelDelta/120;
if(window.opera&&window.opera.version()<9.2){f=-f
}}else{if(d.detail){f=-d.detail/3
}}this.delta=this.delta+f;
if(this.interval){window.clearTimeout(this._timeoutId);
this._timeoutId=window.setTimeout(OpenLayers.Function.bind(function(){this.wheelZoom(d)
},this),this.interval)
}else{this.wheelZoom(d)
}}OpenLayers.Event.stop(d)
}},wheelZoom:function(a){var b=this.delta;
this.delta=0;
if(b){if(this.mousePosition){a.xy=this.mousePosition
}if(!a.xy){a.xy=this.map.getPixelFromLonLat(this.map.getCenter())
}if(b<0){this.callback("down",[a,this.cumulative?b:-1])
}else{this.callback("up",[a,this.cumulative?b:1])
}}},mousemove:function(a){this.mousePosition=a.xy
},activate:function(a){if(OpenLayers.Handler.prototype.activate.apply(this,arguments)){var b=this.wheelListener;
OpenLayers.Event.observe(window,"DOMMouseScroll",b);
OpenLayers.Event.observe(window,"mousewheel",b);
OpenLayers.Event.observe(document,"mousewheel",b);
return true
}else{return false
}},deactivate:function(a){if(OpenLayers.Handler.prototype.deactivate.apply(this,arguments)){var b=this.wheelListener;
OpenLayers.Event.stopObserving(window,"DOMMouseScroll",b);
OpenLayers.Event.stopObserving(window,"mousewheel",b);
OpenLayers.Event.stopObserving(document,"mousewheel",b);
return true
}else{return false
}},CLASS_NAME:"OpenLayers.Handler.MouseWheel"});
OpenLayers.Layer=OpenLayers.Class({id:null,name:null,div:null,opacity:null,alwaysInRange:null,EVENT_TYPES:["loadstart","loadend","loadcancel","visibilitychanged","move","moveend"],events:null,map:null,isBaseLayer:false,alpha:false,displayInLayerSwitcher:true,visibility:true,attribution:null,inRange:false,imageSize:null,imageOffset:null,options:null,eventListeners:null,gutter:0,projection:null,units:null,scales:null,resolutions:null,maxExtent:null,minExtent:null,maxResolution:null,minResolution:null,numZoomLevels:null,minScale:null,maxScale:null,displayOutsideMaxExtent:false,wrapDateLine:false,transitionEffect:null,SUPPORTED_TRANSITIONS:["resize"],initialize:function(b,a){this.addOptions(a);
this.name=b;
if(this.id==null){this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_");
this.div=OpenLayers.Util.createDiv(this.id);
this.div.style.width="100%";
this.div.style.height="100%";
this.div.dir="ltr";
this.events=new OpenLayers.Events(this,this.div,this.EVENT_TYPES);
if(this.eventListeners instanceof Object){this.events.on(this.eventListeners)
}}if(this.wrapDateLine){this.displayOutsideMaxExtent=true
}},destroy:function(a){if(a==null){a=true
}if(this.map!=null){this.map.removeLayer(this,a)
}this.projection=null;
this.map=null;
this.name=null;
this.div=null;
this.options=null;
if(this.events){if(this.eventListeners){this.events.un(this.eventListeners)
}this.events.destroy()
}this.eventListeners=null;
this.events=null
},clone:function(a){if(a==null){a=new OpenLayers.Layer(this.name,this.getOptions())
}OpenLayers.Util.applyDefaults(a,this);
a.map=null;
return a
},getOptions:function(){var a={};
for(var b in this.options){a[b]=this[b]
}return a
},setName:function(a){if(a!=this.name){this.name=a;
if(this.map!=null){this.map.events.triggerEvent("changelayer",{layer:this,property:"name"})
}}},addOptions:function(a){if(this.options==null){this.options={}
}OpenLayers.Util.extend(this.options,a);
OpenLayers.Util.extend(this,a)
},onMapResize:function(){},redraw:function(){var c=false;
if(this.map){this.inRange=this.calculateInRange();
var a=this.getExtent();
if(a&&this.inRange&&this.visibility){var b=true;
this.moveTo(a,b,false);
this.events.triggerEvent("moveend",{zoomChanged:b});
c=true
}}return c
},moveTo:function(d,c,a){var b=this.visibility;
if(!this.isBaseLayer){b=b&&this.inRange
}this.display(b)
},setMap:function(b){if(this.map==null){this.map=b;
this.maxExtent=this.maxExtent||this.map.maxExtent;
this.projection=this.projection||this.map.projection;
if(this.projection&&typeof this.projection=="string"){this.projection=new OpenLayers.Projection(this.projection)
}this.units=this.projection.getUnits()||this.units||this.map.units;
this.initResolutions();
if(!this.isBaseLayer){this.inRange=this.calculateInRange();
var a=((this.visibility)&&(this.inRange));
this.div.style.display=a?"":"none"
}this.setTileSize()
}},afterAdd:function(){},removeMap:function(a){},getImageSize:function(a){return(this.imageSize||this.tileSize)
},setTileSize:function(a){var b=(a)?a:((this.tileSize)?this.tileSize:this.map.getTileSize());
this.tileSize=b;
if(this.gutter){this.imageOffset=new OpenLayers.Pixel(-this.gutter,-this.gutter);
this.imageSize=new OpenLayers.Size(b.w+(2*this.gutter),b.h+(2*this.gutter))
}},getVisibility:function(){return this.visibility
},setVisibility:function(a){if(a!=this.visibility){this.visibility=a;
this.display(a);
this.redraw();
if(this.map!=null){this.map.events.triggerEvent("changelayer",{layer:this,property:"visibility"})
}this.events.triggerEvent("visibilitychanged")
}},display:function(a){if(a!=(this.div.style.display!="none")){this.div.style.display=(a&&this.calculateInRange())?"block":"none"
}},calculateInRange:function(){var b=false;
if(this.alwaysInRange){b=true
}else{if(this.map){var a=this.map.getResolution();
b=((a>=this.minResolution)&&(a<=this.maxResolution))
}}return b
},setIsBaseLayer:function(a){if(a!=this.isBaseLayer){this.isBaseLayer=a;
if(this.map!=null){this.map.events.triggerEvent("changebaselayer",{layer:this})
}}},initResolutions:function(){var q=new Array("projection","units","scales","resolutions","maxScale","minScale","maxResolution","minResolution","minExtent","maxExtent","numZoomLevels","maxZoomLevel");
var b=["projection","units"];
var e=false;
var d={};
for(var g=0,k=q.length;
g<k;
g++){var f=q[g];
if(this.options[f]&&OpenLayers.Util.indexOf(b,f)==-1){e=true
}d[f]=this.options[f]||this.map[f]
}if(this.alwaysInRange==null){this.alwaysInRange=!e
}if((this.options.minScale!=null||this.options.maxScale!=null)&&this.options.scales==null){d.scales=null
}if((this.options.minResolution!=null||this.options.maxResolution!=null)&&this.options.resolutions==null){d.resolutions=null
}if((!d.numZoomLevels)&&(d.maxZoomLevel)){d.numZoomLevels=d.maxZoomLevel+1
}if((d.scales!=null)||(d.resolutions!=null)){if(d.scales!=null){d.resolutions=[];
for(var g=0,k=d.scales.length;
g<k;
g++){var c=d.scales[g];
d.resolutions[g]=OpenLayers.Util.getResolutionFromScale(c,d.units)
}}d.numZoomLevels=d.resolutions.length
}else{if(d.minScale){d.maxResolution=OpenLayers.Util.getResolutionFromScale(d.minScale,d.units)
}else{if(d.maxResolution=="auto"){var a=this.map.getSize();
var o=d.maxExtent.getWidth()/a.w;
var j=d.maxExtent.getHeight()/a.h;
d.maxResolution=Math.max(o,j)
}}if(d.maxScale!=null){d.minResolution=OpenLayers.Util.getResolutionFromScale(d.maxScale,d.units)
}else{if((d.minResolution=="auto")&&(d.minExtent!=null)){var a=this.map.getSize();
var o=d.minExtent.getWidth()/a.w;
var j=d.minExtent.getHeight()/a.h;
d.minResolution=Math.max(o,j)
}}if(d.minResolution!=null&&this.options.numZoomLevels==undefined){var m=d.maxResolution/d.minResolution;
d.numZoomLevels=Math.floor(Math.log(m)/Math.log(2))+1
}d.resolutions=new Array(d.numZoomLevels);
var p=2;
if(typeof d.minResolution=="number"&&d.numZoomLevels>1){p=Math.pow((d.maxResolution/d.minResolution),(1/(d.numZoomLevels-1)))
}for(var g=0;
g<d.numZoomLevels;
g++){var l=d.maxResolution/Math.pow(p,g);
d.resolutions[g]=l
}}d.resolutions.sort(function(i,r){return(r-i)
});
this.resolutions=d.resolutions;
this.maxResolution=d.resolutions[0];
var h=d.resolutions.length-1;
this.minResolution=d.resolutions[h];
this.scales=[];
for(var g=0,k=d.resolutions.length;
g<k;
g++){this.scales[g]=OpenLayers.Util.getScaleFromResolution(d.resolutions[g],d.units)
}this.minScale=this.scales[0];
this.maxScale=this.scales[this.scales.length-1];
this.numZoomLevels=d.numZoomLevels
},getResolution:function(){var a=this.map.getZoom();
return this.getResolutionForZoom(a)
},getExtent:function(){return this.map.calculateBounds()
},getZoomForExtent:function(d,a){var b=this.map.getSize();
var c=Math.max(d.getWidth()/b.w,d.getHeight()/b.h);
return this.getZoomForResolution(c,a)
},getDataExtent:function(){},getResolutionForZoom:function(a){a=Math.max(0,Math.min(a,this.resolutions.length-1));
var d;
if(this.map.fractionalZoom){var c=Math.floor(a);
var b=Math.ceil(a);
d=this.resolutions[c]-((a-c)*(this.resolutions[c]-this.resolutions[b]))
}else{d=this.resolutions[Math.round(a)]
}return d
},getZoomForResolution:function(j,d){var e;
if(this.map.fractionalZoom){var a=0;
var g=this.resolutions.length-1;
var h=this.resolutions[a];
var f=this.resolutions[g];
var o;
for(var k=0,l=this.resolutions.length;
k<l;
++k){o=this.resolutions[k];
if(o>=j){h=o;
a=k
}if(o<=j){f=o;
g=k;
break
}}var m=h-f;
if(m>0){e=a+((h-j)/m)
}else{e=a
}}else{var b;
var c=Number.POSITIVE_INFINITY;
for(var k=0,l=this.resolutions.length;
k<l;
k++){if(d){b=Math.abs(this.resolutions[k]-j);
if(b>c){break
}c=b
}else{if(this.resolutions[k]<j){break
}}}e=Math.max(0,k-1)
}return e
},getLonLatFromViewPortPx:function(f){var b=null;
if(f!=null){var a=this.map.getSize();
var e=this.map.getCenter();
if(e){var g=this.map.getResolution();
var d=f.x-(a.w/2);
var c=f.y-(a.h/2);
b=new OpenLayers.LonLat(e.lon+d*g,e.lat-c*g);
if(this.wrapDateLine){b=b.wrapDateLine(this.maxExtent)
}}}return b
},getViewPortPxFromLonLat:function(b){var d=null;
if(b!=null){var c=this.map.getResolution();
var a=this.map.getExtent();
d=new OpenLayers.Pixel((1/c*(b.lon-a.left)),(1/c*(a.top-b.lat)))
}return d
},setOpacity:function(d){if(d!=this.opacity){this.opacity=d;
for(var b=0,c=this.div.childNodes.length;
b<c;
++b){var a=this.div.childNodes[b].firstChild;
OpenLayers.Util.modifyDOMElement(a,null,null,null,null,null,null,d)
}if(this.map!=null){this.map.events.triggerEvent("changelayer",{layer:this,property:"opacity"})
}}},getZIndex:function(){return this.div.style.zIndex
},setZIndex:function(a){this.div.style.zIndex=a
},adjustBounds:function(c){if(this.gutter){var b=this.gutter*this.map.getResolution();
c=new OpenLayers.Bounds(c.left-b,c.bottom-b,c.right+b,c.top+b)
}if(this.wrapDateLine){var a={rightTolerance:this.getResolution()};
c=c.wrapDateLine(this.maxExtent,a)
}return c
},CLASS_NAME:"OpenLayers.Layer"});
OpenLayers.Marker.Box=OpenLayers.Class(OpenLayers.Marker,{bounds:null,div:null,initialize:function(c,a,b){this.bounds=c;
this.div=OpenLayers.Util.createDiv();
this.div.style.overflow="hidden";
this.events=new OpenLayers.Events(this,this.div,null);
this.setBorder(a,b)
},destroy:function(){this.bounds=null;
this.div=null;
OpenLayers.Marker.prototype.destroy.apply(this,arguments)
},setBorder:function(a,b){if(!a){a="red"
}if(!b){b=2
}this.div.style.border=b+"px solid "+a
},draw:function(a,b){OpenLayers.Util.modifyDOMElement(this.div,null,a,b);
return this.div
},onScreen:function(){var b=false;
if(this.map){var a=this.map.getExtent();
b=a.containsBounds(this.bounds,true,true)
}return b
},display:function(a){this.div.style.display=(a)?"":"none"
},CLASS_NAME:"OpenLayers.Marker.Box"});
(function(){var g=window.XMLHttpRequest;
var c=!!window.controllers,h=window.document.all&&!window.opera;
function f(){this._object=g?new g:new window.ActiveXObject("Microsoft.XMLHTTP")
}if(c&&g.wrapped){f.wrapped=g.wrapped
}f.UNSENT=0;
f.OPENED=1;
f.HEADERS_RECEIVED=2;
f.LOADING=3;
f.DONE=4;
f.prototype.readyState=f.UNSENT;
f.prototype.responseText="";
f.prototype.responseXML=null;
f.prototype.status=0;
f.prototype.statusText="";
f.prototype.onreadystatechange=null;
f.onreadystatechange=null;
f.onopen=null;
f.onsend=null;
f.onabort=null;
f.prototype.open=function(i,l,q,m,p){this._async=q;
var k=this,j=this.readyState;
if(h){var o=function(){if(k._object.readyState!=f.DONE){d(k)
}};
if(q){window.attachEvent("onunload",o)
}}this._object.onreadystatechange=function(){if(c&&!q){return
}k.readyState=k._object.readyState;
b(k);
if(k._aborted){k.readyState=f.UNSENT;
return
}if(k.readyState==f.DONE){d(k);
if(h&&q){window.detachEvent("onunload",o)
}}if(j!=k.readyState){a(k)
}j=k.readyState
};
if(f.onopen){f.onopen.apply(this,arguments)
}this._object.open(i,l,q,m,p);
if(!q&&c){this.readyState=f.OPENED;
a(this)
}};
f.prototype.send=function(i){if(f.onsend){f.onsend.apply(this,arguments)
}if(i&&i.nodeType){i=window.XMLSerializer?new window.XMLSerializer().serializeToString(i):i.xml;
if(!this._headers["Content-Type"]){this._object.setRequestHeader("Content-Type","application/xml")
}}this._object.send(i);
if(c&&!this._async){this.readyState=f.OPENED;
b(this);
while(this.readyState<f.DONE){this.readyState++;
a(this);
if(this._aborted){return
}}}};
f.prototype.abort=function(){if(f.onabort){f.onabort.apply(this,arguments)
}if(this.readyState>f.UNSENT){this._aborted=true
}this._object.abort();
d(this)
};
f.prototype.getAllResponseHeaders=function(){return this._object.getAllResponseHeaders()
};
f.prototype.getResponseHeader=function(i){return this._object.getResponseHeader(i)
};
f.prototype.setRequestHeader=function(i,j){if(!this._headers){this._headers={}
}this._headers[i]=j;
return this._object.setRequestHeader(i,j)
};
f.prototype.toString=function(){return"[object XMLHttpRequest]"
};
f.toString=function(){return"[XMLHttpRequest]"
};
function a(i){if(i.onreadystatechange){i.onreadystatechange.apply(i)
}if(f.onreadystatechange){f.onreadystatechange.apply(i)
}}function e(j){var i=j.responseXML;
if(h&&i&&!i.documentElement&&j.getResponseHeader("Content-Type").match(/[^\/]+\/[^\+]+\+xml/)){i=new ActiveXObject("Microsoft.XMLDOM");
i.loadXML(j.responseText)
}if(i){if((h&&i.parseError!=0)||(i.documentElement&&i.documentElement.tagName=="parsererror")){return null
}}return i
}function b(i){try{i.responseText=i._object.responseText
}catch(j){}try{i.responseXML=e(i._object)
}catch(j){}try{i.status=i._object.status
}catch(j){}try{i.statusText=i._object.statusText
}catch(j){}}function d(i){i._object.onreadystatechange=new window.Function;
delete i._headers
}if(!window.Function.prototype.apply){window.Function.prototype.apply=function(i,j){if(!j){j=[]
}i.__func=this;
i.__func(j[0],j[1],j[2],j[3],j[4]);
delete i.__func
}
}OpenLayers.Request.XMLHttpRequest=f
})();
OpenLayers.Tile.Image.IFrame=OpenLayers.Class(OpenLayers.Tile.Image,{initialize:function(b,d,c,e,a){OpenLayers.Tile.Image.prototype.initialize.apply(this,arguments);
this.layerAlphaHack=false
},destroy:function(){if(this.imgDiv!=null){OpenLayers.Event.stopObservingElement(this.imgDiv.firstChild)
}OpenLayers.Tile.Image.prototype.destroy.apply(this,arguments)
},clear:function(){if(this.imgDiv){var a=this.imgDiv.firstChild;
OpenLayers.Event.stopObservingElement(a);
this.imgDiv.removeChild(a)
}},clone:function(a){if(a==null){a=new OpenLayers.Tile.Image.IFrame(this.layer,this.position,this.bounds,this.url,this.size)
}a=OpenLayers.Tile.Image.prototype.clone.apply(this,[a]);
return a
},renderTile:function(){if(OpenLayers.Tile.Image.prototype.renderTile.apply(this,arguments)){var a=this.createRequestForm();
this.imgDiv.appendChild(a);
a.submit();
this.imgDiv.removeChild(a)
}},initImgDiv:function(){this.imgDiv=this.createImgDiv();
OpenLayers.Util.modifyDOMElement(this.imgDiv,this.id,null,this.layer.getImageSize(),"relative");
this.imgDiv.className="olTileImage";
this.frame.appendChild(this.imgDiv);
this.layer.div.appendChild(this.frame);
if(this.layer.opacity!=null){OpenLayers.Util.modifyDOMElement(this.imgDiv,null,null,null,null,null,null,this.layer.opacity)
}this.imgDiv.map=this.layer.map
},createImgDiv:function(){var b=document.createElement("div");
if(OpenLayers.Util.getBrowserName()=="msie"){b.style.backgroundColor="#FFFFFF";
b.style.filter="chroma(color=#FFFFFF)"
}OpenLayers.Util.modifyDOMElement(b,null,new OpenLayers.Pixel(0,0),this.layer.getImageSize(),"absolute");
var a=document.createElement("div");
a.appendChild(b);
return a
},createIFrame:function(){var a=this.id+"_iFrame";
var b;
if(OpenLayers.Util.getBrowserName()=="msie"){b=document.createElement('<iframe name="'+a+'">');
b.style.backgroundColor="#FFFFFF";
b.style.filter="chroma(color=#FFFFFF)"
}else{b=document.createElement("iframe");
b.style.backgroundColor="transparent";
b.name=a
}b.id=a;
b.scrolling="no";
b.marginWidth="0px";
b.marginHeight="0px";
b.frameBorder="0";
OpenLayers.Util.modifyDOMElement(b,a,new OpenLayers.Pixel(0,0),this.layer.getImageSize(),"absolute");
var c=function(){this.show();
if(this.isLoading){this.isLoading=false;
this.events.triggerEvent("loadend")
}};
OpenLayers.Event.observe(b,"load",OpenLayers.Function.bind(c,this));
return b
},createRequestForm:function(){var f=document.createElement("form");
f.method="POST";
var d=this.layer.params._OLSALT;
d=(d?d+"_":"")+this.bounds.toBBOX();
f.action=OpenLayers.Util.urlAppend(this.layer.url,d);
this.imgDiv.insertBefore(this.createIFrame(),this.imgDiv.firstChild);
f.target=this.id+"_iFrame";
var a=this.layer.getImageSize();
var c=OpenLayers.Util.extend({BBOX:this.encodeBBOX?this.bounds.toBBOX():this.bounds.toArray(),WIDTH:a.w,HEIGHT:a.h},this.layer.params);
for(var e in c){var b=document.createElement("input");
b.type="hidden";
b.name=e;
b.value=c[e];
f.appendChild(b)
}return f
},CLASS_NAME:"OpenLayers.Tile.Image.IFrame"});
OpenLayers.ProxyHost="";
OpenLayers.nullHandler=function(a){OpenLayers.Console.userError(OpenLayers.i18n("unhandledRequest",{statusText:a.statusText}))
};
OpenLayers.loadURL=function(a,d,f,b,g){if(typeof d=="string"){d=OpenLayers.Util.getParameters(d)
}var c=(b)?b:OpenLayers.nullHandler;
var e=(g)?g:OpenLayers.nullHandler;
return OpenLayers.Request.GET({url:a,params:d,success:c,failure:e,scope:f})
};
OpenLayers.parseXMLString=function(a){var b=a.indexOf("<");
if(b>0){a=a.substring(b)
}var c=OpenLayers.Util.Try(function(){var d=new ActiveXObject("Microsoft.XMLDOM");
d.loadXML(a);
return d
},function(){return new DOMParser().parseFromString(a,"text/xml")
},function(){var d=new XMLHttpRequest();
d.open("GET","data:text/xml;charset=utf-8,"+encodeURIComponent(a),false);
if(d.overrideMimeType){d.overrideMimeType("text/xml")
}d.send(null);
return d.responseXML
});
return c
};
OpenLayers.Ajax={emptyFunction:function(){},getTransport:function(){return OpenLayers.Util.Try(function(){return new XMLHttpRequest()
},function(){return new ActiveXObject("Msxml2.XMLHTTP")
},function(){return new ActiveXObject("Microsoft.XMLHTTP")
})||false
},activeRequestCount:0};
OpenLayers.Ajax.Responders={responders:[],register:function(b){for(var a=0;
a<this.responders.length;
a++){if(b==this.responders[a]){return
}}this.responders.push(b)
},unregister:function(a){OpenLayers.Util.removeItem(this.reponders,a)
},dispatch:function(d,a,c){var f;
for(var g=0;
g<this.responders.length;
g++){f=this.responders[g];
if(f[d]&&typeof f[d]=="function"){try{f[d].apply(f,[a,c])
}catch(b){}}}}};
OpenLayers.Ajax.Responders.register({onCreate:function(){OpenLayers.Ajax.activeRequestCount++
},onComplete:function(){OpenLayers.Ajax.activeRequestCount--
}});
OpenLayers.Ajax.Base=OpenLayers.Class({initialize:function(a){this.options={method:"post",asynchronous:true,contentType:"application/xml",parameters:""};
OpenLayers.Util.extend(this.options,a||{});
this.options.method=this.options.method.toLowerCase();
if(typeof this.options.parameters=="string"){this.options.parameters=OpenLayers.Util.getParameters(this.options.parameters)
}}});
OpenLayers.Ajax.Request=OpenLayers.Class(OpenLayers.Ajax.Base,{_complete:false,initialize:function(b,a){OpenLayers.Ajax.Base.prototype.initialize.apply(this,[a]);
if(OpenLayers.ProxyHost&&OpenLayers.String.startsWith(b,"http")){b=OpenLayers.ProxyHost+encodeURIComponent(b)
}this.transport=OpenLayers.Ajax.getTransport();
this.request(b)
},request:function(d){this.url=d;
this.method=this.options.method;
var b=OpenLayers.Util.extend({},this.options.parameters);
if(this.method!="get"&&this.method!="post"){b._method=this.method;
this.method="post"
}this.parameters=b;
if(b=OpenLayers.Util.getParameterString(b)){if(this.method=="get"){this.url+=((this.url.indexOf("?")>-1)?"&":"?")+b
}else{if(/Konqueror|Safari|KHTML/.test(navigator.userAgent)){b+="&_="
}}}try{var c=new OpenLayers.Ajax.Response(this);
if(this.options.onCreate){this.options.onCreate(c)
}OpenLayers.Ajax.Responders.dispatch("onCreate",this,c);
this.transport.open(this.method.toUpperCase(),this.url,this.options.asynchronous);
if(this.options.asynchronous){window.setTimeout(OpenLayers.Function.bind(this.respondToReadyState,this,1),10)
}this.transport.onreadystatechange=OpenLayers.Function.bind(this.onStateChange,this);
this.setRequestHeaders();
this.body=this.method=="post"?(this.options.postBody||b):null;
this.transport.send(this.body);
if(!this.options.asynchronous&&this.transport.overrideMimeType){this.onStateChange()
}}catch(a){this.dispatchException(a)
}},onStateChange:function(){var a=this.transport.readyState;
if(a>1&&!((a==4)&&this._complete)){this.respondToReadyState(this.transport.readyState)
}},setRequestHeaders:function(){var c={"X-Requested-With":"XMLHttpRequest",Accept:"text/javascript, text/html, application/xml, text/xml, */*",OpenLayers:true};
if(this.method=="post"){c["Content-type"]=this.options.contentType+(this.options.encoding?"; charset="+this.options.encoding:"");
if(this.transport.overrideMimeType&&(navigator.userAgent.match(/Gecko\/(\d{4})/)||[0,2005])[1]<2005){c.Connection="close"
}}if(typeof this.options.requestHeaders=="object"){var a=this.options.requestHeaders;
if(typeof a.push=="function"){for(var e=0,b=a.length;
e<b;
e+=2){c[a[e]]=a[e+1]
}}else{for(var e in a){c[e]=a[e]
}}}for(var d in c){this.transport.setRequestHeader(d,c[d])
}},success:function(){var a=this.getStatus();
return !a||(a>=200&&a<300)
},getStatus:function(){try{return this.transport.status||0
}catch(a){return 0
}},respondToReadyState:function(d){var a=OpenLayers.Ajax.Request.Events[d];
var f=new OpenLayers.Ajax.Response(this);
if(a=="Complete"){try{this._complete=true;
(this.options["on"+f.status]||this.options["on"+(this.success()?"Success":"Failure")]||OpenLayers.Ajax.emptyFunction)(f)
}catch(b){this.dispatchException(b)
}var c=f.getHeader("Content-type")
}try{(this.options["on"+a]||OpenLayers.Ajax.emptyFunction)(f);
OpenLayers.Ajax.Responders.dispatch("on"+a,this,f)
}catch(b){this.dispatchException(b)
}if(a=="Complete"){this.transport.onreadystatechange=OpenLayers.Ajax.emptyFunction
}},getHeader:function(a){try{return this.transport.getResponseHeader(a)
}catch(b){return null
}},dispatchException:function(a){var b=this.options.onException;
if(b){b(this,a);
OpenLayers.Ajax.Responders.dispatch("onException",this,a)
}else{var c=false;
var d=OpenLayers.Ajax.Responders.responders;
for(var e=0;
e<d.length;
e++){if(d[e].onException){c=true;
break
}}if(c){OpenLayers.Ajax.Responders.dispatch("onException",this,a)
}else{throw a
}}}});
OpenLayers.Ajax.Request.Events=["Uninitialized","Loading","Loaded","Interactive","Complete"];
OpenLayers.Ajax.Response=OpenLayers.Class({status:0,statusText:"",initialize:function(a){this.request=a;
var b=this.transport=a.transport,c=this.readyState=b.readyState;
if((c>2&&!(!!(window.attachEvent&&!window.opera)))||c==4){this.status=this.getStatus();
this.statusText=this.getStatusText();
this.responseText=b.responseText==null?"":String(b.responseText)
}if(c==4){var d=b.responseXML;
this.responseXML=d===undefined?null:d
}},getStatus:OpenLayers.Ajax.Request.prototype.getStatus,getStatusText:function(){try{return this.transport.statusText||""
}catch(a){return""
}},getHeader:OpenLayers.Ajax.Request.prototype.getHeader,getResponseHeader:function(a){return this.transport.getResponseHeader(a)
}});
OpenLayers.Ajax.getElementsByTagNameNS=function(e,d,a,c){var b=null;
if(e.getElementsByTagNameNS){b=e.getElementsByTagNameNS(d,c)
}else{b=e.getElementsByTagName(a+":"+c)
}return b
};
OpenLayers.Ajax.serializeXMLToString=function(b){var c=new XMLSerializer();
var a=c.serializeToString(b);
return a
};
OpenLayers.Control.DragFeature=OpenLayers.Class(OpenLayers.Control,{geometryTypes:null,onStart:function(b,a){},onDrag:function(b,a){},onComplete:function(b,a){},documentDrag:false,layer:null,feature:null,dragCallbacks:{},featureCallbacks:{},lastPixel:null,initialize:function(b,a){OpenLayers.Control.prototype.initialize.apply(this,[a]);
this.layer=b;
this.handlers={drag:new OpenLayers.Handler.Drag(this,OpenLayers.Util.extend({down:this.downFeature,move:this.moveFeature,up:this.upFeature,out:this.cancel,done:this.doneDragging},this.dragCallbacks),{documentDrag:this.documentDrag}),feature:new OpenLayers.Handler.Feature(this,this.layer,OpenLayers.Util.extend({over:this.overFeature,out:this.outFeature},this.featureCallbacks),{geometryTypes:this.geometryTypes})}
},destroy:function(){this.layer=null;
OpenLayers.Control.prototype.destroy.apply(this,[])
},activate:function(){return(this.handlers.feature.activate()&&OpenLayers.Control.prototype.activate.apply(this,arguments))
},deactivate:function(){this.handlers.drag.deactivate();
this.handlers.feature.deactivate();
this.feature=null;
this.dragging=false;
this.lastPixel=null;
OpenLayers.Element.removeClass(this.map.viewPortDiv,this.displayClass+"Over");
return OpenLayers.Control.prototype.deactivate.apply(this,arguments)
},overFeature:function(a){if(!this.handlers.drag.dragging){this.feature=a;
this.handlers.drag.activate();
this.over=true;
OpenLayers.Element.addClass(this.map.viewPortDiv,this.displayClass+"Over")
}else{if(this.feature.id==a.id){this.over=true
}else{this.over=false
}}},downFeature:function(a){this.lastPixel=a;
this.onStart(this.feature,a)
},moveFeature:function(a){var b=this.map.getResolution();
this.feature.geometry.move(b*(a.x-this.lastPixel.x),b*(this.lastPixel.y-a.y));
this.layer.drawFeature(this.feature);
this.lastPixel=a;
this.onDrag(this.feature,a)
},upFeature:function(a){if(!this.over){this.handlers.drag.deactivate()
}},doneDragging:function(a){this.onComplete(this.feature,a)
},outFeature:function(a){if(!this.handlers.drag.dragging){this.over=false;
this.handlers.drag.deactivate();
OpenLayers.Element.removeClass(this.map.viewPortDiv,this.displayClass+"Over");
this.feature=null
}else{if(this.feature.id==a.id){this.over=false
}}},cancel:function(){this.handlers.drag.deactivate();
this.over=false
},setMap:function(a){this.handlers.drag.setMap(a);
this.handlers.feature.setMap(a);
OpenLayers.Control.prototype.setMap.apply(this,arguments)
},CLASS_NAME:"OpenLayers.Control.DragFeature"});
OpenLayers.Control.DragPan=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_TOOL,panned:false,interval:25,documentDrag:false,draw:function(){this.handler=new OpenLayers.Handler.Drag(this,{move:this.panMap,done:this.panMapDone},{interval:this.interval,documentDrag:this.documentDrag})
},panMap:function(a){this.panned=true;
this.map.pan(this.handler.last.x-a.x,this.handler.last.y-a.y,{dragging:this.handler.dragging,animate:false})
},panMapDone:function(a){if(this.panned){this.panMap(a);
this.panned=false
}},CLASS_NAME:"OpenLayers.Control.DragPan"});
OpenLayers.Control.KeyboardDefaults=OpenLayers.Class(OpenLayers.Control,{autoActivate:true,slideFactor:75,initialize:function(){OpenLayers.Control.prototype.initialize.apply(this,arguments)
},destroy:function(){if(this.handler){this.handler.destroy()
}this.handler=null;
OpenLayers.Control.prototype.destroy.apply(this,arguments)
},draw:function(){this.handler=new OpenLayers.Handler.Keyboard(this,{keydown:this.defaultKeyPress})
},defaultKeyPress:function(a){switch(a.keyCode){case OpenLayers.Event.KEY_LEFT:this.map.pan(-this.slideFactor,0);
break;
case OpenLayers.Event.KEY_RIGHT:this.map.pan(this.slideFactor,0);
break;
case OpenLayers.Event.KEY_UP:this.map.pan(0,-this.slideFactor);
break;
case OpenLayers.Event.KEY_DOWN:this.map.pan(0,this.slideFactor);
break;
case 33:var b=this.map.getSize();
this.map.pan(0,-0.75*b.h);
break;
case 34:var b=this.map.getSize();
this.map.pan(0,0.75*b.h);
break;
case 35:var b=this.map.getSize();
this.map.pan(0.75*b.w,0);
break;
case 36:var b=this.map.getSize();
this.map.pan(-0.75*b.w,0);
break;
case 43:case 61:case 187:case 107:this.map.zoomIn();
break;
case 45:case 109:case 189:case 95:this.map.zoomOut();
break
}},CLASS_NAME:"OpenLayers.Control.KeyboardDefaults"});
OpenLayers.Control.WMSGetFeatureInfo=OpenLayers.Class(OpenLayers.Control,{hover:false,drillDown:false,maxFeatures:10,clickCallback:"click",layers:null,queryVisible:false,url:null,layerUrls:null,infoFormat:"text/html",vendorParams:{},format:null,formatOptions:null,handlerOptions:null,handler:null,hoverRequest:null,EVENT_TYPES:["beforegetfeatureinfo","getfeatureinfo"],initialize:function(a){this.EVENT_TYPES=OpenLayers.Control.WMSGetFeatureInfo.prototype.EVENT_TYPES.concat(OpenLayers.Control.prototype.EVENT_TYPES);
a=a||{};
a.handlerOptions=a.handlerOptions||{};
OpenLayers.Control.prototype.initialize.apply(this,[a]);
if(!this.format){this.format=new OpenLayers.Format.WMSGetFeatureInfo(a.formatOptions)
}if(this.drillDown===true){this.hover=false
}if(this.hover){this.handler=new OpenLayers.Handler.Hover(this,{move:this.cancelHover,pause:this.getInfoForHover},OpenLayers.Util.extend(this.handlerOptions.hover||{},{delay:250}))
}else{var b={};
b[this.clickCallback]=this.getInfoForClick;
this.handler=new OpenLayers.Handler.Click(this,b,this.handlerOptions.click||{})
}},activate:function(){if(!this.active){this.handler.activate()
}return OpenLayers.Control.prototype.activate.apply(this,arguments)
},deactivate:function(){return OpenLayers.Control.prototype.deactivate.apply(this,arguments)
},getInfoForClick:function(a){this.events.triggerEvent("beforegetfeatureinfo",{xy:a.xy});
OpenLayers.Element.addClass(this.map.viewPortDiv,"olCursorWait");
this.request(a.xy,{})
},getInfoForHover:function(a){this.events.triggerEvent("beforegetfeatureinfo",{xy:a.xy});
this.request(a.xy,{hover:true})
},cancelHover:function(){if(this.hoverRequest){this.hoverRequest.abort();
this.hoverRequest=null
}},findLayers:function(){var c=this.layers||this.map.layers;
var d=[];
var b,f;
for(var a=0,e=c.length;
a<e;
++a){b=c[a];
if(b instanceof OpenLayers.Layer.WMS&&(!this.queryVisible||b.getVisibility())){f=b.url instanceof Array?b.url[0]:b.url;
if(this.drillDown===false&&!this.url){this.url=f
}if(this.drillDown===true||this.urlMatches(f)){d.push(b)
}}}return d
},urlMatches:function(d){var b=OpenLayers.Util.isEquivalentUrl(this.url,d);
if(!b&&this.layerUrls){for(var a=0,c=this.layerUrls.length;
a<c;
++a){if(OpenLayers.Util.isEquivalentUrl(this.layerUrls[a],d)){b=true;
break
}}}return b
},buildWMSOptions:function(j,c,a,g){var f=[],h=[];
for(var d=0,e=c.length;
d<e;
d++){f=f.concat(c[d].params.LAYERS);
h=h.concat(this.getStyleNames(c[d]))
}var b=OpenLayers.Util.extend({service:"WMS",version:c[0].params.VERSION,request:"GetFeatureInfo",layers:f,query_layers:f,styles:h,bbox:this.map.getExtent().toBBOX(null,c[0].reverseAxisOrder()),feature_count:this.maxFeatures,height:this.map.getSize().h,width:this.map.getSize().w,format:g,info_format:this.infoFormat},(parseFloat(c[0].params.VERSION)>=1.3)?{crs:this.map.getProjection(),i:a.x,j:a.y}:{srs:this.map.getProjection(),x:a.x,y:a.y});
OpenLayers.Util.applyDefaults(b,this.vendorParams);
return{url:j,params:OpenLayers.Util.upperCaseObject(b),callback:function(i){this.handleResponse(a,i)
},scope:this}
},getStyleNames:function(b){var a;
if(b.params.STYLES){a=b.params.STYLES
}else{if(b.params.LAYERS instanceof Array){a=new Array(b.params.LAYERS.length)
}else{a=b.params.LAYERS.replace(/[^,]/g,"")
}}return a
},request:function(g,e){var j=this.findLayers();
if(j.length==0){OpenLayers.Element.removeClass(this.map.viewPortDiv,"olCursorWait");
return
}e=e||{};
if(this.drillDown===false){var c=this.buildWMSOptions(this.url,j,g,j[0].params.FORMAT);
var h=OpenLayers.Request.GET(c);
if(e.hover===true){this.hoverRequest=h.priv
}}else{this._requestCount=0;
this._numRequests=0;
this.features=[];
var b={},f;
for(var k=0,a=j.length;
k<a;
k++){var l=j[k];
var m,d=false;
f=l.url instanceof Array?l.url[0]:l.url;
if(f in b){b[f].push(l)
}else{this._numRequests++;
b[f]=[l]
}}var j;
for(var f in b){j=b[f];
var c=this.buildWMSOptions(f,j,g,j[0].params.FORMAT);
OpenLayers.Request.GET(c)
}}},triggerGetFeatureInfo:function(c,a,b){this.events.triggerEvent("getfeatureinfo",{text:c.responseText,features:b,request:c,xy:a});
OpenLayers.Element.removeClass(this.map.viewPortDiv,"olCursorWait")
},handleResponse:function(b,d){var a=d.responseXML;
if(!a||!a.documentElement){a=d.responseText
}var c=this.format.read(a);
if(this.drillDown===false){this.triggerGetFeatureInfo(d,b,c)
}else{this._requestCount++;
this._features=(this._features||[]).concat(c);
if(this._requestCount===this._numRequests){this.triggerGetFeatureInfo(d,b,this._features.concat());
delete this._features;
delete this._requestCount;
delete this._numRequests
}}},setMap:function(a){this.handler.setMap(a);
OpenLayers.Control.prototype.setMap.apply(this,arguments)
},CLASS_NAME:"OpenLayers.Control.WMSGetFeatureInfo"});
OpenLayers.State={UNKNOWN:"Unknown",INSERT:"Insert",UPDATE:"Update",DELETE:"Delete"};
OpenLayers.Feature.Vector=OpenLayers.Class(OpenLayers.Feature,{fid:null,geometry:null,attributes:null,bounds:null,state:null,style:null,url:null,renderIntent:"default",initialize:function(a,b,c){OpenLayers.Feature.prototype.initialize.apply(this,[null,null,b]);
this.lonlat=null;
this.geometry=a?a:null;
this.state=null;
this.attributes={};
if(b){this.attributes=OpenLayers.Util.extend(this.attributes,b)
}this.style=c?c:null
},destroy:function(){if(this.layer){this.layer.removeFeatures(this);
this.layer=null
}this.geometry=null;
OpenLayers.Feature.prototype.destroy.apply(this,arguments)
},clone:function(){return new OpenLayers.Feature.Vector(this.geometry?this.geometry.clone():null,this.attributes,this.style)
},onScreen:function(b){var a=false;
if(this.layer&&this.layer.map){var d=this.layer.map.getExtent();
if(b){var e=this.geometry.getBounds();
a=d.intersectsBounds(e)
}else{var c=d.toGeometry();
a=c.intersects(this.geometry)
}}return a
},getVisibility:function(){return !(this.style&&this.style.display=="none"||!this.layer||this.layer&&this.layer.styleMap&&this.layer.styleMap.createSymbolizer(this,this.renderIntent).display=="none"||this.layer&&!this.layer.getVisibility())
},createMarker:function(){return null
},destroyMarker:function(){},createPopup:function(){return null
},atPoint:function(d,b,a){var c=false;
if(this.geometry){c=this.geometry.atPoint(d,b,a)
}return c
},destroyPopup:function(){},move:function(c){if(!this.layer||!this.geometry.move){return
}var d;
if(c.CLASS_NAME=="OpenLayers.LonLat"){d=this.layer.getViewPortPxFromLonLat(c)
}else{d=c
}var b=this.layer.getViewPortPxFromLonLat(this.geometry.getBounds().getCenterLonLat());
var a=this.layer.map.getResolution();
this.geometry.move(a*(d.x-b.x),a*(b.y-d.y));
this.layer.drawFeature(this);
return b
},toState:function(a){if(a==OpenLayers.State.UPDATE){switch(this.state){case OpenLayers.State.UNKNOWN:case OpenLayers.State.DELETE:this.state=a;
break;
case OpenLayers.State.UPDATE:case OpenLayers.State.INSERT:break
}}else{if(a==OpenLayers.State.INSERT){switch(this.state){case OpenLayers.State.UNKNOWN:break;
default:this.state=a;
break
}}else{if(a==OpenLayers.State.DELETE){switch(this.state){case OpenLayers.State.INSERT:break;
case OpenLayers.State.DELETE:break;
case OpenLayers.State.UNKNOWN:case OpenLayers.State.UPDATE:this.state=a;
break
}}else{if(a==OpenLayers.State.UNKNOWN){this.state=a
}}}}},CLASS_NAME:"OpenLayers.Feature.Vector"});
OpenLayers.Feature.Vector.style={"default":{fillColor:"#ee9900",fillOpacity:0.4,hoverFillColor:"white",hoverFillOpacity:0.8,strokeColor:"#ee9900",strokeOpacity:1,strokeWidth:1,strokeLinecap:"round",strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:0.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"inherit"},select:{fillColor:"blue",fillOpacity:0.4,hoverFillColor:"white",hoverFillOpacity:0.8,strokeColor:"blue",strokeOpacity:1,strokeWidth:2,strokeLinecap:"round",strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:0.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"pointer"},temporary:{fillColor:"#66cccc",fillOpacity:0.2,hoverFillColor:"white",hoverFillOpacity:0.8,strokeColor:"#66cccc",strokeOpacity:1,strokeLinecap:"round",strokeWidth:2,strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:0.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"inherit"},"delete":{display:"none"}};
OpenLayers.Feature.WFS=OpenLayers.Class(OpenLayers.Feature,{initialize:function(a,d){var c=arguments;
var b=this.processXMLNode(d);
c=new Array(a,b.lonlat,b);
OpenLayers.Feature.prototype.initialize.apply(this,c);
this.createMarker();
this.layer.addMarker(this.marker)
},destroy:function(){if(this.marker!=null){this.layer.removeMarker(this.marker)
}OpenLayers.Feature.prototype.destroy.apply(this,arguments)
},processXMLNode:function(d){var c=OpenLayers.Ajax.getElementsByTagNameNS(d,"http://www.opengis.net/gml","gml","Point");
var b=OpenLayers.Util.getXmlNodeValue(OpenLayers.Ajax.getElementsByTagNameNS(c[0],"http://www.opengis.net/gml","gml","coordinates")[0]);
var a=b.split(",");
return{lonlat:new OpenLayers.LonLat(parseFloat(a[0]),parseFloat(a[1])),id:null}
},CLASS_NAME:"OpenLayers.Feature.WFS"});
OpenLayers.Format.WFSCapabilities.v1=OpenLayers.Class(OpenLayers.Format.WFSCapabilities,{initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a]);
this.options=a
},read:function(a){if(typeof a=="string"){a=OpenLayers.Format.XML.prototype.read.apply(this,[a])
}var b={};
var c=a.documentElement;
this.runChildNodes(b,c);
return b
},runChildNodes:function(d,c){var a=c.childNodes;
var f,b;
for(var e=0;
e<a.length;
++e){f=a[e];
if(f.nodeType==1){b=this["read_cap_"+f.nodeName];
if(b){b.apply(this,[d,f])
}}}},read_cap_FeatureTypeList:function(a,c){var b={featureTypes:[]};
this.runChildNodes(b,c);
a.featureTypeList=b
},read_cap_FeatureType:function(c,b,d){var a={};
this.runChildNodes(a,b);
c.featureTypes.push(a)
},read_cap_Name:function(a,c){var b=this.getChildValue(c);
if(b){a.name=b
}},read_cap_Title:function(c,b){var a=this.getChildValue(b);
if(a){c.title=a
}},read_cap_Abstract:function(a,c){var b=this.getChildValue(c);
if(b){a["abstract"]=b
}},CLASS_NAME:"OpenLayers.Format.WFSCapabilities.v1"});
OpenLayers.Format.WMC.v1=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{ol:"http://openlayers.org/context",wmc:"http://www.opengis.net/context",sld:"http://www.opengis.net/sld",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},schemaLocation:"",getNamespacePrefix:function(a){var b=null;
if(a==null){b=this.namespaces[this.defaultPrefix]
}else{for(b in this.namespaces){if(this.namespaces[b]==a){break
}}}return b
},defaultPrefix:"wmc",rootPrefix:null,defaultStyleName:"",defaultStyleTitle:"Default",initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a])
},read:function(a){if(typeof a=="string"){a=OpenLayers.Format.XML.prototype.read.apply(this,[a])
}var b=a.documentElement;
this.rootPrefix=b.prefix;
var c={version:b.getAttribute("version")};
this.runChildNodes(c,b);
return c
},runChildNodes:function(d,c){var a=c.childNodes;
var j,b,f,h;
for(var e=0,g=a.length;
e<g;
++e){j=a[e];
if(j.nodeType==1){f=this.getNamespacePrefix(j.namespaceURI);
h=j.nodeName.split(":").pop();
b=this["read_"+f+"_"+h];
if(b){b.apply(this,[d,j])
}}}},read_wmc_General:function(a,b){this.runChildNodes(a,b)
},read_wmc_BoundingBox:function(a,b){a.projection=b.getAttribute("SRS");
a.bounds=new OpenLayers.Bounds(parseFloat(b.getAttribute("minx")),parseFloat(b.getAttribute("miny")),parseFloat(b.getAttribute("maxx")),parseFloat(b.getAttribute("maxy")))
},read_wmc_LayerList:function(a,b){a.layersContext=[];
this.runChildNodes(a,b)
},read_wmc_Layer:function(b,c){var a={visibility:(c.getAttribute("hidden")!="1"),queryable:(c.getAttribute("queryable")=="1"),formats:[],styles:[]};
this.runChildNodes(a,c);
b.layersContext.push(a)
},read_wmc_Extension:function(b,a){this.runChildNodes(b,a)
},read_ol_units:function(b,a){b.units=this.getChildValue(a)
},read_ol_maxExtent:function(a,c){var b=new OpenLayers.Bounds(c.getAttribute("minx"),c.getAttribute("miny"),c.getAttribute("maxx"),c.getAttribute("maxy"));
a.maxExtent=b
},read_ol_transparent:function(b,a){b.transparent=this.getChildValue(a)
},read_ol_numZoomLevels:function(b,a){b.numZoomLevels=parseInt(this.getChildValue(a))
},read_ol_opacity:function(b,a){b.opacity=parseFloat(this.getChildValue(a))
},read_ol_singleTile:function(b,a){b.singleTile=(this.getChildValue(a)=="true")
},read_ol_isBaseLayer:function(b,a){b.isBaseLayer=(this.getChildValue(a)=="true")
},read_ol_displayInLayerSwitcher:function(b,a){b.displayInLayerSwitcher=(this.getChildValue(a)=="true")
},read_wmc_Server:function(a,d){a.version=d.getAttribute("version");
var b={};
var c=d.getElementsByTagName("OnlineResource");
if(c.length>0){this.read_wmc_OnlineResource(b,c[0])
}a.url=b.href
},read_wmc_FormatList:function(b,a){this.runChildNodes(b,a)
},read_wmc_Format:function(c,b){var a={value:this.getChildValue(b)};
if(b.getAttribute("current")=="1"){a.current=true
}c.formats.push(a)
},read_wmc_StyleList:function(b,a){this.runChildNodes(b,a)
},read_wmc_Style:function(a,c){var b={};
this.runChildNodes(b,c);
if(c.getAttribute("current")=="1"){b.current=true
}a.styles.push(b)
},read_wmc_SLD:function(a,b){this.runChildNodes(a,b)
},read_sld_StyledLayerDescriptor:function(a,c){var b=OpenLayers.Format.XML.prototype.write.apply(this,[c]);
a.body=b
},read_wmc_OnlineResource:function(b,a){b.href=this.getAttributeNS(a,this.namespaces.xlink,"href")
},read_wmc_Name:function(a,c){var b=this.getChildValue(c);
if(b){a.name=b
}},read_wmc_Title:function(c,b){var a=this.getChildValue(b);
if(a){c.title=a
}},read_wmc_MetadataURL:function(a,d){var b={};
var c=d.getElementsByTagName("OnlineResource");
if(c.length>0){this.read_wmc_OnlineResource(b,c[0])
}a.metadataURL=b.href
},read_wmc_Abstract:function(a,c){var b=this.getChildValue(c);
if(b){a["abstract"]=b
}},read_wmc_LegendURL:function(a,b){var d={width:b.getAttribute("width"),height:b.getAttribute("height")};
var c=b.getElementsByTagName("OnlineResource");
if(c.length>0){this.read_wmc_OnlineResource(d,c[0])
}a.legend=d
},write:function(a,c){var b=this.createElementDefaultNS("ViewContext");
this.setAttributes(b,{version:this.VERSION,id:(c&&typeof c.id=="string")?c.id:OpenLayers.Util.createUniqueID("OpenLayers_Context_")});
this.setAttributeNS(b,this.namespaces.xsi,"xsi:schemaLocation",this.schemaLocation);
b.appendChild(this.write_wmc_General(a));
b.appendChild(this.write_wmc_LayerList(a));
return OpenLayers.Format.XML.prototype.write.apply(this,[b])
},createElementDefaultNS:function(a,d,c){var b=this.createElementNS(this.namespaces[this.defaultPrefix],a);
if(d){b.appendChild(this.createTextNode(d))
}if(c){this.setAttributes(b,c)
}return b
},setAttributes:function(d,b){var a;
for(var c in b){a=b[c].toString();
if(a.match(/[A-Z]/)){this.setAttributeNS(d,null,c,a)
}else{d.setAttribute(c,a)
}}},write_wmc_General:function(b){var a=this.createElementDefaultNS("General");
if(b.size){a.appendChild(this.createElementDefaultNS("Window",null,{width:b.size.w,height:b.size.h}))
}var c=b.bounds;
a.appendChild(this.createElementDefaultNS("BoundingBox",null,{minx:c.left.toPrecision(18),miny:c.bottom.toPrecision(18),maxx:c.right.toPrecision(18),maxy:c.top.toPrecision(18),SRS:b.projection}));
a.appendChild(this.createElementDefaultNS("Title",b.title));
a.appendChild(this.write_ol_MapExtension(b));
return a
},write_ol_MapExtension:function(d){var b=this.createElementDefaultNS("Extension");
var a=d.maxExtent;
if(a){var c=this.createElementNS(this.namespaces.ol,"ol:maxExtent");
this.setAttributes(c,{minx:a.left.toPrecision(18),miny:a.bottom.toPrecision(18),maxx:a.right.toPrecision(18),maxy:a.top.toPrecision(18)});
b.appendChild(c)
}return b
},write_wmc_LayerList:function(a){var b=this.createElementDefaultNS("LayerList");
for(var d=0,c=a.layersContext.length;
d<c;
++d){b.appendChild(this.write_wmc_Layer(a.layersContext[d]))
}return b
},write_wmc_Layer:function(a){var b=this.createElementDefaultNS("Layer",null,{queryable:a.queryable?"1":"0",hidden:a.visibility?"0":"1"});
b.appendChild(this.write_wmc_Server(a));
b.appendChild(this.createElementDefaultNS("Name",a.name));
b.appendChild(this.createElementDefaultNS("Title",a.title));
if(a.metadataURL){b.appendChild(this.write_wmc_MetadataURL(a.metadataURL))
}return b
},write_wmc_LayerExtension:function(h){var b=this.createElementDefaultNS("Extension");
var a=h.maxExtent;
var e=this.createElementNS(this.namespaces.ol,"ol:maxExtent");
this.setAttributes(e,{minx:a.left.toPrecision(18),miny:a.bottom.toPrecision(18),maxx:a.right.toPrecision(18),maxy:a.top.toPrecision(18)});
b.appendChild(e);
var g=["transparent","numZoomLevels","units","isBaseLayer","opacity","displayInLayerSwitcher","singleTile"];
var c;
for(var f=0,d=g.length;
f<d;
++f){c=this.createOLPropertyNode(h,g[f]);
if(c){b.appendChild(c)
}}return b
},createOLPropertyNode:function(c,a){var b=null;
if(c[a]!=null){b=this.createElementNS(this.namespaces.ol,"ol:"+a);
b.appendChild(this.createTextNode(c[a].toString()))
}return b
},write_wmc_Server:function(a){var b=this.createElementDefaultNS("Server");
this.setAttributes(b,{service:"OGC:WMS",version:a.version});
b.appendChild(this.write_wmc_OnlineResource(a.url));
return b
},write_wmc_MetadataURL:function(b){var a=this.createElementDefaultNS("MetadataURL");
a.appendChild(this.write_wmc_OnlineResource(b));
return a
},write_wmc_FormatList:function(a){var b=this.createElementDefaultNS("FormatList");
for(var e=0,d=a.formats.length;
e<d;
e++){var c=a.formats[e];
b.appendChild(this.createElementDefaultNS("Format",c.value,(c.current&&c.current==true)?{current:"1"}:null))
}return b
},write_wmc_StyleList:function(l){var j=this.createElementDefaultNS("StyleList");
var e=l.styles;
if(e&&e instanceof Array){var g;
for(var k=0,a=e.length;
k<a;
k++){var f=e[k];
var h=this.createElementDefaultNS("Style",null,(f.current&&f.current==true)?{current:"1"}:null);
if(f.href){g=this.createElementDefaultNS("SLD");
var b=this.write_wmc_OnlineResource(f.href);
g.appendChild(b);
g.appendChild(this.createElementDefaultNS("Name",f.name));
if(f.title){g.appendChild(this.createElementDefaultNS("Title",f.title))
}h.appendChild(g)
}else{if(f.body){g=this.createElementDefaultNS("SLD");
var c=OpenLayers.Format.XML.prototype.read.apply(this,[f.body]);
var d=c.documentElement;
if(g.ownerDocument&&g.ownerDocument.importNode){d=g.ownerDocument.importNode(d,true)
}g.appendChild(d);
g.appendChild(this.createElementDefaultNS("Name",f.name));
if(f.title){g.appendChild(this.createElementDefaultNS("Title",f.title))
}h.appendChild(g)
}else{h.appendChild(this.createElementDefaultNS("Name",f.name));
h.appendChild(this.createElementDefaultNS("Title",f.title));
if(f["abstract"]){h.appendChild(this.createElementDefaultNS("Abstract",f["abstract"]))
}}}j.appendChild(h)
}}return j
},write_wmc_OnlineResource:function(a){var b=this.createElementDefaultNS("OnlineResource");
this.setAttributeNS(b,this.namespaces.xlink,"xlink:type","simple");
this.setAttributeNS(b,this.namespaces.xlink,"xlink:href",a);
return b
},CLASS_NAME:"OpenLayers.Format.WMC.v1"});
OpenLayers.Format.WMSCapabilities.v1=OpenLayers.Class(OpenLayers.Format.XML,{namespaces:{wms:"http://www.opengis.net/wms",xlink:"http://www.w3.org/1999/xlink",xsi:"http://www.w3.org/2001/XMLSchema-instance"},defaultPrefix:"wms",initialize:function(a){OpenLayers.Format.XML.prototype.initialize.apply(this,[a])
},read:function(b){if(typeof b=="string"){b=OpenLayers.Format.XML.prototype.read.apply(this,[b])
}if(b&&b.nodeType==9){b=b.documentElement
}var a={};
this.readNode(b,a);
this.postProcessLayers(a);
return a
},postProcessLayers:function(e){if(e.capability){e.capability.layers=[];
var c=e.capability.nestedLayers;
for(var b=0,d=c.length;
b<d;
++b){var a=c[b];
this.processLayer(e.capability,a)
}}},processLayer:function(f,b,h){if(b.formats===undefined){b.formats=f.request.getmap.formats
}if(h){b.styles=b.styles.concat(h.styles);
var m=["queryable","cascaded","fixedWidth","fixedHeight","opaque","noSubsets","llbbox","minScale","maxScale","attribution"];
var e=["srs","bbox","dimensions","authorityURLs"];
var d;
for(var l=0;
l<m.length;
l++){d=m[l];
if(d in h){if(b[d]==null){b[d]=h[d]
}if(b[d]==null){var a=["cascaded","fixedWidth","fixedHeight"];
var g=["queryable","opaque","noSubsets"];
if(OpenLayers.Util.indexOf(a,d)!=-1){b[d]=0
}if(OpenLayers.Util.indexOf(g,d)!=-1){b[d]=false
}}}}for(var l=0;
l<e.length;
l++){d=e[l];
b[d]=OpenLayers.Util.extend(b[d],h[d])
}}for(var o=0,c=b.nestedLayers.length;
o<c;
o++){var k=b.nestedLayers[o];
this.processLayer(f,k,b)
}if(b.name){f.layers.push(b)
}},readers:{wms:{Service:function(a,b){b.service={};
this.readChildNodes(a,b.service)
},Name:function(a,b){b.name=this.getChildValue(a)
},Title:function(a,b){b.title=this.getChildValue(a)
},Abstract:function(a,b){b["abstract"]=this.getChildValue(a)
},BoundingBox:function(d,a){var b={};
b.bbox=[parseFloat(d.getAttribute("minx")),parseFloat(d.getAttribute("miny")),parseFloat(d.getAttribute("maxx")),parseFloat(d.getAttribute("maxy"))];
var c={x:parseFloat(d.getAttribute("resx")),y:parseFloat(d.getAttribute("resy"))};
if(!(isNaN(c.x)&&isNaN(c.y))){b.res=c
}return b
},OnlineResource:function(a,b){b.href=this.getAttributeNS(a,this.namespaces.xlink,"href")
},ContactInformation:function(a,b){b.contactInformation={};
this.readChildNodes(a,b.contactInformation)
},ContactPersonPrimary:function(a,b){b.personPrimary={};
this.readChildNodes(a,b.personPrimary)
},ContactPerson:function(a,b){b.person=this.getChildValue(a)
},ContactOrganization:function(a,b){b.organization=this.getChildValue(a)
},ContactPosition:function(a,b){b.position=this.getChildValue(a)
},ContactAddress:function(a,b){b.contactAddress={};
this.readChildNodes(a,b.contactAddress)
},AddressType:function(a,b){b.type=this.getChildValue(a)
},Address:function(a,b){b.address=this.getChildValue(a)
},City:function(a,b){b.city=this.getChildValue(a)
},StateOrProvince:function(a,b){b.stateOrProvince=this.getChildValue(a)
},PostCode:function(a,b){b.postcode=this.getChildValue(a)
},Country:function(a,b){b.country=this.getChildValue(a)
},ContactVoiceTelephone:function(a,b){b.phone=this.getChildValue(a)
},ContactFacsimileTelephone:function(a,b){b.fax=this.getChildValue(a)
},ContactElectronicMailAddress:function(a,b){b.email=this.getChildValue(a)
},Fees:function(c,a){var b=this.getChildValue(c);
if(b&&b.toLowerCase()!="none"){a.fees=b
}},AccessConstraints:function(b,c){var a=this.getChildValue(b);
if(a&&a.toLowerCase()!="none"){c.accessConstraints=a
}},Capability:function(a,b){b.capability={nestedLayers:[]};
this.readChildNodes(a,b.capability)
},Request:function(a,b){b.request={};
this.readChildNodes(a,b.request)
},GetCapabilities:function(a,b){b.getcapabilities={formats:[]};
this.readChildNodes(a,b.getcapabilities)
},Format:function(a,b){if(b.formats instanceof Array){b.formats.push(this.getChildValue(a))
}else{b.format=this.getChildValue(a)
}},DCPType:function(a,b){this.readChildNodes(a,b)
},HTTP:function(a,b){this.readChildNodes(a,b)
},Get:function(a,b){this.readChildNodes(a,b)
},Post:function(a,b){this.readChildNodes(a,b)
},GetMap:function(a,b){b.getmap={formats:[]};
this.readChildNodes(a,b.getmap)
},GetFeatureInfo:function(a,b){b.getfeatureinfo={formats:[]};
this.readChildNodes(a,b.getfeatureinfo)
},Exception:function(a,b){b.exception={formats:[]};
this.readChildNodes(a,b.exception)
},Layer:function(h,k){var f=h.getAttributeNode("queryable");
var i=(f&&f.specified)?h.getAttribute("queryable"):null;
f=h.getAttributeNode("cascaded");
var d=(f&&f.specified)?h.getAttribute("cascaded"):null;
f=h.getAttributeNode("opaque");
var a=(f&&f.specified)?h.getAttribute("opaque"):null;
var e=h.getAttribute("noSubsets");
var g=h.getAttribute("fixedWidth");
var c=h.getAttribute("fixedHeight");
var b={nestedLayers:[],styles:[],srs:{},metadataURLs:[],bbox:{},dimensions:{},authorityURLs:{},identifiers:{},keywords:[],queryable:(i&&i!=="")?(i==="1"||i==="true"):null,cascaded:(d!==null)?parseInt(d):null,opaque:a?(a==="1"||a==="true"):null,noSubsets:(e!==null)?(e==="1"||e==="true"):null,fixedWidth:(g!=null)?parseInt(g):null,fixedHeight:(c!=null)?parseInt(c):null};
k.nestedLayers.push(b);
this.readChildNodes(h,b);
if(b.name){var j=b.name.split(":");
if(j.length>0){b.prefix=j[0]
}}},Attribution:function(a,b){b.attribution={};
this.readChildNodes(a,b.attribution)
},LogoURL:function(a,b){b.logo={width:a.getAttribute("width"),height:a.getAttribute("height")};
this.readChildNodes(a,b.logo)
},Style:function(c,a){var b={};
a.styles.push(b);
this.readChildNodes(c,b)
},LegendURL:function(c,a){var b={width:c.getAttribute("width"),height:c.getAttribute("height")};
a.legend=b;
this.readChildNodes(c,b)
},MetadataURL:function(b,c){var a={type:b.getAttribute("type")};
c.metadataURLs.push(a);
this.readChildNodes(b,a)
},DataURL:function(a,b){b.dataURL={};
this.readChildNodes(a,b.dataURL)
},FeatureListURL:function(a,b){b.featureListURL={};
this.readChildNodes(a,b.featureListURL)
},AuthorityURL:function(d,b){var c=d.getAttribute("name");
var a={};
this.readChildNodes(d,a);
b.authorityURLs[c]=a.href
},Identifier:function(b,a){var c=b.getAttribute("authority");
a.identifiers[c]=this.getChildValue(b)
},KeywordList:function(a,b){this.readChildNodes(a,b)
},SRS:function(a,b){b.srs[this.getChildValue(a)]=true
}}},CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1"});
OpenLayers.Format.WMSDescribeLayer.v1_1=OpenLayers.Class(OpenLayers.Format.WMSDescribeLayer,{initialize:function(a){OpenLayers.Format.WMSDescribeLayer.prototype.initialize.apply(this,[a])
},read:function(b){if(typeof b=="string"){b=OpenLayers.Format.XML.prototype.read.apply(this,[b])
}var f=b.documentElement;
var j=f.childNodes;
var d=[];
for(var c=0;
c<j.length;
++c){childNode=j[c];
nodeName=childNode.nodeName;
if(nodeName=="LayerDescription"){var e=childNode.getAttribute("name");
var h="";
var a="";
var g="";
if(childNode.getAttribute("owsType")){h=childNode.getAttribute("owsType");
a=childNode.getAttribute("owsURL")
}else{if(childNode.getAttribute("wfs")!=""){h="WFS";
a=childNode.getAttribute("wfs")
}else{if(childNode.getAttribute("wcs")!=""){h="WCS";
a=childNode.getAttribute("wcs")
}}}query=childNode.getElementsByTagName("Query");
if(query.length>0){g=query[0].getAttribute("typeName");
if(!g){g=query[0].getAttribute("typename")
}}d.push({layerName:e,owsType:h,owsURL:a,typeName:g})
}}return d
},CLASS_NAME:"OpenLayers.Format.WMSDescribeLayer.v1_1"});
OpenLayers.Handler.Box=OpenLayers.Class(OpenLayers.Handler,{dragHandler:null,boxDivClassName:"olHandlerBoxZoomBox",boxCharacteristics:null,initialize:function(a,c,b){OpenLayers.Handler.prototype.initialize.apply(this,arguments);
var c={down:this.startBox,move:this.moveBox,out:this.removeBox,up:this.endBox};
this.dragHandler=new OpenLayers.Handler.Drag(this,c,{keyMask:this.keyMask})
},setMap:function(a){OpenLayers.Handler.prototype.setMap.apply(this,arguments);
if(this.dragHandler){this.dragHandler.setMap(a)
}},startBox:function(a){this.zoomBox=OpenLayers.Util.createDiv("zoomBox",this.dragHandler.start);
this.zoomBox.className=this.boxDivClassName;
this.zoomBox.style.zIndex=this.map.Z_INDEX_BASE.Popup-1;
this.map.viewPortDiv.appendChild(this.zoomBox);
OpenLayers.Element.addClass(this.map.viewPortDiv,"olDrawBox")
},moveBox:function(d){var b=this.dragHandler.start.x;
var f=this.dragHandler.start.y;
var a=Math.abs(b-d.x);
var e=Math.abs(f-d.y);
this.zoomBox.style.width=Math.max(1,a)+"px";
this.zoomBox.style.height=Math.max(1,e)+"px";
this.zoomBox.style.left=d.x<b?d.x+"px":b+"px";
this.zoomBox.style.top=d.y<f?d.y+"px":f+"px";
var c=this.getBoxCharacteristics();
if(c.newBoxModel){if(d.x>b){this.zoomBox.style.width=Math.max(1,a-c.xOffset)+"px"
}if(d.y>f){this.zoomBox.style.height=Math.max(1,e-c.yOffset)+"px"
}}},endBox:function(f){var e;
if(Math.abs(this.dragHandler.start.x-f.x)>5||Math.abs(this.dragHandler.start.y-f.y)>5){var d=this.dragHandler.start;
var c=Math.min(d.y,f.y);
var g=Math.max(d.y,f.y);
var b=Math.min(d.x,f.x);
var a=Math.max(d.x,f.x);
e=new OpenLayers.Bounds(b,g,a,c)
}else{e=this.dragHandler.start.clone()
}this.removeBox();
this.callback("done",[e])
},removeBox:function(){this.map.viewPortDiv.removeChild(this.zoomBox);
this.zoomBox=null;
this.boxCharacteristics=null;
OpenLayers.Element.removeClass(this.map.viewPortDiv,"olDrawBox")
},activate:function(){if(OpenLayers.Handler.prototype.activate.apply(this,arguments)){this.dragHandler.activate();
return true
}else{return false
}},deactivate:function(){if(OpenLayers.Handler.prototype.deactivate.apply(this,arguments)){this.dragHandler.deactivate();
return true
}else{return false
}},getBoxCharacteristics:function(){if(!this.boxCharacteristics){var b=parseInt(OpenLayers.Element.getStyle(this.zoomBox,"border-left-width"))+parseInt(OpenLayers.Element.getStyle(this.zoomBox,"border-right-width"))+1;
var a=parseInt(OpenLayers.Element.getStyle(this.zoomBox,"border-top-width"))+parseInt(OpenLayers.Element.getStyle(this.zoomBox,"border-bottom-width"))+1;
var c=OpenLayers.Util.getBrowserName()=="msie"?document.compatMode!="BackCompat":true;
this.boxCharacteristics={xOffset:b,yOffset:a,newBoxModel:c}
}return this.boxCharacteristics
},CLASS_NAME:"OpenLayers.Handler.Box"});
OpenLayers.Handler.RegularPolygon=OpenLayers.Class(OpenLayers.Handler.Drag,{sides:4,radius:null,snapAngle:null,snapToggle:"shiftKey",persist:false,irregular:false,angle:null,fixedRadius:false,feature:null,layer:null,origin:null,initialize:function(a,c,b){this.style=OpenLayers.Util.extend(OpenLayers.Feature.Vector.style["default"],{});
OpenLayers.Handler.prototype.initialize.apply(this,[a,c,b]);
this.options=(b)?b:new Object()
},setOptions:function(a){OpenLayers.Util.extend(this.options,a);
OpenLayers.Util.extend(this,a)
},activate:function(){var a=false;
if(OpenLayers.Handler.prototype.activate.apply(this,arguments)){var b={displayInLayerSwitcher:false,calculateInRange:OpenLayers.Function.True};
this.layer=new OpenLayers.Layer.Vector(this.CLASS_NAME,b);
this.map.addLayer(this.layer);
a=true
}return a
},deactivate:function(){var a=false;
if(OpenLayers.Handler.Drag.prototype.deactivate.apply(this,arguments)){if(this.dragging){this.cancel()
}if(this.layer.map!=null){this.layer.destroy(false);
if(this.feature){this.feature.destroy()
}}this.layer=null;
this.feature=null;
a=true
}return a
},down:function(a){this.fixedRadius=!!(this.radius);
var b=this.map.getLonLatFromPixel(a.xy);
this.origin=new OpenLayers.Geometry.Point(b.lon,b.lat);
if(!this.fixedRadius||this.irregular){this.radius=this.map.getResolution()
}if(this.persist){this.clear()
}this.feature=new OpenLayers.Feature.Vector();
this.createGeometry();
this.callback("create",[this.origin,this.feature]);
this.layer.addFeatures([this.feature],{silent:true});
this.layer.drawFeature(this.feature,this.style)
},move:function(g){var c=this.map.getLonLatFromPixel(g.xy);
var e=new OpenLayers.Geometry.Point(c.lon,c.lat);
if(this.irregular){var d=Math.sqrt(2)*Math.abs(e.y-this.origin.y)/2;
this.radius=Math.max(this.map.getResolution()/2,d)
}else{if(this.fixedRadius){this.origin=e
}else{this.calculateAngle(e,g);
this.radius=Math.max(this.map.getResolution()/2,e.distanceTo(this.origin))
}}this.modifyGeometry();
if(this.irregular){var a=e.x-this.origin.x;
var f=e.y-this.origin.y;
var b;
if(f==0){b=a/(this.radius*Math.sqrt(2))
}else{b=a/f
}this.feature.geometry.resize(1,this.origin,b);
this.feature.geometry.move(a/2,f/2)
}this.layer.drawFeature(this.feature,this.style)
},up:function(a){this.finalize();
if(this.start==this.last){this.callback("done",[a.xy])
}},out:function(a){this.finalize()
},createGeometry:function(){this.angle=Math.PI*((1/this.sides)-(1/2));
if(this.snapAngle){this.angle+=this.snapAngle*(Math.PI/180)
}this.feature.geometry=OpenLayers.Geometry.Polygon.createRegularPolygon(this.origin,this.radius,this.sides,this.snapAngle)
},modifyGeometry:function(){var d,a,f,e;
var b=this.feature.geometry.components[0];
if(b.components.length!=(this.sides+1)){this.createGeometry();
b=this.feature.geometry.components[0]
}for(var c=0;
c<this.sides;
++c){e=b.components[c];
d=this.angle+(c*2*Math.PI/this.sides);
e.x=this.origin.x+(this.radius*Math.cos(d));
e.y=this.origin.y+(this.radius*Math.sin(d));
e.clearBounds()
}},calculateAngle:function(c,d){var b=Math.atan2(c.y-this.origin.y,c.x-this.origin.x);
if(this.snapAngle&&(this.snapToggle&&!d[this.snapToggle])){var a=(Math.PI/180)*this.snapAngle;
this.angle=Math.round(b/a)*a
}else{this.angle=b
}},cancel:function(){this.callback("cancel",null);
this.finalize()
},finalize:function(){this.origin=null;
this.radius=this.options.radius
},clear:function(){this.layer.renderer.clear();
this.layer.destroyFeatures()
},callback:function(b,a){if(this.callbacks[b]){this.callbacks[b].apply(this.control,[this.feature.geometry.clone()])
}if(!this.persist&&(b=="done"||b=="cancel")){this.clear()
}},CLASS_NAME:"OpenLayers.Handler.RegularPolygon"});
OpenLayers.Layer.EventPane=OpenLayers.Class(OpenLayers.Layer,{smoothDragPan:true,isBaseLayer:true,isFixed:true,pane:null,mapObject:null,initialize:function(b,a){OpenLayers.Layer.prototype.initialize.apply(this,arguments);
if(this.pane==null){this.pane=OpenLayers.Util.createDiv(this.div.id+"_EventPane")
}},destroy:function(){this.mapObject=null;
this.pane=null;
OpenLayers.Layer.prototype.destroy.apply(this,arguments)
},setMap:function(a){OpenLayers.Layer.prototype.setMap.apply(this,arguments);
this.pane.style.zIndex=parseInt(this.div.style.zIndex)+1;
this.pane.style.display=this.div.style.display;
this.pane.style.width="100%";
this.pane.style.height="100%";
if(OpenLayers.Util.getBrowserName()=="msie"){this.pane.style.background="url("+OpenLayers.Util.getImagesLocation()+"blank.gif)"
}if(this.isFixed){this.map.viewPortDiv.appendChild(this.pane)
}else{this.map.layerContainerDiv.appendChild(this.pane)
}this.loadMapObject();
if(this.mapObject==null){this.loadWarningMessage()
}},removeMap:function(a){if(this.pane&&this.pane.parentNode){this.pane.parentNode.removeChild(this.pane)
}OpenLayers.Layer.prototype.removeMap.apply(this,arguments)
},loadWarningMessage:function(){this.div.style.backgroundColor="darkblue";
var d=this.map.getSize();
var e=Math.min(d.w,300);
var b=Math.min(d.h,200);
var f=new OpenLayers.Size(e,b);
var a=new OpenLayers.Pixel(d.w/2,d.h/2);
var g=a.add(-f.w/2,-f.h/2);
var c=OpenLayers.Util.createDiv(this.name+"_warning",g,f,null,null,null,"auto");
c.style.padding="7px";
c.style.backgroundColor="yellow";
c.innerHTML=this.getWarningHTML();
this.div.appendChild(c)
},getWarningHTML:function(){return""
},display:function(a){OpenLayers.Layer.prototype.display.apply(this,arguments);
this.pane.style.display=this.div.style.display
},setZIndex:function(a){OpenLayers.Layer.prototype.setZIndex.apply(this,arguments);
this.pane.style.zIndex=parseInt(this.div.style.zIndex)+1
},moveTo:function(g,h,a){OpenLayers.Layer.prototype.moveTo.apply(this,arguments);
if(this.mapObject!=null){var i=this.map.getCenter();
var k=this.map.getZoom();
if(i!=null){var j=this.getMapObjectCenter();
var f=this.getOLLonLatFromMapObjectLonLat(j);
var l=this.getMapObjectZoom();
var e=this.getOLZoomFromMapObjectZoom(l);
if(!(i.equals(f))||!(k==e)){if(a&&this.dragPanMapObject&&this.smoothDragPan){var m=this.map.getViewPortPxFromLonLat(f);
var b=this.map.getViewPortPxFromLonLat(i);
this.dragPanMapObject(b.x-m.x,m.y-b.y)
}else{var d=this.getMapObjectLonLatFromOLLonLat(i);
var c=this.getMapObjectZoomFromOLZoom(k);
this.setMapObjectCenter(d,c,a)
}}}}},getLonLatFromViewPortPx:function(c){var d=null;
if((this.mapObject!=null)&&(this.getMapObjectCenter()!=null)){var b=this.getMapObjectPixelFromOLPixel(c);
var a=this.getMapObjectLonLatFromMapObjectPixel(b);
d=this.getOLLonLatFromMapObjectLonLat(a)
}return d
},getViewPortPxFromLonLat:function(d){var c=null;
if((this.mapObject!=null)&&(this.getMapObjectCenter()!=null)){var b=this.getMapObjectLonLatFromOLLonLat(d);
var a=this.getMapObjectPixelFromMapObjectLonLat(b);
c=this.getOLPixelFromMapObjectPixel(a)
}return c
},getOLLonLatFromMapObjectLonLat:function(b){var c=null;
if(b!=null){var a=this.getLongitudeFromMapObjectLonLat(b);
var d=this.getLatitudeFromMapObjectLonLat(b);
c=new OpenLayers.LonLat(a,d)
}return c
},getMapObjectLonLatFromOLLonLat:function(a){var b=null;
if(a!=null){b=this.getMapObjectLonLatFromLonLat(a.lon,a.lat)
}return b
},getOLPixelFromMapObjectPixel:function(b){var d=null;
if(b!=null){var c=this.getXFromMapObjectPixel(b);
var a=this.getYFromMapObjectPixel(b);
d=new OpenLayers.Pixel(c,a)
}return d
},getMapObjectPixelFromOLPixel:function(a){var b=null;
if(a!=null){b=this.getMapObjectPixelFromXY(a.x,a.y)
}return b
},CLASS_NAME:"OpenLayers.Layer.EventPane"});
OpenLayers.Layer.FixedZoomLevels=OpenLayers.Class({initialize:function(){},initResolutions:function(){var g=new Array("minZoomLevel","maxZoomLevel","numZoomLevels");
for(var f=0,e=g.length;
f<e;
f++){var c=g[f];
this[c]=(this.options[c]!=null)?this.options[c]:this.map[c]
}if((this.minZoomLevel==null)||(this.minZoomLevel<this.MIN_ZOOM_LEVEL)){this.minZoomLevel=this.MIN_ZOOM_LEVEL
}var d;
var b=this.MAX_ZOOM_LEVEL-this.minZoomLevel+1;
if(((this.options.numZoomLevels==null)&&(this.options.maxZoomLevel!=null))||((this.numZoomLevels==null)&&(this.maxZoomLevel!=null))){d=this.maxZoomLevel-this.minZoomLevel+1
}else{d=this.numZoomLevels
}if(d!=null){this.numZoomLevels=Math.min(d,b)
}else{this.numZoomLevels=b
}this.maxZoomLevel=this.minZoomLevel+this.numZoomLevels-1;
if(this.RESOLUTIONS!=null){var a=0;
this.resolutions=[];
for(var f=this.minZoomLevel;
f<=this.maxZoomLevel;
f++){this.resolutions[a++]=this.RESOLUTIONS[f]
}this.maxResolution=this.resolutions[0];
this.minResolution=this.resolutions[this.resolutions.length-1]
}},getResolution:function(){if(this.resolutions!=null){return OpenLayers.Layer.prototype.getResolution.apply(this,arguments)
}else{var b=null;
var a=this.map.getSize();
var c=this.getExtent();
if((a!=null)&&(c!=null)){b=Math.max(c.getWidth()/a.w,c.getHeight()/a.h)
}return b
}},getExtent:function(){var a=null;
var f=this.map.getSize();
var c=new OpenLayers.Pixel(0,0);
var d=this.getLonLatFromViewPortPx(c);
var e=new OpenLayers.Pixel(f.w,f.h);
var b=this.getLonLatFromViewPortPx(e);
if((d!=null)&&(b!=null)){a=new OpenLayers.Bounds(d.lon,b.lat,b.lon,d.lat)
}return a
},getZoomForResolution:function(a){if(this.resolutions!=null){return OpenLayers.Layer.prototype.getZoomForResolution.apply(this,arguments)
}else{var b=OpenLayers.Layer.prototype.getExtent.apply(this,[]);
return this.getZoomForExtent(b)
}},getOLZoomFromMapObjectZoom:function(a){var b=null;
if(a!=null){b=a-this.minZoomLevel
}return b
},getMapObjectZoomFromOLZoom:function(a){var b=null;
if(a!=null){b=a+this.minZoomLevel
}return b
},CLASS_NAME:"OpenLayers.Layer.FixedZoomLevels"});
OpenLayers.Layer.HTTPRequest=OpenLayers.Class(OpenLayers.Layer,{URL_HASH_FACTOR:(Math.sqrt(5)-1)/2,url:null,params:null,reproject:false,initialize:function(b,a,c,e){var d=arguments;
d=[b,e];
OpenLayers.Layer.prototype.initialize.apply(this,d);
this.url=a;
this.params=OpenLayers.Util.extend({},c)
},destroy:function(){this.url=null;
this.params=null;
OpenLayers.Layer.prototype.destroy.apply(this,arguments)
},clone:function(a){if(a==null){a=new OpenLayers.Layer.HTTPRequest(this.name,this.url,this.params,this.getOptions())
}a=OpenLayers.Layer.prototype.clone.apply(this,[a]);
return a
},setUrl:function(a){this.url=a
},mergeNewParams:function(b){this.params=OpenLayers.Util.extend(this.params,b);
var a=this.redraw();
if(this.map!=null){this.map.events.triggerEvent("changelayer",{layer:this,property:"params"})
}return a
},redraw:function(a){if(a){return this.mergeNewParams({_olSalt:Math.random()})
}else{return OpenLayers.Layer.prototype.redraw.apply(this,[])
}},selectUrl:function(c,b){var a=1;
for(var e=0,d=c.length;
e<d;
e++){a*=c.charCodeAt(e)*this.URL_HASH_FACTOR;
a-=Math.floor(a)
}return b[Math.floor(a*b.length)]
},getFullRequestString:function(d,a){var f=a||this.url;
var c=OpenLayers.Util.extend({},this.params);
c=OpenLayers.Util.extend(c,d);
var b=OpenLayers.Util.getParameterString(c);
if(f instanceof Array){f=this.selectUrl(b,f)
}var e=OpenLayers.Util.upperCaseObject(OpenLayers.Util.getParameters(f));
for(var g in c){if(g.toUpperCase() in e){delete c[g]
}}b=OpenLayers.Util.getParameterString(c);
return OpenLayers.Util.urlAppend(f,b)
},CLASS_NAME:"OpenLayers.Layer.HTTPRequest"});
OpenLayers.Layer.Image=OpenLayers.Class(OpenLayers.Layer,{isBaseLayer:true,url:null,extent:null,size:null,tile:null,aspectRatio:null,initialize:function(a,e,c,b,d){this.url=e;
this.extent=c;
this.maxExtent=c;
this.size=b;
OpenLayers.Layer.prototype.initialize.apply(this,[a,d]);
this.aspectRatio=(this.extent.getHeight()/this.size.h)/(this.extent.getWidth()/this.size.w)
},destroy:function(){if(this.tile){this.removeTileMonitoringHooks(this.tile);
this.tile.destroy();
this.tile=null
}OpenLayers.Layer.prototype.destroy.apply(this,arguments)
},clone:function(a){if(a==null){a=new OpenLayers.Layer.Image(this.name,this.url,this.extent,this.size,this.getOptions())
}a=OpenLayers.Layer.prototype.clone.apply(this,[a]);
return a
},setMap:function(a){if(this.options.maxResolution==null){this.options.maxResolution=this.aspectRatio*this.extent.getWidth()/this.size.w
}OpenLayers.Layer.prototype.setMap.apply(this,arguments)
},moveTo:function(c,e,d){OpenLayers.Layer.prototype.moveTo.apply(this,arguments);
var f=(this.tile==null);
if(e||f){this.setTileSize();
var b=new OpenLayers.LonLat(this.extent.left,this.extent.top);
var a=this.map.getLayerPxFromLonLat(b);
if(f){this.tile=new OpenLayers.Tile.Image(this,a,this.extent,null,this.tileSize);
this.addTileMonitoringHooks(this.tile)
}else{this.tile.size=this.tileSize.clone();
this.tile.position=a.clone()
}this.tile.draw()
}},setTileSize:function(){var b=this.extent.getWidth()/this.map.getResolution();
var a=this.extent.getHeight()/this.map.getResolution();
this.tileSize=new OpenLayers.Size(b,a)
},addTileMonitoringHooks:function(a){a.onLoadStart=function(){this.events.triggerEvent("loadstart")
};
a.events.register("loadstart",this,a.onLoadStart);
a.onLoadEnd=function(){this.events.triggerEvent("loadend")
};
a.events.register("loadend",this,a.onLoadEnd);
a.events.register("unload",this,a.onLoadEnd)
},removeTileMonitoringHooks:function(a){a.unload();
a.events.un({loadstart:a.onLoadStart,loadend:a.onLoadEnd,unload:a.onLoadEnd,scope:this})
},setUrl:function(a){this.url=a;
this.tile.draw()
},getURL:function(a){return this.url
},CLASS_NAME:"OpenLayers.Layer.Image"});
OpenLayers.Layer.Markers=OpenLayers.Class(OpenLayers.Layer,{isBaseLayer:false,markers:null,drawn:false,initialize:function(b,a){OpenLayers.Layer.prototype.initialize.apply(this,arguments);
this.markers=[]
},destroy:function(){this.clearMarkers();
this.markers=null;
OpenLayers.Layer.prototype.destroy.apply(this,arguments)
},setOpacity:function(c){if(c!=this.opacity){this.opacity=c;
for(var a=0,b=this.markers.length;
a<b;
a++){this.markers[a].setOpacity(this.opacity)
}}},moveTo:function(b,e,c){OpenLayers.Layer.prototype.moveTo.apply(this,arguments);
if(e||!this.drawn){for(var a=0,d=this.markers.length;
a<d;
a++){this.drawMarker(this.markers[a])
}this.drawn=true
}},addMarker:function(a){this.markers.push(a);
if(this.opacity!=null){a.setOpacity(this.opacity)
}if(this.map&&this.map.getExtent()){a.map=this.map;
this.drawMarker(a)
}},removeMarker:function(a){if(this.markers&&this.markers.length){OpenLayers.Util.removeItem(this.markers,a);
a.erase()
}},clearMarkers:function(){if(this.markers!=null){while(this.markers.length>0){this.removeMarker(this.markers[0])
}}},drawMarker:function(b){var c=this.map.getLayerPxFromLonLat(b.lonlat);
if(c==null){b.display(false)
}else{if(!b.isDrawn()){var a=b.draw(c);
this.div.appendChild(a)
}else{if(b.icon){b.icon.moveTo(c)
}}}},getDataExtent:function(){var d=null;
if(this.markers&&(this.markers.length>0)){var d=new OpenLayers.Bounds();
for(var b=0,c=this.markers.length;
b<c;
b++){var a=this.markers[b];
d.extend(a.lonlat)
}}return d
},CLASS_NAME:"OpenLayers.Layer.Markers"});
OpenLayers.Layer.SphericalMercator={getExtent:function(){var a=null;
if(this.sphericalMercator){a=this.map.calculateBounds()
}else{a=OpenLayers.Layer.FixedZoomLevels.prototype.getExtent.apply(this)
}return a
},initMercatorParameters:function(){this.RESOLUTIONS=[];
var a=156543.0339;
for(var b=0;
b<=this.MAX_ZOOM_LEVEL;
++b){this.RESOLUTIONS[b]=a/Math.pow(2,b)
}this.units="m";
this.projection="EPSG:900913"
},forwardMercator:function(a,d){var c=a*20037508.34/180;
var b=Math.log(Math.tan((90+d)*Math.PI/360))/(Math.PI/180);
b=b*20037508.34/180;
return new OpenLayers.LonLat(c,b)
},inverseMercator:function(c,b){var a=(c/20037508.34)*180;
var d=(b/20037508.34)*180;
d=180/Math.PI*(2*Math.atan(Math.exp(d*Math.PI/180))-Math.PI/2);
return new OpenLayers.LonLat(a,d)
},projectForward:function(a){var b=OpenLayers.Layer.SphericalMercator.forwardMercator(a.x,a.y);
a.x=b.lon;
a.y=b.lat;
return a
},projectInverse:function(a){var b=OpenLayers.Layer.SphericalMercator.inverseMercator(a.x,a.y);
a.x=b.lon;
a.y=b.lat;
return a
}};
OpenLayers.Projection.addTransform("EPSG:4326","EPSG:900913",OpenLayers.Layer.SphericalMercator.projectForward);
OpenLayers.Projection.addTransform("EPSG:900913","EPSG:4326",OpenLayers.Layer.SphericalMercator.projectInverse);
OpenLayers.Tile.WFS=OpenLayers.Class(OpenLayers.Tile,{features:null,url:null,request:null,initialize:function(b,d,c,e,a){OpenLayers.Tile.prototype.initialize.apply(this,arguments);
this.url=e;
this.features=[]
},destroy:function(){OpenLayers.Tile.prototype.destroy.apply(this,arguments);
this.destroyAllFeatures();
this.features=null;
this.url=null;
if(this.request){this.request.abort();
this.request=null
}},clear:function(){this.destroyAllFeatures()
},draw:function(){if(OpenLayers.Tile.prototype.draw.apply(this,arguments)){if(this.isLoading){this.events.triggerEvent("reload")
}else{this.isLoading=true;
this.events.triggerEvent("loadstart")
}this.loadFeaturesForRegion(this.requestSuccess)
}},loadFeaturesForRegion:function(b,a){if(this.request){this.request.abort()
}this.request=OpenLayers.Request.GET({url:this.url,success:b,failure:a,scope:this})
},requestSuccess:function(d){if(this.features){var b=d.responseXML;
if(!b||!b.documentElement){b=d.responseText
}if(this.layer.vectorMode){this.layer.addFeatures(this.layer.formatObject.read(b))
}else{var c=new OpenLayers.Format.XML();
if(typeof b=="string"){b=c.read(b)
}var a=c.getElementsByTagNameNS(b,"http://www.opengis.net/gml","featureMember");
this.addResults(a)
}}if(this.events){this.events.triggerEvent("loadend")
}this.request=null
},addResults:function(a){for(var c=0;
c<a.length;
c++){var b=new this.layer.featureClass(this.layer,a[c]);
this.features.push(b)
}},destroyAllFeatures:function(){while(this.features.length>0){var a=this.features.shift();
a.destroy()
}},CLASS_NAME:"OpenLayers.Tile.WFS"});
OpenLayers.Control.DrawFeature=OpenLayers.Class(OpenLayers.Control,{layer:null,callbacks:null,EVENT_TYPES:["featureadded"],multi:false,featureAdded:function(){},handlerOptions:null,initialize:function(d,a,c){this.EVENT_TYPES=OpenLayers.Control.DrawFeature.prototype.EVENT_TYPES.concat(OpenLayers.Control.prototype.EVENT_TYPES);
OpenLayers.Control.prototype.initialize.apply(this,[c]);
this.callbacks=OpenLayers.Util.extend({done:this.drawFeature,modify:function(f,e){this.layer.events.triggerEvent("sketchmodified",{vertex:f,feature:e})
},create:function(f,e){this.layer.events.triggerEvent("sketchstarted",{vertex:f,feature:e})
}},this.callbacks);
this.layer=d;
this.handlerOptions=this.handlerOptions||{};
if(!("multi" in this.handlerOptions)){this.handlerOptions.multi=this.multi
}var b=this.layer.styleMap&&this.layer.styleMap.styles.temporary;
if(b){this.handlerOptions.layerOptions=OpenLayers.Util.applyDefaults(this.handlerOptions.layerOptions,{styleMap:new OpenLayers.StyleMap({"default":b})})
}this.handler=new a(this,this.callbacks,this.handlerOptions)
},drawFeature:function(a){var b=new OpenLayers.Feature.Vector(a);
var c=this.layer.events.triggerEvent("sketchcomplete",{feature:b});
if(c!==false){b.state=OpenLayers.State.INSERT;
this.layer.addFeatures([b]);
this.featureAdded(b);
this.events.triggerEvent("featureadded",{feature:b})
}},CLASS_NAME:"OpenLayers.Control.DrawFeature"});
OpenLayers.Control.Measure=OpenLayers.Class(OpenLayers.Control,{EVENT_TYPES:["measure","measurepartial"],handlerOptions:null,callbacks:null,displaySystem:"metric",geodesic:false,displaySystemUnits:{geographic:["dd"],english:["mi","ft","in"],metric:["km","m"]},partialDelay:300,delayedTrigger:null,persist:false,initialize:function(b,a){this.EVENT_TYPES=OpenLayers.Control.Measure.prototype.EVENT_TYPES.concat(OpenLayers.Control.prototype.EVENT_TYPES);
OpenLayers.Control.prototype.initialize.apply(this,[a]);
this.callbacks=OpenLayers.Util.extend({done:this.measureComplete,point:this.measurePartial},this.callbacks);
this.handlerOptions=OpenLayers.Util.extend({persist:this.persist},this.handlerOptions);
this.handler=new b(this,this.callbacks,this.handlerOptions)
},cancel:function(){this.handler.cancel()
},updateHandler:function(c,b){var a=this.active;
if(a){this.deactivate()
}this.handler=new c(this,this.callbacks,b);
if(a){this.activate()
}},measureComplete:function(a){if(this.delayedTrigger){window.clearTimeout(this.delayedTrigger)
}this.measure(a,"measure")
},measurePartial:function(a,b){this.delayedTrigger=window.setTimeout(OpenLayers.Function.bind(function(){this.measure(b,"measurepartial")
},this),this.partialDelay)
},measure:function(b,d){var a,c;
if(b.CLASS_NAME.indexOf("LineString")>-1){a=this.getBestLength(b);
c=1
}else{a=this.getBestArea(b);
c=2
}this.events.triggerEvent(d,{measure:a[0],units:a[1],order:c,geometry:b})
},getBestArea:function(d){var f=this.displaySystemUnits[this.displaySystem];
var c,b;
for(var a=0,e=f.length;
a<e;
++a){c=f[a];
b=this.getArea(d,c);
if(b>1){break
}}return[b,c]
},getArea:function(d,e){var f,a;
if(this.geodesic){f=d.getGeodesicArea(this.map.getProjectionObject());
a="m"
}else{f=d.getArea();
a=this.map.getUnits()
}var c=OpenLayers.INCHES_PER_UNIT[e];
if(c){var b=OpenLayers.INCHES_PER_UNIT[a];
f*=Math.pow((b/c),2)
}return f
},getBestLength:function(d){var f=this.displaySystemUnits[this.displaySystem];
var c,b;
for(var a=0,e=f.length;
a<e;
++a){c=f[a];
b=this.getLength(d,c);
if(b>1){break
}}return[b,c]
},getLength:function(d,e){var f,a;
if(this.geodesic){f=d.getGeodesicLength(this.map.getProjectionObject());
a="m"
}else{f=d.getLength();
a=this.map.getUnits()
}var c=OpenLayers.INCHES_PER_UNIT[e];
if(c){var b=OpenLayers.INCHES_PER_UNIT[a];
f*=(b/c)
}return f
},CLASS_NAME:"OpenLayers.Control.Measure"});
OpenLayers.Control.ZoomBox=OpenLayers.Class(OpenLayers.Control,{type:OpenLayers.Control.TYPE_TOOL,out:false,alwaysZoom:false,draw:function(){this.handler=new OpenLayers.Handler.Box(this,{done:this.zoomBox},{keyMask:this.keyMask})
},zoomBox:function(k){if(k instanceof OpenLayers.Bounds){var d;
if(!this.out){var l=this.map.getLonLatFromPixel(new OpenLayers.Pixel(k.left,k.bottom));
var c=this.map.getLonLatFromPixel(new OpenLayers.Pixel(k.right,k.top));
d=new OpenLayers.Bounds(l.lon,l.lat,c.lon,c.lat)
}else{var j=Math.abs(k.right-k.left);
var m=Math.abs(k.top-k.bottom);
var h=Math.min((this.map.size.h/m),(this.map.size.w/j));
var e=this.map.getExtent();
var b=this.map.getLonLatFromPixel(k.getCenterPixel());
var f=b.lon-(e.getWidth()/2)*h;
var i=b.lon+(e.getWidth()/2)*h;
var a=b.lat-(e.getHeight()/2)*h;
var g=b.lat+(e.getHeight()/2)*h;
d=new OpenLayers.Bounds(f,a,i,g)
}var o=this.map.getZoom();
this.map.zoomToExtent(d);
if(o==this.map.getZoom()&&this.alwaysZoom==true){this.map.zoomTo(o+(this.out?-1:1))
}}else{if(!this.out){this.map.setCenter(this.map.getLonLatFromPixel(k),this.map.getZoom()+1)
}else{this.map.setCenter(this.map.getLonLatFromPixel(k),this.map.getZoom()-1)
}}},CLASS_NAME:"OpenLayers.Control.ZoomBox"});
OpenLayers.Format.WFSCapabilities.v1_0_0=OpenLayers.Class(OpenLayers.Format.WFSCapabilities.v1,{initialize:function(a){OpenLayers.Format.WFSCapabilities.v1.prototype.initialize.apply(this,[a])
},read_cap_Service:function(c,a){var b={};
this.runChildNodes(b,a);
c.service=b
},read_cap_Fees:function(b,a){var c=this.getChildValue(a);
if(c&&c.toLowerCase()!="none"){b.fees=c
}},read_cap_AccessConstraints:function(b,c){var a=this.getChildValue(c);
if(a&&a.toLowerCase()!="none"){b.accessConstraints=a
}},read_cap_OnlineResource:function(b,a){var c=this.getChildValue(a);
if(c&&c.toLowerCase()!="none"){b.onlineResource=c
}},read_cap_Keywords:function(b,a){var c=this.getChildValue(a);
if(c&&c.toLowerCase()!="none"){b.keywords=c.split(", ")
}},read_cap_Capability:function(b,a){var c={};
this.runChildNodes(c,a);
b.capability=c
},read_cap_Request:function(a,c){var b={};
this.runChildNodes(b,c);
a.request=b
},read_cap_GetFeature:function(c,b){var a={href:{},formats:[]};
this.runChildNodes(a,b);
c.getfeature=a
},read_cap_ResultFormat:function(c,b){var a=b.childNodes;
var e;
for(var d=0;
d<a.length;
d++){e=a[d];
if(e.nodeType==1){c.formats.push(e.nodeName)
}}},read_cap_DCPType:function(b,a){this.runChildNodes(b,a)
},read_cap_HTTP:function(b,a){this.runChildNodes(b.href,a)
},read_cap_Get:function(b,a){b.get=a.getAttribute("onlineResource")
},read_cap_Post:function(b,a){b.post=a.getAttribute("onlineResource")
},CLASS_NAME:"OpenLayers.Format.WFSCapabilities.v1_0_0"});
OpenLayers.Format.WFSCapabilities.v1_1_0=OpenLayers.Class(OpenLayers.Format.WFSCapabilities.v1,{initialize:function(a){OpenLayers.Format.WFSCapabilities.v1.prototype.initialize.apply(this,[a])
},CLASS_NAME:"OpenLayers.Format.WFSCapabilities.v1_1_0"});
OpenLayers.Format.WKT=OpenLayers.Class(OpenLayers.Format,{initialize:function(a){this.regExes={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/};
OpenLayers.Format.prototype.initialize.apply(this,[a])
},read:function(a){var h,g,c;
var b=this.regExes.typeStr.exec(a);
if(b){g=b[1].toLowerCase();
c=b[2];
if(this.parse[g]){h=this.parse[g].apply(this,[c])
}if(this.internalProjection&&this.externalProjection){if(h&&h.CLASS_NAME=="OpenLayers.Feature.Vector"){h.geometry.transform(this.externalProjection,this.internalProjection)
}else{if(h&&g!="geometrycollection"&&typeof h=="object"){for(var f=0,d=h.length;
f<d;
f++){var e=h[f];
e.geometry.transform(this.externalProjection,this.internalProjection)
}}}}}return h
},write:function(j){var e,h,g,c,a;
if(j.constructor==Array){e=j;
a=true
}else{e=[j];
a=false
}var b=[];
if(a){b.push("GEOMETRYCOLLECTION(")
}for(var d=0,f=e.length;
d<f;
++d){if(a&&d>0){b.push(",")
}h=e[d].geometry;
g=h.CLASS_NAME.split(".")[2].toLowerCase();
if(!this.extract[g]){return null
}if(this.internalProjection&&this.externalProjection){h=h.clone();
h.transform(this.internalProjection,this.externalProjection)
}c=this.extract[g].apply(this,[h]);
b.push(g.toUpperCase()+"("+c+")")
}if(a){b.push(")")
}return b.join("")
},extract:{point:function(a){return a.x+" "+a.y
},multipoint:function(a){var b=[];
for(var d=0,c=a.components.length;
d<c;
++d){b.push(this.extract.point.apply(this,[a.components[d]]))
}return b.join(",")
},linestring:function(d){var b=[];
for(var a=0,c=d.components.length;
a<c;
++a){b.push(this.extract.point.apply(this,[d.components[a]]))
}return b.join(",")
},multilinestring:function(a){var b=[];
for(var d=0,c=a.components.length;
d<c;
++d){b.push("("+this.extract.linestring.apply(this,[a.components[d]])+")")
}return b.join(",")
},polygon:function(a){var b=[];
for(var d=0,c=a.components.length;
d<c;
++d){b.push("("+this.extract.linestring.apply(this,[a.components[d]])+")")
}return b.join(",")
},multipolygon:function(b){var a=[];
for(var d=0,c=b.components.length;
d<c;
++d){a.push("("+this.extract.polygon.apply(this,[b.components[d]])+")")
}return a.join(",")
}},parse:{point:function(b){var a=OpenLayers.String.trim(b).split(this.regExes.spaces);
return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(a[0],a[1]))
},multipoint:function(c){var a=OpenLayers.String.trim(c).split(",");
var b=[];
for(var e=0,d=a.length;
e<d;
++e){b.push(this.parse.point.apply(this,[a[e]]).geometry)
}return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.MultiPoint(b))
},linestring:function(c){var a=OpenLayers.String.trim(c).split(",");
var b=[];
for(var e=0,d=a.length;
e<d;
++e){b.push(this.parse.point.apply(this,[a[e]]).geometry)
}return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.LineString(b))
},multilinestring:function(d){var a;
var f=OpenLayers.String.trim(d).split(this.regExes.parenComma);
var c=[];
for(var b=0,e=f.length;
b<e;
++b){a=f[b].replace(this.regExes.trimParens,"$1");
c.push(this.parse.linestring.apply(this,[a]).geometry)
}return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.MultiLineString(c))
},polygon:function(c){var f,e,a;
var b=OpenLayers.String.trim(c).split(this.regExes.parenComma);
var h=[];
for(var g=0,d=b.length;
g<d;
++g){f=b[g].replace(this.regExes.trimParens,"$1");
e=this.parse.linestring.apply(this,[f]).geometry;
a=new OpenLayers.Geometry.LinearRing(e.components);
h.push(a)
}return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Polygon(h))
},multipolygon:function(d){var b;
var f=OpenLayers.String.trim(d).split(this.regExes.doubleParenComma);
var c=[];
for(var a=0,e=f.length;
a<e;
++a){b=f[a].replace(this.regExes.trimParens,"$1");
c.push(this.parse.polygon.apply(this,[b]).geometry)
}return new OpenLayers.Feature.Vector(new OpenLayers.Geometry.MultiPolygon(c))
},geometrycollection:function(c){c=c.replace(/,\s*([A-Za-z])/g,"|$1");
var b=OpenLayers.String.trim(c).split("|");
var a=[];
for(var e=0,d=b.length;
e<d;
++e){a.push(OpenLayers.Format.WKT.prototype.read.apply(this,[b[e]]))
}return a
}},CLASS_NAME:"OpenLayers.Format.WKT"});
OpenLayers.Format.WMC.v1_0_0=OpenLayers.Class(OpenLayers.Format.WMC.v1,{VERSION:"1.0.0",schemaLocation:"http://www.opengis.net/context http://schemas.opengis.net/context/1.0.0/context.xsd",initialize:function(a){OpenLayers.Format.WMC.v1.prototype.initialize.apply(this,[a])
},write_wmc_Layer:function(a){var b=OpenLayers.Format.WMC.v1.prototype.write_wmc_Layer.apply(this,[a]);
b.appendChild(this.write_wmc_FormatList(a));
b.appendChild(this.write_wmc_StyleList(a));
b.appendChild(this.write_wmc_LayerExtension(a))
},CLASS_NAME:"OpenLayers.Format.WMC.v1_0_0"});
OpenLayers.Format.WMC.v1_1_0=OpenLayers.Class(OpenLayers.Format.WMC.v1,{VERSION:"1.1.0",schemaLocation:"http://www.opengis.net/context http://schemas.opengis.net/context/1.1.0/context.xsd",initialize:function(a){OpenLayers.Format.WMC.v1.prototype.initialize.apply(this,[a])
},read_sld_MinScaleDenominator:function(a,c){var b=parseFloat(this.getChildValue(c));
if(b>0){a.maxScale=b
}},read_sld_MaxScaleDenominator:function(b,a){b.minScale=parseFloat(this.getChildValue(a))
},write_wmc_Layer:function(d){var a=OpenLayers.Format.WMC.v1.prototype.write_wmc_Layer.apply(this,[d]);
if(d.maxScale){var b=this.createElementNS(this.namespaces.sld,"sld:MinScaleDenominator");
b.appendChild(this.createTextNode(d.maxScale.toPrecision(16)));
a.appendChild(b)
}if(d.minScale){var c=this.createElementNS(this.namespaces.sld,"sld:MaxScaleDenominator");
c.appendChild(this.createTextNode(d.minScale.toPrecision(16)));
a.appendChild(c)
}a.appendChild(this.write_wmc_FormatList(d));
a.appendChild(this.write_wmc_StyleList(d));
a.appendChild(this.write_wmc_LayerExtension(d));
return a
},CLASS_NAME:"OpenLayers.Format.WMC.v1_1_0"});
OpenLayers.Format.WMSCapabilities.v1_1=OpenLayers.Class(OpenLayers.Format.WMSCapabilities.v1,{readers:{wms:OpenLayers.Util.applyDefaults({WMT_MS_Capabilities:function(a,b){this.readChildNodes(a,b)
},Keyword:function(a,b){if(b.keywords){b.keywords.push(this.getChildValue(a))
}},DescribeLayer:function(a,b){b.describelayer={formats:[]};
this.readChildNodes(a,b.describelayer)
},GetLegendGraphic:function(a,b){b.getlegendgraphic={formats:[]};
this.readChildNodes(a,b.getlegendgraphic)
},GetStyles:function(a,b){b.getstyles={formats:[]};
this.readChildNodes(a,b.getstyles)
},PutStyles:function(a,b){b.putstyles={formats:[]};
this.readChildNodes(a,b.putstyles)
},UserDefinedSymbolization:function(b,c){var a={supportSLD:parseInt(b.getAttribute("SupportSLD"))==1,userLayer:parseInt(b.getAttribute("UserLayer"))==1,userStyle:parseInt(b.getAttribute("UserStyle"))==1,remoteWFS:parseInt(b.getAttribute("RemoteWFS"))==1};
c.userSymbols=a
},LatLonBoundingBox:function(a,b){b.llbbox=[parseFloat(a.getAttribute("minx")),parseFloat(a.getAttribute("miny")),parseFloat(a.getAttribute("maxx")),parseFloat(a.getAttribute("maxy"))]
},BoundingBox:function(b,c){var a=OpenLayers.Format.WMSCapabilities.v1.prototype.readers.wms.BoundingBox.apply(this,[b,c]);
a.srs=b.getAttribute("SRS");
c.bbox[a.srs]=a
},ScaleHint:function(c,d){var b=c.getAttribute("min");
var e=c.getAttribute("max");
var a=Math.pow(2,0.5);
var f=OpenLayers.INCHES_PER_UNIT.m;
d.maxScale=parseFloat(((b/a)*f*OpenLayers.DOTS_PER_INCH).toPrecision(13));
d.minScale=parseFloat(((e/a)*f*OpenLayers.DOTS_PER_INCH).toPrecision(13))
},Dimension:function(d,b){var c=d.getAttribute("name").toLowerCase();
var a={name:c,units:d.getAttribute("units"),unitsymbol:d.getAttribute("unitSymbol")};
b.dimensions[a.name]=a
},Extent:function(b,c){var e=b.getAttribute("name").toLowerCase();
if(e in c.dimensions){var a=c.dimensions[e];
a.nearestVal=b.getAttribute("nearestValue")==="1";
a.multipleVal=b.getAttribute("multipleValues")==="1";
a.current=b.getAttribute("current")==="1";
a["default"]=b.getAttribute("default")||"";
var d=this.getChildValue(b);
a.values=d.split(",")
}}},OpenLayers.Format.WMSCapabilities.v1.prototype.readers.wms)},CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1_1"});
OpenLayers.Format.WMSCapabilities.v1_3=OpenLayers.Class(OpenLayers.Format.WMSCapabilities.v1,{readers:{wms:OpenLayers.Util.applyDefaults({WMS_Capabilities:function(a,b){this.readChildNodes(a,b)
},LayerLimit:function(a,b){b.layerLimit=parseInt(this.getChildValue(a))
},MaxWidth:function(a,b){b.maxWidth=parseInt(this.getChildValue(a))
},MaxHeight:function(a,b){b.maxHeight=parseInt(this.getChildValue(a))
},BoundingBox:function(b,c){var a=OpenLayers.Format.WMSCapabilities.v1.prototype.readers.wms.BoundingBox.apply(this,[b,c]);
a.srs=b.getAttribute("CRS");
c.bbox[a.srs]=a
},CRS:function(a,b){this.readers.wms.SRS.apply(this,[a,b])
},EX_GeographicBoundingBox:function(a,b){b.llbbox=[];
this.readChildNodes(a,b.llbbox)
},westBoundLongitude:function(a,b){b[0]=this.getChildValue(a)
},eastBoundLongitude:function(a,b){b[2]=this.getChildValue(a)
},southBoundLatitude:function(a,b){b[1]=this.getChildValue(a)
},northBoundLatitude:function(a,b){b[3]=this.getChildValue(a)
},MinScaleDenominator:function(a,b){b.maxScale=parseFloat(this.getChildValue(a)).toPrecision(16)
},MaxScaleDenominator:function(a,b){b.minScale=parseFloat(this.getChildValue(a)).toPrecision(16)
},Dimension:function(d,b){var c=d.getAttribute("name").toLowerCase();
var a={name:c,units:d.getAttribute("units"),unitsymbol:d.getAttribute("unitSymbol"),nearestVal:d.getAttribute("nearestValue")==="1",multipleVal:d.getAttribute("multipleValues")==="1","default":d.getAttribute("default")||"",current:d.getAttribute("current")==="1",values:this.getChildValue(d).split(",")};
b.dimensions[a.name]=a
},Keyword:function(c,a){var b={value:this.getChildValue(c),vocabulary:c.getAttribute("vocabulary")};
if(a.keywords){a.keywords.push(b)
}}},OpenLayers.Format.WMSCapabilities.v1.prototype.readers.wms),sld:{UserDefinedSymbolization:function(a,b){this.readers.wms.UserDefinedSymbolization.apply(this,[a,b]);
b.userSymbols.inlineFeature=parseInt(a.getAttribute("InlineFeature"))==1;
b.userSymbols.remoteWCS=parseInt(a.getAttribute("RemoteWCS"))==1
},DescribeLayer:function(a,b){this.readers.wms.DescribeLayer.apply(this,[a,b])
},GetLegendGraphic:function(a,b){this.readers.wms.GetLegendGraphic.apply(this,[a,b])
}}},CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1_3"});
OpenLayers.Layer.Boxes=OpenLayers.Class(OpenLayers.Layer.Markers,{initialize:function(b,a){OpenLayers.Layer.Markers.prototype.initialize.apply(this,arguments)
},drawMarker:function(e){var b=e.bounds;
var d=this.map.getLayerPxFromLonLat(new OpenLayers.LonLat(b.left,b.top));
var a=this.map.getLayerPxFromLonLat(new OpenLayers.LonLat(b.right,b.bottom));
if(a==null||d==null){e.display(false)
}else{var c=new OpenLayers.Size(Math.max(1,a.x-d.x),Math.max(1,a.y-d.y));
var f=e.draw(d,c);
if(!e.drawn){this.div.appendChild(f);
e.drawn=true
}}},removeMarker:function(a){OpenLayers.Util.removeItem(this.markers,a);
if((a.div!=null)&&(a.div.parentNode==this.div)){this.div.removeChild(a.div)
}},CLASS_NAME:"OpenLayers.Layer.Boxes"});
OpenLayers.Layer.GeoRSS=OpenLayers.Class(OpenLayers.Layer.Markers,{location:null,features:null,formatOptions:null,selectedFeature:null,icon:null,popupSize:null,useFeedTitle:true,initialize:function(a,b,c){OpenLayers.Layer.Markers.prototype.initialize.apply(this,[a,c]);
this.location=b;
this.features=[]
},destroy:function(){OpenLayers.Layer.Markers.prototype.destroy.apply(this,arguments);
this.clearFeatures();
this.features=null
},loadRSS:function(){if(!this.loaded){this.events.triggerEvent("loadstart");
OpenLayers.Request.GET({url:this.location,success:this.parseData,scope:this});
this.loaded=true
}},moveTo:function(a,b,c){OpenLayers.Layer.Markers.prototype.moveTo.apply(this,arguments);
if(this.visibility&&!this.loaded){this.loadRSS()
}},parseData:function(j){var r=j.responseXML;
if(!r||!r.documentElement){r=OpenLayers.Format.XML.prototype.read(j.responseText)
}if(this.useFeedTitle){var q=null;
try{q=r.getElementsByTagNameNS("*","title")[0].firstChild.nodeValue
}catch(h){q=r.getElementsByTagName("title")[0].firstChild.nodeValue
}if(q){this.setName(q)
}}var p={};
OpenLayers.Util.extend(p,this.formatOptions);
if(this.map&&!this.projection.equals(this.map.getProjectionObject())){p.externalProjection=this.projection;
p.internalProjection=this.map.getProjectionObject()
}var f=new OpenLayers.Format.GeoRSS(p);
var s=f.read(r);
for(var c=0,d=s.length;
c<d;
c++){var b={};
var m=s[c];
if(!m.geometry){continue
}var l=m.attributes.title?m.attributes.title:"Untitled";
var g=m.attributes.description?m.attributes.description:"No description.";
var k=m.attributes.link?m.attributes.link:"";
var o=m.geometry.getBounds().getCenterLonLat();
b.icon=this.icon==null?OpenLayers.Marker.defaultIcon():this.icon.clone();
b.popupSize=this.popupSize?this.popupSize.clone():new OpenLayers.Size(250,120);
if(l||g){b.title=l;
b.description=g;
var t='<div class="olLayerGeoRSSClose">[x]</div>';
t+='<div class="olLayerGeoRSSTitle">';
if(k){t+='<a class="link" href="'+k+'" target="_blank">'
}t+=l;
if(k){t+="</a>"
}t+="</div>";
t+='<div style="" class="olLayerGeoRSSDescription">';
t+=g;
t+="</div>";
b.popupContentHTML=t
}var m=new OpenLayers.Feature(this,o,b);
this.features.push(m);
var a=m.createMarker();
a.events.register("click",m,this.markerClick);
this.addMarker(a)
}this.events.triggerEvent("loadend")
},markerClick:function(a){var c=(this==this.layer.selectedFeature);
this.layer.selectedFeature=(!c)?this:null;
for(var b=0,d=this.layer.map.popups.length;
b<d;
b++){this.layer.map.removePopup(this.layer.map.popups[b])
}if(!c){var e=this.createPopup();
OpenLayers.Event.observe(e.div,"click",OpenLayers.Function.bind(function(){for(var g=0,f=this.layer.map.popups.length;
g<f;
g++){this.layer.map.removePopup(this.layer.map.popups[g])
}},this));
this.layer.map.addPopup(e)
}OpenLayers.Event.stop(a)
},clearFeatures:function(){if(this.features!=null){while(this.features.length>0){var a=this.features[0];
OpenLayers.Util.removeItem(this.features,a);
a.destroy()
}}},CLASS_NAME:"OpenLayers.Layer.GeoRSS"});
OpenLayers.Layer.Google=OpenLayers.Class(OpenLayers.Layer.EventPane,OpenLayers.Layer.FixedZoomLevels,{MIN_ZOOM_LEVEL:0,MAX_ZOOM_LEVEL:21,RESOLUTIONS:[1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,0.0006866455078125,0.00034332275390625,0.000171661376953125,0.0000858306884765625,0.00004291534423828125,0.00002145767211914062,0.00001072883605957031,0.00000536441802978515,0.00000268220901489257,0.000001341104507446289,6.705522537231445e-7],type:null,sphericalMercator:false,dragObject:null,termsOfUse:null,poweredBy:null,initialize:function(b,a){OpenLayers.Layer.EventPane.prototype.initialize.apply(this,arguments);
OpenLayers.Layer.FixedZoomLevels.prototype.initialize.apply(this,arguments);
this.addContainerPxFunction();
if(this.sphericalMercator){OpenLayers.Util.extend(this,OpenLayers.Layer.SphericalMercator);
this.initMercatorParameters()
}},clone:function(){return new OpenLayers.Layer.Google(this.name,this.getOptions())
},loadMapObject:function(){if(!this.type){this.type=G_NORMAL_MAP
}var c,a,f;
var h=OpenLayers.Layer.Google.cache[this.map.id];
if(h){c=h.mapObject;
a=h.termsOfUse;
f=h.poweredBy;
++h.count
}else{var g=this.map.viewPortDiv;
var d=document.createElement("div");
d.id=this.map.id+"_GMap2Container";
d.style.position="absolute";
d.style.width="100%";
d.style.height="100%";
g.appendChild(d);
try{c=new GMap2(d);
a=d.lastChild;
g.appendChild(a);
a.style.zIndex="1100";
a.style.right="";
a.style.bottom="";
a.className="olLayerGoogleCopyright";
f=d.lastChild;
g.appendChild(f);
f.style.zIndex="1100";
f.style.right="";
f.style.bottom="";
f.className="olLayerGooglePoweredBy gmnoprint"
}catch(b){OpenLayers.Console.error(b);
return
}OpenLayers.Layer.Google.cache[this.map.id]={mapObject:c,termsOfUse:a,poweredBy:f,count:1}
}this.mapObject=c;
this.termsOfUse=a;
this.poweredBy=f;
if(OpenLayers.Util.indexOf(this.mapObject.getMapTypes(),this.type)===-1){this.mapObject.addMapType(this.type)
}if(typeof c.getDragObject=="function"){this.dragObject=c.getDragObject()
}else{this.dragPanMapObject=null
}if(this.isBaseLayer===false){this.setGMapVisibility(this.div.style.display!=="none")
}},onMapResize:function(){if(this.visibility&&this.mapObject.isLoaded()){this.mapObject.checkResize()
}else{if(!this._resized){var a=this;
var b=GEvent.addListener(this.mapObject,"load",function(){GEvent.removeListener(b);
delete a._resized;
a.mapObject.checkResize();
a.moveTo(a.map.getCenter(),a.map.getZoom())
})
}this._resized=true
}},setVisibility:function(b){this.setGMapVisibility(b);
var a=this.opacity==null?1:this.opacity;
OpenLayers.Layer.EventPane.prototype.setVisibility.apply(this,arguments);
this.setOpacity(a)
},setGMapVisibility:function(a){var c=OpenLayers.Layer.Google.cache[this.map.id];
if(c){var b=this.mapObject.getContainer();
if(a===true){this.mapObject.setMapType(this.type);
b.style.display="";
this.termsOfUse.style.left="";
this.termsOfUse.style.display="";
this.poweredBy.style.display="";
c.displayed=this.id
}else{if(c.displayed===this.id){delete c.displayed
}if(!c.displayed){b.style.display="none";
this.termsOfUse.style.display="none";
this.termsOfUse.style.left="-9999px";
this.poweredBy.style.display="none"
}}}},setOpacity:function(b){if(b!==this.opacity){if(this.map!=null){this.map.events.triggerEvent("changelayer",{layer:this,property:"opacity"})
}this.opacity=b
}if(this.getVisibility()){var a=this.mapObject.getContainer();
OpenLayers.Util.modifyDOMElement(a,null,null,null,null,null,null,b)
}},destroy:function(){if(this.map){this.setGMapVisibility(false);
var a=OpenLayers.Layer.Google.cache[this.map.id];
if(a&&a.count<=1){this.removeGMapElements(false)
}}OpenLayers.Layer.EventPane.prototype.destroy.apply(this,arguments)
},removeGMapElements:function(){var b=OpenLayers.Layer.Google.cache[this.map.id];
if(b){var d=this.mapObject&&this.mapObject.getContainer();
if(d&&d.parentNode){d.parentNode.removeChild(d)
}var a=b.termsOfUse;
if(a&&a.parentNode){a.parentNode.removeChild(a)
}var c=b.poweredBy;
if(c&&c.parentNode){c.parentNode.removeChild(c)
}}},removeMap:function(b){if(this.visibility&&this.mapObject){this.setGMapVisibility(false)
}var a=OpenLayers.Layer.Google.cache[b.id];
if(a){if(a.count<=1){this.removeGMapElements();
delete OpenLayers.Layer.Google.cache[b.id]
}else{--a.count
}}delete this.termsOfUse;
delete this.poweredBy;
delete this.mapObject;
delete this.dragObject;
OpenLayers.Layer.EventPane.prototype.removeMap.apply(this,arguments)
},getOLBoundsFromMapObjectBounds:function(d){var a=null;
if(d!=null){var c=d.getSouthWest();
var b=d.getNorthEast();
if(this.sphericalMercator){c=this.forwardMercator(c.lng(),c.lat());
b=this.forwardMercator(b.lng(),b.lat())
}else{c=new OpenLayers.LonLat(c.lng(),c.lat());
b=new OpenLayers.LonLat(b.lng(),b.lat())
}a=new OpenLayers.Bounds(c.lon,c.lat,b.lon,b.lat)
}return a
},getMapObjectBoundsFromOLBounds:function(a){var d=null;
if(a!=null){var c=this.sphericalMercator?this.inverseMercator(a.bottom,a.left):new OpenLayers.LonLat(a.bottom,a.left);
var b=this.sphericalMercator?this.inverseMercator(a.top,a.right):new OpenLayers.LonLat(a.top,a.right);
d=new GLatLngBounds(new GLatLng(c.lat,c.lon),new GLatLng(b.lat,b.lon))
}return d
},addContainerPxFunction:function(){if((typeof GMap2!="undefined")&&!GMap2.prototype.fromLatLngToContainerPixel){GMap2.prototype.fromLatLngToContainerPixel=function(c){var b=this.fromLatLngToDivPixel(c);
var a=this.getContainer().firstChild.firstChild;
b.x+=a.offsetLeft;
b.y+=a.offsetTop;
return b
}
}},getWarningHTML:function(){return OpenLayers.i18n("googleWarning")
},setMapObjectCenter:function(a,b){this.mapObject.setCenter(a,b)
},dragPanMapObject:function(b,a){this.dragObject.moveBy(new GSize(-b,a))
},getMapObjectCenter:function(){return this.mapObject.getCenter()
},getMapObjectZoom:function(){return this.mapObject.getZoom()
},getMapObjectLonLatFromMapObjectPixel:function(a){return this.mapObject.fromContainerPixelToLatLng(a)
},getMapObjectPixelFromMapObjectLonLat:function(a){return this.mapObject.fromLatLngToContainerPixel(a)
},getMapObjectZoomFromMapObjectBounds:function(a){return this.mapObject.getBoundsZoomLevel(a)
},getLongitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?this.forwardMercator(a.lng(),a.lat()).lon:a.lng()
},getLatitudeFromMapObjectLonLat:function(b){var a=this.sphericalMercator?this.forwardMercator(b.lng(),b.lat()).lat:b.lat();
return a
},getMapObjectLonLatFromLonLat:function(b,d){var a;
if(this.sphericalMercator){var c=this.inverseMercator(b,d);
a=new GLatLng(c.lat,c.lon)
}else{a=new GLatLng(d,b)
}return a
},getXFromMapObjectPixel:function(a){return a.x
},getYFromMapObjectPixel:function(a){return a.y
},getMapObjectPixelFromXY:function(a,b){return new GPoint(a,b)
},CLASS_NAME:"OpenLayers.Layer.Google"});
OpenLayers.Layer.Google.cache={};
OpenLayers.Layer.Grid=OpenLayers.Class(OpenLayers.Layer.HTTPRequest,{tileSize:null,grid:null,singleTile:false,ratio:1.5,buffer:2,numLoadingTiles:0,initialize:function(a,d,b,c){OpenLayers.Layer.HTTPRequest.prototype.initialize.apply(this,arguments);
this.events.addEventType("tileloaded");
this.grid=[]
},destroy:function(){this.clearGrid();
this.grid=null;
this.tileSize=null;
OpenLayers.Layer.HTTPRequest.prototype.destroy.apply(this,arguments)
},clearGrid:function(){if(this.grid){for(var d=0,f=this.grid.length;
d<f;
d++){var c=this.grid[d];
for(var a=0,e=c.length;
a<e;
a++){var b=c[a];
this.removeTileMonitoringHooks(b);
b.destroy()
}}this.grid=[]
}},clone:function(a){if(a==null){a=new OpenLayers.Layer.Grid(this.name,this.url,this.params,this.getOptions())
}a=OpenLayers.Layer.HTTPRequest.prototype.clone.apply(this,[a]);
if(this.tileSize!=null){a.tileSize=this.tileSize.clone()
}a.grid=[];
return a
},moveTo:function(b,d,c){OpenLayers.Layer.HTTPRequest.prototype.moveTo.apply(this,arguments);
b=b||this.map.getExtent();
if(b!=null){var a=!this.grid.length||d;
var e=this.getTilesBounds();
if(this.singleTile){if(a||(!c&&!e.containsBounds(b))){this.initSingleTile(b)
}}else{if(a||!e.containsBounds(b,true)){this.initGriddedTiles(b)
}else{this.moveGriddedTiles(b)
}}}},setTileSize:function(a){if(this.singleTile){a=this.map.getSize().clone();
a.h=parseInt(a.h*this.ratio);
a.w=parseInt(a.w*this.ratio)
}OpenLayers.Layer.HTTPRequest.prototype.setTileSize.apply(this,[a])
},getGridBounds:function(){var a="The getGridBounds() function is deprecated. It will be removed in 3.0. Please use getTilesBounds() instead.";
OpenLayers.Console.warn(a);
return this.getTilesBounds()
},getTilesBounds:function(){var c=null;
if(this.grid.length){var d=this.grid.length-1;
var b=this.grid[d][0];
var e=this.grid[0].length-1;
var a=this.grid[0][e];
c=new OpenLayers.Bounds(b.bounds.left,b.bounds.bottom,a.bounds.right,a.bounds.top)
}return c
},initSingleTile:function(a){var d=a.getCenterLonLat();
var c=a.getWidth()*this.ratio;
var e=a.getHeight()*this.ratio;
var b=new OpenLayers.Bounds(d.lon-(c/2),d.lat-(e/2),d.lon+(c/2),d.lat+(e/2));
var g=new OpenLayers.LonLat(b.left,b.top);
var f=this.map.getLayerPxFromLonLat(g);
if(!this.grid.length){this.grid[0]=[]
}var h=this.grid[0][0];
if(!h){h=this.addTile(b,f);
this.addTileMonitoringHooks(h);
h.draw();
this.grid[0][0]=h
}else{h.moveTo(b,f)
}this.removeExcessTiles(1,1)
},calculateGridLayout:function(p,d,f){var l=f*this.tileSize.w;
var c=f*this.tileSize.h;
var j=p.left-d.left;
var m=Math.floor(j/l)-this.buffer;
var k=j/l-m;
var g=-k*this.tileSize.w;
var o=d.left+m*l;
var b=p.top-(d.bottom+c);
var i=Math.ceil(b/c)+this.buffer;
var a=i-b/c;
var e=-a*this.tileSize.h;
var h=d.bottom+i*c;
return{tilelon:l,tilelat:c,tileoffsetlon:o,tileoffsetlat:h,tileoffsetx:g,tileoffsety:e}
},initGriddedTiles:function(i){var g=this.map.getSize();
var r=Math.ceil(g.h/this.tileSize.h)+Math.max(1,2*this.buffer);
var q=Math.ceil(g.w/this.tileSize.w)+Math.max(1,2*this.buffer);
var p=this.maxExtent;
var w=this.map.getResolution();
var v=this.calculateGridLayout(i,p,w);
var f=Math.round(v.tileoffsetx);
var c=Math.round(v.tileoffsety);
var k=v.tileoffsetlon;
var o=v.tileoffsetlat;
var e=v.tilelon;
var j=v.tilelat;
this.origin=new OpenLayers.Pixel(f,c);
var B=f;
var t=k;
var A=0;
var a=parseInt(this.map.layerContainerDiv.style.left);
var z=parseInt(this.map.layerContainerDiv.style.top);
do{var h=this.grid[A++];
if(!h){h=[];
this.grid.push(h)
}k=t;
f=B;
var d=0;
do{var b=new OpenLayers.Bounds(k,o,k+e,o+j);
var m=f;
m-=a;
var l=c;
l-=z;
var s=new OpenLayers.Pixel(m,l);
var u=h[d++];
if(!u){u=this.addTile(b,s);
this.addTileMonitoringHooks(u);
h.push(u)
}else{u.moveTo(b,s,false)
}k+=e;
f+=this.tileSize.w
}while((k<=i.right+e*this.buffer)||d<q);
o-=j;
c+=this.tileSize.h
}while((o>=i.bottom-j*this.buffer)||A<r);
this.removeExcessTiles(A,d);
this.spiralTileLoad()
},spiralTileLoad:function(){var h=[];
var c=["right","down","left","up"];
var b=0;
var g=-1;
var e=OpenLayers.Util.indexOf(c,"right");
var f=0;
while(f<c.length){var d=b;
var j=g;
switch(c[e]){case"right":j++;
break;
case"down":d++;
break;
case"left":j--;
break;
case"up":d--;
break
}var a=null;
if((d<this.grid.length)&&(d>=0)&&(j<this.grid[0].length)&&(j>=0)){a=this.grid[d][j]
}if((a!=null)&&(!a.queued)){h.unshift(a);
a.queued=true;
f=0;
b=d;
g=j
}else{e=(e+1)%4;
f++
}}for(var k=0,l=h.length;
k<l;
k++){var a=h[k];
a.draw();
a.queued=false
}},addTile:function(b,a){},addTileMonitoringHooks:function(a){a.onLoadStart=function(){if(this.numLoadingTiles==0){this.events.triggerEvent("loadstart")
}this.numLoadingTiles++
};
a.events.register("loadstart",this,a.onLoadStart);
a.onLoadEnd=function(){this.numLoadingTiles--;
this.events.triggerEvent("tileloaded");
if(this.numLoadingTiles==0){this.events.triggerEvent("loadend")
}};
a.events.register("loadend",this,a.onLoadEnd);
a.events.register("unload",this,a.onLoadEnd)
},removeTileMonitoringHooks:function(a){a.unload();
a.events.un({loadstart:a.onLoadStart,loadend:a.onLoadEnd,unload:a.onLoadEnd,scope:this})
},moveGriddedTiles:function(a){var d=this.buffer||1;
while(true){var c=this.grid[0][0].position;
var b=this.map.getViewPortPxFromLayerPx(c);
if(b.x>-this.tileSize.w*(d-1)){this.shiftColumn(true)
}else{if(b.x<-this.tileSize.w*d){this.shiftColumn(false)
}else{if(b.y>-this.tileSize.h*(d-1)){this.shiftRow(true)
}else{if(b.y<-this.tileSize.h*d){this.shiftRow(false)
}else{break
}}}}}},shiftRow:function(e){var g=(e)?0:(this.grid.length-1);
var f=this.grid;
var k=f[g];
var j=this.map.getResolution();
var m=(e)?-this.tileSize.h:this.tileSize.h;
var l=j*-m;
var c=(e)?f.pop():f.shift();
for(var o=0,b=k.length;
o<b;
o++){var h=k[o];
var d=h.bounds.clone();
var a=h.position.clone();
d.bottom=d.bottom+l;
d.top=d.top+l;
a.y=a.y+m;
c[o].moveTo(d,a)
}if(e){f.unshift(c)
}else{f.push(c)
}},shiftColumn:function(e){var j=(e)?-this.tileSize.w:this.tileSize.w;
var h=this.map.getResolution();
var c=h*j;
for(var k=0,m=this.grid.length;
k<m;
k++){var d=this.grid[k];
var b=(e)?0:(d.length-1);
var g=d[b];
var f=g.bounds.clone();
var l=g.position.clone();
f.left=f.left+c;
f.right=f.right+c;
l.x=l.x+j;
var a=e?this.grid[k].pop():this.grid[k].shift();
a.moveTo(f,l);
if(e){d.unshift(a)
}else{d.push(a)
}}},removeExcessTiles:function(c,a){while(this.grid.length>c){var d=this.grid.pop();
for(var f=0,e=d.length;
f<e;
f++){var b=d[f];
this.removeTileMonitoringHooks(b);
b.destroy()
}}while(this.grid[0].length>a){for(var f=0,e=this.grid.length;
f<e;
f++){var d=this.grid[f];
var b=d.pop();
this.removeTileMonitoringHooks(b);
b.destroy()
}}},onMapResize:function(){if(this.singleTile){this.clearGrid();
this.setTileSize()
}},getTileBounds:function(g){var f=this.maxExtent;
var a=this.getResolution();
var h=a*this.tileSize.w;
var e=a*this.tileSize.h;
var c=this.getLonLatFromViewPortPx(g);
var d=f.left+(h*Math.floor((c.lon-f.left)/h));
var b=f.bottom+(e*Math.floor((c.lat-f.bottom)/e));
return new OpenLayers.Bounds(d,b,d+h,b+e)
},CLASS_NAME:"OpenLayers.Layer.Grid"});
OpenLayers.Layer.MultiMap=OpenLayers.Class(OpenLayers.Layer.EventPane,OpenLayers.Layer.FixedZoomLevels,{MIN_ZOOM_LEVEL:1,MAX_ZOOM_LEVEL:17,RESOLUTIONS:[9,1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,0.0006866455078125,0.00034332275390625,0.000171661376953125,0.0000858306884765625,0.00004291534423828125],type:null,initialize:function(b,a){OpenLayers.Layer.EventPane.prototype.initialize.apply(this,arguments);
OpenLayers.Layer.FixedZoomLevels.prototype.initialize.apply(this,arguments);
if(this.sphericalMercator){OpenLayers.Util.extend(this,OpenLayers.Layer.SphericalMercator);
this.initMercatorParameters();
this.RESOLUTIONS.unshift(10)
}},loadMapObject:function(){try{this.mapObject=new MultimapViewer(this.div)
}catch(a){}},getWarningHTML:function(){return OpenLayers.i18n("getLayerWarning",{layerType:"MM",layerLib:"MultiMap"})
},setMapObjectCenter:function(a,b){this.mapObject.goToPosition(a,b)
},getMapObjectCenter:function(){return this.mapObject.getCurrentPosition()
},getMapObjectZoom:function(){return this.mapObject.getZoomFactor()
},getMapObjectLonLatFromMapObjectPixel:function(a){a.x=a.x-(this.map.getSize().w/2);
a.y=a.y-(this.map.getSize().h/2);
return this.mapObject.getMapPositionAt(a)
},getMapObjectPixelFromMapObjectLonLat:function(a){return this.mapObject.geoPosToContainerPixels(a)
},getLongitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?this.forwardMercator(a.lon,a.lat).lon:a.lon
},getLatitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?this.forwardMercator(a.lon,a.lat).lat:a.lat
},getMapObjectLonLatFromLonLat:function(b,a){var c;
if(this.sphericalMercator){var d=this.inverseMercator(b,a);
c=new MMLatLon(d.lat,d.lon)
}else{c=new MMLatLon(a,b)
}return c
},getXFromMapObjectPixel:function(a){return a.x
},getYFromMapObjectPixel:function(a){return a.y
},getMapObjectPixelFromXY:function(a,b){return new MMPoint(a,b)
},CLASS_NAME:"OpenLayers.Layer.MultiMap"});
OpenLayers.Layer.VirtualEarth=OpenLayers.Class(OpenLayers.Layer.EventPane,OpenLayers.Layer.FixedZoomLevels,{MIN_ZOOM_LEVEL:1,MAX_ZOOM_LEVEL:19,RESOLUTIONS:[1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,0.0006866455078125,0.00034332275390625,0.000171661376953125,0.0000858306884765625,0.00004291534423828125,0.00002145767211914062,0.00001072883605957031,0.00000536441802978515],type:null,sphericalMercator:false,animationEnabled:true,initialize:function(b,a){OpenLayers.Layer.EventPane.prototype.initialize.apply(this,arguments);
OpenLayers.Layer.FixedZoomLevels.prototype.initialize.apply(this,arguments);
if(this.sphericalMercator){OpenLayers.Util.extend(this,OpenLayers.Layer.SphericalMercator);
this.initMercatorParameters()
}},loadMapObject:function(){var b=OpenLayers.Util.createDiv(this.name);
var a=this.map.getSize();
b.style.width=a.w+"px";
b.style.height=a.h+"px";
this.div.appendChild(b);
try{this.mapObject=new VEMap(this.name)
}catch(c){}if(this.mapObject!=null){try{this.mapObject.LoadMap(null,null,this.type,true);
this.mapObject.AttachEvent("onmousedown",OpenLayers.Function.True)
}catch(c){}this.mapObject.HideDashboard();
if(typeof this.mapObject.SetAnimationEnabled=="function"){this.mapObject.SetAnimationEnabled(this.animationEnabled)
}}if(!this.mapObject||!this.mapObject.vemapcontrol||!this.mapObject.vemapcontrol.PanMap||(typeof this.mapObject.vemapcontrol.PanMap!="function")){this.dragPanMapObject=null
}},onMapResize:function(){this.mapObject.Resize(this.map.size.w,this.map.size.h)
},getWarningHTML:function(){return OpenLayers.i18n("getLayerWarning",{layerType:"VE",layerLib:"VirtualEarth"})
},setMapObjectCenter:function(a,b){this.mapObject.SetCenterAndZoom(a,b)
},getMapObjectCenter:function(){return this.mapObject.GetCenter()
},dragPanMapObject:function(b,a){this.mapObject.vemapcontrol.PanMap(b,-a)
},getMapObjectZoom:function(){return this.mapObject.GetZoomLevel()
},getMapObjectLonLatFromMapObjectPixel:function(a){return(typeof VEPixel!="undefined")?this.mapObject.PixelToLatLong(a):this.mapObject.PixelToLatLong(a.x,a.y)
},getMapObjectPixelFromMapObjectLonLat:function(a){return this.mapObject.LatLongToPixel(a)
},getLongitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?this.forwardMercator(a.Longitude,a.Latitude).lon:a.Longitude
},getLatitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?this.forwardMercator(a.Longitude,a.Latitude).lat:a.Latitude
},getMapObjectLonLatFromLonLat:function(b,d){var a;
if(this.sphericalMercator){var c=this.inverseMercator(b,d);
a=new VELatLong(c.lat,c.lon)
}else{a=new VELatLong(d,b)
}return a
},getXFromMapObjectPixel:function(a){return a.x
},getYFromMapObjectPixel:function(a){return a.y
},getMapObjectPixelFromXY:function(a,b){return(typeof VEPixel!="undefined")?new VEPixel(a,b):new Msn.VE.Pixel(a,b)
},CLASS_NAME:"OpenLayers.Layer.VirtualEarth"});
OpenLayers.Layer.Yahoo=OpenLayers.Class(OpenLayers.Layer.EventPane,OpenLayers.Layer.FixedZoomLevels,{MIN_ZOOM_LEVEL:0,MAX_ZOOM_LEVEL:17,RESOLUTIONS:[1.40625,0.703125,0.3515625,0.17578125,0.087890625,0.0439453125,0.02197265625,0.010986328125,0.0054931640625,0.00274658203125,0.001373291015625,0.0006866455078125,0.00034332275390625,0.000171661376953125,0.0000858306884765625,0.00004291534423828125,0.00002145767211914062,0.00001072883605957031],type:null,sphericalMercator:false,initialize:function(b,a){OpenLayers.Layer.EventPane.prototype.initialize.apply(this,arguments);
OpenLayers.Layer.FixedZoomLevels.prototype.initialize.apply(this,arguments);
if(this.sphericalMercator){OpenLayers.Util.extend(this,OpenLayers.Layer.SphericalMercator);
this.initMercatorParameters()
}},loadMapObject:function(){try{var a=this.getMapObjectSizeFromOLSize(this.map.getSize());
this.mapObject=new YMap(this.div,this.type,a);
this.mapObject.disableKeyControls();
this.mapObject.disableDragMap();
if(!this.mapObject.moveByXY||(typeof this.mapObject.moveByXY!="function")){this.dragPanMapObject=null
}}catch(b){}},onMapResize:function(){try{var a=this.getMapObjectSizeFromOLSize(this.map.getSize());
this.mapObject.resizeTo(a)
}catch(b){}},setMap:function(a){OpenLayers.Layer.EventPane.prototype.setMap.apply(this,arguments);
this.map.events.register("moveend",this,this.fixYahooEventPane)
},fixYahooEventPane:function(){var a=OpenLayers.Util.getElement("ygddfdiv");
if(a!=null){if(a.parentNode!=null){a.parentNode.removeChild(a)
}this.map.events.unregister("moveend",this,this.fixYahooEventPane)
}},getWarningHTML:function(){return OpenLayers.i18n("getLayerWarning",{layerType:"Yahoo",layerLib:"Yahoo"})
},getOLZoomFromMapObjectZoom:function(a){var b=null;
if(a!=null){b=OpenLayers.Layer.FixedZoomLevels.prototype.getOLZoomFromMapObjectZoom.apply(this,[a]);
b=18-b
}return b
},getMapObjectZoomFromOLZoom:function(a){var b=null;
if(a!=null){b=OpenLayers.Layer.FixedZoomLevels.prototype.getMapObjectZoomFromOLZoom.apply(this,[a]);
b=18-b
}return b
},setMapObjectCenter:function(a,b){this.mapObject.drawZoomAndCenter(a,b)
},getMapObjectCenter:function(){return this.mapObject.getCenterLatLon()
},dragPanMapObject:function(b,a){this.mapObject.moveByXY({x:-b,y:a})
},getMapObjectZoom:function(){return this.mapObject.getZoomLevel()
},getMapObjectLonLatFromMapObjectPixel:function(a){return this.mapObject.convertXYLatLon(a)
},getMapObjectPixelFromMapObjectLonLat:function(a){return this.mapObject.convertLatLonXY(a)
},getLongitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?this.forwardMercator(a.Lon,a.Lat).lon:a.Lon
},getLatitudeFromMapObjectLonLat:function(a){return this.sphericalMercator?this.forwardMercator(a.Lon,a.Lat).lat:a.Lat
},getMapObjectLonLatFromLonLat:function(b,a){var c;
if(this.sphericalMercator){var d=this.inverseMercator(b,a);
c=new YGeoPoint(d.lat,d.lon)
}else{c=new YGeoPoint(a,b)
}return c
},getXFromMapObjectPixel:function(a){return a.x
},getYFromMapObjectPixel:function(a){return a.y
},getMapObjectPixelFromXY:function(a,b){return new YCoordPoint(a,b)
},getMapObjectSizeFromOLSize:function(a){return new YSize(a.w,a.h)
},CLASS_NAME:"OpenLayers.Layer.Yahoo"});
OpenLayers.Style=OpenLayers.Class({name:null,title:null,description:null,layerName:null,isDefault:false,rules:null,context:null,defaultStyle:null,defaultsPerSymbolizer:false,propertyStyles:null,initialize:function(b,a){OpenLayers.Util.extend(this,a);
this.rules=[];
if(a&&a.rules){this.addRules(a.rules)
}this.setDefaultStyle(b||OpenLayers.Feature.Vector.style["default"])
},destroy:function(){for(var b=0,a=this.rules.length;
b<a;
b++){this.rules[b].destroy();
this.rules[b]=null
}this.rules=null;
this.defaultStyle=null
},createSymbolizer:function(g){var h=this.defaultsPerSymbolizer?{}:this.createLiterals(OpenLayers.Util.extend({},this.defaultStyle),g);
var f=this.rules;
var e,j;
var k=[];
var c=false;
for(var a=0,b=f.length;
a<b;
a++){e=f[a];
var d=e.evaluate(g);
if(d){if(e instanceof OpenLayers.Rule&&e.elseFilter){k.push(e)
}else{c=true;
this.applySymbolizer(e,h,g)
}}}if(c==false&&k.length>0){c=true;
for(var a=0,b=k.length;
a<b;
a++){this.applySymbolizer(k[a],h,g)
}}if(f.length>0&&c==false){h.display="none"
}return h
},applySymbolizer:function(d,b,f){var e=f.geometry?this.getSymbolizerPrefix(f.geometry):OpenLayers.Style.SYMBOLIZER_PREFIXES[0];
var a=d.symbolizer[e]||d.symbolizer;
if(this.defaultsPerSymbolizer===true){var c=this.defaultStyle;
OpenLayers.Util.applyDefaults(a,{pointRadius:c.pointRadius});
if(a.stroke===true||a.graphic===true){OpenLayers.Util.applyDefaults(a,{strokeWidth:c.strokeWidth,strokeColor:c.strokeColor,strokeOpacity:c.strokeOpacity,strokeDashstyle:c.strokeDashstyle,strokeLinecap:c.strokeLinecap})
}if(a.fill===true||a.graphic===true){OpenLayers.Util.applyDefaults(a,{fillColor:c.fillColor,fillOpacity:c.fillOpacity})
}if(a.graphic===true){OpenLayers.Util.applyDefaults(a,{pointRadius:this.defaultStyle.pointRadius,externalGraphic:this.defaultStyle.externalGraphic,graphicName:this.defaultStyle.graphicName,graphicOpacity:this.defaultStyle.graphicOpacity,graphicWidth:this.defaultStyle.graphicWidth,graphicHeight:this.defaultStyle.graphicHeight,graphicXOffset:this.defaultStyle.graphicXOffset,graphicYOffset:this.defaultStyle.graphicYOffset})
}}return this.createLiterals(OpenLayers.Util.extend(b,a),f)
},createLiterals:function(b,a){var d=OpenLayers.Util.extend({},a.attributes||a.data);
OpenLayers.Util.extend(d,this.context);
for(var c in this.propertyStyles){b[c]=OpenLayers.Style.createLiteral(b[c],d,a,c)
}return b
},findPropertyStyles:function(){var g={};
var a=this.defaultStyle;
this.addPropertyStyles(g,a);
var c=this.rules;
var h,b;
for(var f=0,d=c.length;
f<d;
f++){h=c[f].symbolizer;
for(var e in h){b=h[e];
if(typeof b=="object"){this.addPropertyStyles(g,b)
}else{this.addPropertyStyles(g,h);
break
}}}return g
},addPropertyStyles:function(d,a){var b;
for(var c in a){b=a[c];
if(typeof b=="string"&&b.match(/\$\{\w+\}/)){d[c]=true
}}return d
},addRules:function(a){this.rules=this.rules.concat(a);
this.propertyStyles=this.findPropertyStyles()
},setDefaultStyle:function(a){this.defaultStyle=a;
this.propertyStyles=this.findPropertyStyles()
},getSymbolizerPrefix:function(b){var a=OpenLayers.Style.SYMBOLIZER_PREFIXES;
for(var d=0,c=a.length;
d<c;
d++){if(b.CLASS_NAME.indexOf(a[d])!=-1){return a[d]
}}},CLASS_NAME:"OpenLayers.Style"});
OpenLayers.Style.createLiteral=function(b,d,c,a){if(typeof b=="string"&&b.indexOf("${")!=-1){b=OpenLayers.String.format(b,d,[c,a]);
b=(isNaN(b)||!b)?b:parseFloat(b)
}return b
};
OpenLayers.Style.SYMBOLIZER_PREFIXES=["Point","Line","Polygon","Text"];
OpenLayers.Control.Navigation=OpenLayers.Class(OpenLayers.Control,{dragPan:null,dragPanOptions:null,documentDrag:false,zoomBox:null,zoomBoxEnabled:true,zoomWheelEnabled:true,mouseWheelOptions:null,handleRightClicks:false,zoomBoxKeyMask:OpenLayers.Handler.MOD_SHIFT,autoActivate:true,initialize:function(a){this.handlers={};
OpenLayers.Control.prototype.initialize.apply(this,arguments)
},destroy:function(){this.deactivate();
if(this.dragPan){this.dragPan.destroy()
}this.dragPan=null;
if(this.zoomBox){this.zoomBox.destroy()
}this.zoomBox=null;
OpenLayers.Control.prototype.destroy.apply(this,arguments)
},activate:function(){this.dragPan.activate();
if(this.zoomWheelEnabled){this.handlers.wheel.activate()
}this.handlers.click.activate();
if(this.zoomBoxEnabled){this.zoomBox.activate()
}return OpenLayers.Control.prototype.activate.apply(this,arguments)
},deactivate:function(){this.zoomBox.deactivate();
this.dragPan.deactivate();
this.handlers.click.deactivate();
this.handlers.wheel.deactivate();
return OpenLayers.Control.prototype.deactivate.apply(this,arguments)
},draw:function(){if(this.handleRightClicks){this.map.viewPortDiv.oncontextmenu=OpenLayers.Function.False
}var a={dblclick:this.defaultDblClick,dblrightclick:this.defaultDblRightClick};
var b={"double":true,stopDouble:true};
this.handlers.click=new OpenLayers.Handler.Click(this,a,b);
this.dragPan=new OpenLayers.Control.DragPan(OpenLayers.Util.extend({map:this.map,documentDrag:this.documentDrag},this.dragPanOptions));
this.zoomBox=new OpenLayers.Control.ZoomBox({map:this.map,keyMask:this.zoomBoxKeyMask});
this.dragPan.draw();
this.zoomBox.draw();
this.handlers.wheel=new OpenLayers.Handler.MouseWheel(this,{up:this.wheelUp,down:this.wheelDown},this.mouseWheelOptions)
},defaultDblClick:function(b){var a=this.map.getLonLatFromViewPortPx(b.xy);
this.map.setCenter(a,this.map.zoom+1)
},defaultDblRightClick:function(b){var a=this.map.getLonLatFromViewPortPx(b.xy);
this.map.setCenter(a,this.map.zoom-1)
},wheelChange:function(f,j){var e=this.map.getZoom();
var c=this.map.getZoom()+Math.round(j);
c=Math.max(c,0);
c=Math.min(c,this.map.getNumZoomLevels());
if(c===e){return
}var g=this.map.getSize();
var b=g.w/2-f.xy.x;
var a=f.xy.y-g.h/2;
var d=this.map.baseLayer.getResolutionForZoom(c);
var h=this.map.getLonLatFromPixel(f.xy);
var i=new OpenLayers.LonLat(h.lon+b*d,h.lat+a*d);
this.map.setCenter(i,c)
},wheelUp:function(a,b){this.wheelChange(a,b||1)
},wheelDown:function(a,b){this.wheelChange(a,b||-1)
},disableZoomBox:function(){this.zoomBoxEnabled=false;
this.zoomBox.deactivate()
},enableZoomBox:function(){this.zoomBoxEnabled=true;
if(this.active){this.zoomBox.activate()
}},disableZoomWheel:function(){this.zoomWheelEnabled=false;
this.handlers.wheel.deactivate()
},enableZoomWheel:function(){this.zoomWheelEnabled=true;
if(this.active){this.handlers.wheel.activate()
}},CLASS_NAME:"OpenLayers.Control.Navigation"});
OpenLayers.Filter=OpenLayers.Class({initialize:function(a){OpenLayers.Util.extend(this,a)
},destroy:function(){},evaluate:function(a){return true
},clone:function(){return null
},CLASS_NAME:"OpenLayers.Filter"});
OpenLayers.Format.WMSCapabilities.v1_1_0=OpenLayers.Class(OpenLayers.Format.WMSCapabilities.v1_1,{version:"1.1.0",initialize:function(a){OpenLayers.Format.WMSCapabilities.v1_1.prototype.initialize.apply(this,[a])
},readers:{wms:OpenLayers.Util.applyDefaults({SRS:function(c,d){var b=this.getChildValue(c);
var f=b.split(/ +/);
for(var a=0,e=f.length;
a<e;
a++){d.srs[f[a]]=true
}}},OpenLayers.Format.WMSCapabilities.v1_1.prototype.readers.wms)},CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1_1_0"});
OpenLayers.Format.WMSCapabilities.v1_1_1=OpenLayers.Class(OpenLayers.Format.WMSCapabilities.v1_1,{version:"1.1.1",initialize:function(a){OpenLayers.Format.WMSCapabilities.v1_1.prototype.initialize.apply(this,[a])
},readers:{wms:OpenLayers.Util.applyDefaults({SRS:function(a,b){b.srs[this.getChildValue(a)]=true
}},OpenLayers.Format.WMSCapabilities.v1_1.prototype.readers.wms)},CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1_1_1"});
OpenLayers.Format.WMSCapabilities.v1_3_0=OpenLayers.Class(OpenLayers.Format.WMSCapabilities.v1_3,{version:"1.3.0",CLASS_NAME:"OpenLayers.Format.WMSCapabilities.v1_3_0"});
OpenLayers.Geometry=OpenLayers.Class({id:null,parent:null,bounds:null,initialize:function(){this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")
},destroy:function(){this.id=null;
this.bounds=null
},clone:function(){return new OpenLayers.Geometry()
},setBounds:function(a){if(a){this.bounds=a.clone()
}},clearBounds:function(){this.bounds=null;
if(this.parent){this.parent.clearBounds()
}},extendBounds:function(b){var a=this.getBounds();
if(!a){this.setBounds(b)
}else{this.bounds.extend(b)
}},getBounds:function(){if(this.bounds==null){this.calculateBounds()
}return this.bounds
},calculateBounds:function(){},distanceTo:function(b,a){},getVertices:function(a){},atPoint:function(h,c,a){var f=false;
var g=this.getBounds();
if((g!=null)&&(h!=null)){var e=(c!=null)?c:0;
var d=(a!=null)?a:0;
var b=new OpenLayers.Bounds(this.bounds.left-e,this.bounds.bottom-d,this.bounds.right+e,this.bounds.top+d);
f=b.containsLonLat(h)
}return f
},getLength:function(){return 0
},getArea:function(){return 0
},getCentroid:function(){return null
},toString:function(){return OpenLayers.Format.WKT.prototype.write(new OpenLayers.Feature.Vector(this))
},CLASS_NAME:"OpenLayers.Geometry"});
OpenLayers.Geometry.fromWKT=function(c){var d=arguments.callee.format;
if(!d){d=new OpenLayers.Format.WKT();
arguments.callee.format=d
}var a;
var f=d.read(c);
if(f instanceof OpenLayers.Feature.Vector){a=f.geometry
}else{if(f instanceof Array){var e=f.length;
var b=new Array(e);
for(var g=0;
g<e;
++g){b[g]=f[g].geometry
}a=new OpenLayers.Geometry.Collection(b)
}}return a
};
OpenLayers.Geometry.segmentsIntersect=function(D,C,F){var s=F&&F.point;
var h=F&&F.tolerance;
var I=false;
var m=D.x1-C.x1;
var w=D.y1-C.y1;
var k=D.x2-D.x1;
var E=D.y2-D.y1;
var u=C.y2-C.y1;
var e=C.x2-C.x1;
var t=(u*k)-(e*E);
var H=(e*w)-(u*m);
var G=(k*w)-(E*m);
if(t==0){if(H==0&&G==0){I=true
}}else{var v=H/t;
var q=G/t;
if(v>=0&&v<=1&&q>=0&&q<=1){if(!s){I=true
}else{var b=D.x1+(v*k);
var a=D.y1+(v*E);
I=new OpenLayers.Geometry.Point(b,a)
}}}if(h){var r;
if(I){if(s){var g=[D,C];
var l,b,a;
outer:for(var A=0;
A<2;
++A){l=g[A];
for(var z=1;
z<3;
++z){b=l["x"+z];
a=l["y"+z];
r=Math.sqrt(Math.pow(b-I.x,2)+Math.pow(a-I.y,2));
if(r<h){I.x=b;
I.y=a;
break outer
}}}}}else{var g=[D,C];
var o,B,b,a,f,c;
outer:for(var A=0;
A<2;
++A){o=g[A];
B=g[(A+1)%2];
for(var z=1;
z<3;
++z){f={x:o["x"+z],y:o["y"+z]};
c=OpenLayers.Geometry.distanceToSegment(f,B);
if(c.distance<h){if(s){I=new OpenLayers.Geometry.Point(f.x,f.y)
}else{I=true
}break outer
}}}}}return I
};
OpenLayers.Geometry.distanceToSegment=function(b,h){var g=b.x;
var a=b.y;
var f=h.x1;
var m=h.y1;
var e=h.x2;
var j=h.y2;
var d=e-f;
var c=j-m;
var l=((d*(g-f))+(c*(a-m)))/(Math.pow(d,2)+Math.pow(c,2));
var k,i;
if(l<=0){k=f;
i=m
}else{if(l>=1){k=e;
i=j
}else{k=f+l*d;
i=m+l*c
}}return{distance:Math.sqrt(Math.pow(k-g,2)+Math.pow(i-a,2)),x:k,y:i}
};
OpenLayers.Layer.ArcGIS93Rest=OpenLayers.Class(OpenLayers.Layer.Grid,{DEFAULT_PARAMS:{format:"png"},isBaseLayer:true,initialize:function(b,a,c,e){var d=[];
c=OpenLayers.Util.upperCaseObject(c);
d.push(b,a,c,e);
OpenLayers.Layer.Grid.prototype.initialize.apply(this,d);
OpenLayers.Util.applyDefaults(this.params,OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS));
if(this.params.TRANSPARENT&&this.params.TRANSPARENT.toString().toLowerCase()=="true"){if((e==null)||(!e.isBaseLayer)){this.isBaseLayer=false
}if(this.params.FORMAT=="jpg"){this.params.FORMAT=OpenLayers.Util.alphaHack()?"gif":"png"
}}},destroy:function(){OpenLayers.Layer.Grid.prototype.destroy.apply(this,arguments)
},clone:function(a){if(a==null){a=new OpenLayers.Layer.ArcGIS93Rest(this.name,this.url,this.params,this.getOptions())
}a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a]);
return a
},getURL:function(h){h=this.adjustBounds(h);
var g=this.projection.getCode().split(":");
var f=g[g.length-1];
var b=this.getImageSize();
var c={BBOX:h.toBBOX(),SIZE:b.w+","+b.h,F:"image",BBOXSR:f,IMAGESR:f};
if(this.layerDefs){var a=[];
var d;
for(d in this.layerDefs){if(this.layerDefs.hasOwnProperty(d)){if(this.layerDefs[d]){a.push(d);
a.push(":");
a.push(this.layerDefs[d]);
a.push(";")
}}}if(a.length>0){c.LAYERDEFS=a.join("")
}}var e=this.getFullRequestString(c);
return e
},setLayerFilter:function(b,a){if(!this.layerDefs){this.layerDefs={}
}if(a){this.layerDefs[b]=a
}else{delete this.layerDefs[b]
}},clearLayerFilter:function(a){if(a){delete this.layerDefs[a]
}else{delete this.layerDefs
}},mergeNewParams:function(a){var c=OpenLayers.Util.upperCaseObject(a);
var b=[c];
return OpenLayers.Layer.Grid.prototype.mergeNewParams.apply(this,b)
},addTile:function(b,a){return new OpenLayers.Tile.Image(this,a,b,null,this.tileSize)
},CLASS_NAME:"OpenLayers.Layer.ArcGIS93Rest"});
OpenLayers.Layer.KaMap=OpenLayers.Class(OpenLayers.Layer.Grid,{isBaseLayer:true,units:null,resolution:OpenLayers.DOTS_PER_INCH,DEFAULT_PARAMS:{i:"jpeg",map:""},initialize:function(b,a,c,e){var d=[];
d.push(b,a,c,e);
OpenLayers.Layer.Grid.prototype.initialize.apply(this,d);
this.params=OpenLayers.Util.applyDefaults(this.params,this.DEFAULT_PARAMS)
},getURL:function(a){a=this.adjustBounds(a);
var b=this.map.getResolution();
var c=Math.round((this.map.getScale()*10000))/10000;
var e=Math.round(a.left/b);
var d=-Math.round(a.top/b);
return this.getFullRequestString({t:d,l:e,s:c})
},addTile:function(a,b){var c=this.getURL(a);
return new OpenLayers.Tile.Image(this,b,a,c,this.tileSize)
},calculateGridLayout:function(p,d,f){var l=f*this.tileSize.w;
var c=f*this.tileSize.h;
var j=p.left;
var m=Math.floor(j/l)-this.buffer;
var k=j/l-m;
var g=-k*this.tileSize.w;
var o=m*l;
var b=p.top;
var i=Math.ceil(b/c)+this.buffer;
var a=i-b/c;
var e=-(a+1)*this.tileSize.h;
var h=i*c;
return{tilelon:l,tilelat:c,tileoffsetlon:o,tileoffsetlat:h,tileoffsetx:g,tileoffsety:e}
},clone:function(a){if(a==null){a=new OpenLayers.Layer.KaMap(this.name,this.url,this.params,this.getOptions())
}a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a]);
if(this.tileSize!=null){a.tileSize=this.tileSize.clone()
}a.grid=[];
return a
},getTileBounds:function(g){var b=this.getResolution();
var a=b*this.tileSize.w;
var f=b*this.tileSize.h;
var d=this.getLonLatFromViewPortPx(g);
var e=a*Math.floor(d.lon/a);
var c=f*Math.floor(d.lat/f);
return new OpenLayers.Bounds(e,c,e+a,c+f)
},CLASS_NAME:"OpenLayers.Layer.KaMap"});
OpenLayers.Layer.MapGuide=OpenLayers.Class(OpenLayers.Layer.Grid,{isBaseLayer:true,useHttpTile:false,singleTile:false,useOverlay:false,useAsyncOverlay:true,TILE_PARAMS:{operation:"GETTILEIMAGE",version:"1.2.0"},SINGLE_TILE_PARAMS:{operation:"GETMAPIMAGE",format:"PNG",locale:"en",clip:"1",version:"1.0.0"},OVERLAY_PARAMS:{operation:"GETDYNAMICMAPOVERLAYIMAGE",format:"PNG",locale:"en",clip:"1",version:"2.0.0"},FOLDER_PARAMS:{tileColumnsPerFolder:30,tileRowsPerFolder:30,format:"png",querystring:null},defaultSize:new OpenLayers.Size(300,300),initialize:function(a,d,b,c){OpenLayers.Layer.Grid.prototype.initialize.apply(this,arguments);
if(c==null||c.isBaseLayer==null){this.isBaseLayer=((this.transparent!="true")&&(this.transparent!=true))
}if(c&&c.useOverlay!=null){this.useOverlay=c.useOverlay
}if(this.singleTile){if(this.useOverlay){OpenLayers.Util.applyDefaults(this.params,this.OVERLAY_PARAMS);
if(!this.useAsyncOverlay){this.params.version="1.0.0"
}}else{OpenLayers.Util.applyDefaults(this.params,this.SINGLE_TILE_PARAMS)
}}else{if(this.useHttpTile){OpenLayers.Util.applyDefaults(this.params,this.FOLDER_PARAMS)
}else{OpenLayers.Util.applyDefaults(this.params,this.TILE_PARAMS)
}this.setTileSize(this.defaultSize)
}},clone:function(a){if(a==null){a=new OpenLayers.Layer.MapGuide(this.name,this.url,this.params,this.getOptions())
}a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a]);
return a
},addTile:function(b,a){return new OpenLayers.Tile.Image(this,a,b,null,this.tileSize)
},getURL:function(i){var c;
var a=i.getCenterLonLat();
var g=this.map.getSize();
if(this.singleTile){var d={setdisplaydpi:OpenLayers.DOTS_PER_INCH,setdisplayheight:g.h*this.ratio,setdisplaywidth:g.w*this.ratio,setviewcenterx:a.lon,setviewcentery:a.lat,setviewscale:this.map.getScale()};
if(this.useOverlay&&!this.useAsyncOverlay){var h={};
h=OpenLayers.Util.extend(h,d);
h.operation="GETVISIBLEMAPEXTENT";
h.version="1.0.0";
h.session=this.params.session;
h.mapName=this.params.mapName;
h.format="text/xml";
c=this.getFullRequestString(h);
OpenLayers.Request.GET({url:c,async:false})
}c=this.getFullRequestString(d)
}else{var f=this.map.getResolution();
var e=Math.floor((i.left-this.maxExtent.left)/f);
e=Math.round(e/this.tileSize.w);
var b=Math.floor((this.maxExtent.top-i.top)/f);
b=Math.round(b/this.tileSize.h);
if(this.useHttpTile){c=this.getImageFilePath({tilecol:e,tilerow:b,scaleindex:this.resolutions.length-this.map.zoom-1})
}else{c=this.getFullRequestString({tilecol:e,tilerow:b,scaleindex:this.resolutions.length-this.map.zoom-1})
}}return c
},getFullRequestString:function(e,d){var a=(d==null)?this.url:d;
if(typeof a=="object"){a=a[Math.floor(Math.random()*a.length)]
}var h=a;
var f=OpenLayers.Util.extend({},this.params);
f=OpenLayers.Util.extend(f,e);
var c=OpenLayers.Util.upperCaseObject(OpenLayers.Util.getArgs(a));
for(var g in f){if(g.toUpperCase() in c){delete f[g]
}}var i=OpenLayers.Util.getParameterString(f);
i=i.replace(/,/g,"+");
if(i!=""){var b=a.charAt(a.length-1);
if((b=="&")||(b=="?")){h+=i
}else{if(a.indexOf("?")==-1){h+="?"+i
}else{h+="&"+i
}}}return h
},getImageFilePath:function(d,b){var g=(b==null)?this.url:b;
if(typeof g=="object"){g=g[Math.floor(Math.random()*g.length)]
}var f=g;
var a="";
var c="";
if(d.tilerow<0){a="-"
}if(d.tilerow==0){a+="0"
}else{a+=Math.floor(Math.abs(d.tilerow/this.params.tileRowsPerFolder))*this.params.tileRowsPerFolder
}if(d.tilecol<0){c="-"
}if(d.tilecol==0){c+="0"
}else{c+=Math.floor(Math.abs(d.tilecol/this.params.tileColumnsPerFolder))*this.params.tileColumnsPerFolder
}var e="/S"+Math.floor(d.scaleindex)+"/"+this.params.basemaplayergroupname+"/R"+a+"/C"+c+"/"+(d.tilerow%this.params.tileRowsPerFolder)+"_"+(d.tilecol%this.params.tileColumnsPerFolder)+"."+this.params.format;
if(this.params.querystring){e+="?"+this.params.querystring
}f+=e;
return f
},calculateGridLayout:function(p,d,f){var l=f*this.tileSize.w;
var c=f*this.tileSize.h;
var j=p.left-d.left;
var m=Math.floor(j/l)-this.buffer;
var k=j/l-m;
var g=-k*this.tileSize.w;
var o=d.left+m*l;
var b=d.top-p.top+c;
var i=Math.floor(b/c)-this.buffer;
var a=i-b/c;
var e=a*this.tileSize.h;
var h=d.top-c*i;
return{tilelon:l,tilelat:c,tileoffsetlon:o,tileoffsetlat:h,tileoffsetx:g,tileoffsety:e}
},CLASS_NAME:"OpenLayers.Layer.MapGuide"});
OpenLayers.Layer.MapServer=OpenLayers.Class(OpenLayers.Layer.Grid,{DEFAULT_PARAMS:{mode:"map",map_imagetype:"png"},initialize:function(b,a,c,e){var d=[];
d.push(b,a,c,e);
OpenLayers.Layer.Grid.prototype.initialize.apply(this,d);
this.params=OpenLayers.Util.applyDefaults(this.params,this.DEFAULT_PARAMS);
if(e==null||e.isBaseLayer==null){this.isBaseLayer=((this.params.transparent!="true")&&(this.params.transparent!=true))
}},clone:function(a){if(a==null){a=new OpenLayers.Layer.MapServer(this.name,this.url,this.params,this.getOptions())
}a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a]);
return a
},addTile:function(b,a){return new OpenLayers.Tile.Image(this,a,b,null,this.tileSize)
},getURL:function(a){a=this.adjustBounds(a);
var d=[a.left,a.bottom,a.right,a.top];
var b=this.getImageSize();
var c=this.getFullRequestString({mapext:d,imgext:d,map_size:[b.w,b.h],imgx:b.w/2,imgy:b.h/2,imgxy:[b.w,b.h]});
return c
},getFullRequestString:function(e,d){var a=(d==null)?this.url:d;
var f=OpenLayers.Util.extend({},this.params);
f=OpenLayers.Util.extend(f,e);
var i=OpenLayers.Util.getParameterString(f);
if(a instanceof Array){a=this.selectUrl(i,a)
}var c=OpenLayers.Util.upperCaseObject(OpenLayers.Util.getParameters(a));
for(var g in f){if(g.toUpperCase() in c){delete f[g]
}}i=OpenLayers.Util.getParameterString(f);
var h=a;
i=i.replace(/,/g,"+");
if(i!=""){var b=a.charAt(a.length-1);
if((b=="&")||(b=="?")){h+=i
}else{if(a.indexOf("?")==-1){h+="?"+i
}else{h+="&"+i
}}}return h
},CLASS_NAME:"OpenLayers.Layer.MapServer"});
OpenLayers.Layer.TMS=OpenLayers.Class(OpenLayers.Layer.Grid,{serviceVersion:"1.0.0",isBaseLayer:true,tileOrigin:null,serverResolutions:null,initialize:function(b,a,d){var c=[];
c.push(b,a,{},d);
OpenLayers.Layer.Grid.prototype.initialize.apply(this,c)
},destroy:function(){OpenLayers.Layer.Grid.prototype.destroy.apply(this,arguments)
},clone:function(a){if(a==null){a=new OpenLayers.Layer.TMS(this.name,this.url,this.getOptions())
}a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a]);
return a
},getURL:function(a){a=this.adjustBounds(a);
var g=this.map.getResolution();
var e=Math.round((a.left-this.tileOrigin.lon)/(g*this.tileSize.w));
var d=Math.round((a.bottom-this.tileOrigin.lat)/(g*this.tileSize.h));
var c=this.serverResolutions!=null?OpenLayers.Util.indexOf(this.serverResolutions,g):this.map.getZoom();
var b=this.serviceVersion+"/"+this.layername+"/"+c+"/"+e+"/"+d+"."+this.type;
var f=this.url;
if(f instanceof Array){f=this.selectUrl(b,f)
}return f+b
},addTile:function(b,a){return new OpenLayers.Tile.Image(this,a,b,null,this.tileSize)
},setMap:function(a){OpenLayers.Layer.Grid.prototype.setMap.apply(this,arguments);
if(!this.tileOrigin){this.tileOrigin=new OpenLayers.LonLat(this.map.maxExtent.left,this.map.maxExtent.bottom)
}},CLASS_NAME:"OpenLayers.Layer.TMS"});
OpenLayers.Layer.TileCache=OpenLayers.Class(OpenLayers.Layer.Grid,{isBaseLayer:true,format:"image/png",serverResolutions:null,initialize:function(a,d,b,c){this.layername=b;
OpenLayers.Layer.Grid.prototype.initialize.apply(this,[a,d,{},c]);
this.extension=this.format.split("/")[1].toLowerCase();
this.extension=(this.extension=="jpg")?"jpeg":this.extension
},clone:function(a){if(a==null){a=new OpenLayers.Layer.TileCache(this.name,this.url,this.layername,this.getOptions())
}a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a]);
return a
},getURL:function(h){var a=this.map.getResolution();
var b=this.maxExtent;
var f=this.tileSize;
var g=Math.round((h.left-b.left)/(a*f.w));
var e=Math.round((h.bottom-b.bottom)/(a*f.h));
var c=this.serverResolutions!=null?OpenLayers.Util.indexOf(this.serverResolutions,a):this.map.getZoom();
function k(p,o){p=String(p);
var l=[];
for(var m=0;
m<o;
++m){l.push("0")
}return l.join("").substring(0,o-p.length)+p
}var j=[this.layername,k(c,2),k(parseInt(g/1000000),3),k((parseInt(g/1000)%1000),3),k((parseInt(g)%1000),3),k(parseInt(e/1000000),3),k((parseInt(e/1000)%1000),3),k((parseInt(e)%1000),3)+"."+this.extension];
var d=j.join("/");
var i=this.url;
if(i instanceof Array){i=this.selectUrl(d,i)
}i=(i.charAt(i.length-1)=="/")?i:i+"/";
return i+d
},addTile:function(a,b){var c=this.getURL(a);
return new OpenLayers.Tile.Image(this,b,a,c,this.tileSize)
},CLASS_NAME:"OpenLayers.Layer.TileCache"});
OpenLayers.Layer.WMS=OpenLayers.Class(OpenLayers.Layer.Grid,{DEFAULT_PARAMS:{service:"WMS",version:"1.1.1",request:"GetMap",styles:"",exceptions:"application/vnd.ogc.se_inimage",format:"image/jpeg"},reproject:false,isBaseLayer:true,encodeBBOX:false,noMagic:false,yx:["EPSG:4326"],initialize:function(b,a,c,e){var d=[];
c=OpenLayers.Util.upperCaseObject(c);
d.push(b,a,c,e);
OpenLayers.Layer.Grid.prototype.initialize.apply(this,d);
OpenLayers.Util.applyDefaults(this.params,OpenLayers.Util.upperCaseObject(this.DEFAULT_PARAMS));
if(!this.noMagic&&this.params.TRANSPARENT&&this.params.TRANSPARENT.toString().toLowerCase()=="true"){if((e==null)||(!e.isBaseLayer)){this.isBaseLayer=false
}if(this.params.FORMAT=="image/jpeg"){this.params.FORMAT=OpenLayers.Util.alphaHack()?"image/gif":"image/png"
}}},destroy:function(){OpenLayers.Layer.Grid.prototype.destroy.apply(this,arguments)
},clone:function(a){if(a==null){a=new OpenLayers.Layer.WMS(this.name,this.url,this.params,this.getOptions())
}a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a]);
return a
},reverseAxisOrder:function(){return(parseFloat(this.params.VERSION)>=1.3&&OpenLayers.Util.indexOf(this.yx,this.map.getProjectionObject().getCode())!==-1)
},getURL:function(a){a=this.adjustBounds(a);
var b=this.getImageSize();
var c={};
var e=this.reverseAxisOrder();
c.BBOX=this.encodeBBOX?a.toBBOX(null,e):a.toArray(e);
c.WIDTH=b.w;
c.HEIGHT=b.h;
var d=this.getFullRequestString(c);
return d
},addTile:function(b,a){return new OpenLayers.Tile.Image(this,a,b,null,this.tileSize)
},mergeNewParams:function(a){var c=OpenLayers.Util.upperCaseObject(a);
var b=[c];
return OpenLayers.Layer.Grid.prototype.mergeNewParams.apply(this,b)
},getFullRequestString:function(b,d){var c=this.map.getProjection();
var a=(c=="none")?null:c;
if(parseFloat(this.params.VERSION)>=1.3){this.params.CRS=a
}else{this.params.SRS=a
}return OpenLayers.Layer.Grid.prototype.getFullRequestString.apply(this,arguments)
},CLASS_NAME:"OpenLayers.Layer.WMS"});
OpenLayers.Layer.WorldWind=OpenLayers.Class(OpenLayers.Layer.Grid,{DEFAULT_PARAMS:{},isBaseLayer:true,lzd:null,zoomLevels:null,initialize:function(a,g,b,d,c,f){this.lzd=b;
this.zoomLevels=d;
var e=[];
e.push(a,g,c,f);
OpenLayers.Layer.Grid.prototype.initialize.apply(this,e);
this.params=OpenLayers.Util.applyDefaults(this.params,this.DEFAULT_PARAMS)
},addTile:function(b,a){return new OpenLayers.Tile.Image(this,a,b,null,this.tileSize)
},getZoom:function(){var b=this.map.getZoom();
var a=this.map.getMaxExtent();
b=b-Math.log(this.maxResolution/(this.lzd/512))/Math.log(2);
return b
},getURL:function(c){c=this.adjustBounds(c);
var b=this.getZoom();
var f=this.map.getMaxExtent();
var a=this.lzd/Math.pow(2,this.getZoom());
var e=Math.floor((c.left-f.left)/a);
var d=Math.floor((c.bottom-f.bottom)/a);
if(this.map.getResolution()<=(this.lzd/512)&&this.getZoom()<=this.zoomLevels){return this.getFullRequestString({L:b,X:e,Y:d})
}else{return OpenLayers.Util.getImagesLocation()+"blank.gif"
}},CLASS_NAME:"OpenLayers.Layer.WorldWind"});
OpenLayers.Layer.XYZ=OpenLayers.Class(OpenLayers.Layer.Grid,{isBaseLayer:true,sphericalMercator:false,initialize:function(b,a,d){if(d&&d.sphericalMercator||this.sphericalMercator){d=OpenLayers.Util.extend({maxExtent:new OpenLayers.Bounds(-128*156543.0339,-128*156543.0339,128*156543.0339,128*156543.0339),maxResolution:156543.0339,numZoomLevels:19,units:"m",projection:"EPSG:900913"},d)
}a=a||this.url;
b=b||this.name;
var c=[b,a,{},d];
OpenLayers.Layer.Grid.prototype.initialize.apply(this,c)
},clone:function(a){if(a==null){a=new OpenLayers.Layer.XYZ(this.name,this.url,this.getOptions())
}a=OpenLayers.Layer.HTTPRequest.prototype.clone.apply(this,[a]);
if(this.tileSize!=null){a.tileSize=this.tileSize.clone()
}a.grid=[];
return a
},getURL:function(h){var f=this.map.getResolution();
var d=Math.round((h.left-this.maxExtent.left)/(f*this.tileSize.w));
var c=Math.round((this.maxExtent.top-h.top)/(f*this.tileSize.h));
var b=this.map.getZoom();
var e=this.url;
var g=""+d+c+b;
if(e instanceof Array){e=this.selectUrl(g,e)
}var a=OpenLayers.String.format(e,{x:d,y:c,z:b});
return a
},addTile:function(b,a){return new OpenLayers.Tile.Image(this,a,b,null,this.tileSize)
},setMap:function(a){OpenLayers.Layer.Grid.prototype.setMap.apply(this,arguments);
if(!this.tileOrigin){this.tileOrigin=new OpenLayers.LonLat(this.maxExtent.left,this.maxExtent.bottom)
}},CLASS_NAME:"OpenLayers.Layer.XYZ"});
OpenLayers.Layer.OSM=OpenLayers.Class(OpenLayers.Layer.XYZ,{name:"OpenStreetMap",attribution:"Data CC-By-SA by <a href='http://openstreetmap.org/'>OpenStreetMap</a>",sphericalMercator:true,url:"http://tile.openstreetmap.org/${z}/${x}/${y}.png",CLASS_NAME:"OpenLayers.Layer.OSM"});
OpenLayers.Layer.Zoomify=OpenLayers.Class(OpenLayers.Layer.Grid,{url:null,size:null,isBaseLayer:true,standardTileSize:256,numberOfTiers:0,tileCountUpToTier:new Array(),tierSizeInTiles:new Array(),tierImageSize:new Array(),initialize:function(b,a,c,e){this.initializeZoomify(c);
var d=[];
d.push(b,a,c,{},e);
OpenLayers.Layer.Grid.prototype.initialize.apply(this,d)
},initializeZoomify:function(a){var b=a.clone();
var c=new OpenLayers.Size(Math.ceil(b.w/this.standardTileSize),Math.ceil(b.h/this.standardTileSize));
this.tierSizeInTiles.push(c);
this.tierImageSize.push(b);
while(b.w>this.standardTileSize||b.h>this.standardTileSize){b=new OpenLayers.Size(Math.floor(b.w/2),Math.floor(b.h/2));
c=new OpenLayers.Size(Math.ceil(b.w/this.standardTileSize),Math.ceil(b.h/this.standardTileSize));
this.tierSizeInTiles.push(c);
this.tierImageSize.push(b)
}this.tierSizeInTiles.reverse();
this.tierImageSize.reverse();
this.numberOfTiers=this.tierSizeInTiles.length;
this.tileCountUpToTier[0]=0;
for(var d=1;
d<this.numberOfTiers;
d++){this.tileCountUpToTier.push(this.tierSizeInTiles[d-1].w*this.tierSizeInTiles[d-1].h+this.tileCountUpToTier[d-1])
}},destroy:function(){OpenLayers.Layer.Grid.prototype.destroy.apply(this,arguments);
this.tileCountUpToTier.length=0;
this.tierSizeInTiles.length=0;
this.tierImageSize.length=0
},clone:function(a){if(a==null){a=new OpenLayers.Layer.Zoomify(this.name,this.url,this.size,this.options)
}a=OpenLayers.Layer.Grid.prototype.clone.apply(this,[a]);
return a
},getURL:function(g){g=this.adjustBounds(g);
var f=this.map.getResolution();
var d=Math.round((g.left-this.tileOrigin.lon)/(f*this.tileSize.w));
var c=Math.round((this.tileOrigin.lat-g.top)/(f*this.tileSize.h));
var b=this.map.getZoom();
var a=d+c*this.tierSizeInTiles[b].w+this.tileCountUpToTier[b];
var h="TileGroup"+Math.floor((a)/256)+"/"+b+"-"+d+"-"+c+".jpg";
var e=this.url;
if(e instanceof Array){e=this.selectUrl(h,e)
}return e+h
},getImageSize:function(){if(arguments.length>0){bounds=this.adjustBounds(arguments[0]);
var a=this.map.getResolution();
var e=Math.round((bounds.left-this.tileOrigin.lon)/(a*this.tileSize.w));
var d=Math.round((this.tileOrigin.lat-bounds.top)/(a*this.tileSize.h));
var c=this.map.getZoom();
var f=this.standardTileSize;
var b=this.standardTileSize;
if(e==this.tierSizeInTiles[c].w-1){var f=this.tierImageSize[c].w%this.standardTileSize
}if(d==this.tierSizeInTiles[c].h-1){var b=this.tierImageSize[c].h%this.standardTileSize
}return(new OpenLayers.Size(f,b))
}else{return this.tileSize
}},addTile:function(b,a){return new OpenLayers.Tile.Image(this,a,b,null,this.tileSize)
},setMap:function(a){OpenLayers.Layer.Grid.prototype.setMap.apply(this,arguments);
this.tileOrigin=new OpenLayers.LonLat(this.map.maxExtent.left,this.map.maxExtent.top)
},calculateGridLayout:function(p,d,f){var l=f*this.tileSize.w;
var c=f*this.tileSize.h;
var j=p.left-d.left;
var m=Math.floor(j/l)-this.buffer;
var k=j/l-m;
var g=-k*this.tileSize.w;
var o=d.left+m*l;
var b=d.top-p.top+c;
var i=Math.floor(b/c)-this.buffer;
var a=i-b/c;
var e=a*this.tileSize.h;
var h=d.top-c*i;
return{tilelon:l,tilelat:c,tileoffsetlon:o,tileoffsetlat:h,tileoffsetx:g,tileoffsety:e}
},CLASS_NAME:"OpenLayers.Layer.Zoomify"});
OpenLayers.Protocol.SQL.Gears=OpenLayers.Class(OpenLayers.Protocol.SQL,{FID_PREFIX:"__gears_fid__",NULL_GEOMETRY:"__gears_null_geometry__",NULL_FEATURE_STATE:"__gears_null_feature_state__",jsonParser:null,wktParser:null,fidRegExp:null,saveFeatureState:true,typeOfFid:"string",db:null,initialize:function(a){if(!this.supported()){return
}OpenLayers.Protocol.SQL.prototype.initialize.apply(this,[a]);
this.jsonParser=new OpenLayers.Format.JSON();
this.wktParser=new OpenLayers.Format.WKT();
this.fidRegExp=new RegExp("^"+this.FID_PREFIX);
this.initializeDatabase()
},initializeDatabase:function(){this.db=google.gears.factory.create("beta.database");
this.db.open(this.databaseName);
this.db.execute("CREATE TABLE IF NOT EXISTS "+this.tableName+" (fid TEXT UNIQUE, geometry TEXT, properties TEXT,  state TEXT)")
},destroy:function(){this.db.close();
this.db=null;
this.jsonParser=null;
this.wktParser=null;
OpenLayers.Protocol.SQL.prototype.destroy.apply(this)
},supported:function(){return !!(window.google&&google.gears)
},read:function(e){OpenLayers.Protocol.prototype.read.apply(this,arguments);
e=OpenLayers.Util.applyDefaults(e,this.options);
var a,b=[];
var d=this.db.execute("SELECT * FROM "+this.tableName);
while(d.isValidRow()){a=this.unfreezeFeature(d);
if(this.evaluateFilter(a,e.filter)){if(!e.noFeatureStateReset){a.state=null
}b.push(a)
}d.next()
}d.close();
var c=new OpenLayers.Protocol.Response({code:OpenLayers.Protocol.Response.SUCCESS,requestType:"read",features:b});
if(e&&e.callback){e.callback.call(e.scope,c)
}return c
},unfreezeFeature:function(b){var c;
var d=b.fieldByName("geometry");
if(d==this.NULL_GEOMETRY){c=new OpenLayers.Feature.Vector()
}else{c=this.wktParser.read(d)
}c.attributes=this.jsonParser.read(b.fieldByName("properties"));
c.fid=this.extractFidFromField(b.fieldByName("fid"));
var a=b.fieldByName("state");
if(a==this.NULL_FEATURE_STATE){a=null
}c.state=a;
return c
},extractFidFromField:function(a){if(!a.match(this.fidRegExp)&&this.typeOfFid=="number"){a=parseFloat(a)
}return a
},create:function(c,b){b=OpenLayers.Util.applyDefaults(b,this.options);
var a=this.createOrUpdate(c);
a.requestType="create";
if(b&&b.callback){b.callback.call(b.scope,a)
}return a
},update:function(c,b){b=OpenLayers.Util.applyDefaults(b,this.options);
var a=this.createOrUpdate(c);
a.requestType="update";
if(b&&b.callback){b.callback.call(b.scope,a)
}return a
},createOrUpdate:function(b){if(!(b instanceof Array)){b=[b]
}var g,e=b.length,f;
var a=new Array(e);
for(g=0;
g<e;
g++){f=b[g];
var c=this.freezeFeature(f);
this.db.execute("REPLACE INTO "+this.tableName+" (fid, geometry, properties, state) VALUES (?, ?, ?, ?)",c);
var d=f.clone();
d.fid=this.extractFidFromField(c[0]);
a[g]=d
}return new OpenLayers.Protocol.Response({code:OpenLayers.Protocol.Response.SUCCESS,features:a,reqFeatures:b})
},freezeFeature:function(d){d.fid=d.fid!=null?""+d.fid:OpenLayers.Util.createUniqueID(this.FID_PREFIX);
var b=d.geometry!=null?d.geometry.toString():this.NULL_GEOMETRY;
var c=this.jsonParser.write(d.attributes);
var a=this.getFeatureStateForFreeze(d);
return[d.fid,b,c,a]
},getFeatureStateForFreeze:function(a){var b;
if(!this.saveFeatureState){b=this.NULL_FEATURE_STATE
}else{if(this.createdOffline(a)){b=OpenLayers.State.INSERT
}else{b=a.state
}}return b
},"delete":function(c,g){if(!(c instanceof Array)){c=[c]
}g=OpenLayers.Util.applyDefaults(g,this.options);
var b,e,a;
for(b=0,e=c.length;
b<e;
b++){a=c[b];
if(this.saveFeatureState&&!this.createdOffline(a)){var f=a.clone();
f.fid=a.fid;
if(f.geometry){f.geometry.destroy();
f.geometry=null
}f.state=a.state;
this.createOrUpdate(f)
}else{this.db.execute("DELETE FROM "+this.tableName+" WHERE fid = ?",[a.fid])
}}var d=new OpenLayers.Protocol.Response({code:OpenLayers.Protocol.Response.SUCCESS,requestType:"delete",reqFeatures:c});
if(g&&g.callback){g.callback.call(g.scope,d)
}return d
},createdOffline:function(a){return(typeof a.fid=="string"&&!!(a.fid.match(this.fidRegExp)))
},commit:function(h,e){var g,k=[],m=0,a=0;
function c(i){if(++a<m){i.last=false
}this.callUserCallback(e,i)
}var d,b=[],f=[],j=[];
for(var l=h.length-1;
l>=0;
l--){d=h[l];
switch(d.state){case OpenLayers.State.INSERT:b.push(d);
break;
case OpenLayers.State.UPDATE:f.push(d);
break;
case OpenLayers.State.DELETE:j.push(d);
break
}}if(b.length>0){m++;
g=OpenLayers.Util.applyDefaults({callback:c,scope:this},e.create);
k.push(this.create(b,g))
}if(f.length>0){m++;
g=OpenLayers.Util.applyDefaults({callback:c,scope:this},e.update);
k.push(this.update(f,g))
}if(j.length>0){m++;
g=OpenLayers.Util.applyDefaults({callback:c,scope:this},e["delete"]);
k.push(this["delete"](j,g))
}return k
},clear:function(){this.db.execute("DELETE FROM "+this.tableName)
},callUserCallback:function(b,a){var c=b[a.requestType];
if(c&&c.callback){c.callback.call(c.scope,a)
}if(a.last&&b.callback){b.callback.call(b.scope)
}},CLASS_NAME:"OpenLayers.Protocol.SQL.Gears"});
OpenLayers.Rule=OpenLayers.Class({id:null,name:"default",title:null,description:null,context:null,filter:null,elseFilter:false,symbolizer:null,minScaleDenominator:null,maxScaleDenominator:null,initialize:function(a){this.symbolizer={};
OpenLayers.Util.extend(this,a);
this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")
},destroy:function(){for(var a in this.symbolizer){this.symbolizer[a]=null
}this.symbolizer=null
},evaluate:function(a){var d=this.getContext(a);
var c=true;
if(this.minScaleDenominator||this.maxScaleDenominator){var b=a.layer.map.getScale()
}if(this.minScaleDenominator){c=b>=OpenLayers.Style.createLiteral(this.minScaleDenominator,d)
}if(c&&this.maxScaleDenominator){c=b<OpenLayers.Style.createLiteral(this.maxScaleDenominator,d)
}if(c&&this.filter){if(this.filter.CLASS_NAME=="OpenLayers.Filter.FeatureId"){c=this.filter.evaluate(a)
}else{c=this.filter.evaluate(d)
}}return c
},getContext:function(b){var a=this.context;
if(!a){a=b.attributes||b.data
}if(typeof this.context=="function"){a=this.context(b)
}return a
},clone:function(){var a=OpenLayers.Util.extend({},this);
a.symbolizer={};
for(var b in this.symbolizer){value=this.symbolizer[b];
type=typeof value;
if(type==="object"){a.symbolizer[b]=OpenLayers.Util.extend({},value)
}else{if(type==="string"){a.symbolizer[b]=value
}}}a.filter=this.filter&&this.filter.clone();
a.context=this.context&&OpenLayers.Util.extend({},this.context);
return new OpenLayers.Rule(a)
},CLASS_NAME:"OpenLayers.Rule"});
OpenLayers.StyleMap=OpenLayers.Class({styles:null,extendDefault:true,initialize:function(a,b){this.styles={"default":new OpenLayers.Style(OpenLayers.Feature.Vector.style["default"]),select:new OpenLayers.Style(OpenLayers.Feature.Vector.style.select),temporary:new OpenLayers.Style(OpenLayers.Feature.Vector.style.temporary),"delete":new OpenLayers.Style(OpenLayers.Feature.Vector.style["delete"])};
if(a instanceof OpenLayers.Style){this.styles["default"]=a;
this.styles.select=a;
this.styles.temporary=a;
this.styles["delete"]=a
}else{if(typeof a=="object"){for(var c in a){if(a[c] instanceof OpenLayers.Style){this.styles[c]=a[c]
}else{if(typeof a[c]=="object"){this.styles[c]=new OpenLayers.Style(a[c])
}else{this.styles["default"]=new OpenLayers.Style(a);
this.styles.select=new OpenLayers.Style(a);
this.styles.temporary=new OpenLayers.Style(a);
this.styles["delete"]=new OpenLayers.Style(a);
break
}}}}}OpenLayers.Util.extend(this,b)
},destroy:function(){for(var a in this.styles){this.styles[a].destroy()
}this.styles=null
},createSymbolizer:function(c,a){if(!c){c=new OpenLayers.Feature.Vector()
}if(!this.styles[a]){a="default"
}c.renderIntent=a;
var b={};
if(this.extendDefault&&a!="default"){b=this.styles["default"].createSymbolizer(c)
}return OpenLayers.Util.extend(b,this.styles[a].createSymbolizer(c))
},addUniqueValueRules:function(f,b,d,e){var c=[];
for(var a in d){c.push(new OpenLayers.Rule({symbolizer:d[a],context:e,filter:new OpenLayers.Filter.Comparison({type:OpenLayers.Filter.Comparison.EQUAL_TO,property:b,value:a})}))
}this.styles[f].addRules(c)
},CLASS_NAME:"OpenLayers.StyleMap"});
OpenLayers.Control.NavToolbar=OpenLayers.Class(OpenLayers.Control.Panel,{initialize:function(a){OpenLayers.Control.Panel.prototype.initialize.apply(this,[a]);
this.addControls([new OpenLayers.Control.Navigation(),new OpenLayers.Control.ZoomBox()])
},draw:function(){var a=OpenLayers.Control.Panel.prototype.draw.apply(this,arguments);
this.activateControl(this.controls[0]);
return a
},CLASS_NAME:"OpenLayers.Control.NavToolbar"});
OpenLayers.Filter.Comparison=OpenLayers.Class(OpenLayers.Filter,{type:null,property:null,value:null,matchCase:true,lowerBoundary:null,upperBoundary:null,initialize:function(a){OpenLayers.Filter.prototype.initialize.apply(this,[a])
},evaluate:function(a){var d=false;
switch(this.type){case OpenLayers.Filter.Comparison.EQUAL_TO:var e=a[this.property];
var c=this.value;
if(!this.matchCase&&typeof e=="string"&&typeof c=="string"){d=(e.toUpperCase()==c.toUpperCase())
}else{d=(e==c)
}break;
case OpenLayers.Filter.Comparison.NOT_EQUAL_TO:var e=a[this.property];
var c=this.value;
if(!this.matchCase&&typeof e=="string"&&typeof c=="string"){d=(e.toUpperCase()!=c.toUpperCase())
}else{d=(e!=c)
}break;
case OpenLayers.Filter.Comparison.LESS_THAN:d=a[this.property]<this.value;
break;
case OpenLayers.Filter.Comparison.GREATER_THAN:d=a[this.property]>this.value;
break;
case OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO:d=a[this.property]<=this.value;
break;
case OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO:d=a[this.property]>=this.value;
break;
case OpenLayers.Filter.Comparison.BETWEEN:d=(a[this.property]>=this.lowerBoundary)&&(a[this.property]<=this.upperBoundary);
break;
case OpenLayers.Filter.Comparison.LIKE:var b=new RegExp(this.value,"gi");
d=b.test(a[this.property]);
break
}return d
},value2regex:function(b,d,c){if(b=="."){var a="'.' is an unsupported wildCard character for OpenLayers.Filter.Comparison";
OpenLayers.Console.error(a);
return null
}b=b?b:"*";
d=d?d:".";
c=c?c:"!";
this.value=this.value.replace(new RegExp("\\"+c+"(.|$)","g"),"\\$1");
this.value=this.value.replace(new RegExp("\\"+d,"g"),".");
this.value=this.value.replace(new RegExp("\\"+b,"g"),".*");
this.value=this.value.replace(new RegExp("\\\\.\\*","g"),"\\"+b);
this.value=this.value.replace(new RegExp("\\\\\\.","g"),"\\"+d);
return this.value
},regex2value:function(){var a=this.value;
a=a.replace(/!/g,"!!");
a=a.replace(/(\\)?\\\./g,function(c,b){return b?c:"!."
});
a=a.replace(/(\\)?\\\*/g,function(c,b){return b?c:"!*"
});
a=a.replace(/\\\\/g,"\\");
a=a.replace(/\.\*/g,"*");
return a
},clone:function(){return OpenLayers.Util.extend(new OpenLayers.Filter.Comparison(),this)
},CLASS_NAME:"OpenLayers.Filter.Comparison"});
OpenLayers.Filter.Comparison.EQUAL_TO="==";
OpenLayers.Filter.Comparison.NOT_EQUAL_TO="!=";
OpenLayers.Filter.Comparison.LESS_THAN="<";
OpenLayers.Filter.Comparison.GREATER_THAN=">";
OpenLayers.Filter.Comparison.LESS_THAN_OR_EQUAL_TO="<=";
OpenLayers.Filter.Comparison.GREATER_THAN_OR_EQUAL_TO=">=";
OpenLayers.Filter.Comparison.BETWEEN="..";
OpenLayers.Filter.Comparison.LIKE="~";
OpenLayers.Filter.FeatureId=OpenLayers.Class(OpenLayers.Filter,{fids:null,initialize:function(a){this.fids=[];
OpenLayers.Filter.prototype.initialize.apply(this,[a])
},evaluate:function(a){for(var d=0,c=this.fids.length;
d<c;
d++){var b=a.fid||a.id;
if(b==this.fids[d]){return true
}}return false
},clone:function(){var a=new OpenLayers.Filter.FeatureId();
OpenLayers.Util.extend(a,this);
a.fids=this.fids.slice();
return a
},CLASS_NAME:"OpenLayers.Filter.FeatureId"});
OpenLayers.Filter.Logical=OpenLayers.Class(OpenLayers.Filter,{filters:null,type:null,initialize:function(a){this.filters=[];
OpenLayers.Filter.prototype.initialize.apply(this,[a])
},destroy:function(){this.filters=null;
OpenLayers.Filter.prototype.destroy.apply(this)
},evaluate:function(a){switch(this.type){case OpenLayers.Filter.Logical.AND:for(var c=0,b=this.filters.length;
c<b;
c++){if(this.filters[c].evaluate(a)==false){return false
}}return true;
case OpenLayers.Filter.Logical.OR:for(var c=0,b=this.filters.length;
c<b;
c++){if(this.filters[c].evaluate(a)==true){return true
}}return false;
case OpenLayers.Filter.Logical.NOT:return(!this.filters[0].evaluate(a))
}},clone:function(){var a=[];
for(var c=0,b=this.filters.length;
c<b;
++c){a.push(this.filters[c].clone())
}return new OpenLayers.Filter.Logical({type:this.type,filters:a})
},CLASS_NAME:"OpenLayers.Filter.Logical"});
OpenLayers.Filter.Logical.AND="&&";
OpenLayers.Filter.Logical.OR="||";
OpenLayers.Filter.Logical.NOT="!";
OpenLayers.Filter.Spatial=OpenLayers.Class(OpenLayers.Filter,{type:null,property:null,value:null,distance:null,distanceUnits:null,initialize:function(a){OpenLayers.Filter.prototype.initialize.apply(this,[a])
},evaluate:function(a){var b=false;
switch(this.type){case OpenLayers.Filter.Spatial.BBOX:case OpenLayers.Filter.Spatial.INTERSECTS:if(a.geometry){var c=this.value;
if(this.value.CLASS_NAME=="OpenLayers.Bounds"){c=this.value.toGeometry()
}if(a.geometry.intersects(c)){b=true
}}break;
default:OpenLayers.Console.error(OpenLayers.i18n("filterEvaluateNotImplemented"));
break
}return b
},clone:function(){var a=OpenLayers.Util.applyDefaults({value:this.value&&this.value.clone&&this.value.clone()},this);
return new OpenLayers.Filter.Spatial(a)
},CLASS_NAME:"OpenLayers.Filter.Spatial"});
OpenLayers.Filter.Spatial.BBOX="BBOX";
OpenLayers.Filter.Spatial.INTERSECTS="INTERSECTS";
OpenLayers.Filter.Spatial.DWITHIN="DWITHIN";
OpenLayers.Filter.Spatial.WITHIN="WITHIN";
OpenLayers.Filter.Spatial.CONTAINS="CONTAINS";
OpenLayers.Geometry.Collection=OpenLayers.Class(OpenLayers.Geometry,{components:null,componentTypes:null,initialize:function(a){OpenLayers.Geometry.prototype.initialize.apply(this,arguments);
this.components=[];
if(a!=null){this.addComponents(a)
}},destroy:function(){this.components.length=0;
this.components=null
},clone:function(){var geometry=eval("new "+this.CLASS_NAME+"()");
for(var i=0,len=this.components.length;
i<len;
i++){geometry.addComponent(this.components[i].clone())
}OpenLayers.Util.applyDefaults(geometry,this);
return geometry
},getComponentsString:function(){var c=[];
for(var a=0,b=this.components.length;
a<b;
a++){c.push(this.components[a].toShortString())
}return c.join(",")
},calculateBounds:function(){this.bounds=null;
if(this.components&&this.components.length>0){this.setBounds(this.components[0].getBounds());
for(var b=1,a=this.components.length;
b<a;
b++){this.extendBounds(this.components[b].getBounds())
}}},addComponents:function(a){if(!(a instanceof Array)){a=[a]
}for(var c=0,b=a.length;
c<b;
c++){this.addComponent(a[c])
}},addComponent:function(e,d){var b=false;
if(e){if(this.componentTypes==null||(OpenLayers.Util.indexOf(this.componentTypes,e.CLASS_NAME)>-1)){if(d!=null&&(d<this.components.length)){var c=this.components.slice(0,d);
var a=this.components.slice(d,this.components.length);
c.push(e);
this.components=c.concat(a)
}else{this.components.push(e)
}e.parent=this;
this.clearBounds();
b=true
}}return b
},removeComponents:function(b){if(!(b instanceof Array)){b=[b]
}for(var a=b.length-1;
a>=0;
--a){this.removeComponent(b[a])
}},removeComponent:function(a){OpenLayers.Util.removeItem(this.components,a);
this.clearBounds()
},getLength:function(){var a=0;
for(var c=0,b=this.components.length;
c<b;
c++){a+=this.components[c].getLength()
}return a
},getArea:function(){var a=0;
for(var c=0,b=this.components.length;
c<b;
c++){a+=this.components[c].getArea()
}return a
},getGeodesicArea:function(d){var b=0;
for(var a=0,c=this.components.length;
a<c;
a++){b+=this.components[a].getGeodesicArea(d)
}return b
},getCentroid:function(){return this.components.length&&this.components[0].getCentroid()
},getGeodesicLength:function(d){var b=0;
for(var a=0,c=this.components.length;
a<c;
a++){b+=this.components[a].getGeodesicLength(d)
}return b
},move:function(d,b){for(var a=0,c=this.components.length;
a<c;
a++){this.components[a].move(d,b)
}},rotate:function(b,d){for(var a=0,c=this.components.length;
a<c;
++a){this.components[a].rotate(b,d)
}},resize:function(b,c,a){for(var d=0;
d<this.components.length;
++d){this.components[d].resize(b,c,a)
}return this
},distanceTo:function(e,f){var k=!(f&&f.edge===false);
var h=k&&f&&f.details;
var g,a,j;
var b=Number.POSITIVE_INFINITY;
for(var c=0,d=this.components.length;
c<d;
++c){g=this.components[c].distanceTo(e,f);
j=h?g.distance:g;
if(j<b){b=j;
a=g;
if(b==0){break
}}}return a
},equals:function(b){var d=true;
if(!b||!b.CLASS_NAME||(this.CLASS_NAME!=b.CLASS_NAME)){d=false
}else{if(!(b.components instanceof Array)||(b.components.length!=this.components.length)){d=false
}else{for(var a=0,c=this.components.length;
a<c;
++a){if(!this.components[a].equals(b.components[a])){d=false;
break
}}}}return d
},transform:function(c,a){if(c&&a){for(var b=0,d=this.components.length;
b<d;
b++){var e=this.components[b];
e.transform(c,a)
}this.bounds=null
}return this
},intersects:function(b){var d=false;
for(var a=0,c=this.components.length;
a<c;
++a){d=b.intersects(this.components[a]);
if(d){break
}}return d
},getVertices:function(d){var a=[];
for(var b=0,c=this.components.length;
b<c;
++b){Array.prototype.push.apply(a,this.components[b].getVertices(d))
}return a
},CLASS_NAME:"OpenLayers.Geometry.Collection"});
OpenLayers.Geometry.Point=OpenLayers.Class(OpenLayers.Geometry,{x:null,y:null,initialize:function(a,b){OpenLayers.Geometry.prototype.initialize.apply(this,arguments);
this.x=parseFloat(a);
this.y=parseFloat(b)
},clone:function(a){if(a==null){a=new OpenLayers.Geometry.Point(this.x,this.y)
}OpenLayers.Util.applyDefaults(a,this);
return a
},calculateBounds:function(){this.bounds=new OpenLayers.Bounds(this.x,this.y,this.x,this.y)
},distanceTo:function(c,g){var a=!(g&&g.edge===false);
var h=a&&g&&g.details;
var i,b,e,j,d,f;
if(c instanceof OpenLayers.Geometry.Point){b=this.x;
e=this.y;
j=c.x;
d=c.y;
i=Math.sqrt(Math.pow(b-j,2)+Math.pow(e-d,2));
f=!h?i:{x0:b,y0:e,x1:j,y1:d,distance:i}
}else{f=c.distanceTo(this,g);
if(h){f={x0:f.x1,y0:f.y1,x1:f.x0,y1:f.y0,distance:f.distance}
}}return f
},equals:function(a){var b=false;
if(a!=null){b=((this.x==a.x&&this.y==a.y)||(isNaN(this.x)&&isNaN(this.y)&&isNaN(a.x)&&isNaN(a.y)))
}return b
},toShortString:function(){return(this.x+", "+this.y)
},move:function(a,b){this.x=this.x+a;
this.y=this.y+b;
this.clearBounds()
},rotate:function(b,d){b*=Math.PI/180;
var c=this.distanceTo(d);
var a=b+Math.atan2(this.y-d.y,this.x-d.x);
this.x=d.x+(c*Math.cos(a));
this.y=d.y+(c*Math.sin(a));
this.clearBounds()
},getCentroid:function(){return new OpenLayers.Geometry.Point(this.x,this.y)
},resize:function(a,b,c){c=(c==undefined)?1:c;
this.x=b.x+(a*c*(this.x-b.x));
this.y=b.y+(a*(this.y-b.y));
this.clearBounds();
return this
},intersects:function(b){var a=false;
if(b.CLASS_NAME=="OpenLayers.Geometry.Point"){a=this.equals(b)
}else{a=b.intersects(this)
}return a
},transform:function(b,a){if((b&&a)){OpenLayers.Projection.transform(this,b,a);
this.bounds=null
}return this
},getVertices:function(a){return[this]
},CLASS_NAME:"OpenLayers.Geometry.Point"});
OpenLayers.Geometry.Rectangle=OpenLayers.Class(OpenLayers.Geometry,{x:null,y:null,width:null,height:null,initialize:function(d,b,a,c){OpenLayers.Geometry.prototype.initialize.apply(this,arguments);
this.x=d;
this.y=b;
this.width=a;
this.height=c
},calculateBounds:function(){this.bounds=new OpenLayers.Bounds(this.x,this.y,this.x+this.width,this.y+this.height)
},getLength:function(){var a=(2*this.width)+(2*this.height);
return a
},getArea:function(){var a=this.width*this.height;
return a
},CLASS_NAME:"OpenLayers.Geometry.Rectangle"});
OpenLayers.Geometry.Surface=OpenLayers.Class(OpenLayers.Geometry,{initialize:function(){OpenLayers.Geometry.prototype.initialize.apply(this,arguments)
},CLASS_NAME:"OpenLayers.Geometry.Surface"});
OpenLayers.Layer.KaMapCache=OpenLayers.Class(OpenLayers.Layer.KaMap,{IMAGE_EXTENSIONS:{jpeg:"jpg",gif:"gif",png:"png",png8:"png",png24:"png",dithered:"png"},DEFAULT_FORMAT:"jpeg",initialize:function(a,d,b,c){OpenLayers.Layer.KaMap.prototype.initialize.apply(this,arguments);
this.extension=this.IMAGE
