1var OpenLayers={VERSION_NUMBER:"Release 2.14 dev",singleFile:true,_getScriptLocation:function(){var r=new RegExp("(^|(.*?\\/))(OpenLayers[^\\/]*?\\.js)(\\?|$)"),s=document.getElementsByTagName("script"),src,m,l="";for(var i=0,len=s.length;i<len;i++){src=s[i].getAttribute("src");if(src){m=src.match(r);if(m){l=m[1];break}}}return function(){return l}}(),ImgPath:""};
2OpenLayers.String={startsWith:function(str,sub){return str.indexOf(sub)==0},contains:function(str,sub){return str.indexOf(sub)!=-1},trim:function(str){return str.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},camelize:function(str){var oStringList=str.split("-");var camelizedString=oStringList[0];for(var i=1,len=oStringList.length;i<len;i++){var s=oStringList[i];camelizedString+=s.charAt(0).toUpperCase()+s.substring(1)}return camelizedString},format:function(template,context,args){if(!context)context=
3window;var replacer=function(str,match){var replacement;var subs=match.split(/\.+/);for(var i=0;i<subs.length;i++){if(i==0)replacement=context;if(replacement===undefined)break;replacement=replacement[subs[i]]}if(typeof replacement=="function")replacement=args?replacement.apply(null,args):replacement();if(typeof replacement=="undefined")return"undefined";else return replacement};return template.replace(OpenLayers.String.tokenRegEx,replacer)},tokenRegEx:/\$\{([\w.]+?)\}/g,numberRegEx:/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/,
4isNumeric:function(value){return OpenLayers.String.numberRegEx.test(value)},numericIf:function(value,trimWhitespace){var originalValue=value;if(trimWhitespace===true&&value!=null&&value.replace)value=value.replace(/^\s*|\s*$/g,"");return OpenLayers.String.isNumeric(value)?parseFloat(value):originalValue}};
5OpenLayers.Number={decimalSeparator:".",thousandsSeparator:",",limitSigDigs:function(num,sig){var fig=0;if(sig>0)fig=parseFloat(num.toPrecision(sig));return fig},format:function(num,dec,tsep,dsep){dec=typeof dec!="undefined"?dec:0;tsep=typeof tsep!="undefined"?tsep:OpenLayers.Number.thousandsSeparator;dsep=typeof dsep!="undefined"?dsep:OpenLayers.Number.decimalSeparator;if(dec!=null)num=parseFloat(num.toFixed(dec));var parts=num.toString().split(".");if(parts.length==1&&dec==null)dec=0;var integer=
6parts[0];if(tsep){var thousands=/(-?[0-9]+)([0-9]{3})/;while(thousands.test(integer))integer=integer.replace(thousands,"$1"+tsep+"$2")}var str;if(dec==0)str=integer;else{var rem=parts.length>1?parts[1]:"0";if(dec!=null)rem=rem+(new Array(dec-rem.length+1)).join("0");str=integer+dsep+rem}return str},zeroPad:function(num,len,radix){var str=num.toString(radix||10);while(str.length<len)str="0"+str;return str}};
7OpenLayers.Function={bind:function(func,object){var args=Array.prototype.slice.call(arguments,2);return function(){var newArgs=args.concat(Array.prototype.slice.call(arguments,0));return func.apply(object,newArgs)}},bindAsEventListener:function(func,object){return function(event){return func.call(object,event||window.event)}},False:function(){return false},True:function(){return true},Void:function(){}};
8OpenLayers.Array={filter:function(array,callback,caller){var selected=[];if(Array.prototype.filter)selected=array.filter(callback,caller);else{var len=array.length;if(typeof callback!="function")throw new TypeError;for(var i=0;i<len;i++)if(i in array){var val=array[i];if(callback.call(caller,val,i,array))selected.push(val)}}return selected}};
9OpenLayers.Class=function(){var len=arguments.length;var P=arguments[0];var F=arguments[len-1];var C=typeof F.initialize=="function"?F.initialize:function(){P.prototype.initialize.apply(this,arguments)};if(len>1){var newArgs=[C,P].concat(Array.prototype.slice.call(arguments).slice(1,len-1),F);OpenLayers.inherit.apply(null,newArgs)}else C.prototype=F;return C};
10OpenLayers.inherit=function(C,P){var F=function(){};F.prototype=P.prototype;C.prototype=new F;var i,l,o;for(i=2,l=arguments.length;i<l;i++){o=arguments[i];if(typeof o==="function")o=o.prototype;OpenLayers.Util.extend(C.prototype,o)}};OpenLayers.Util=OpenLayers.Util||{};
11OpenLayers.Util.extend=function(destination,source){destination=destination||{};if(source){for(var property in source){var value=source[property];if(value!==undefined)destination[property]=value}var sourceIsEvt=typeof window.Event=="function"&&source instanceof window.Event;if(!sourceIsEvt&&source.hasOwnProperty&&source.hasOwnProperty("toString"))destination.toString=source.toString}return destination};OpenLayers.Util=OpenLayers.Util||{};
12OpenLayers.Util.getElement=function(){var elements=[];for(var i=0,len=arguments.length;i<len;i++){var element=arguments[i];if(typeof element=="string")element=document.getElementById(element);if(arguments.length==1)return element;elements.push(element)}return elements};OpenLayers.Util.isElement=function(o){return!!(o&&o.nodeType===1)};OpenLayers.Util.isArray=function(a){return Object.prototype.toString.call(a)==="[object Array]"};
13OpenLayers.Util.removeItem=function(array,item){for(var i=array.length-1;i>=0;i--)if(array[i]==item)array.splice(i,1);return array};OpenLayers.Util.indexOf=function(array,obj){if(typeof array.indexOf=="function")return array.indexOf(obj);else{for(var i=0,len=array.length;i<len;i++)if(array[i]==obj)return i;return-1}};OpenLayers.Util.dotless=/\./g;
14OpenLayers.Util.modifyDOMElement=function(element,id,px,sz,position,border,overflow,opacity){if(id)element.id=id.replace(OpenLayers.Util.dotless,"_");if(px){element.style.left=px.x+"px";element.style.top=px.y+"px"}if(sz){element.style.width=sz.w+"px";element.style.height=sz.h+"px"}if(position)element.style.position=position;if(border)element.style.border=border;if(overflow)element.style.overflow=overflow;if(parseFloat(opacity)>=0&&parseFloat(opacity)<1){element.style.filter="alpha(opacity\x3d"+opacity*
15100+")";element.style.opacity=opacity}else if(parseFloat(opacity)==1){element.style.filter="";element.style.opacity=""}};OpenLayers.Util.createDiv=function(id,px,sz,imgURL,position,border,overflow,opacity){var dom=document.createElement("div");if(imgURL)dom.style.backgroundImage="url("+imgURL+")";if(!id)id=OpenLayers.Util.createUniqueID("OpenLayersDiv");if(!position)position="absolute";OpenLayers.Util.modifyDOMElement(dom,id,px,sz,position,border,overflow,opacity);return dom};
16OpenLayers.Util.createImage=function(id,px,sz,imgURL,position,border,opacity,delayDisplay){var image=document.createElement("img");if(!id)id=OpenLayers.Util.createUniqueID("OpenLayersDiv");if(!position)position="relative";OpenLayers.Util.modifyDOMElement(image,id,px,sz,position,border,null,opacity);if(delayDisplay){image.style.display="none";function display(){image.style.display="";OpenLayers.Event.stopObservingElement(image)}OpenLayers.Event.observe(image,"load",display);OpenLayers.Event.observe(image,
17"error",display)}image.style.alt=id;image.galleryImg="no";if(imgURL)image.src=imgURL;return image};OpenLayers.IMAGE_RELOAD_ATTEMPTS=0;OpenLayers.Util.alphaHackNeeded=null;OpenLayers.Util.alphaHack=function(){if(OpenLayers.Util.alphaHackNeeded==null){var arVersion=navigator.appVersion.split("MSIE");var version=parseFloat(arVersion[1]);var filter=false;try{filter=!!document.body.filters}catch(e){}OpenLayers.Util.alphaHackNeeded=filter&&version>=5.5&&version<7}return OpenLayers.Util.alphaHackNeeded};
18OpenLayers.Util.modifyAlphaImageDiv=function(div,id,px,sz,imgURL,position,border,sizing,opacity){OpenLayers.Util.modifyDOMElement(div,id,px,sz,position,null,null,opacity);var img=div.childNodes[0];if(imgURL)img.src=imgURL;OpenLayers.Util.modifyDOMElement(img,div.id+"_innerImage",null,sz,"relative",border);if(OpenLayers.Util.alphaHack()){if(div.style.display!="none")div.style.display="inline-block";if(sizing==null)sizing="scale";div.style.filter="progid:DXImageTransform.Microsoft"+".AlphaImageLoader(src\x3d'"+
19img.src+"', "+"sizingMethod\x3d'"+sizing+"')";if(parseFloat(div.style.opacity)>=0&&parseFloat(div.style.opacity)<1)div.style.filter+=" alpha(opacity\x3d"+div.style.opacity*100+")";img.style.filter="alpha(opacity\x3d0)"}};
20OpenLayers.Util.createAlphaImageDiv=function(id,px,sz,imgURL,position,border,sizing,opacity,delayDisplay){var div=OpenLayers.Util.createDiv();var img=OpenLayers.Util.createImage(null,null,null,null,null,null,null,delayDisplay);img.className="olAlphaImg";div.appendChild(img);OpenLayers.Util.modifyAlphaImageDiv(div,id,px,sz,imgURL,position,border,sizing,opacity);return div};OpenLayers.Util.upperCaseObject=function(object){var uObject={};for(var key in object)uObject[key.toUpperCase()]=object[key];return uObject};
21OpenLayers.Util.applyDefaults=function(to,from){to=to||{};var fromIsEvt=typeof window.Event=="function"&&from instanceof window.Event;for(var key in from)if(to[key]===undefined||!fromIsEvt&&from.hasOwnProperty&&from.hasOwnProperty(key)&&!to.hasOwnProperty(key))to[key]=from[key];if(!fromIsEvt&&from&&from.hasOwnProperty&&from.hasOwnProperty("toString")&&!to.hasOwnProperty("toString"))to.toString=from.toString;return to};
22OpenLayers.Util.getParameterString=function(params){var paramsArray=[];for(var key in params){var value=params[key];if(value!=null&&typeof value!="function"){var encodedValue;if(typeof value=="object"&&value.constructor==Array){var encodedItemArray=[];var item;for(var itemIndex=0,len=value.length;itemIndex<len;itemIndex++){item=value[itemIndex];encodedItemArray.push(encodeURIComponent(item===null||item===undefined?"":item))}encodedValue=encodedItemArray.join(",")}else encodedValue=encodeURIComponent(value);
23paramsArray.push(encodeURIComponent(key)+"\x3d"+encodedValue)}}return paramsArray.join("\x26")};OpenLayers.Util.urlAppend=function(url,paramStr){var newUrl=url;if(paramStr){var parts=(url+" ").split(/[?&]/);newUrl+=parts.pop()===" "?paramStr:parts.length?"\x26"+paramStr:"?"+paramStr}return newUrl};OpenLayers.Util.getImagesLocation=function(){return OpenLayers.ImgPath||OpenLayers._getScriptLocation()+"img/"};
24OpenLayers.Util.getImageLocation=function(image){return OpenLayers.Util.getImagesLocation()+image};OpenLayers.Util.Try=function(){var returnValue=null;for(var i=0,len=arguments.length;i<len;i++){var lambda=arguments[i];try{returnValue=lambda();break}catch(e){}}return returnValue};OpenLayers.Util.getXmlNodeValue=function(node){var val=null;OpenLayers.Util.Try(function(){val=node.text;if(!val)val=node.textContent;if(!val)val=node.firstChild.nodeValue},function(){val=node.textContent});return val};
25OpenLayers.Util.mouseLeft=function(evt,div){var target=evt.relatedTarget?evt.relatedTarget:evt.toElement;while(target!=div&&target!=null)target=target.parentNode;return target!=div};OpenLayers.Util.DEFAULT_PRECISION=14;OpenLayers.Util.toFloat=function(number,precision){if(precision==null)precision=OpenLayers.Util.DEFAULT_PRECISION;if(typeof number!=="number")number=parseFloat(number);return precision===0?number:parseFloat(number.toPrecision(precision))};
26OpenLayers.Util.rad=function(x){return x*Math.PI/180};OpenLayers.Util.deg=function(x){return x*180/Math.PI};OpenLayers.Util.VincentyConstants={a:6378137,b:6356752.3142,f:1/298.257223563};
27OpenLayers.Util.distVincenty=function(p1,p2){var ct=OpenLayers.Util.VincentyConstants;var a=ct.a,b=ct.b,f=ct.f;var L=OpenLayers.Util.rad(p2.lon-p1.lon);var U1=Math.atan((1-f)*Math.tan(OpenLayers.Util.rad(p1.lat)));var U2=Math.atan((1-f)*Math.tan(OpenLayers.Util.rad(p2.lat)));var sinU1=Math.sin(U1),cosU1=Math.cos(U1);var sinU2=Math.sin(U2),cosU2=Math.cos(U2);var lambda=L,lambdaP=2*Math.PI;var iterLimit=20;while(Math.abs(lambda-lambdaP)>1E-12&&--iterLimit>0){var sinLambda=Math.sin(lambda),cosLambda=
28Math.cos(lambda);var sinSigma=Math.sqrt(cosU2*sinLambda*(cosU2*sinLambda)+(cosU1*sinU2-sinU1*cosU2*cosLambda)*(cosU1*sinU2-sinU1*cosU2*cosLambda));if(sinSigma==0)return 0;var cosSigma=sinU1*sinU2+cosU1*cosU2*cosLambda;var sigma=Math.atan2(sinSigma,cosSigma);var alpha=Math.asin(cosU1*cosU2*sinLambda/sinSigma);var cosSqAlpha=Math.cos(alpha)*Math.cos(alpha);var cos2SigmaM=cosSigma-2*sinU1*sinU2/cosSqAlpha;var C=f/16*cosSqAlpha*(4+f*(4-3*cosSqAlpha));lambdaP=lambda;lambda=L+(1-C)*f*Math.sin(alpha)*(sigma+
29C*sinSigma*(cos2SigmaM+C*cosSigma*(-1+2*cos2SigmaM*cos2SigmaM)))}if(iterLimit==0)return NaN;var uSq=cosSqAlpha*(a*a-b*b)/(b*b);var A=1+uSq/16384*(4096+uSq*(-768+uSq*(320-175*uSq)));var B=uSq/1024*(256+uSq*(-128+uSq*(74-47*uSq)));var deltaSigma=B*sinSigma*(cos2SigmaM+B/4*(cosSigma*(-1+2*cos2SigmaM*cos2SigmaM)-B/6*cos2SigmaM*(-3+4*sinSigma*sinSigma)*(-3+4*cos2SigmaM*cos2SigmaM)));var s=b*A*(sigma-deltaSigma);var d=s.toFixed(3)/1E3;return d};
30OpenLayers.Util.destinationVincenty=function(lonlat,brng,dist){var u=OpenLayers.Util;var ct=u.VincentyConstants;var a=ct.a,b=ct.b,f=ct.f;var lon1=lonlat.lon;var lat1=lonlat.lat;var s=dist;var alpha1=u.rad(brng);var sinAlpha1=Math.sin(alpha1);var cosAlpha1=Math.cos(alpha1);var tanU1=(1-f)*Math.tan(u.rad(lat1));var cosU1=1/Math.sqrt(1+tanU1*tanU1),sinU1=tanU1*cosU1;var sigma1=Math.atan2(tanU1,cosAlpha1);var sinAlpha=cosU1*sinAlpha1;var cosSqAlpha=1-sinAlpha*sinAlpha;var uSq=cosSqAlpha*(a*a-b*b)/(b*
31b);var A=1+uSq/16384*(4096+uSq*(-768+uSq*(320-175*uSq)));var B=uSq/1024*(256+uSq*(-128+uSq*(74-47*uSq)));var sigma=s/(b*A),sigmaP=2*Math.PI;while(Math.abs(sigma-sigmaP)>1E-12){var cos2SigmaM=Math.cos(2*sigma1+sigma);var sinSigma=Math.sin(sigma);var cosSigma=Math.cos(sigma);var deltaSigma=B*sinSigma*(cos2SigmaM+B/4*(cosSigma*(-1+2*cos2SigmaM*cos2SigmaM)-B/6*cos2SigmaM*(-3+4*sinSigma*sinSigma)*(-3+4*cos2SigmaM*cos2SigmaM)));sigmaP=sigma;sigma=s/(b*A)+deltaSigma}var tmp=sinU1*sinSigma-cosU1*cosSigma*
32cosAlpha1;var lat2=Math.atan2(sinU1*cosSigma+cosU1*sinSigma*cosAlpha1,(1-f)*Math.sqrt(sinAlpha*sinAlpha+tmp*tmp));var lambda=Math.atan2(sinSigma*sinAlpha1,cosU1*cosSigma-sinU1*sinSigma*cosAlpha1);var C=f/16*cosSqAlpha*(4+f*(4-3*cosSqAlpha));var L=lambda-(1-C)*f*sinAlpha*(sigma+C*sinSigma*(cos2SigmaM+C*cosSigma*(-1+2*cos2SigmaM*cos2SigmaM)));var revAz=Math.atan2(sinAlpha,-tmp);return new OpenLayers.LonLat(lon1+u.deg(L),u.deg(lat2))};
33OpenLayers.Util.getParameters=function(url,options){options=options||{};url=url===null||url===undefined?window.location.href:url;var paramsString="";if(OpenLayers.String.contains(url,"?")){var start=url.indexOf("?")+1;var end=OpenLayers.String.contains(url,"#")?url.indexOf("#"):url.length;paramsString=url.substring(start,end)}var parameters={};var pairs=paramsString.split(/[&;]/);for(var i=0,len=pairs.length;i<len;++i){var keyValue=pairs[i].split("\x3d");if(keyValue[0]){var key=keyValue[0];try{key=
34decodeURIComponent(key)}catch(err){key=unescape(key)}var value=(keyValue[1]||"").replace(/\+/g," ");try{value=decodeURIComponent(value)}catch(err){value=unescape(value)}if(options.splitArgs!==false)value=value.split(",");if(value.length==1)value=value[0];parameters[key]=value}}return parameters};OpenLayers.Util.lastSeqID=0;
35OpenLayers.Util.createUniqueID=function(prefix){if(prefix==null)prefix="id_";else prefix=prefix.replace(OpenLayers.Util.dotless,"_");OpenLayers.Util.lastSeqID+=1;return prefix+OpenLayers.Util.lastSeqID};OpenLayers.INCHES_PER_UNIT={"inches":1,"ft":12,"mi":63360,"m":39.37,"km":39370,"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;
36OpenLayers.METERS_PER_INCH=.0254000508001016;
37OpenLayers.Util.extend(OpenLayers.INCHES_PER_UNIT,{"Inch":OpenLayers.INCHES_PER_UNIT.inches,"Meter":1/OpenLayers.METERS_PER_INCH,"Foot":.3048006096012192/OpenLayers.METERS_PER_INCH,"IFoot":.3048/OpenLayers.METERS_PER_INCH,"ClarkeFoot":.3047972651151/OpenLayers.METERS_PER_INCH,"SearsFoot":.30479947153867626/OpenLayers.METERS_PER_INCH,"GoldCoastFoot":.3047997101815088/OpenLayers.METERS_PER_INCH,"IInch":.0254/OpenLayers.METERS_PER_INCH,"MicroInch":2.54E-5/OpenLayers.METERS_PER_INCH,"Mil":2.54E-8/OpenLayers.METERS_PER_INCH,
38"Centimeter":.01/OpenLayers.METERS_PER_INCH,"Kilometer":1E3/OpenLayers.METERS_PER_INCH,"Yard":.9144018288036576/OpenLayers.METERS_PER_INCH,"SearsYard":.914398414616029/OpenLayers.METERS_PER_INCH,"IndianYard":.9143985307444408/OpenLayers.METERS_PER_INCH,"IndianYd37":.91439523/OpenLayers.METERS_PER_INCH,"IndianYd62":.9143988/OpenLayers.METERS_PER_INCH,"IndianYd75":.9143985/OpenLayers.METERS_PER_INCH,"IndianFoot":.30479951/OpenLayers.METERS_PER_INCH,"IndianFt37":.30479841/OpenLayers.METERS_PER_INCH,
39"IndianFt62":.3047996/OpenLayers.METERS_PER_INCH,"IndianFt75":.3047995/OpenLayers.METERS_PER_INCH,"Mile":1609.3472186944373/OpenLayers.METERS_PER_INCH,"IYard":.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":.1/OpenLayers.METERS_PER_INCH,"Millimeter":.001/OpenLayers.METERS_PER_INCH,"Dekameter":10/OpenLayers.METERS_PER_INCH,
40"Decameter":10/OpenLayers.METERS_PER_INCH,"Hectometer":100/OpenLayers.METERS_PER_INCH,"GermanMeter":1.0000135965/OpenLayers.METERS_PER_INCH,"CaGrid":.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":.201166194976/OpenLayers.METERS_PER_INCH,"GunterLink":.2011684023368047/OpenLayers.METERS_PER_INCH,
41"BenoitLink":.20116782494375873/OpenLayers.METERS_PER_INCH,"SearsLink":.2011676512155/OpenLayers.METERS_PER_INCH,"Rod":5.02921005842012/OpenLayers.METERS_PER_INCH,"IntnlChain":20.1168/OpenLayers.METERS_PER_INCH,"IntnlLink":.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":.3047972615/OpenLayers.METERS_PER_INCH,
42"Brealey":375/OpenLayers.METERS_PER_INCH,"ModAmFt":.304812252984506/OpenLayers.METERS_PER_INCH,"Fathom":1.8288/OpenLayers.METERS_PER_INCH,"NautM-UK":1853.184/OpenLayers.METERS_PER_INCH,"50kilometers":5E4/OpenLayers.METERS_PER_INCH,"150kilometers":15E4/OpenLayers.METERS_PER_INCH});
43OpenLayers.Util.extend(OpenLayers.INCHES_PER_UNIT,{"mm":OpenLayers.INCHES_PER_UNIT["Meter"]/1E3,"cm":OpenLayers.INCHES_PER_UNIT["Meter"]/100,"dm":OpenLayers.INCHES_PER_UNIT["Meter"]*100,"km":OpenLayers.INCHES_PER_UNIT["Meter"]*1E3,"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"],
44"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(scale){var normScale=scale>1?1/scale:scale;return normScale};
45OpenLayers.Util.getResolutionFromScale=function(scale,units){var resolution;if(scale){if(units==null)units="degrees";var normScale=OpenLayers.Util.normalizeScale(scale);resolution=1/(normScale*OpenLayers.INCHES_PER_UNIT[units]*OpenLayers.DOTS_PER_INCH)}return resolution};OpenLayers.Util.getScaleFromResolution=function(resolution,units){if(units==null)units="degrees";var scale=resolution*OpenLayers.INCHES_PER_UNIT[units]*OpenLayers.DOTS_PER_INCH;return scale};
46OpenLayers.Util.pagePosition=function(forElement){var pos=[0,0];var viewportElement=OpenLayers.Util.getViewportElement();if(!forElement||forElement==window||forElement==viewportElement)return pos;var BUGGY_GECKO_BOX_OBJECT=OpenLayers.IS_GECKO&&document.getBoxObjectFor&&OpenLayers.Element.getStyle(forElement,"position")=="absolute"&&(forElement.style.top==""||forElement.style.left=="");var parent=null;var box;if(forElement.getBoundingClientRect){box=forElement.getBoundingClientRect();var scrollTop=
47window.pageYOffset||viewportElement.scrollTop;var scrollLeft=window.pageXOffset||viewportElement.scrollLeft;pos[0]=box.left+scrollLeft;pos[1]=box.top+scrollTop}else if(document.getBoxObjectFor&&!BUGGY_GECKO_BOX_OBJECT){box=document.getBoxObjectFor(forElement);var vpBox=document.getBoxObjectFor(viewportElement);pos[0]=box.screenX-vpBox.screenX;pos[1]=box.screenY-vpBox.screenY}else{pos[0]=forElement.offsetLeft;pos[1]=forElement.offsetTop;parent=forElement.offsetParent;if(parent!=forElement)while(parent){pos[0]+=
48parent.offsetLeft;pos[1]+=parent.offsetTop;parent=parent.offsetParent}var browser=OpenLayers.BROWSER_NAME;if(browser=="opera"||browser=="safari"&&OpenLayers.Element.getStyle(forElement,"position")=="absolute")pos[1]-=document.body.offsetTop;parent=forElement.offsetParent;while(parent&&parent!=document.body){pos[0]-=parent.scrollLeft;if(browser!="opera"||parent.tagName!="TR")pos[1]-=parent.scrollTop;parent=parent.offsetParent}}return pos};
49OpenLayers.Util.getViewportElement=function(){var viewportElement=arguments.callee.viewportElement;if(viewportElement==undefined){viewportElement=OpenLayers.BROWSER_NAME=="msie"&&document.compatMode!="CSS1Compat"?document.body:document.documentElement;arguments.callee.viewportElement=viewportElement}return viewportElement};
50OpenLayers.Util.isEquivalentUrl=function(url1,url2,options){options=options||{};OpenLayers.Util.applyDefaults(options,{ignoreCase:true,ignorePort80:true,ignoreHash:true,splitArgs:false});var urlObj1=OpenLayers.Util.createUrlObject(url1,options);var urlObj2=OpenLayers.Util.createUrlObject(url2,options);for(var key in urlObj1)if(key!=="args")if(urlObj1[key]!=urlObj2[key])return false;for(var key in urlObj1.args){if(urlObj1.args[key]!=urlObj2.args[key])return false;delete urlObj2.args[key]}for(var key in urlObj2.args)return false;
51return true};
52OpenLayers.Util.createUrlObject=function(url,options){options=options||{};if(!/^\w+:\/\//.test(url)){var loc=window.location;var port=loc.port?":"+loc.port:"";var fullUrl=loc.protocol+"//"+loc.host.split(":").shift()+port;if(url.indexOf("/")===0)url=fullUrl+url;else{var parts=loc.pathname.split("/");parts.pop();url=fullUrl+parts.join("/")+"/"+url}}if(options.ignoreCase)url=url.toLowerCase();var a=document.createElement("a");a.href=url;var urlObject={};urlObject.host=a.host.split(":").shift();urlObject.protocol=
53a.protocol;if(options.ignorePort80)urlObject.port=a.port=="80"||a.port=="0"?"":a.port;else urlObject.port=a.port==""||a.port=="0"?"80":a.port;urlObject.hash=options.ignoreHash||a.hash==="#"?"":a.hash;var queryString=a.search;if(!queryString){var qMark=url.indexOf("?");queryString=qMark!=-1?url.substr(qMark):""}urlObject.args=OpenLayers.Util.getParameters(queryString,{splitArgs:options.splitArgs});urlObject.pathname=a.pathname.charAt(0)=="/"?a.pathname:"/"+a.pathname;return urlObject};
54OpenLayers.Util.removeTail=function(url){var head=null;var qMark=url.indexOf("?");var hashMark=url.indexOf("#");if(qMark==-1)head=hashMark!=-1?url.substr(0,hashMark):url;else head=hashMark!=-1?url.substr(0,Math.min(qMark,hashMark)):url.substr(0,qMark);return head};OpenLayers.IS_GECKO=function(){var ua=navigator.userAgent.toLowerCase();return ua.indexOf("webkit")==-1&&ua.indexOf("gecko")!=-1}();
55OpenLayers.CANVAS_SUPPORTED=function(){var elem=document.createElement("canvas");return!!(elem.getContext&&elem.getContext("2d"))}();OpenLayers.BROWSER_NAME=function(){var name="";var ua=navigator.userAgent.toLowerCase();if(ua.indexOf("opera")!=-1)name="opera";else if(ua.indexOf("msie")!=-1)name="msie";else if(ua.indexOf("safari")!=-1)name="safari";else if(ua.indexOf("mozilla")!=-1)if(ua.indexOf("firefox")!=-1)name="firefox";else name="mozilla";return name}();OpenLayers.Util.getBrowserName=function(){return OpenLayers.BROWSER_NAME};
56OpenLayers.Util.getRenderedDimensions=function(contentHTML,size,options){var w,h;var container=document.createElement("div");container.style.visibility="hidden";var containerElement=options&&options.containerElement?options.containerElement:document.body;var parentHasPositionAbsolute=false;var superContainer=null;var parent=containerElement;while(parent&&parent.tagName.toLowerCase()!="body"){var parentPosition=OpenLayers.Element.getStyle(parent,"position");if(parentPosition=="absolute"){parentHasPositionAbsolute=
57true;break}else if(parentPosition&&parentPosition!="static")break;parent=parent.parentNode}if(parentHasPositionAbsolute&&(containerElement.clientHeight===0||containerElement.clientWidth===0)){superContainer=document.createElement("div");superContainer.style.visibility="hidden";superContainer.style.position="absolute";superContainer.style.overflow="visible";superContainer.style.width=document.body.clientWidth+"px";superContainer.style.height=document.body.clientHeight+"px";superContainer.appendChild(container)}container.style.position=
58"absolute";if(size)if(size.w){w=size.w;container.style.width=w+"px"}else if(size.h){h=size.h;container.style.height=h+"px"}if(options&&options.displayClass)container.className=options.displayClass;var content=document.createElement("div");content.innerHTML=contentHTML;content.style.overflow="visible";if(content.childNodes)for(var i=0,l=content.childNodes.length;i<l;i++){if(!content.childNodes[i].style)continue;content.childNodes[i].style.overflow="visible"}container.appendChild(content);if(superContainer)containerElement.appendChild(superContainer);
59else containerElement.appendChild(container);if(!w){w=parseInt(content.scrollWidth);container.style.width=w+"px"}if(!h)h=parseInt(content.scrollHeight);container.removeChild(content);if(superContainer){superContainer.removeChild(container);containerElement.removeChild(superContainer)}else containerElement.removeChild(container);return new OpenLayers.Size(w,h)};
60OpenLayers.Util.getScrollbarWidth=function(){var scrollbarWidth=OpenLayers.Util._scrollbarWidth;if(scrollbarWidth==null){var scr=null;var inn=null;var wNoScroll=0;var wScroll=0;scr=document.createElement("div");scr.style.position="absolute";scr.style.top="-1000px";scr.style.left="-1000px";scr.style.width="100px";scr.style.height="50px";scr.style.overflow="hidden";inn=document.createElement("div");inn.style.width="100%";inn.style.height="200px";scr.appendChild(inn);document.body.appendChild(scr);wNoScroll=
61inn.offsetWidth;scr.style.overflow="scroll";wScroll=inn.offsetWidth;document.body.removeChild(document.body.lastChild);OpenLayers.Util._scrollbarWidth=wNoScroll-wScroll;scrollbarWidth=OpenLayers.Util._scrollbarWidth}return scrollbarWidth};
62OpenLayers.Util.getFormattedLonLat=function(coordinate,axis,dmsOption){if(!dmsOption)dmsOption="dms";coordinate=(coordinate+540)%360-180;var abscoordinate=Math.abs(coordinate);var coordinatedegrees=Math.floor(abscoordinate);var coordinateminutes=(abscoordinate-coordinatedegrees)/(1/60);var tempcoordinateminutes=coordinateminutes;coordinateminutes=Math.floor(coordinateminutes);var coordinateseconds=(tempcoordinateminutes-coordinateminutes)/(1/60);coordinateseconds=Math.round(coordinateseconds*10);
63coordinateseconds/=10;if(coordinateseconds>=60){coordinateseconds-=60;coordinateminutes+=1;if(coordinateminutes>=60){coordinateminutes-=60;coordinatedegrees+=1}}if(coordinatedegrees<10)coordinatedegrees="0"+coordinatedegrees;var str=coordinatedegrees+"\u00b0";if(dmsOption.indexOf("dm")>=0){if(coordinateminutes<10)coordinateminutes="0"+coordinateminutes;str+=coordinateminutes+"'";if(dmsOption.indexOf("dms")>=0){if(coordinateseconds<10)coordinateseconds="0"+coordinateseconds;str+=coordinateseconds+
64'"'}}if(axis=="lon")str+=coordinate<0?OpenLayers.i18n("W"):OpenLayers.i18n("E");else str+=coordinate<0?OpenLayers.i18n("S"):OpenLayers.i18n("N");return str};OpenLayers.Util.getConstructor=function(className){var Constructor;var parts=className.split(".");if(parts[0]==="OpenLayers")Constructor=OpenLayers;else Constructor=window[parts[0]];for(var i=1,ii=parts.length;i<ii;++i)Constructor=Constructor[parts[i]];return Constructor};
65OpenLayers.Rule=OpenLayers.Class({id:null,name:null,title:null,description:null,context:null,filter:null,elseFilter:false,symbolizer:null,symbolizers:null,minScaleDenominator:null,maxScaleDenominator:null,initialize:function(options){this.symbolizer={};OpenLayers.Util.extend(this,options);if(this.symbolizers)delete this.symbolizer;this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")},destroy:function(){for(var i in this.symbolizer)this.symbolizer[i]=null;this.symbolizer=null;delete this.symbolizers},
66evaluate:function(feature){var context=this.getContext(feature);var applies=true;if(this.minScaleDenominator||this.maxScaleDenominator)var scale=feature.layer.map.getScale();if(this.minScaleDenominator)applies=scale>=OpenLayers.Style.createLiteral(this.minScaleDenominator,context);if(applies&&this.maxScaleDenominator)applies=scale<OpenLayers.Style.createLiteral(this.maxScaleDenominator,context);if(applies&&this.filter)if(this.filter.CLASS_NAME=="OpenLayers.Filter.FeatureId")applies=this.filter.evaluate(feature);
67else applies=this.filter.evaluate(context);return applies},getContext:function(feature){var context=this.context;if(!context)context=feature.attributes||feature.data;if(typeof this.context=="function")context=this.context(feature);return context},clone:function(){var options=OpenLayers.Util.extend({},this);if(this.symbolizers){var len=this.symbolizers.length;options.symbolizers=new Array(len);for(var i=0;i<len;++i)options.symbolizers[i]=this.symbolizers[i].clone()}else{options.symbolizer={};var value,
68type;for(var key in this.symbolizer){value=this.symbolizer[key];type=typeof value;if(type==="object")options.symbolizer[key]=OpenLayers.Util.extend({},value);else if(type==="string")options.symbolizer[key]=value}}options.filter=this.filter&&this.filter.clone();options.context=this.context&&OpenLayers.Util.extend({},this.context);return new OpenLayers.Rule(options)},CLASS_NAME:"OpenLayers.Rule"});
69OpenLayers.Console={log:function(){},debug:function(){},info:function(){},warn:function(){},error:function(){},userError:function(error){alert(error)},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"};
70(function(){var scripts=document.getElementsByTagName("script");for(var i=0,len=scripts.length;i<len;++i)if(scripts[i].src.indexOf("firebug.js")!=-1)if(console){OpenLayers.Util.extend(OpenLayers.Console,console);break}})();var OpenLayersMap={};OpenLayersMap.Layer={};OpenLayersMap.Control={};OpenLayersMap.Renderer={};OpenLayersMap.Handler={};OpenLayersMap.Popup={};
71OpenLayers.Lang={code:null,defaultCode:"en",getCode:function(){if(!OpenLayers.Lang.code)OpenLayers.Lang.setCode();return OpenLayers.Lang.code},setCode:function(code){var lang;if(!code)code=OpenLayers.BROWSER_NAME=="msie"?navigator.userLanguage:navigator.language;var parts=code.split("-");parts[0]=parts[0].toLowerCase();if(typeof OpenLayers.Lang[parts[0]]=="object")lang=parts[0];if(parts[1]){var testLang=parts[0]+"-"+parts[1].toUpperCase();if(typeof OpenLayers.Lang[testLang]=="object")lang=testLang}if(!lang){OpenLayers.Console.warn("Failed to find OpenLayers.Lang."+
72parts.join("-")+" dictionary, falling back to default language");lang=OpenLayers.Lang.defaultCode}OpenLayers.Lang.code=lang},translate:function(key,context){var dictionary=OpenLayers.Lang[OpenLayers.Lang.getCode()];var message=dictionary&&dictionary[key];if(!message)message=key;if(context)message=OpenLayers.String.format(message,context);return message}};OpenLayers.i18n=OpenLayers.Lang.translate;
73OpenLayers.Lang["de"]=OpenLayers.Util.applyDefaults({"unhandledRequest":"Unbehandelte Anfrager\u00fcckmeldung ${statusText}","Permalink":"Permalink","Overlays":"Overlays","Base Layer":"Grundkarte","noFID":"Ein Feature, f\u00fcr das keine FID existiert, kann nicht aktualisiert werden.","browserNotSupported":"Ihr Browser unterst\u00fctzt keine Vektordarstellung. Aktuell unterst\u00fctzte Renderer:\n${renderers}","minZoomLevelError":"Die \x3ccode\x3eminZoomLevel\x3c/code\x3e-Eigenschaft ist nur f\u00fcr die Verwendung mit \x3ccode\x3eFixedZoomLevels\x3c/code\x3e-untergeordneten Layers vorgesehen. Das dieser \x3ctt\x3ewfs\x3c/tt\x3e-Layer die \x3ccode\x3eminZoomLevel\x3c/code\x3e-Eigenschaft \u00fcberpr\u00fcft ist ein Relikt der Vergangenheit. Wir k\u00f6nnen diese \u00dcberpr\u00fcfung nicht entfernen, ohne das OL basierende Applikationen nicht mehr funktionieren. Daher markieren wir es als veraltet - die \x3ccode\x3eminZoomLevel\x3c/code\x3e-\u00dcberpr\u00fcfung wird in Version 3.0 entfernt werden. Bitte verwenden Sie stattdessen die Min-/Max-L\u00f6sung, wie sie unter http://trac.openlayers.org/wiki/SettingZoomLevels beschrieben ist.",
74"commitSuccess":"WFS-Transaktion: Erfolgreich ${response}","commitFailed":"WFS-Transaktion: Fehlgeschlagen ${response}","googleWarning":"Der Google-Layer konnte nicht korrekt geladen werden.\x3cbr\x3e\x3cbr\x3eUm diese Meldung nicht mehr zu erhalten, w\u00e4hlen Sie einen anderen Hintergrundlayer aus dem LayerSwitcher in der rechten oberen Ecke.\x3cbr\x3e\x3cbr\x3eSehr wahrscheinlich tritt dieser Fehler auf, weil das Skript der Google-Maps-Bibliothek nicht eingebunden wurde oder keinen g\u00fcltigen API-Schl\u00fcssel f\u00fcr Ihre URL enth\u00e4lt.\x3cbr\x3e\x3cbr\x3eEntwickler: Besuche \x3ca href\x3d'http://trac.openlayers.org/wiki/Google' target\x3d'_blank'\x3edas Wiki\x3c/a\x3e f\u00fcr Hilfe zum korrekten Einbinden des Google-Layers",
75"getLayerWarning":"Der ${layerType}-Layer konnte nicht korrekt geladen werden.\x3cbr\x3e\x3cbr\x3eUm diese Meldung nicht mehr zu erhalten, w\u00e4hlen Sie einen anderen Hintergrundlayer aus dem LayerSwitcher in der rechten oberen Ecke.\x3cbr\x3e\x3cbr\x3eSehr wahrscheinlich tritt dieser Fehler auf, weil das Skript der '${layerLib}'-Bibliothek nicht eingebunden wurde.\x3cbr\x3e\x3cbr\x3eEntwickler: Besuche \x3ca href\x3d'http://trac.openlayers.org/wiki/${layerLib}' target\x3d'_blank'\x3edas Wiki\x3c/a\x3e f\u00fcr Hilfe zum korrekten Einbinden von Layern",
76"Scale \x3d 1 : ${scaleDenom}":"Ma\u00dfstab \x3d 1 : ${scaleDenom}","W":"W","E":"O","N":"N","S":"S","reprojectDeprecated":"Sie verwenden die \u201eReproject\u201c-Option des Layers ${layerName}. Diese Option ist veraltet: Sie wurde entwickelt um die Anzeige von Daten auf kommerziellen Basiskarten zu unterst\u00fctzen, aber diese Funktion sollte jetzt durch Unterst\u00fctzung der \u201eSpherical Mercator\u201c erreicht werden. Weitere Informationen sind unter http://trac.openlayers.org/wiki/SphericalMercator verf\u00fcgbar.",
77"methodDeprecated":"Die Methode ist veraltet und wird in 3.0 entfernt. Bitte verwende stattdessen ${newMethod}."});OpenLayers.Lang.de=OpenLayers.Util.extend({"ovMinimize":"\u00dcbersicht minimieren","ovMaximize":"\u00dcbersicht maximieren","zoom_in":"Zoom in","zoom_out":"Zoom out","activate_map":"Karte aktivieren","dlgClose":"Dialog schliessen","compass":"Kompassrichtung: "},OpenLayers.Lang.de);
78OpenLayers.Lang.en={"unhandledRequest":"Unhandled request return ${statusText}","Permalink":"Permalink","Overlays":"Overlays","Base Layer":"Base Layer","noFID":"Can't update a feature for which there is no FID.","browserNotSupported":"Your browser does not support vector rendering. Currently supported renderers are:\n${renderers}","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 the"+
79"past. 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.\x3cbr\x3e\x3cbr\x3e"+
80"To get rid of this message, select a new BaseLayer "+"in the layer switcher in the upper-right corner.\x3cbr\x3e\x3cbr\x3e"+"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.\x3cbr\x3e\x3cbr\x3e"+"Developers: For help getting this working correctly, "+"\x3ca href\x3d'http://trac.openlayers.org/wiki/Google' "+"target\x3d'_blank'\x3eclick here\x3c/a\x3e","getLayerWarning":"The ${layerType} Layer was unable to load correctly.\x3cbr\x3e\x3cbr\x3e"+
81"To get rid of this message, select a new BaseLayer "+"in the layer switcher in the upper-right corner.\x3cbr\x3e\x3cbr\x3e"+"Most likely, this is because the ${layerLib} library "+"script was not correctly included.\x3cbr\x3e\x3cbr\x3e"+"Developers: For help getting this working correctly, "+"\x3ca href\x3d'http://trac.openlayers.org/wiki/${layerLib}' "+"target\x3d'_blank'\x3eclick here\x3c/a\x3e","Scale \x3d 1 : ${scaleDenom}":"Scale \x3d 1 : ${scaleDenom}","W":"W","E":"E","N":"N","S":"S","Graticule":"Graticule",
82"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.","end":""};
83OpenLayers.Lang.en=OpenLayers.Util.extend({"ovMinimize":"Hide overview map","ovMaximize":"Show overview map","zoom_in":"Zoom in","zoom_out":"Zoom out","activate_map":"Activate map","dlgClose":"Close the dialog","lyrsMaximize":"Show map layers","lyrsMinimize":"Hide map layers","toggle_help":"Show or hide help","toggle_dynamic_map":"Hide or show the dynamic map","toggle_fullscreen":"Hide or show full screen mode","compass":"compass direction: ","navi":"open in navigation app (geo uri)"},OpenLayers.Lang.en);
84OpenLayers.Lang.es={"unhandledRequest":"Respuesta a petici\u00f3n no gestionada ${statusText}","Permalink":"Enlace permanente","Overlays":"Capas superpuestas","Base Layer":"Capa Base","noFID":"No se puede actualizar un elemento para el que no existe FID.","browserNotSupported":"Su navegador no soporta renderizaci\u00f3n vectorial. Los renderizadores soportados actualmente son:\n${renderers}","minZoomLevelError":"La propiedad minZoomLevel debe s\u00f3lo utilizarse "+"con las capas que tienen FixedZoomLevels. El hecho de que "+
85"una capa wfs compruebe minZoomLevel es una reliquia del "+"pasado. Sin embargo, no podemos eliminarla sin discontinuar "+"probablemente las aplicaciones OL que puedan depender de ello. "+"As\u00ed pues estamos haci\u00e9ndolo obsoleto --la comprobaci\u00f3n "+"minZoomLevel se eliminar\u00e1 en la versi\u00f3n 3.0. Utilice el ajuste "+"de resolution min/max en su lugar, tal como se describe aqu\u00ed: "+"http://trac.openlayers.org/wiki/SettingZoomLevels","commitSuccess":"Transacci\u00f3n WFS: \u00c9XITO ${response}",
86"commitFailed":"Transacci\u00f3n WFS: FALL\u00d3 ${response}","googleWarning":"La capa Google no pudo ser cargada correctamente.\x3cbr\x3e\x3cbr\x3e"+"Para evitar este mensaje, seleccione una nueva Capa Base "+"en el selector de capas en la esquina superior derecha.\x3cbr\x3e\x3cbr\x3e"+"Probablemente, esto se debe a que el script de la biblioteca de "+"Google Maps no fue correctamente incluido en su p\u00e1gina, o no "+"contiene la clave del API correcta para su sitio.\x3cbr\x3e\x3cbr\x3e"+"Desarrolladores: Para ayudar a hacer funcionar esto correctamente, "+
87"\x3ca href\x3d'http://trac.openlayers.org/wiki/Google' "+"target\x3d'_blank'\x3ehaga clic aqu\u00ed\x3c/a\x3e","getLayerWarning":"La capa ${layerType} no pudo ser cargada correctamente.\x3cbr\x3e\x3cbr\x3e"+"Para evitar este mensaje, seleccione una nueva Capa Base "+"en el selector de capas en la esquina superior derecha.\x3cbr\x3e\x3cbr\x3e"+"Probablemente, esto se debe a que el script de "+"la biblioteca ${layerLib} "+"no fue correctamente incluido en su p\u00e1gina.\x3cbr\x3e\x3cbr\x3e"+"Desarrolladores: Para ayudar a hacer funcionar esto correctamente, "+
88"\x3ca href\x3d'http://trac.openlayers.org/wiki/${layerLib}' "+"target\x3d'_blank'\x3ehaga clic aqu\u00ed\x3c/a\x3e","Scale \x3d 1 : ${scaleDenom}":"Escala \x3d 1 : ${scaleDenom}","W":"O","E":"E","N":"N","S":"S","Graticule":"Ret\u00edcula","reprojectDeprecated":"Est\u00e1 usando la opci\u00f3n 'reproject' en la capa "+"${layerName}. Esta opci\u00f3n es obsoleta: su uso fue dise\u00f1ado "+"para soportar la visualizaci\u00f3n de datos sobre mapas base comerciales, "+"pero ahora esa funcionalidad deber\u00eda conseguirse mediante el soporte "+
89"de la proyecci\u00f3n Spherical Mercator. M\u00e1s informaci\u00f3n disponible en "+"http://trac.openlayers.org/wiki/SphericalMercator.","methodDeprecated":"Este m\u00e9todo es obsoleto y se eliminar\u00e1 en la versi\u00f3n 3.0. "+"Por favor utilice el m\u00e9todo ${newMethod} en su lugar.","end":""};
90OpenLayers.Lang.es=OpenLayers.Util.extend({"ovMinimize":"Minimizar visi\u00f3n de conjunto","ovMaximize":"Maximizar visi\u00f3n de conjunto","zoom_in":"Zoom in","zoom_out":"Zoom out","activate_map":"Activar mapa","dlgClose":"Cierre el di\u00e1logo","compass":"direcci\u00f3n del comp\u00e1s: "},OpenLayers.Lang.es);
91OpenLayers.Lang["fr"]=OpenLayers.Util.applyDefaults({"unhandledRequest":"Requ\u00eate non g\u00e9r\u00e9e, retournant ${statusText}","Permalink":"Permalien","Overlays":"Calques","Base Layer":"Calque de base","noFID":"Impossible de mettre \u00e0 jour un objet sans identifiant (fid).","browserNotSupported":"Votre navigateur ne supporte pas le rendu vectoriel. Les renderers actuellement support\u00e9s sont : \n${renderers}","minZoomLevelError":"La propri\u00e9t\u00e9 minZoomLevel doit seulement \u00eatre utilis\u00e9e pour des couches FixedZoomLevels-descendent. Le fait que cette couche WFS v\u00e9rifie la pr\u00e9sence de minZoomLevel est une relique du pass\u00e9. Nous ne pouvons toutefois la supprimer sans casser des applications qui pourraient en d\u00e9pendre. C'est pourquoi nous la d\u00e9pr\u00e9cions -- la v\u00e9rification du minZoomLevel sera supprim\u00e9e en version 3.0. A la place, merci d'utiliser les param\u00e8tres de r\u00e9solutions min/max tel que d\u00e9crit sur : http://trac.openlayers.org/wiki/SettingZoomLevels",
92"commitSuccess":"Transaction WFS : SUCCES ${response}","commitFailed":"Transaction WFS : ECHEC ${response}","googleWarning":"La couche Google n'a pas \u00e9t\u00e9 en mesure de se charger correctement.\x3cbr\x3e\x3cbr\x3ePour supprimer ce message, choisissez une nouvelle BaseLayer dans le s\u00e9lecteur de couche en haut \u00e0 droite.\x3cbr\x3e\x3cbr\x3eCela est possiblement caus\u00e9 par la non-inclusion de la librairie Google Maps, ou alors parce que la cl\u00e9 de l'API ne correspond pas \u00e0 votre site.\x3cbr\x3e\x3cbr\x3eD\u00e9veloppeurs : pour savoir comment corriger ceci, \x3ca href\x3d'http://trac.openlayers.org/wiki/Google' target\x3d'_blank'\x3ecliquez ici\x3c/a\x3e",
93"getLayerWarning":"La couche ${layerType} n'est pas en mesure de se charger correctement.\x3cbr\x3e\x3cbr\x3ePour supprimer ce message, choisissez une nouvelle BaseLayer dans le s\u00e9lecteur de couche en haut \u00e0 droite.\x3cbr\x3e\x3cbr\x3eCela est possiblement caus\u00e9 par la non-inclusion de la librairie ${layerLib}.\x3cbr\x3e\x3cbr\x3eD\u00e9veloppeurs : pour savoir comment corriger ceci, \x3ca href\x3d'http://trac.openlayers.org/wiki/${layerLib}' target\x3d'_blank'\x3ecliquez ici\x3c/a\x3e",
94"Scale \x3d 1 : ${scaleDenom}":"Echelle ~ 1 : ${scaleDenom}","W":"O","E":"E","N":"N","S":"S","reprojectDeprecated":"Vous utilisez l'option 'reproject' sur la couche ${layerName}. Cette option est d\u00e9pr\u00e9ci\u00e9e : Son usage permettait d'afficher des donn\u00e9es au dessus de couches raster commerciales.Cette fonctionalit\u00e9 est maintenant support\u00e9e en utilisant le support de la projection Mercator Sph\u00e9rique. Plus d'information est disponible sur http://trac.openlayers.org/wiki/SphericalMercator.",
95"methodDeprecated":"Cette m\u00e9thode est d\u00e9pr\u00e9ci\u00e9e, et sera supprim\u00e9e \u00e0 la version 3.0. Merci d'utiliser ${newMethod} \u00e0 la place."});OpenLayers.Lang.fr=OpenLayers.Util.extend({"ovMinimize":"Minimisez vue d'ensemble","ovMaximize":"Maximisez vue d'ensemble","zoom_in":"Zoom in","zoom_out":"Zoom out","activate_map":"Activer la carte","dlgClose":"Fermez la bo\u00eete de dialogue","compass":"direction de boussole: "},OpenLayers.Lang.fr);
96OpenLayers.Lang["nl"]=OpenLayers.Util.applyDefaults({"unhandledRequest":"Het verzoek is niet afgehandeld met de volgende melding: ${statusText}","Permalink":"Permanente verwijzing","Overlays":"Overlays","Base Layer":"Achtergrondkaart","noFID":"Een optie die geen FID heeft kan niet bijgewerkt worden.","browserNotSupported":"Uw browser ondersteunt het weergeven van vectoren niet.\nMomenteel ondersteunde weergavemogelijkheden:\n${renderers}","minZoomLevelError":"De eigenschap minZoomLevel is alleen bedoeld voor gebruik lagen met die afstammen van FixedZoomLevels-lagen.\nDat deze WFS-laag minZoomLevel controleert, is een overblijfsel uit het verleden.\nWe kunnen deze controle echter niet verwijderen zonder op OL gebaseerde applicaties die hervan afhankelijk zijn stuk te maken.\nDaarom heeft deze functionaliteit de eigenschap 'deprecated' gekregen - de minZoomLevel wordt verwijderd in versie 3.0.\nGebruik in plaats van deze functie de mogelijkheid om min/max voor resolutie in te stellen zoals op de volgende pagina wordt beschreven:\nhttp://trac.openlayers.org/wiki/SettingZoomLevels",
97"commitSuccess":"WFS-transactie: succesvol ${response}","commitFailed":"WFS-transactie: mislukt ${response}","googleWarning":"De Google-Layer kon niet correct geladen worden.\x3cbr /\x3e\x3cbr /\x3e\nOm deze melding niet meer te krijgen, moet u een andere achtergrondkaart kiezen in de laagwisselaar in de rechterbovenhoek.\x3cbr /\x3e\x3cbr /\x3e\nDit komt waarschijnlijk doordat de bibliotheek ${layerLib} niet correct ingevoegd is.\x3cbr /\x3e\x3cbr /\x3e\nOntwikkelaars: \x3ca href\x3d'http://trac.openlayers.org/wiki/${layerLib}' target\x3d'_blank'\x3eklik hier\x3c/a\x3e om dit werkend te krijgen.",
98"getLayerWarning":"De laag ${layerType} kon niet goed geladen worden.\x3cbr /\x3e\x3cbr /\x3e\nOm deze melding niet meer te krijgen, moet u een andere achtergrondkaart kiezen in de laagwisselaar in de rechterbovenhoek.\x3cbr /\x3e\x3cbr /\x3e\nDit komt waarschijnlijk doordat de bibliotheek ${layerLib} niet correct is ingevoegd.\x3cbr /\x3e\x3cbr /\x3e\nOntwikkelaars: \x3ca href\x3d'http://trac.openlayers.org/wiki/${layerLib}' target\x3d'_blank'\x3eklik hier\x3c/a\x3e om dit werkend te krijgen.","Scale \x3d 1 : ${scaleDenom}":"Schaal \x3d 1 : ${scaleDenom}",
99"W":"W","E":"O","N":"N","S":"Z","reprojectDeprecated":"U gebruikt de optie 'reproject' op de laag ${layerName}.\nDeze optie is vervallen: deze optie was ontwikkeld om gegevens over commerci\u00eble basiskaarten weer te geven, maar deze functionaliteit wordt nu bereikt door ondersteuning van Spherical Mercator.\nMeer informatie is beschikbaar op http://trac.openlayers.org/wiki/SphericalMercator.","methodDeprecated":"Deze methode is verouderd en wordt verwijderd in versie 3.0.\nGebruik ${newMethod}."});
100OpenLayers.Lang.nl=OpenLayers.Util.extend({"ovMinimize":"Verberg overzicht","ovMaximize":"Toon overzicht","zoom_in":"Zoom in","zoom_out":"Zoom uit","activate_map":"Activeer kaart","dlgClose":"Sluit de dialoog","lyrsMaximize":"Toon kaartlagen","lyrsMinimize":"Verberg kaartlagen","toggle_help":"Toon of verberg help","toggle_dynamic_map":"Verberg of toon de dynamische kaart","toggle_fullscreen":"Toon of verberg volledige scherm weergave","compass":"kompasrichting: ","navi":"open in navigatie app (geo uri)"},
101OpenLayers.Lang.nl);OpenLayers.Util=OpenLayers.Util||{};
102OpenLayers.Util.vendorPrefix=function(){var VENDOR_PREFIXES=["","O","ms","Moz","Webkit"],divStyle=document.createElement("div").style,cssCache={},jsCache={};function domToCss(prefixedDom){if(!prefixedDom)return null;return prefixedDom.replace(/([A-Z])/g,function(c){return"-"+c.toLowerCase()}).replace(/^ms-/,"-ms-")}function css(property){if(cssCache[property]===undefined){var domProperty=property.replace(/(-[\s\S])/g,function(c){return c.charAt(1).toUpperCase()});var prefixedDom=style(domProperty);
103cssCache[property]=domToCss(prefixedDom)}return cssCache[property]}function js(obj,property){if(jsCache[property]===undefined){var tmpProp,i=0,l=VENDOR_PREFIXES.length,prefix,isStyleObj=typeof obj.cssText!=="undefined";jsCache[property]=null;for(;i<l;i++){prefix=VENDOR_PREFIXES[i];if(prefix){if(!isStyleObj)prefix=prefix.toLowerCase();tmpProp=prefix+property.charAt(0).toUpperCase()+property.slice(1)}else tmpProp=property;if(obj[tmpProp]!==undefined){jsCache[property]=tmpProp;break}}}return jsCache[property]}
104function style(property){return js(divStyle,property)}return{css:css,js:js,style:style,cssCache:cssCache,jsCache:jsCache}}();
105OpenLayers.Animation=function(window){var requestAnimationFrame=OpenLayers.Util.vendorPrefix.js(window,"requestAnimationFrame");var isNative=!!requestAnimationFrame;var requestFrame=function(){var request=window[requestAnimationFrame]||function(callback,element){window.setTimeout(callback,16)};return function(callback,element){request.apply(window,[callback,element])}}();var counter=0;var loops={};function start(callback,duration,element){duration=duration>0?duration:Number.POSITIVE_INFINITY;var id=
106++counter;var start=+new Date;loops[id]=function(){if(loops[id]&&+new Date-start<=duration){callback();if(loops[id])requestFrame(loops[id],element)}else delete loops[id]};requestFrame(loops[id],element);return id}function stop(id){delete loops[id]}return{isNative:isNative,requestFrame:requestFrame,start:start,stop:stop}}(window);
107OpenLayers.Kinetic=OpenLayers.Class({threshold:0,deceleration:.0035,nbPoints:100,delay:200,points:undefined,timerId:undefined,initialize:function(options){OpenLayers.Util.extend(this,options)},begin:function(){OpenLayers.Animation.stop(this.timerId);this.timerId=undefined;this.points=[]},update:function(xy){this.points.unshift({xy:xy,tick:(new Date).getTime()});if(this.points.length>this.nbPoints)this.points.pop()},end:function(xy){var last,now=(new Date).getTime();for(var i=0,l=this.points.length,
108point;i<l;i++){point=this.points[i];if(now-point.tick>this.delay)break;last=point}if(!last)return;var time=(new Date).getTime()-last.tick;var dist=Math.sqrt(Math.pow(xy.x-last.xy.x,2)+Math.pow(xy.y-last.xy.y,2));var speed=dist/time;if(speed==0||speed<this.threshold)return;var theta=Math.asin((xy.y-last.xy.y)/dist);if(last.xy.x<=xy.x)theta=Math.PI-theta;return{speed:speed,theta:theta}},move:function(info,callback){var v0=info.speed;var fx=Math.cos(info.theta);var fy=-Math.sin(info.theta);var initialTime=
109(new Date).getTime();var lastX=0;var lastY=0;var timerCallback=function(){if(this.timerId==null)return;var t=(new Date).getTime()-initialTime;var p=-this.deceleration*Math.pow(t,2)/2+v0*t;var x=p*fx;var y=p*fy;var args={};args.end=false;var v=-this.deceleration*t+v0;if(v<=0){OpenLayers.Animation.stop(this.timerId);this.timerId=null;args.end=true}args.x=x-lastX;args.y=y-lastY;lastX=x;lastY=y;callback(args.x,args.y,args.end)};this.timerId=OpenLayers.Animation.start(OpenLayers.Function.bind(timerCallback,
110this))},CLASS_NAME:"OpenLayers.Kinetic"});
111OpenLayers.Renderer=OpenLayers.Class({container:null,root:null,extent:null,locked:false,size:null,resolution:null,map:null,featureDx:0,initialize:function(containerID,options){this.container=OpenLayers.Util.getElement(containerID);OpenLayers.Util.extend(this,options)},destroy:function(){this.container=null;this.extent=null;this.size=null;this.resolution=null;this.map=null},supported:function(){return false},setExtent:function(extent,resolutionChanged){this.extent=extent.clone();if(this.map.baseLayer&&
112this.map.baseLayer.wrapDateLine){var ratio=extent.getWidth()/this.map.getExtent().getWidth(),extent=extent.scale(1/ratio);this.extent=extent.wrapDateLine(this.map.getMaxExtent()).scale(ratio)}if(resolutionChanged)this.resolution=null;return true},setSize:function(size){this.size=size.clone();this.resolution=null},getResolution:function(){this.resolution=this.resolution||this.map.getResolution();return this.resolution},drawFeature:function(feature,style){if(style==null)style=feature.style;if(feature.geometry){var bounds=
113feature.geometry.getBounds();if(bounds){var worldBounds;if(this.map.baseLayer&&this.map.baseLayer.wrapDateLine)worldBounds=this.map.getMaxExtent();if(!bounds.intersectsBounds(this.extent,{worldBounds:worldBounds}))style={display:"none"};else this.calculateFeatureDx(bounds,worldBounds);var rendered=this.drawGeometry(feature.geometry,style,feature.id);if(style.display!="none"&&style.label&&rendered!==false){var location=feature.geometry.getCentroid();if(style.labelXOffset||style.labelYOffset){var xOffset=
114isNaN(style.labelXOffset)?0:style.labelXOffset;var yOffset=isNaN(style.labelYOffset)?0:style.labelYOffset;var res=this.getResolution();location.move(xOffset*res,yOffset*res)}this.drawText(feature.id,style,location)}else this.removeText(feature.id);return rendered}}},calculateFeatureDx:function(bounds,worldBounds){this.featureDx=0;if(worldBounds){var worldWidth=worldBounds.getWidth(),rendererCenterX=(this.extent.left+this.extent.right)/2,featureCenterX=(bounds.left+bounds.right)/2,worldsAway=Math.round((featureCenterX-
115rendererCenterX)/worldWidth);this.featureDx=worldsAway*worldWidth}},drawGeometry:function(geometry,style,featureId){},drawText:function(featureId,style,location){},removeText:function(featureId){},clear:function(){},getFeatureIdFromEvent:function(evt){},eraseFeatures:function(features){if(!OpenLayers.Util.isArray(features))features=[features];for(var i=0,len=features.length;i<len;++i){var feature=features[i];this.eraseGeometry(feature.geometry,feature.id);this.removeText(feature.id)}},eraseGeometry:function(geometry,
116featureId){},moveRoot:function(renderer){},getRenderLayerId:function(){return this.container.id},applyDefaultSymbolizer:function(symbolizer){var result=OpenLayers.Util.extend({},OpenLayers.Renderer.defaultSymbolizer);if(symbolizer.stroke===false){delete result.strokeWidth;delete result.strokeColor}if(symbolizer.fill===false)delete result.fillColor;OpenLayers.Util.extend(result,symbolizer);return result},CLASS_NAME:"OpenLayers.Renderer"});
117OpenLayers.Renderer.defaultSymbolizer={fillColor:"#000000",strokeColor:"#000000",strokeWidth:2,fillOpacity:1,strokeOpacity:1,pointRadius:0,labelAlign:"cm"};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]};
118OpenLayers.Bounds=OpenLayers.Class({left:null,bottom:null,right:null,top:null,centerLonLat:null,initialize:function(left,bottom,right,top){if(OpenLayers.Util.isArray(left)){top=left[3];right=left[2];bottom=left[1];left=left[0]}if(left!=null)this.left=OpenLayers.Util.toFloat(left);if(bottom!=null)this.bottom=OpenLayers.Util.toFloat(bottom);if(right!=null)this.right=OpenLayers.Util.toFloat(right);if(top!=null)this.top=OpenLayers.Util.toFloat(top)},clone:function(){return new OpenLayers.Bounds(this.left,
119this.bottom,this.right,this.top)},equals:function(bounds){var equals=false;if(bounds!=null)equals=this.left==bounds.left&&this.right==bounds.right&&this.top==bounds.top&&this.bottom==bounds.bottom;return equals},toString:function(){return[this.left,this.bottom,this.right,this.top].join(",")},toArray:function(reverseAxisOrder){if(reverseAxisOrder===true)return[this.bottom,this.left,this.top,this.right];else return[this.left,this.bottom,this.right,this.top]},toBBOX:function(decimal,reverseAxisOrder){if(decimal==
120null)decimal=6;var mult=Math.pow(10,decimal);var xmin=Math.round(this.left*mult)/mult;var ymin=Math.round(this.bottom*mult)/mult;var xmax=Math.round(this.right*mult)/mult;var ymax=Math.round(this.top*mult)/mult;if(reverseAxisOrder===true)return ymin+","+xmin+","+ymax+","+xmax;else return xmin+","+ymin+","+xmax+","+ymax},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,
121this.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+
122this.right)/2,(this.bottom+this.top)/2);return this.centerLonLat},scale:function(ratio,origin){if(origin==null)origin=this.getCenterLonLat();var origx,origy;if(origin.CLASS_NAME=="OpenLayers.LonLat"){origx=origin.lon;origy=origin.lat}else{origx=origin.x;origy=origin.y}var left=(this.left-origx)*ratio+origx;var bottom=(this.bottom-origy)*ratio+origy;var right=(this.right-origx)*ratio+origx;var top=(this.top-origy)*ratio+origy;return new OpenLayers.Bounds(left,bottom,right,top)},add:function(x,y){if(x==
123null||y==null)throw new TypeError("Bounds.add cannot receive null values");return new OpenLayers.Bounds(this.left+x,this.bottom+y,this.right+x,this.top+y)},extend:function(object){if(object)switch(object.CLASS_NAME){case "OpenLayers.LonLat":this.extendXY(object.lon,object.lat);break;case "OpenLayers.Geometry.Point":this.extendXY(object.x,object.y);break;case "OpenLayers.Bounds":this.centerLonLat=null;if(this.left==null||object.left<this.left)this.left=object.left;if(this.bottom==null||object.bottom<
124this.bottom)this.bottom=object.bottom;if(this.right==null||object.right>this.right)this.right=object.right;if(this.top==null||object.top>this.top)this.top=object.top;break}},extendXY:function(x,y){this.centerLonLat=null;if(this.left==null||x<this.left)this.left=x;if(this.bottom==null||y<this.bottom)this.bottom=y;if(this.right==null||x>this.right)this.right=x;if(this.top==null||y>this.top)this.top=y},containsLonLat:function(ll,options){if(typeof options==="boolean")options={inclusive:options};options=
125options||{};var contains=this.contains(ll.lon,ll.lat,options.inclusive),worldBounds=options.worldBounds;if(worldBounds&&!contains){var worldWidth=worldBounds.getWidth();var worldCenterX=(worldBounds.left+worldBounds.right)/2;var worldsAway=Math.round((ll.lon-worldCenterX)/worldWidth);contains=this.containsLonLat({lon:ll.lon-worldsAway*worldWidth,lat:ll.lat},{inclusive:options.inclusive})}return contains},containsPixel:function(px,inclusive){return this.contains(px.x,px.y,inclusive)},contains:function(x,
126y,inclusive){if(inclusive==null)inclusive=true;if(x==null||y==null)return false;x=OpenLayers.Util.toFloat(x);y=OpenLayers.Util.toFloat(y);var contains=false;if(inclusive)contains=x>=this.left&&x<=this.right&&y>=this.bottom&&y<=this.top;else contains=x>this.left&&x<this.right&&y>this.bottom&&y<this.top;return contains},intersectsBounds:function(bounds,options){if(typeof options==="boolean")options={inclusive:options};options=options||{};if(options.worldBounds){var self=this.wrapDateLine(options.worldBounds);
127bounds=bounds.wrapDateLine(options.worldBounds)}else self=this;if(options.inclusive==null)options.inclusive=true;var intersects=false;var mightTouch=self.left==bounds.right||self.right==bounds.left||self.top==bounds.bottom||self.bottom==bounds.top;if(options.inclusive||!mightTouch){var inBottom=bounds.bottom>=self.bottom&&bounds.bottom<=self.top||self.bottom>=bounds.bottom&&self.bottom<=bounds.top;var inTop=bounds.top>=self.bottom&&bounds.top<=self.top||self.top>bounds.bottom&&self.top<bounds.top;
128var inLeft=bounds.left>=self.left&&bounds.left<=self.right||self.left>=bounds.left&&self.left<=bounds.right;var inRight=bounds.right>=self.left&&bounds.right<=self.right||self.right>=bounds.left&&self.right<=bounds.right;intersects=(inBottom||inTop)&&(inLeft||inRight)}if(options.worldBounds&&!intersects){var world=options.worldBounds;var width=world.getWidth();var selfCrosses=!world.containsBounds(self);var boundsCrosses=!world.containsBounds(bounds);if(selfCrosses&&!boundsCrosses){bounds=bounds.add(-width,
1290);intersects=self.intersectsBounds(bounds,{inclusive:options.inclusive})}else if(boundsCrosses&&!selfCrosses){self=self.add(-width,0);intersects=bounds.intersectsBounds(self,{inclusive:options.inclusive})}}return intersects},containsBounds:function(bounds,partial,inclusive){if(partial==null)partial=false;if(inclusive==null)inclusive=true;var bottomLeft=this.contains(bounds.left,bounds.bottom,inclusive);var bottomRight=this.contains(bounds.right,bounds.bottom,inclusive);var topLeft=this.contains(bounds.left,
130bounds.top,inclusive);var topRight=this.contains(bounds.right,bounds.top,inclusive);return partial?bottomLeft||bottomRight||topLeft||topRight:bottomLeft&&bottomRight&&topLeft&&topRight},determineQuadrant:function(lonlat){var quadrant="";var center=this.getCenterLonLat();quadrant+=lonlat.lat<center.lat?"b":"t";quadrant+=lonlat.lon<center.lon?"l":"r";return quadrant},transform:function(source,dest){this.centerLonLat=null;var ll=OpenLayers.Projection.transform({"x":this.left,"y":this.bottom},source,
131dest);var lr=OpenLayers.Projection.transform({"x":this.right,"y":this.bottom},source,dest);var ul=OpenLayers.Projection.transform({"x":this.left,"y":this.top},source,dest);var ur=OpenLayers.Projection.transform({"x":this.right,"y":this.top},source,dest);this.left=Math.min(ll.x,ul.x);this.bottom=Math.min(ll.y,lr.y);this.right=Math.max(lr.x,ur.x);this.top=Math.max(ul.y,ur.y);return this},wrapDateLine:function(maxExtent,options){options=options||{};var leftTolerance=options.leftTolerance||0;var rightTolerance=
132options.rightTolerance||0;var newBounds=this.clone();if(maxExtent){var width=maxExtent.getWidth();while(newBounds.left<maxExtent.left&&newBounds.right-rightTolerance<=maxExtent.left)newBounds=newBounds.add(width,0);while(newBounds.left+leftTolerance>=maxExtent.right&&newBounds.right>maxExtent.right)newBounds=newBounds.add(-width,0);var newLeft=newBounds.left+leftTolerance;if(newLeft<maxExtent.right&&newLeft>maxExtent.left&&newBounds.right-rightTolerance>maxExtent.right)newBounds=newBounds.add(-width,
1330)}return newBounds},CLASS_NAME:"OpenLayers.Bounds"});OpenLayers.Bounds.fromString=function(str,reverseAxisOrder){var bounds=str.split(",");return OpenLayers.Bounds.fromArray(bounds,reverseAxisOrder)};OpenLayers.Bounds.fromArray=function(bbox,reverseAxisOrder){return reverseAxisOrder===true?new OpenLayers.Bounds(bbox[1],bbox[0],bbox[3],bbox[2]):new OpenLayers.Bounds(bbox[0],bbox[1],bbox[2],bbox[3])};OpenLayers.Bounds.fromSize=function(size){return new OpenLayers.Bounds(0,size.h,size.w,0)};
134OpenLayers.Bounds.oppositeQuadrant=function(quadrant){var opp="";opp+=quadrant.charAt(0)=="t"?"b":"t";opp+=quadrant.charAt(1)=="l"?"r":"l";return opp};
135OpenLayers.Element={visible:function(element){return OpenLayers.Util.getElement(element).style.display!="none"},toggle:function(){for(var i=0,len=arguments.length;i<len;i++){var element=OpenLayers.Util.getElement(arguments[i]);var display=OpenLayers.Element.visible(element)?"none":"";element.style.display=display}},remove:function(element){element=OpenLayers.Util.getElement(element);element.parentNode.removeChild(element)},getHeight:function(element){element=OpenLayers.Util.getElement(element);return element.offsetHeight},
136hasClass:function(element,name){var names=element.className;return!!names&&(new RegExp("(^|\\s)"+name+"(\\s|$)")).test(names)},addClass:function(element,name){if(!OpenLayers.Element.hasClass(element,name))element.className+=(element.className?" ":"")+name;return element},removeClass:function(element,name){var names=element.className;if(names)element.className=OpenLayers.String.trim(names.replace(new RegExp("(^|\\s+)"+name+"(\\s+|$)")," "));return element},toggleClass:function(element,name){if(OpenLayers.Element.hasClass(element,
137name))OpenLayers.Element.removeClass(element,name);else OpenLayers.Element.addClass(element,name);return element},getStyle:function(element,style){element=OpenLayers.Util.getElement(element);var value=null;if(element&&element.style){value=element.style[OpenLayers.String.camelize(style)];if(!value)if(document.defaultView&&document.defaultView.getComputedStyle){var css=document.defaultView.getComputedStyle(element,null);value=css?css.getPropertyValue(style):null}else if(element.currentStyle)value=element.currentStyle[OpenLayers.String.camelize(style)];
138var positions=["left","top","right","bottom"];if(window.opera&&OpenLayers.Util.indexOf(positions,style)!=-1&&OpenLayers.Element.getStyle(element,"position")=="static")value="auto"}return value=="auto"?null:value}};
139OpenLayers.LonLat=OpenLayers.Class({lon:0,lat:0,initialize:function(lon,lat){if(OpenLayers.Util.isArray(lon)){lat=lon[1];lon=lon[0]}this.lon=OpenLayers.Util.toFloat(lon);this.lat=OpenLayers.Util.toFloat(lat)},toString:function(){return"lon\x3d"+this.lon+",lat\x3d"+this.lat},toShortString:function(){return this.lon+", "+this.lat},clone:function(){return new OpenLayers.LonLat(this.lon,this.lat)},add:function(lon,lat){if(lon==null||lat==null)throw new TypeError("LonLat.add cannot receive null values");
140return new OpenLayers.LonLat(this.lon+OpenLayers.Util.toFloat(lon),this.lat+OpenLayers.Util.toFloat(lat))},equals:function(ll){var equals=false;if(ll!=null)equals=this.lon==ll.lon&&this.lat==ll.lat||isNaN(this.lon)&&isNaN(this.lat)&&isNaN(ll.lon)&&isNaN(ll.lat);return equals},transform:function(source,dest){var point=OpenLayers.Projection.transform({"x":this.lon,"y":this.lat},source,dest);this.lon=point.x;this.lat=point.y;return this},wrapDateLine:function(maxExtent){var newLonLat=this.clone();if(maxExtent){while(newLonLat.lon<
141maxExtent.left)newLonLat.lon+=maxExtent.getWidth();while(newLonLat.lon>maxExtent.right)newLonLat.lon-=maxExtent.getWidth()}return newLonLat},CLASS_NAME:"OpenLayers.LonLat"});OpenLayers.LonLat.fromString=function(str){var pair=str.split(",");return new OpenLayers.LonLat(pair[0],pair[1])};OpenLayers.LonLat.fromArray=function(arr){var gotArr=OpenLayers.Util.isArray(arr),lon=gotArr&&arr[0],lat=gotArr&&arr[1];return new OpenLayers.LonLat(lon,lat)};
142OpenLayers.Pixel=OpenLayers.Class({x:0,y:0,initialize:function(x,y){this.x=parseFloat(x);this.y=parseFloat(y)},toString:function(){return"x\x3d"+this.x+",y\x3d"+this.y},clone:function(){return new OpenLayers.Pixel(this.x,this.y)},equals:function(px){var equals=false;if(px!=null)equals=this.x==px.x&&this.y==px.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(px.x)&&isNaN(px.y);return equals},distanceTo:function(px){return Math.sqrt(Math.pow(this.x-px.x,2)+Math.pow(this.y-px.y,2))},add:function(x,y){if(x==null||
143y==null)throw new TypeError("Pixel.add cannot receive null values");return new OpenLayers.Pixel(this.x+x,this.y+y)},offset:function(px){var newPx=this.clone();if(px)newPx=this.add(px.x,px.y);return newPx},CLASS_NAME:"OpenLayers.Pixel"});
144OpenLayers.Size=OpenLayers.Class({w:0,h:0,initialize:function(w,h){this.w=parseFloat(w);this.h=parseFloat(h)},toString:function(){return"w\x3d"+this.w+",h\x3d"+this.h},clone:function(){return new OpenLayers.Size(this.w,this.h)},equals:function(sz){var equals=false;if(sz!=null)equals=this.w==sz.w&&this.h==sz.h||isNaN(this.w)&&isNaN(this.h)&&isNaN(sz.w)&&isNaN(sz.h);return equals},CLASS_NAME:"OpenLayers.Size"});
145OpenLayers.Feature=OpenLayers.Class({layer:null,id:null,lonlat:null,data:null,marker:null,popupClass:null,popup:null,initialize:function(layer,lonlat,data){this.layer=layer;this.lonlat=lonlat;this.data=data!=null?data:{};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=
146null;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 onScreen=false;if(this.layer!=null&&this.layer.map!=null){var screenBounds=this.layer.map.getExtent();onScreen=screenBounds.containsLonLat(this.lonlat)}return onScreen},createMarker:function(){if(this.lonlat!=null)this.marker=new OpenLayers.Marker(this.lonlat,this.data.icon);return this.marker},destroyMarker:function(){this.marker.destroy()},
147createPopup:function(closeBox){if(this.lonlat!=null){if(!this.popup){var anchor=this.marker?this.marker.icon:null;var popupClass=this.popupClass?this.popupClass:OpenLayers.Popup.Anchored;this.popup=new popupClass(this.id+"_popup",this.lonlat,this.data.popupSize,this.data.popupContentHTML,anchor,closeBox)}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();
148this.popup=null}},CLASS_NAME:"OpenLayers.Feature"});OpenLayers.State={UNKNOWN:"Unknown",INSERT:"Insert",UPDATE:"Update",DELETE:"Delete"};
149OpenLayers.Feature.Vector=OpenLayers.Class(OpenLayers.Feature,{fid:null,geometry:null,attributes:null,bounds:null,state:null,style:null,url:null,renderIntent:"default",modified:null,initialize:function(geometry,attributes,style){OpenLayers.Feature.prototype.initialize.apply(this,[null,null,attributes]);this.lonlat=null;this.geometry=geometry?geometry:null;this.state=null;this.attributes={};if(attributes)this.attributes=OpenLayers.Util.extend(this.attributes,attributes);this.style=style?style:null},
150destroy:function(){if(this.layer){this.layer.removeFeatures(this);this.layer=null}this.geometry=null;this.modified=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(boundsOnly){var onScreen=false;if(this.layer&&this.layer.map){var screenBounds=this.layer.map.getExtent();if(boundsOnly){var featureBounds=this.geometry.getBounds();onScreen=screenBounds.intersectsBounds(featureBounds)}else{var screenPoly=
151screenBounds.toGeometry();onScreen=screenPoly.intersects(this.geometry)}}return onScreen},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(lonlat,toleranceLon,toleranceLat){var atPoint=false;if(this.geometry)atPoint=
152this.geometry.atPoint(lonlat,toleranceLon,toleranceLat);return atPoint},destroyPopup:function(){},move:function(location){if(!this.layer||!this.geometry.move)return undefined;var pixel;if(location.CLASS_NAME=="OpenLayers.LonLat")pixel=this.layer.getViewPortPxFromLonLat(location);else pixel=location;var lastPixel=this.layer.getViewPortPxFromLonLat(this.geometry.getBounds().getCenterLonLat());var res=this.layer.map.getResolution();this.geometry.move(res*(pixel.x-lastPixel.x),res*(lastPixel.y-pixel.y));
153this.layer.drawFeature(this);return lastPixel},toState:function(state){if(state==OpenLayers.State.UPDATE)switch(this.state){case OpenLayers.State.UNKNOWN:case OpenLayers.State.DELETE:this.state=state;break;case OpenLayers.State.UPDATE:case OpenLayers.State.INSERT:break}else if(state==OpenLayers.State.INSERT)switch(this.state){case OpenLayers.State.UNKNOWN:break;default:this.state=state;break}else if(state==OpenLayers.State.DELETE)switch(this.state){case OpenLayers.State.INSERT:break;case OpenLayers.State.DELETE:break;
154case OpenLayers.State.UNKNOWN:case OpenLayers.State.UPDATE:this.state=state;break}else if(state==OpenLayers.State.UNKNOWN)this.state=state},CLASS_NAME:"OpenLayers.Feature.Vector"});
155OpenLayers.Feature.Vector.style={"default":{fillColor:"#ee9900",fillOpacity:.4,hoverFillColor:"white",hoverFillOpacity:.8,strokeColor:"#ee9900",strokeOpacity:1,strokeWidth:1,strokeLinecap:"round",strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"inherit",fontColor:"#000000",labelAlign:"cm",labelOutlineColor:"white",labelOutlineWidth:3},"select":{fillColor:"blue",fillOpacity:.4,
156hoverFillColor:"white",hoverFillOpacity:.8,strokeColor:"blue",strokeOpacity:1,strokeWidth:2,strokeLinecap:"round",strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"pointer",fontColor:"#000000",labelAlign:"cm",labelOutlineColor:"white",labelOutlineWidth:3},"temporary":{fillColor:"#66cccc",fillOpacity:.2,hoverFillColor:"white",hoverFillOpacity:.8,strokeColor:"#66cccc",strokeOpacity:1,
157strokeLinecap:"round",strokeWidth:2,strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"inherit",fontColor:"#000000",labelAlign:"cm",labelOutlineColor:"white",labelOutlineWidth:3},"delete":{display:"none"}};
158OpenLayers.Style=OpenLayers.Class({id:null,name:null,title:null,description:null,layerName:null,isDefault:false,rules:null,context:null,defaultStyle:null,defaultsPerSymbolizer:false,propertyStyles:null,initialize:function(style,options){OpenLayers.Util.extend(this,options);this.rules=[];if(options&&options.rules)this.addRules(options.rules);this.setDefaultStyle(style||OpenLayers.Feature.Vector.style["default"]);this.id=OpenLayers.Util.createUniqueID(this.CLASS_NAME+"_")},destroy:function(){for(var i=
1590,len=this.rules.length;i<len;i++){this.rules[i].destroy();this.rules[i]=null}this.rules=null;this.defaultStyle=null},createSymbolizer:function(feature){var style=this.defaultsPerSymbolizer?{}:this.createLiterals(OpenLayers.Util.extend({},this.defaultStyle),feature);var rules=this.rules;var rule,context;var elseRules=[];var appliedRules=false;for(var i=0,len=rules.length;i<len;i++){rule=rules[i];var applies=rule.evaluate(feature);if(applies)if(rule instanceof OpenLayers.Rule&&rule.elseFilter)elseRules.push(rule);
160else{appliedRules=true;this.applySymbolizer(rule,style,feature)}}if(appliedRules==false&&elseRules.length>0){appliedRules=true;for(var i=0,len=elseRules.length;i<len;i++)this.applySymbolizer(elseRules[i],style,feature)}if(rules.length>0&&appliedRules==false)style.display="none";if(style.label!=null&&typeof style.label!=="string")style.label=String(style.label);return style},applySymbolizer:function(rule,style,feature){var symbolizerPrefix=feature.geometry?this.getSymbolizerPrefix(feature.geometry):
161OpenLayers.Style.SYMBOLIZER_PREFIXES[0];var symbolizer=rule.symbolizer[symbolizerPrefix]||rule.symbolizer;if(this.defaultsPerSymbolizer===true){var defaults=this.defaultStyle;OpenLayers.Util.applyDefaults(symbolizer,{pointRadius:defaults.pointRadius});if(symbolizer.stroke===true||symbolizer.graphic===true)OpenLayers.Util.applyDefaults(symbolizer,{strokeWidth:defaults.strokeWidth,strokeColor:defaults.strokeColor,strokeOpacity:defaults.strokeOpacity,strokeDashstyle:defaults.strokeDashstyle,strokeLinecap:defaults.strokeLinecap});
162if(symbolizer.fill===true||symbolizer.graphic===true)OpenLayers.Util.applyDefaults(symbolizer,{fillColor:defaults.fillColor,fillOpacity:defaults.fillOpacity});if(symbolizer.graphic===true)OpenLayers.Util.applyDefaults(symbolizer,{pointRadius:this.defaultStyle.pointRadius,externalGraphic:this.defaultStyle.externalGraphic,graphicName:this.defaultStyle.graphicName,graphicOpacity:this.defaultStyle.graphicOpacity,graphicWidth:this.defaultStyle.graphicWidth,graphicHeight:this.defaultStyle.graphicHeight,
163graphicXOffset:this.defaultStyle.graphicXOffset,graphicYOffset:this.defaultStyle.graphicYOffset})}return this.createLiterals(OpenLayers.Util.extend(style,symbolizer),feature)},createLiterals:function(style,feature){var context=OpenLayers.Util.extend({},feature.attributes||feature.data);OpenLayers.Util.extend(context,this.context);for(var i in this.propertyStyles)style[i]=OpenLayers.Style.createLiteral(style[i],context,feature,i);return style},findPropertyStyles:function(){var propertyStyles={};var style=
164this.defaultStyle;this.addPropertyStyles(propertyStyles,style);var rules=this.rules;var symbolizer,value;for(var i=0,len=rules.length;i<len;i++){symbolizer=rules[i].symbolizer;for(var key in symbolizer){value=symbolizer[key];if(typeof value=="object")this.addPropertyStyles(propertyStyles,value);else{this.addPropertyStyles(propertyStyles,symbolizer);break}}}return propertyStyles},addPropertyStyles:function(propertyStyles,symbolizer){var property;for(var key in symbolizer){property=symbolizer[key];
165if(typeof property=="string"&&property.match(/\$\{\w+\}/))propertyStyles[key]=true}return propertyStyles},addRules:function(rules){Array.prototype.push.apply(this.rules,rules);this.propertyStyles=this.findPropertyStyles()},setDefaultStyle:function(style){this.defaultStyle=style;this.propertyStyles=this.findPropertyStyles()},getSymbolizerPrefix:function(geometry){var prefixes=OpenLayers.Style.SYMBOLIZER_PREFIXES;for(var i=0,len=prefixes.length;i<len;i++)if(geometry.CLASS_NAME.indexOf(prefixes[i])!=
166-1)return prefixes[i]},clone:function(){var options=OpenLayers.Util.extend({},this);if(this.rules){options.rules=[];for(var i=0,len=this.rules.length;i<len;++i)options.rules.push(this.rules[i].clone())}options.context=this.context&&OpenLayers.Util.extend({},this.context);var defaultStyle=OpenLayers.Util.extend({},this.defaultStyle);return new OpenLayers.Style(defaultStyle,options)},CLASS_NAME:"OpenLayers.Style"});
167OpenLayers.Style.createLiteral=function(value,context,feature,property){if(typeof value=="string"&&value.indexOf("${")!=-1){value=OpenLayers.String.format(value,context,[feature,property]);value=isNaN(value)||!value?value:parseFloat(value)}return value};OpenLayers.Style.SYMBOLIZER_PREFIXES=["Point","Line","Polygon","Text","Raster"];
168OpenLayers.Event={observers:false,KEY_SPACE:32,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(event){return event.target||event.srcElement},isSingleTouch:function(event){return event.touches&&event.touches.length==1},isMultiTouch:function(event){return event.touches&&event.touches.length>1},isTouchEvent:function(evt){return(""+evt.type).indexOf("touch")===0||"pointerType"in evt&&(evt.pointerType===evt.MSPOINTER_TYPE_TOUCH||
169evt.pointerType==="touch")},isLeftClick:function(event){return event.which&&event.which==1||event.button&&event.button==1},isRightClick:function(event){return event.which&&event.which==3||event.button&&event.button==2},stop:function(event,allowDefault){if(!allowDefault)OpenLayers.Event.preventDefault(event);if(event.stopPropagation)event.stopPropagation();else event.cancelBubble=true},preventDefault:function(event){if(event.preventDefault)event.preventDefault();else event.returnValue=false},findElement:function(event,
170tagName){var element=OpenLayers.Event.element(event);while(element.parentNode&&(!element.tagName||element.tagName.toUpperCase()!=tagName.toUpperCase()))element=element.parentNode;return element},observe:function(elementParam,name,observer,useCapture){var element=OpenLayers.Util.getElement(elementParam);useCapture=useCapture||false;if(name=="keypress"&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||element.attachEvent))name="keydown";if(!this.observers)this.observers={};if(!element._eventCacheID){var idPrefix=
171"eventCacheID_";if(element.id)idPrefix=element.id+"_"+idPrefix;element._eventCacheID=OpenLayers.Util.createUniqueID(idPrefix)}var cacheID=element._eventCacheID;if(!this.observers[cacheID])this.observers[cacheID]=[];this.observers[cacheID].push({"element":element,"name":name,"observer":observer,"useCapture":useCapture});if(element.addEventListener)element.addEventListener(name,observer,useCapture);else if(element.attachEvent)element.attachEvent("on"+name,observer)},stopObservingElement:function(elementParam){var element=
172OpenLayers.Util.getElement(elementParam);var cacheID=element._eventCacheID;this._removeElementObservers(OpenLayers.Event.observers[cacheID])},_removeElementObservers:function(elementObservers){if(elementObservers)for(var i=elementObservers.length-1;i>=0;i--){var entry=elementObservers[i];OpenLayers.Event.stopObserving.apply(this,[entry.element,entry.name,entry.observer,entry.useCapture])}},stopObserving:function(elementParam,name,observer,useCapture){useCapture=useCapture||false;var element=OpenLayers.Util.getElement(elementParam);
173var cacheID=element._eventCacheID;if(name=="keypress")if(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||element.detachEvent)name="keydown";var foundEntry=false;var elementObservers=OpenLayers.Event.observers[cacheID];if(elementObservers){var i=0;while(!foundEntry&&i<elementObservers.length){var cacheEntry=elementObservers[i];if(cacheEntry.name==name&&cacheEntry.observer==observer&&cacheEntry.useCapture==useCapture){elementObservers.splice(i,1);if(elementObservers.length==0)delete OpenLayers.Event.observers[cacheID];
174foundEntry=true;break}i++}}if(foundEntry)if(element.removeEventListener)element.removeEventListener(name,observer,useCapture);else if(element&&element.detachEvent)element.detachEvent("on"+name,observer);return foundEntry},unloadCache:function(){if(OpenLayers.Event&&OpenLayers.Event.observers){for(var cacheID in OpenLayers.Event.observers){var elementObservers=OpenLayers.Event.observers[cacheID];OpenLayers.Event._removeElementObservers.apply(this,[elementObservers])}OpenLayers.Event.observers=false}},
175CLASS_NAME:"OpenLayers.Event"};OpenLayers.Event.observe(window,"unload",OpenLayers.Event.unloadCache,false);
176OpenLayers.Events=OpenLayers.Class({BROWSER_EVENTS:["mouseover","mouseout","mousedown","mouseup","mousemove","click","dblclick","rightclick","dblrightclick","resize","focus","blur","touchstart","touchmove","touchend","keydown"],TOUCH_MODEL_POINTER:"pointer",TOUCH_MODEL_MSPOINTER:"MSPointer",TOUCH_MODEL_TOUCH:"touch",listeners:null,object:null,element:null,eventHandler:null,fallThrough:null,includeXY:false,extensions:null,extensionCount:null,clearMouseListener:null,initialize:function(object,element,
177eventTypes,fallThrough,options){OpenLayers.Util.extend(this,options);this.object=object;this.fallThrough=fallThrough;this.listeners={};this.extensions={};this.extensionCount={};this._pointerTouches=[];if(element!=null)this.attachToElement(element)},destroy:function(){for(var e in this.extensions)if(typeof this.extensions[e]!=="boolean")this.extensions[e].destroy();this.extensions=null;if(this.element){OpenLayers.Event.stopObservingElement(this.element);if(this.element.hasScrollEvent)OpenLayers.Event.stopObserving(window,
178"scroll",this.clearMouseListener)}this.element=null;this.listeners=null;this.object=null;this.fallThrough=null;this.eventHandler=null},addEventType:function(eventName){},attachToElement:function(element){if(this.element)OpenLayers.Event.stopObservingElement(this.element);else{this.eventHandler=OpenLayers.Function.bindAsEventListener(this.handleBrowserEvent,this);this.clearMouseListener=OpenLayers.Function.bind(this.clearMouseCache,this)}this.element=element;var touchModel=this.getTouchModel();var type;
179for(var i=0,len=this.BROWSER_EVENTS.length;i<len;i++){type=this.BROWSER_EVENTS[i];if((touchModel===this.TOUCH_MODEL_POINTER||touchModel===this.TOUCH_MODEL_MSPOINTER)&&type.indexOf("touch")===0)this.addPointerTouchListener(element,type,this.eventHandler);else OpenLayers.Event.observe(element,type,this.eventHandler)}OpenLayers.Event.observe(element,"dragstart",OpenLayers.Event.stop)},on:function(object){for(var type in object)if(type!="scope"&&object.hasOwnProperty(type))this.register(type,object.scope,
180object[type])},register:function(type,obj,func,priority){if(type in OpenLayers.Events&&!this.extensions[type])this.extensions[type]=new OpenLayers.Events[type](this);if(func!=null){if(obj==null)obj=this.object;var listeners=this.listeners[type];if(!listeners){listeners=[];this.listeners[type]=listeners;this.extensionCount[type]=0}var listener={obj:obj,func:func};if(priority){listeners.splice(this.extensionCount[type],0,listener);if(typeof priority==="object"&&priority.extension)this.extensionCount[type]++}else listeners.push(listener)}},
181registerPriority:function(type,obj,func){this.register(type,obj,func,true)},un:function(object){for(var type in object)if(type!="scope"&&object.hasOwnProperty(type))this.unregister(type,object.scope,object[type])},unregister:function(type,obj,func){if(obj==null)obj=this.object;var listeners=this.listeners[type];if(listeners!=null)for(var i=0,len=listeners.length;i<len;i++)if(listeners[i].obj==obj&&listeners[i].func==func){listeners.splice(i,1);break}},remove:function(type){if(this.listeners[type]!=
182null)this.listeners[type]=[]},triggerEvent:function(type,evt){var listeners=this.listeners[type];if(!listeners||listeners.length==0)return undefined;if(evt==null)evt={};evt.object=this.object;evt.element=this.element;if(!evt.type)evt.type=type;listeners=listeners.slice();var continueChain;for(var i=0,len=listeners.length;i<len;i++){var callback=listeners[i];continueChain=callback.func.apply(callback.obj,[evt]);if(continueChain!=undefined&&continueChain==false)break}if(!this.fallThrough)OpenLayers.Event.stop(evt,
183true);return continueChain},handleBrowserEvent:function(evt){var type=evt.type,listeners=this.listeners[type];if(!listeners||listeners.length==0)return;var touches=evt.touches;if(touches&&touches[0]){var x=0;var y=0;var num=touches.length;var touch;for(var i=0;i<num;++i){touch=this.getTouchClientXY(touches[i]);x+=touch.clientX;y+=touch.clientY}evt.clientX=x/num;evt.clientY=y/num}if(this.includeXY)evt.xy=this.getMousePosition(evt);this.triggerEvent(type,evt)},getTouchClientXY:function(evt){var win=
184window.olMockWin||window,winPageX=win.pageXOffset,winPageY=win.pageYOffset,x=evt.clientX,y=evt.clientY;if(evt.pageY===0&&Math.floor(y)>Math.floor(evt.pageY)||evt.pageX===0&&Math.floor(x)>Math.floor(evt.pageX)){x=x-winPageX;y=y-winPageY}else if(y<evt.pageY-winPageY||x<evt.pageX-winPageX){x=evt.pageX-winPageX;y=evt.pageY-winPageY}evt.olClientX=x;evt.olClientY=y;return{clientX:x,clientY:y}},clearMouseCache:function(){this.element.scrolls=null;this.element.lefttop=null;this.element.offsets=null},getMousePosition:function(evt){if(!this.includeXY)this.clearMouseCache();
185else if(!this.element.hasScrollEvent){OpenLayers.Event.observe(window,"scroll",this.clearMouseListener);this.element.hasScrollEvent=true}if(!this.element.scrolls){var viewportElement=OpenLayers.Util.getViewportElement();this.element.scrolls=[window.pageXOffset||viewportElement.scrollLeft,window.pageYOffset||viewportElement.scrollTop]}if(!this.element.lefttop)this.element.lefttop=[document.documentElement.clientLeft||0,document.documentElement.clientTop||0];if(!this.element.offsets)this.element.offsets=
186OpenLayers.Util.pagePosition(this.element);return new OpenLayers.Pixel(evt.clientX+this.element.scrolls[0]-this.element.offsets[0]-this.element.lefttop[0],evt.clientY+this.element.scrolls[1]-this.element.offsets[1]-this.element.lefttop[1])},getTouchModel:function(){if(!("_TOUCH_MODEL"in OpenLayers.Events))OpenLayers.Events._TOUCH_MODEL=window.PointerEvent&&"pointer"||window.MSPointerEvent&&"MSPointer"||"ontouchdown"in document&&"touch"||null;return OpenLayers.Events._TOUCH_MODEL},addPointerTouchListener:function(element,
187type,handler){var eventHandler=this.eventHandler;var touches=this._pointerTouches;function pointerHandler(evt){handler(OpenLayers.Util.applyDefaults({stopPropagation:function(){for(var i=touches.length-1;i>=0;--i)touches[i].stopPropagation()},preventDefault:function(){for(var i=touches.length-1;i>=0;--i)touches[i].preventDefault()},type:type},evt))}switch(type){case "touchstart":return this.addPointerTouchListenerStart(element,type,pointerHandler);case "touchend":return this.addPointerTouchListenerEnd(element,
188type,pointerHandler);case "touchmove":return this.addPointerTouchListenerMove(element,type,pointerHandler);default:throw"Unknown touch event type";}},addPointerTouchListenerStart:function(element,type,handler){var touches=this._pointerTouches;var cb=function(e){if(!OpenLayers.Event.isTouchEvent(e))return;var alreadyInArray=false;for(var i=0,ii=touches.length;i<ii;++i)if(touches[i].pointerId==e.pointerId){alreadyInArray=true;break}if(!alreadyInArray)touches.push(e);e.touches=touches.slice();handler(e)};
189OpenLayers.Event.observe(element,this.getTouchModel()===this.TOUCH_MODEL_MSPOINTER?"MSPointerDown":"pointerdown",cb);var internalCb=function(e){if(!OpenLayers.Event.isTouchEvent(e))return;var up=false;for(var i=0,ii=touches.length;i<ii;++i)if(touches[i].pointerId==e.pointerId){if(this.clientWidth!=0&&this.clientHeight!=0)if(Math.ceil(e.clientX)>=this.clientWidth||Math.ceil(e.clientY)>=this.clientHeight)touches.splice(i,1);break}};OpenLayers.Event.observe(element,this.getTouchModel()===this.TOUCH_MODEL_MSPOINTER?
190"MSPointerOut":"pointerout",internalCb)},addPointerTouchListenerMove:function(element,type,handler){var touches=this._pointerTouches;var cb=function(e){if(!OpenLayers.Event.isTouchEvent(e))return;if(touches.length==1&&touches[0].pageX==e.pageX&&touches[0].pageY==e.pageY)return;for(var i=0,ii=touches.length;i<ii;++i)if(touches[i].pointerId==e.pointerId){touches[i]=e;break}e.touches=touches.slice();handler(e)};OpenLayers.Event.observe(element,this.getTouchModel()===this.TOUCH_MODEL_MSPOINTER?"MSPointerMove":
191"pointermove",cb)},addPointerTouchListenerEnd:function(element,type,handler){var touches=this._pointerTouches;var cb=function(e){if(!OpenLayers.Event.isTouchEvent(e))return;for(var i=0,ii=touches.length;i<ii;++i)if(touches[i].pointerId==e.pointerId){touches.splice(i,1);break}e.touches=touches.slice();handler(e)};OpenLayers.Event.observe(element,this.getTouchModel()===this.TOUCH_MODEL_MSPOINTER?"MSPointerUp":"pointerup",cb)},CLASS_NAME:"OpenLayers.Events"});
192OpenLayers.Tween=OpenLayers.Class({easing:null,begin:null,finish:null,duration:null,callbacks:null,time:null,minFrameRate:null,startTime:null,animationId:null,playing:false,initialize:function(easing){this.easing=easing?easing:OpenLayers.Easing.Expo.easeOut},start:function(begin,finish,duration,options){this.playing=true;this.begin=begin;this.finish=finish;this.duration=duration;this.callbacks=options.callbacks;this.minFrameRate=options.minFrameRate||30;this.time=0;this.startTime=(new Date).getTime();
193OpenLayers.Animation.stop(this.animationId);this.animationId=null;if(this.callbacks&&this.callbacks.start)this.callbacks.start.call(this,this.begin);this.animationId=OpenLayers.Animation.start(OpenLayers.Function.bind(this.play,this))},stop:function(){if(!this.playing)return;if(this.callbacks&&this.callbacks.done)this.callbacks.done.call(this,this.finish);OpenLayers.Animation.stop(this.animationId);this.animationId=null;this.playing=false},play:function(){var value={};for(var i in this.begin){var b=
194this.begin[i];var f=this.finish[i];if(b==null||f==null||isNaN(b)||isNaN(f))throw new TypeError("invalid value for Tween");var c=f-b;value[i]=this.easing.apply(this,[this.time,b,c,this.duration])}this.time++;if(this.callbacks&&this.callbacks.eachStep)if(((new Date).getTime()-this.startTime)/this.time<=1E3/this.minFrameRate)this.callbacks.eachStep.call(this,value);if(this.time>this.duration)this.stop()},CLASS_NAME:"OpenLayers.Tween"});OpenLayers.Easing={CLASS_NAME:"OpenLayers.Easing"};
195OpenLayers.Easing.Linear={easeIn:function(t,b,c,d){return c*t/d+b},easeOut:function(t,b,c,d){return c*t/d+b},easeInOut:function(t,b,c,d){return c*t/d+b},CLASS_NAME:"OpenLayers.Easing.Linear"};
196OpenLayers.Easing.Expo={easeIn:function(t,b,c,d){return t==0?b:c*Math.pow(2,10*(t/d-1))+b},easeOut:function(t,b,c,d){return t==d?b+c:c*(-Math.pow(2,-10*t/d)+1)+b},easeInOut:function(t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b},CLASS_NAME:"OpenLayers.Easing.Expo"};
197OpenLayers.Easing.Quad={easeIn:function(t,b,c,d){return c*(t/=d)*t+b},easeOut:function(t,b,c,d){return-c*(t/=d)*(t-2)+b},easeInOut:function(t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*(--t*(t-2)-1)+b},CLASS_NAME:"OpenLayers.Easing.Quad"};
198OpenLayers.Projection=OpenLayers.Class({proj:null,projCode:null,titleRegEx:/\+title=[^\+]*/,initialize:function(projCode,options){OpenLayers.Util.extend(this,options);this.projCode=projCode;if(typeof Proj4js=="object")this.proj=new Proj4js.Proj(projCode)},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(projection){var p=projection,equals=false;if(p){if(!(p instanceof
199OpenLayers.Projection))p=new OpenLayers.Projection(p);if(typeof Proj4js=="object"&&this.proj.defData&&p.proj.defData)equals=this.proj.defData.replace(this.titleRegEx,"")==p.proj.defData.replace(this.titleRegEx,"");else if(p.getCode){var source=this.getCode(),target=p.getCode();equals=source==target||!!OpenLayers.Projection.transforms[source]&&OpenLayers.Projection.transforms[source][target]===OpenLayers.Projection.nullTransform}}return equals},destroy:function(){delete this.proj;delete this.projCode},
200CLASS_NAME:"OpenLayers.Projection"});OpenLayers.Projection.transforms={};OpenLayers.Projection.defaults={"EPSG:4326":{units:"degrees",maxExtent:[-180,-90,180,90],worldExtent:[-180,-90,180,90],yx:true},"CRS:84":{units:"degrees",maxExtent:[-180,-90,180,90],worldExtent:[-180,-90,180,90]},"EPSG:900913":{units:"m",maxExtent:[-2.003750834E7,-2.003750834E7,2.003750834E7,2.003750834E7],worldExtent:[-180,-89,180,89]}};
201OpenLayers.Projection.addTransform=function(from,to,method){if(method===OpenLayers.Projection.nullTransform){var defaults=OpenLayers.Projection.defaults[from];if(defaults&&!OpenLayers.Projection.defaults[to])OpenLayers.Projection.defaults[to]=defaults}if(!OpenLayers.Projection.transforms[from])OpenLayers.Projection.transforms[from]={};OpenLayers.Projection.transforms[from][to]=method};
202OpenLayers.Projection.transform=function(point,source,dest){if(source&&dest){if(!(source instanceof OpenLayers.Projection))source=new OpenLayers.Projection(source);if(!(dest instanceof OpenLayers.Projection))dest=new OpenLayers.Projection(dest);if(source.proj&&dest.proj)point=Proj4js.transform(source.proj,dest.proj,point);else{var sourceCode=source.getCode();var destCode=dest.getCode();var transforms=OpenLayers.Projection.transforms;if(transforms[sourceCode]&&transforms[sourceCode][destCode])transforms[sourceCode][destCode](point)}}return point};
203OpenLayers.Projection.nullTransform=function(point){return point};
204(function(){var pole=2.003750834E7;function inverseMercator(xy){xy.x=180*xy.x/pole;xy.y=180/Math.PI*(2*Math.atan(Math.exp(xy.y/pole*Math.PI))-Math.PI/2);return xy}function forwardMercator(xy){xy.x=xy.x*pole/180;var