var l456bt="Invalid invoke target specified.",l709ct="Invalid argument passed; both start and end must be present.",l947dt="Invalid search results page index is passed.",l773et="Invalid element id; unable to find the element in the document body.",l611ft="Head element is missing for the current document; cannot initialize the API framework.",l662gt="Either a service url or script url is required to create VENetwork instance.",l24ht="Invalid script source url is assigned; cannot download the assigned script.",l783it="Invalid style source url is assigned; cannot attach the assigned styles.",l20jt="Invalid what/where parameters; either 'what' or 'where' must be present.",l415kt="Map is not loaded; cannot perform this operation.",l859lt="Cannot calculate route at this point; try again later.",l830mt="Invalid pushpin instance.",l455nt="Invalid pushpin id; either id is empty or another pushpin already exists with that id.",l501ot="Invalid polyline id; either id is empty or another polyline already exists with that id.",l0pt="Invalid polygon id; either id is empty or another polygon already exists with that id.",l614qt="Invalid argument; input argument '%1' is not a valid '%2' value.",l32rt="Invalid layer id; either id is empty or another layer already exists with that id.",l368st="Invalid layer type.",l353tt="Invalid layer source; either layer is empty or does not exist.",l975ut="Invalid source id; either id is empty or another tile source already exists with that id.",l389vt="Min zoom is greater than max zoom.",l968wt="Invalid opacity value.",l872xt="Unable to load source file.",l141yt="Help",L_ErrorServerBusy_Text="The server is currently busy. Try again later.",l658zt="Error",l712At="close",l723Bt="What",l147Ct="Where",l400Dt="Find",l870Et="Select a location",l594Ft="Start",l257Gt="End",l134Ht="Get directions",l669It=".. Loading ..",l79Jt="Arrive at",l99Kt="Start at",l694Lt="Step %1 of %2",l686Mt="Step",l690Nt="Shared Collection",l420Ot="Unsaved Collection",l696Pt="Untitled item",l675Qt="Severity",l13Rt="Location",l799St="Description",l738Tt="Start time",l313Ut="Est. end time",l210Vt="Serious",l100Wt="Moderate",l985Xt="Minor",l782Yt="Zoom out to view Traffic information",l87Zt="Zoom in to view Traffic information",l938ajt="Road",l876akt="Aerial",l383alt="Bird's eye",l149amt="See this location in bird's eye view.",l819ant="Show labels",l601aot="Choose the zoom level",l695apt="Change the direction of the view",l785aqt="Choose a thumbnail to display an image from the surrounding area",l421art="Bird's eye images are not available for this area.",l900ast="miles",l918att="km",l344aut="m",l676avt="yds",l932awt="2D",l279axt="3D",l712ayt="Road",l954azt="Aerial",l72aAt="Hybrid",l402aBt="2-D",l345aCt="3-D",l502aDt="Map view",l622aEt="Bird's eye view",l161aFt="Street-level view",l617aGt="Zoom out",l783aHt="Zoom in",L_MapControlNavteq_Text="© 2006 NAVTEQ",L_MapControlImageCourtesyOfNASA_Text="Image courtesy of NASA",L_MapControlHarrisCorp_Text="© Harris Corp, Earthstar Geographics LLC",L_MapControlImageCourtesyOfUSGS_Text="Image courtesy of USGS",L_MapControlImageCourtesyOfPictometry_Text="© 2005 Pictometry International Corp.",L_MapControlImageCourtesyOfEarthData_Text="© EarthData",L_MapControlImageCourtesyOfGetmapping_Text="© Getmapping plc",L_MapControlImageCourtesyOfAND_Text="© AND",L_MapControlImageCourtesyOfBlom_Text="© 2006 Blom",L_MapCopyrightMicrosoft="© 2006 Microsoft Corporation",L_MapControlPlatformName_Text="Virtual Earth",L_MapControlImageCourtesyOfGeoEye_Text="© 2006 GeoEye",L_MapControlImageCourtesyOfMapDataSciences_Text="© 2006 MapData Sciences Pty Ltd",L_MapControlImageCourtesyOfZenrin_Text="© 2006 Zenrin",L_MapControlImageCourtesyOfPasco_Text="© 2005 Pasco";RegisterNamespaces("MapControl");MapControl.Features=new function(){this.PlatformName=L_MapControlPlatformName_Text;this.Copyright=new function(){this.Navteq=L_MapControlNavteq_Text;this.ImageCourtesyOfNASA=L_MapControlImageCourtesyOfNASA_Text;this.HarrisCorp=L_MapControlHarrisCorp_Text;this.ImageCourtesyOfUSGS=L_MapControlImageCourtesyOfUSGS_Text;this.ImageCourtesyOfPictometry=L_MapControlImageCourtesyOfPictometry_Text};this.Image=new function(){this.PoweredLogo="logo_powered_by.png"};this.MapStyle=new function(){this.Road=true;this.Aerial=true;this.Hybrid=true;this.BirdsEye=true};this.BirdsEyeAtZoomLevel=10;this.ScaleBarKilometers=false;this.Traffic=new function(){this.Flow=new function(){this.Slow="0-25 mph";this.Moderate="25-45 mph";this.Fast="45+ mph"}}};var windowWidth=0,windowHeight=0,scrollbarWidth=null;function $ID(a){var b=document;return b.getElementById(a)}function $CE(a){var b=document;return b.createElement(a)}function $CENS(a){var b=document;return b.createElementNS(a)}function GetWindowWidth(){var a=0;if(typeof window.innerWidth=="number")a=window.innerWidth;else if(document.documentElement&&document.documentElement.clientWidth)a=document.documentElement.clientWidth;else if(document.body&&document.body.clientWidth)a=document.body.clientWidth;if(!a||a<100)a=100;return a}function GetWindowHeight(){var a=0;if(typeof window.innerHeight=="number")a=window.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)a=document.documentElement.clientHeight;else if(document.body&&document.body.clientHeight)a=document.body.clientHeight;if(!a||a<100)a=100;return a}function GetScrollbarWidth(){if(scrollbarWidth)return scrollbarWidth;if(navigator.userAgent.indexOf("IE")>=0){var a=document.createElement("div"),b=null;a.style.visible="hidden";a.style.overflowY="scroll";a.style.position="absolute";a.style.width=0;document.body.insertAdjacentElement("afterBegin",a);b=a.offsetWidth;a.parentNode.removeChild(a);if(!b)b=16;scrollbarWidth=b;return b}else return 0}function GetUrlPrefix(){var a=window.location.pathname.lastIndexOf("/"),b=window.location.protocol+"//"+window.location.hostname+window.location.pathname.substring(0,a+1);return b}function GetUrlParameterString(){var a=window.location.search;if(a.length==0||a.indexOf("?")==-1)return "";return a.substr(a.indexOf("?")+1)}function CheckWipExistence(){var a=GetUrlParameterString();if(a!=""&&a.indexOf("wip=")>-1)return true;return false}function GetUrlParameters(){var b=[],d=GetUrlParameterString();if(!d)return b;var e=d.split("&");for(var c=0;cc)f=f|a.RIGHT;if(he)f=f|a.TOP;return f}this.Clip=h}VE_LineClip=new VE_MapLineClip;var L_GraphicsInitError_Text="Your Web browser does not support SVG or VML. Some graphics features may not function properly.";RegisterNamespaces("Msn.Drawing");Msn.Drawing.Graphic=function(){};Msn.Drawing.Graphic.CreateGraphic=function(f,b){if(document.all)return new Msn.Drawing.VMLGraphic(f,b);else{var c=0,e=0,g=new RegExp("Firefox/(.*)"),d=g.exec(navigator.userAgent);if(d[1]){var a=d[1].split(".");if(a){c=a[0];e=a[1];if(parseInt(c)>0&&parseInt(e)>=5||parseInt(c)>=2)return new Msn.Drawing.SVGGraphic(f,b)}}throw new Msn.Drawing.Exception(L_GraphicsInitError_Text)}};Msn.Drawing.BaseGraphic=function(){this._stroke=new Msn.Drawing.Stroke};Msn.Drawing.BaseGraphic.prototype.CreatePrimitive=function(){};Msn.Drawing.BaseGraphic.prototype.DrawPrimitive=function(d,c,a){var b=new Msn.Drawing.MapSymbol;if(a._stroke){b.stroke_weight=a._stroke.width;b.joinstyle=a._stroke.linejoin;b.stroke_color=a._stroke.color.ToHexString();b.stroke_dashstyle=a._stroke.linecap;b.stroke_opacity=a._stroke.color.A.toString();b.fill_color=a._stroke.fillcolor.ToHexString();b.fill_opacity=a._stroke.fillcolor.A.toString()}c.symbol=b;var e=a.CreatePrimitive(d,c,"");return e};Msn.Drawing.BaseGraphic.prototype.SetStroke=function(a){this._stroke=a};Msn.Drawing.VMLGraphic=function(c,d){Msn.Drawing.BaseGraphic.call();var g=new Msn.Drawing.Color(255,0,0,1),f=new Msn.Drawing.Color(255,0,0,1),e=1,a=c;c.unselectable="on";var b=[];this.DrawPrimitive=function(e){var c=Msn.Drawing.VMLGraphic.prototype.DrawPrimitive(d,e,this);if(a&&c){a.appendChild(c);b.push(c)}};this.resetOffset=function(){};this.SetZIndex=function(a){e=a};this.Clear=function(){var a=null,c=null;while(a=b.pop()){c=a.parentElement;if(c)c.removeChild(a);a=null}};this.Destroy=function(){this.Clear();a=null}};Msn.Drawing.VMLGraphic.prototype=new Msn.Drawing.BaseGraphic;Msn.Drawing.VMLGraphic.prototype.CreatePrimitive=function(d,a){var b=null;if(a.type==MC_GEO_TYPE_POINT){if(a.symbol.shape_drawtype=="v:oval"||a.symbol.shape_drawtype=="v:rect"||a.symbol.shape_drawtype=="v:roundrect")b=document.createElement(a.symbol.shape_drawtype);else b=document.createElement("v:roundrect");var f=LatLongtoRoundedPixel(d,a.points[1],a.points[0]);b.style.width=a.symbol.style_width;b.style.height=a.symbol.style_height;b.style.left=-5+f.x+d.GetOffsetX()+"px";b.style.top=-5+f.y+d.GetOffsetY()+"px";b.style.position=a.symbol.style_position}else{b=document.createElement("v:shape");var g=null;g=GetVmlPath(d,a);var h=d.GetMapWidth(),i=d.GetMapHeight();b.style.top=d.GetOffsetY()+"px";b.style.left=d.GetOffsetX()+"px";b.style.width=h+"px";b.style.height=i+"px";b.coordsize=h+" "+i;b.style.position=a.symbol.style_position;b.path=g}b.id=a.id!=0?a.id:a.iid;b.style.zIndex=a.symbol.style_zIndex;b.unselectable=a.symbol.shape_unselectable;var c=document.createElement("v:stroke");c.joinstyle=a.symbol.stroke_joinstyle;c.endcap=a.symbol.stroke_endcap;c.opacity=a.symbol.stroke_opacity;c.dashstyle=a.symbol.stroke_dashstyle;c.filltype=a.symbol.stroke_filltype;c.color2=a.symbol.stroke_color2;c.color=a.symbol.stroke_color;c.weight=a.symbol.stroke_weight;c.linestyle=a.symbol.stroke_style;if(a.type==MC_GEO_TYPE_POLYGON){var e=document.createElement("v:fill");e.color=a.symbol.fill_color;e.colors=a.symbol.fill_colors;e.color2=a.symbol.fill_color2;e.type=a.symbol.fill_type;e.opacity=a.symbol.fill_opacity;b.appendChild(e)}else if(a.type==MC_GEO_TYPE_POLYLINE){b.fill=false;b.filled=false}else if(a.type==MC_GEO_TYPE_POINT){b.style.filter=a.symbol.style_filter;b.style.zIndex=a.symbol.style_zIndex;b.style.display=a.symbol.style_display;b.unselectable=a.symbol.shape_unselectable;b.fill=true;b.filled=true;b.fillcolor=a.symbol.fill_color}b.appendChild(c);return b};Msn.Drawing.SVGGraphic=function(c,b){Msn.Drawing.BaseGraphic.call();var g=new Msn.Drawing.Color(255,0,0,1),f=new Msn.Drawing.Color(0,255,0,1);_curmap=b;this._svgLayer=null;var d=60,e=c,a=[];this.DrawPrimitive=function(d){var c=Msn.Drawing.SVGGraphic.prototype.DrawPrimitive(b,d,this);if(c)a.push(c)};this.resetOffset=function(){_curmap.resetSvgLayer()};this.SetZIndex=function(a){d=a;if(this._svgLayer!=null)this._svgLayer.SetZIndex(a)};this.Destroy=function(){this.Clear()};this.Clear=function(){if(this._svgLayer==null)return;var b=null,c=null;while(b=a.pop()){c=b.parentNode;if(c)c.removeChild(b);b=null}}};Msn.Drawing.SVGGraphic.prototype=new Msn.Drawing.BaseGraphic;Msn.Drawing.SVGGraphic.prototype.CreatePrimitive=function(a,b,c){this._svgLayer=a.getSvgLayer();return this._svgLayer.addShape(b,c)};Msn.Drawing.SvgLayer=function(e,f){var c=f,b=null,d=false,g=false;if(d==false){d=true;b=document.createElementNS("http://www.w3.org/2000/svg","svg");b.setAttribute("height","100%");b.setAttribute("width","100%");e.appendChild(b);this.lineDashStyles=[];var a=this.lineDashStyles;a[0]=new Array("Solid","none");a[1]=new Array("ShortDash","6,2");a[2]=new Array("ShortDot","2,2");a[3]=new Array("ShortDashDot","6,2,2,2");a[4]=new Array("ShortDashDotDot","6,2,2,2,2,2");a[5]=new Array("Dot","2,6");a[6]=new Array("Dash","10,6");a[7]=new Array("LongDash","20,6");a[8]=new Array("DashDot","10,6,2,6");a[9]=new Array("LongDashDot","20,6,2,6");a[10]=new Array("LongDashDotDot","20,6,2,6,2,6")}this.addShape=function(d){if(b==null)return;var a=null;if(d.type==MC_GEO_TYPE_POINT){a=document.createElementNS("http://www.w3.org/2000/svg","rect");var h=LatLongtoRoundedPixel(c,d.points[1],d.points[0]);a.setAttribute("x",h.x-6);a.setAttribute("y",h.y-6);a.setAttribute("width","6pt");a.setAttribute("height","6pt");a.setAttribute("stroke-width",d.symbol.stroke_weight);a.setAttribute("stroke",d.symbol.stroke_color);a.setAttribute("fill",d.symbol.fill_color);b.appendChild(a)}else if(d.type==MC_GEO_TYPE_POLYLINE||d.type==MC_GEO_TYPE_POLYGON){a=document.createElementNS("http://www.w3.org/2000/svg","polyline");a.setAttribute("points",GetSvgPath(c,d.points));a.setAttribute("stroke",d.symbol.stroke_color);a.setAttribute("stroke-width",d.symbol.stroke_weight);var g=this.lineDashStyles;for(var f=0;f1){e=parseInt(d.symbol.fill_opacity);if(e==NaN)e=0.3;else e/=100}a.setAttribute("fill-opacity",e)}}if(a){a.setAttribute("id",d.id!=0?d.id:d.iid);b.appendChild(a)}return a};this.SetZIndex=function(a){if(!c.bShowSVG)return;c.GetsvgDiv().style.zIndex=a}};function GetSvgPath(f,c){var b="",a=0,d=c.length/2,g=0;while(a=4){var d=LatLongtoRoundedPixel(g,c[b*2+1],c[b*2]);if(!d)return null;e=e.concat(d.x,",",d.y," ","l ");++b}var f=false;if(a.type!=MC_GEO_TYPE_POINT)if(a.minX==null||a.minY==null||a.maxX==null||a.maxY==null){f=false;a.minX=360;a.minY=360;a.maxX=-360;a.maxY=-360}else f=true;while(ba.longitude){e=b.longitude;b.longitude=a.longitude;a.longitude=e}if(b.latitude>a.latitude){e=b.latitude;b.latitude=a.latitude;a.latitude=e}var f=null;if(b!=null&&a!=null)f=new Msn.VE.Bounds(0,0,b.longitude,b.latitude,a.longitude,a.latitude);else f=new Msn.VE.Bounds(0,0,-Infinity,-Infinity,Infinity,Infinity);return f}function GetBufferedMapViewBounds(b,a){var c=null,e=Math.abs(a.x2-a.x1),d=Math.abs(a.y2-a.y1);c=new Msn.VE.Bounds(0,0,a.x1-b*e,a.y1-b*d,a.x2+b*e,a.y2+b*d);return c}function IsContainedInView(a,b){var c=false;if(b.x1>a.x1&&b.y1>a.y1&&b.x2b.x2||a.y2b.y2)return false;return true}function IsRecIntersect(c,d,a,b,g,h,e,f){if(ae||bf)return false;return true}RegisterNamespaces("Msn.VE");$MVEM=new function(){this.IsEnabled=function(a){if(a==undefined)throw new VEException("$MVEM.IsEnabled","err_invalidfeature","Specified feature is invalid.");return a}};function VEException(b,c,a){this.source=b;this.name=c;this.message=a}VEException.prototype.Name=this.name;VEException.prototype.Source=this.source;VEException.prototype.Message=this.message;if(typeof registerNamespace!="undefined")registerNamespace("Microsoft.Web.UI");else{if(typeof Microsoft=="undefined")Microsoft={};if(typeof Microsoft.Web=="undefined")Microsoft.Web={};if(typeof Microsoft.Web.UI=="undefined")Microsoft.Web.UI={}}Microsoft.Web.UI.IEGlyphStates={Unselected:"-unselected",Hover:"-hover",Pressed:"-pressed"};Microsoft.Web.UI.IEGlyph=function(j,l){var k=Microsoft.Web.UI,a,d,c,b;m();function m(){a=document.createElement("div");if(j)a.id=j;b=l||"ieglyph";d=b+k.IEGlyphStates.Hover;c=b+k.IEGlyphStates.Pressed;a.className=b;if(!document.all)return;a.attachEvent("onmouseover",e);a.attachEvent("onmousedown",i);a.attachEvent("onmouseup",e);a.attachEvent("onmouseout",f);window.attachEvent("onunload",n)}this.getElement=function(){return a};this.setContent=function(b){a.innerHTML=b};function n(){a.detachEvent("onmouseover",e);a.detachEvent("onmousedown",i);a.detachEvent("onmouseup",e);a.detachEvent("onmouseout",f);a=null;d=null;c=null;b=null}function e(){f();h(d)}function i(){h(c)}function f(){g(d);g(c)}function h(b){a.className+=" "+b}function g(b){var c=new RegExp(" "+b,"g");a.className=a.className.replace(c,"")}};RegisterNamespaces("Msn.VE");Msn.VE.PushPinTypes={Default:0,SearchResult:1,Annotation:2,Direction:3,DirectionTemp:4,TrafficLight:5,TrafficOthers:6,YouAreHere:7,AdStandard:8,AdWide:9,DirectionStep:10};Msn.VE.MapActionMode={Mode2D:1,Mode3D:2};Msn.VE.MapControl=function(p_elSource,p_htParams,p_parentAPIControl){var offsetMeters=20971520,baseMetersPerPixel=163840,buffer=0,animatedMovementEnabled=true,zoomTotalSteps=6,keyboardPanSpeed=15,panToLatLongSpeed=15,earthRadius=6378137,earthCircumference=earthRadius*2*Math.PI,projectionOffset=earthCircumference*0.5,minZoom=1,maxZoom=19,emptyTile="http://virtualearth.msn.com/i/spacer.gif",minLatitude=-85,maxLatitude=85,minLongitude=-180,maxLongitude=180,tileSize=256,generations=new Object,vemanifestdomain="http://maps.live.com",kbInputZIndex=0,containerZIndex=0,mapZIndex=1,swapZIndex=1,baseZIndex=2,debugZIndex=3,baseZIndex=11,topZIndex=20,p_this=this,roadStyle="r",hybridStyle="h",aerialStyle="a",obliqueStyle="o",mapTiles="Road",trafficTiles="Traffic",marketMaxZoom=1,currentView=new Msn.VE.MapView(p_this),preferredView=new Msn.VE.MapView(p_this),previousZoomLevel=1,previousCenter=null,lastViewChangeType=null,previousMapStyle=null,lastOrthoZoomLevel=15,lastOrthoMapStyle=roadStyle,x=0,y=0,width=0,height=0,trafficAvailable=false,tileLayerManager=new VETileLayerManager,originX=0,originY=0,offsetX=0,offsetY=0,tileViewportX1=0,tileViewportY1=0,tileViewportX2=0,tileViewportY2=0,tileViewportWidth=0,tileViewportHeight=0,dragging=false,keyboardPan=false,lastMouseX=0,lastMouseY=0,zooming=false,zoomCounter=0,panning=false,panCounter=0,panningX=0,panningY=0,panLatitude=null,panLongitude=null,pushpins=[],lines=[],map=document.createElement("div"),keyboard=document.createElement("input");keyboard.id="wl_ve_mapInput";var logo=null,scaleBar=null,copyright=null,dashboardContainer=null,dashboard=null,minimapControl=null,minimapContainer=null,mouseZoomDisabled=false,isMinimap=false,boxTool=null,panTool=null,currentTool=null,orthoMode=null,obliqueMode=null,threeDMode=null,currentMode=null,currentBounds=null,eventTable=[],debug=false,graphicCanvas=null,svgLayer=null,svgDiv=null,bShowSVG=true;this.GetsvgDiv=function(){return svgDiv};var mapCenterOffset=new Msn.VE.Pixel(0,0),resizeInProgress=false,spacelandCreated=false,spacecontrol=false,spacediv=null,init3dparam=null,resizeTimer=null;function SetChildDiv(a){map.appendChild(a)}function EnableGeoCommunity(a){hijackMouseMove=a}function IsGeoCommunityEnabled(){return hijackMouseMove}function GetOffsetX(){return offsetX}function GetOffsetY(){return offsetY}this.Init=function(){generations[roadStyle]=62;generations[aerialStyle]=62;generations[hybridStyle]=62;generations[obliqueStyle]=62;orthoMode=new OrthoMode;orthoMode.Init();if(p_htParams.obliqueEnabled&&p_htParams.obliqueUrl){obliqueMode=new ObliqueMode;obliqueMode.Init(p_htParams.obliqueUrl)}if(typeof spacelandMode!="undefined"){threeDMode=new ThreeDMode;threeDMode.Init()}UpdateFromParent();map.className="Map";map.style.zIndex=mapZIndex;p_elSource.appendChild(map);keyboard.className="KeyboardInput";p_elSource.appendChild(keyboard);if(!p_htParams.fixedView){p_elSource.attachEvent("onmousedown",MouseDown);p_elSource.attachEvent("onmouseup",MouseUp);p_elSource.attachEvent("onmousemove",MouseMove);p_elSource.attachEvent("onmousewheel",MouseWheel);p_elSource.attachEvent("ondblclick",MouseDoubleClick);p_elSource.attachEvent("oncontextmenu",ContextMenu);if(window.addEventListener&&navigator.product&&navigator.product=="Gecko")p_elSource.addEventListener("DOMMouseScroll",MouseWheel,false);buffer=tileSize}if(p_htParams.buffer!=undefined&&p_htParams.buffer!=null)buffer=p_htParams.buffer;var startIn3DMode=false;if((p_htParams.altitude&&p_htParams.altitude>-1000||p_htParams.tilt&&p_htParams.tilt!=-90||p_htParams.direction&&p_htParams.direction!=0)&&typeof spacelandMode!="undefined"){startIn3DMode=true;currentMode=threeDMode}if(p_htParams.latitude!=null&&p_htParams.longitude!=null&&p_htParams.zoomlevel!=null&&p_htParams.mapstyle!=null)try{var initialView=new Msn.VE.MapView(p_this);initialView.SetMapStyle(ValidateMapStyle(p_htParams.mapstyle),p_htParams.obliqueSceneId);if(p_htParams.altitude)initialView.SetAltitude(p_htParams.altitude);if(p_htParams.tilt)initialView.SetTilt(p_htParams.tilt);if(p_htParams.direction)initialView.SetDirection(p_htParams.direction);if(p_htParams.boundingBox)initialView.SetLatLongRectangle(p_htParams.boundingBox);else{initialView.SetCenterLatLong(new Msn.VE.LatLong(eval(p_htParams.latitude),eval(p_htParams.longitude)));initialView.SetZoomLevel(eval(p_htParams.zoomlevel))}if(!startIn3DMode){SetMapTiles();SetView(initialView)}else currentView=initialView}catch(a){if(!startIn3DMode)SetDefaultView();else currentView=initialView}else if(!startIn3DMode)SetDefaultView();else currentView=initialView;if(typeof p_htParams.showMinimap!="undefined"&&p_htParams.showMinimap)CreateMinimap(p_htParams.dashboardX,p_htParams.dashboardY,null);if(p_htParams.showDashboard)CreateDashboard(p_htParams.dashboardX,p_htParams.dashboardY,p_htParams.dashboardSize,p_htParams.dashboardId);if(startIn3DMode)this.Init3DOnly();else this.Init2DOnly();if(typeof p_htParams.hideCopyright=="undefined"||!p_htParams.hideCopyright){copyright=new Copyright(p_elSource);copyright.Init();copyright.Update()}};this.Init2DOnly=function(){if(!p_htParams.fixedView){boxTool=new BoxTool;boxTool.Init();panTool=new PanTool;panTool.Init();currentTool=panTool;keyboard.attachEvent("onkeydown",KeyDown);keyboard.attachEvent("onkeyup",KeyUp);keyboard.attachEvent("onblur",StopKeyboardPan);p_elSource.attachEvent("onmousewheel",MouseWheel);if(window.addEventListener&&navigator.product&&navigator.product=="Gecko")p_elSource.addEventListener("DOMMouseScroll",MouseWheel,false)}if(!p_htParams.disableLogo){logo=new Logo(p_elSource);logo.Init()}if(p_htParams.showScaleBar){scaleBar=new ScaleBar(p_elSource);scaleBar.Init();AttachEvent("onendzoom",scaleBar.Update);AttachEvent("onendcontinuouspan",scaleBar.Update);AttachEvent("onresize",scaleBar.Reposition)}if(obliqueMode&¤tMode!=obliqueMode)obliqueMode.UpdateAvailability();try{graphicCanvas=Msn.Drawing.Graphic.CreateGraphic(map,this);graphicCanvas.SetZIndex(17)}catch(a){}SetMapTiles();SetView(null);Fire("oninitmode",Msn.VE.MapActionMode.Mode2D)};this.Init3DOnly=function(){if(dashboardContainer)ShowShim(dashboardContainer);if(minimapContainer)ShowShim(minimapContainer);try{SetView(null)}catch(b){SetDefaultView()}if(!spacelandCreated)return;if(typeof p_htParams.hideCopyright=="undefined"||!p_htParams.hideCopyright)spacecontrol.ShowCopyright=true;if(p_htParams.showScaleBar)spacecontrol.ShowScale=true;if(window.locale)spacecontrol.CurrentLocale=window.locale;var a="Road";if(currentView.mapStyle=="a")a="Aerial";if(currentView.mapStyle=="h")a="Hybrid";spacecontrol.AddImageSource("Terrain","Texture",vemanifestdomain+"Manifests/"+a+"ContentManifest.xml",0,1);spacecontrol.AddElevationSource("Terrain","DEM",vemanifestdomain+"Manifests/DemContentManifest.xml",0);spacecontrol.AddModelSource("Model","Model",vemanifestdomain+"Manifests/ModelContentManifest.xml");if(!spacelandAPIMode){spacecontrol.AttachEvent("OnMouseDown","OnSpacelandKeyOrMouseDown");spacecontrol.AttachEvent("OnKeyDown","OnSpacelandKeyOrMouseDown")}spacecontrol.AttachEvent("OnCameraChanged","OnSpacelandUpdateViewpoint");spacecontrol.AttachEvent("OnHover","OnSpacelandPushpinHover");spacecontrol.AttachEvent("OnHoverEnd","OnSpacelandHoverEnd");spacecontrol.AttachEvent("OnDropGeometry","OnSpacelandDropGeometry");spacecontrol.AttachEvent("OnCursorPositionUpdate","OnSpacelandCursorPositionUpdate");Fire("oninitmode",Msn.VE.MapActionMode.Mode3D)};this.ShowSVG=function(a){bShowSVG=a};this.getSvgLayer=function(){if(svgLayer==null){svgDiv=document.createElement("div");svgDiv.style.position="absolute";if(bShowSVG)svgDiv.style.zIndex=60;else svgDiv.style.zIndex=-1;this.resizeSVG();map.appendChild(svgDiv);svgLayer=new Msn.Drawing.SvgLayer(svgDiv,this)}return svgLayer};this.resetSvgLayer=function(){this.getSvgLayer();svgDiv.style.top=-parseInt(map.style.top)+"px";svgDiv.style.left=-parseInt(map.style.left)+"px"};this.resizeSVG=function(){if(svgDiv!=null){var b=GetWindowWidth(),a=GetWindowHeight();svgDiv.style.top="0px";svgDiv.style.left="0px";svgDiv.style.width=b+"px";svgDiv.style.height=a+"px"}};this.GetGraphic=function(){return graphicCanvas};this.GetDashboard=function(){return dashboard};this.GetMinimap=function(){return minimapControl};this.DisableZoomEvents=function(a){mouseZoomDisabled=a};this.SetMinimapMode=function(){mouseZoomDisabled=true;isMinimap=true};this.Destroy=function(){if(copyright){copyright.Destroy();copyright=null}if(currentMode==threeDMode&¤tMode!=null)this.Destroy3DOnly();else this.Destroy2DOnly();if(!p_htParams.fixedView){p_elSource.detachEvent("onmousedown",MouseDown);p_elSource.detachEvent("onmouseup",MouseUp);p_elSource.detachEvent("onmousemove",MouseMove);p_elSource.detachEvent("ondblclick",MouseDoubleClick);p_elSource.detachEvent("oncontextmenu",ContextMenu)}while(pushpins.length)pushpins.pop().Destroy();pushpins=null;ClearLines();if(dashboard){dashboard.Destroy();dashboard=null}if(dashboardContainer){dashboardContainer.detachEvent("onmousedown",IgnoreEvent);dashboardContainer.detachEvent("onmouseup",IgnoreEvent);dashboardContainer.detachEvent("onmousemove",DashboardContainerMouseMoveEvent);dashboardContainer.detachEvent("onmousewheel",IgnoreEvent);dashboardContainer.detachEvent("ondblclick",IgnoreEvent);dashboardContainer.detachEvent("oncontextmenu",IgnoreEvent);dashboardContainer.detachEvent("onkeydown",IgnoreEvent);dashboardContainer.detachEvent("onkeyup",IgnoreEvent);p_elSource.removeChild(dashboardContainer);dashboardContainer=null}if(minimapControl){minimapControl.Destroy();minimapControl=null}if(minimapContainer){minimapContainer.detachEvent("onmousedown",IgnoreEvent);minimapContainer.detachEvent("onmouseup",IgnoreEvent);minimapContainer.detachEvent("onmousemove",IgnoreEvent);minimapContainer.detachEvent("onmousewheel",IgnoreEvent);minimapContainer.detachEvent("ondblclick",IgnoreEvent);minimapContainer.detachEvent("oncontextmenu",IgnoreEvent);minimapContainer.detachEvent("onkeydown",IgnoreEvent);minimapContainer.detachEvent("onkeyup",IgnoreEvent);p_elSource.removeChild(minimapContainer);minimapContainer=null}if(orthoMode){orthoMode.Destroy();orthoMode=null}if(obliqueMode){obliqueMode.Destroy();obliqueMode=null}if(threeDMode){threeDMode.Destroy();threeDMode=null}DestroyEventTable();p_elSource=p_this=null};this.Destroy2DOnly=function(){if(!p_htParams.fixedView){keyboard.detachEvent("onkeydown",KeyDown);keyboard.detachEvent("onkeyup",KeyUp);keyboard.detachEvent("onblur",StopKeyboardPan);p_elSource.detachEvent("onmousewheel",MouseWheel)}tileLayerManager.ClearTileLayers();if(scaleBar){DetachEvent("onendzoom",scaleBar.Update);DetachEvent("onendcontinuouspan",scaleBar.Update);DetachEvent("onresize",scaleBar.Reposition);scaleBar.Destroy();scaleBar=null}if(logo){logo.Destroy();logo=null}if(boxTool){boxTool.Destroy();boxTool=null}if(panTool){panTool.Destroy();panTool=null}if(graphicCanvas)graphicCanvas.Destroy();Fire("ondestroymode",Msn.VE.MapActionMode.Mode2D)};this.Destroy3DOnly=function(){spacelandCreated=false;spacecontrol.Close();spacecontrol=false;window.status="";if(spacediv!=null){spacediv.removeNode(true);spacediv=null}destroyIFrameShim("dashboard");destroyIFrameShim("minimap");Fire("ondestroymode",Msn.VE.MapActionMode.Mode3D)};function UpdateFromParent(){if(currentMode!=null&¤tMode==threeDMode){x=GetLeftPosition(spacediv);y=GetTopPosition(spacediv)-27;width=spacediv.offsetWidth;height=spacediv.offsetHeight}else{x=GetLeftPosition(p_elSource);y=GetTopPosition(p_elSource);width=p_elSource.offsetWidth;height=p_elSource.offsetHeight}}function CreateDashboard(c,d,a,b){if(!a)a=Msn.VE.DashboardSize.Normal;if(a==Msn.VE.DashboardSize.Tiny)a=Msn.VE.DashboardSize.Small;dashboardContainer=document.createElement("div");if(b==null||typeof b=="undefined")b="dashboard";dashboardContainer.id=b;p_elSource.appendChild(dashboardContainer);dashboardContainer.className="Dashboard Dashboard_"+a;dashboardContainer.style.top=d+"px";dashboardContainer.style.left=c+"px";dashboardContainer.attachEvent("onmousedown",IgnoreEvent);dashboardContainer.attachEvent("onmouseup",IgnoreEvent);dashboardContainer.attachEvent("onmousemove",DashboardContainerMouseMoveEvent);dashboardContainer.attachEvent("onmousewheel",IgnoreEvent);dashboardContainer.attachEvent("ondblclick",IgnoreEvent);dashboardContainer.attachEvent("oncontextmenu",IgnoreEvent);dashboardContainer.attachEvent("onkeydown",IgnoreEvent);dashboardContainer.attachEvent("onkeyup",IgnoreEvent);if(typeof spacelandMode!="undefined"){dashboard=new Msn.VE.NavAction(dashboardContainer,p_this,a);dashboard.Init()}else{dashboard=new Msn.VE.Dashboard(dashboardContainer,p_this,a);dashboard.Init()}}function DashboardContainerMouseMoveEvent(a){a=GetEvent(a);return false}function CreateMinimap(){if(typeof spacelandMode!="undefined"){minimapContainer=document.createElement("div");minimapContainer.id="minimap";p_elSource.appendChild(minimapContainer);minimapContainer.className="expanded smallMinimap";minimapContainer.attachEvent("onmousedown",IgnoreEvent);minimapContainer.attachEvent("onmouseup",IgnoreEvent);minimapContainer.attachEvent("onmousemove",IgnoreEvent);minimapContainer.attachEvent("onmousewheel",IgnoreEvent);minimapContainer.attachEvent("ondblclick",IgnoreEvent);minimapContainer.attachEvent("oncontextmenu",IgnoreEvent);minimapContainer.attachEvent("onkeydown",IgnoreEvent);minimapContainer.attachEvent("onkeyup",IgnoreEvent);minimapControl=new Msn.VE.Minimap(minimapContainer,p_this);minimapControl.Init()}}function SetDefaultView(){var a=new Msn.VE.MapView(p_this);a.SetCenterLatLong(new Msn.VE.LatLong(0,0));a.SetZoomLevel(1);a.SetMapStyle(roadStyle);SetMapTiles();SetView(a)}function SetAltitude(b){var a=currentView.MakeCopy();a.SetAltitude(b);SetView(a)}function SetTilt(b){var a=currentView.MakeCopy();a.SetTilt(b);SetView(a)}function SetDirection(b){var a=currentView.MakeCopy();a.SetDirection(b);SetView(a)}function GetCurrentMode(){return currentMode}function GetMapWidth(){return width}function GetMapHeight(){return height}function GetCurrentMapView(){return preferredView.MakeCopy()}function SetCenter(c,b){var a=preferredView.MakeCopy();a.SetCenterLatLong(new Msn.VE.LatLong(c,b));SetView(a)}function SetMapStyle(b,e,d){var a=currentView.MakeCopy();a.SetMapStyle(ValidateMapStyle(b),e,d);if(currentView.mapStyle!=b)if(b==obliqueStyle){Fire("onstartmapstyleoblique");a.SetZoomLevel(1);lastOrthoZoomLevel=currentView.zoomLevel;lastOrthoMapStyle=currentView.mapStyle}else if(currentView.mapStyle==obliqueStyle){Fire("onendmapstyleoblique");a.SetZoomLevel(lastOrthoZoomLevel)}var c=currentView.GetCenterLatLong();a.latlong.latitude=c.latitude;a.latlong.longitude=c.longitude;SetView(a)}function SetScaleBarDistanceUnit(a){scaleBar.SetDistanceUnit(a);scaleBar.Update()}function ValidateMapStyle(a){if(a==aerialStyle||a==hybridStyle||a==obliqueStyle)return a;else return roadStyle}function GetCenterLatitude(){if(currentMode==threeDMode){if(spacelandCreated)return spacecontrol.GetCenterLatitude();return null}else if(currentView!=null&¤tView!="undefined"&¤tView.latlong!=null&¤tView.latlong!="undefined"&¤tView.latlong.latitude!=null&¤tView.latlong.latitude!="undefined")return currentView.GetCenterLatLong().latitude;return null}function GetCenterLongitude(){if(currentMode==threeDMode){if(spacelandCreated)return spacecontrol.GetCenterLongitude();return null}else if(currentView!=null&¤tView!="undefined"&¤tView.latlong!=null&¤tView.latlong!="undefined"&¤tView.latlong.longitude!=null&¤tView.latlong.longitude!="undefined")return currentView.GetCenterLatLong().longitude;return null}function ComputeCenterPoint(a){currentView.latlong=currentMode.PixelToLatLong(currentView.center,currentView.zoomLevel);if(a)preferredView.Copy(currentView);if(obliqueMode)obliqueMode.UpdateAvailability()}function GetLatitude(c){var b=new Msn.VE.Pixel(originX+offsetX+width/2,originY+offsetY+c),a=currentMode.PixelToLatLong(b,currentView.zoomLevel);if(!a)return null;return a.latitude}function GetLongitude(c){var b=new Msn.VE.Pixel(originX+offsetX+c,originY+offsetY+height/2),a=currentMode.PixelToLatLong(b,currentView.zoomLevel);if(!a)return null;return a.longitude}function GetY(b){var c=new Msn.VE.LatLong(b,currentView.center.longitude),a=LatLongToPixel(c);if(!a)return null;return MathRound(a.y)}function GetX(b){var c=new Msn.VE.LatLong(currentView.center.latitude,b),a=LatLongToPixel(c);if(!a)return null;return MathRound(a.x)}function LatLongToPixel(b){var a=currentMode.LatLongToPixel(b,currentView.zoomLevel);if(a==null)return null;if(currentMode==threeDMode){a.x+=parseInt(spacediv.style.left);a.y+=parseInt(spacediv.style.top)}else{a.x-=originX+offsetX;a.y-=originY+offsetY}return a}function PixelToLatLong(a){var b=new Msn.VE.Pixel(a.x+originX+offsetX,a.y+originY+offsetY);return currentMode.PixelToLatLong(b,currentView.zoomLevel)}function GetZoomLevel(){return currentView.zoomLevel}function GetMapStyle(){return currentView.mapStyle}function GetAltitude(){return currentView.GetAltitude()}function GetTilt(){return currentView.GetTilt()}function GetDirection(){return currentView.GetDirection()}function EnableMode(b,a){switch(b){case Msn.VE.MapActionMode.Mode3D:this._Enable3DMode(a);break;case Msn.VE.MapActionMode.Mode2D:default:this._Disable3DMode(a);break}}function _Enable3DMode(a){if(currentMode!=threeDMode&¤tMode!=null){currentMode=threeDMode;this.Destroy2DOnly();if(typeof a!="undefined")init3dparam=a;this.Init3DOnly()}}function _Disable3DMode(){if(currentMode==threeDMode&¤tMode!=null){currentMode=orthoMode;this.Destroy3DOnly();this.Init2DOnly()}SetView(null)}function Get3DControl(){if(spacelandCreated)return spacecontrol;return null}function IsModeEnabled(b){var a=currentMode!=null&¤tMode==threeDMode;switch(b){case Msn.VE.MapActionMode.Mode2D:return !a;break;case Msn.VE.MapActionMode.Mode3D:return a;break}return false}function Get3DVisibleArea(){if(!spacelandCreated)return null;var lat1,lon1,lat2,lon2,lat3,lon3,lat4,lon4,aroundcenter,ret=spacecontrol.QueryRegion();eval(ret);if(aroundcenter==1)return null;var points=[];points.push(new Msn.VE.LatLong(lat1,lon1));points.push(new Msn.VE.LatLong(lat2,lon2));points.push(new Msn.VE.LatLong(lat3,lon3));points.push(new Msn.VE.LatLong(lat4,lon4));return points}function GetMetersPerPixel(b,a){if(!b)b=currentView.latlong.latitude;if(!a)a=currentView.zoomLevel;return Math.cos(DegToRad(b))*currentMode.MetersPerPixel(a)}function Resize(b,a){if(resizeTimer!=null&&typeof resizeTimer=="number")window.clearTimeout(resizeTimer);p_this.w=b;p_this.h=a;resizeTimer=window.setTimeout(p_this.FireResize,250)}this.FireResize=function(){if(resizeInProgress)return;else resizeInProgress=true;var b=p_this.w,a=p_this.h,d,c;if(!b||b<=0)d="100%";else d=b+"px";if(!a||a<=0)c="100%";else c=a+"px";p_elSource.style.width=d;p_elSource.style.height=c;UpdateFromParent();if(currentMode==null||currentMode!=threeDMode){if(b&&b>=0)width=b;if(a&&a>=0)height=a}PanToView(currentView);if(copyright)copyright.Reposition();if(scaleBar)scaleBar.Reposition();if(logo)logo.Reposition();if(!document.all)p_this.resizeSVG();Fire("onresize")};function IsObliqueAvailable(){return obliqueMode?obliqueMode.IsAvailable():false}function GetObliqueScene(){return obliqueMode?obliqueMode.GetScene():null}function SetAnimationEnabled(a){animatedMovementEnabled=a}function IsAnimationEnabled(){return animatedMovementEnabled&¤tMode!=threeDMode}function SetObliqueScene(a){if(obliqueMode)SetMapStyle(obliqueStyle,a,null)}function SetObliqueOrientation(a){if(obliqueMode)SetMapStyle(obliqueStyle,null,a)}function Debug(a){debug=a}function SetCopyrightOffset(a,b){if(copyright)copyright.SetOffset(a,b);if(scaleBar)scaleBar.SetOffset(a,b)}function SetFocus(){if(currentMode==threeDMode)spacecontrol.Focus();else keyboard.focus()}function StopKeyboardPan(){if(panning&&keyboardPan)StopContinuousPan()}function UpdatePreferredView(){preferredView.Copy(currentView)}function GetCenterOffset(){if(currentMode!=null&¤tMode==threeDMode)return new Msn.VE.Pixel(0,0);return mapCenterOffset}function SetCenterOffset(a){if(typeof a!="undefined"&&a!=null)mapCenterOffset=a}function GetLastViewChangeType(){var a=lastViewChangeType;lastViewChangeType=null;return a}function ClipView(b,c){var a=ShiftView(b,c,0,0);if(typeof a!="undefined"&&a!=null)b.SetCenter(new Msn.VE.Pixel(b.center.x+a.x,b.center.y+a.y))}function ShiftView(b,a,c,d){if(a!=null&&a!="undefined"){c=ClipDelta(c,width,b.center.x-width/2,b.zoomLevel,a.z1,a.x1,a.x2);d=ClipDelta(d,height,b.center.y-height/2,b.zoomLevel,a.z1,a.y1,a.y2);return new Msn.VE.Pixel(c,d)}}function ClipDelta(e,c,a,g,f,i,h){var b=tileSize*i*Math.pow(2,g-f),d=tileSize*h*Math.pow(2,g-f);if(c>d-b)return (d-b-c)/2-a+b;else if(a+ed)return d-a-c;return e}function VECopyrightTableEntry(b,a,e,f,c,d){this.MinZoomLevel=b;this.MaxZoomLevel=a;this.MinLatitude=e;this.MinLongitude=f;this.MaxLatitude=c;this.MaxLongitude=d}VECopyrightTableEntry.prototype.IsMatch=function(b,c,a){var d=false;if(b>=this.MinZoomLevel&&b<=this.MaxZoomLevel&&(c>=this.MinLatitude&&c<=this.MaxLatitude)&&(a>=this.MinLongitude&&a<=this.MaxLongitude))d=true;return d};function VECopyrightTable(){var b=[];b[Msn.VE.MapStyle.Oblique]=[L_MapControlImageCourtesyOfPictometry_Text,L_MapControlImageCourtesyOfBlom_Text];b[Msn.VE.MapStyle.Road]=[L_MapControlNavteq_Text,L_MapControlImageCourtesyOfAND_Text,L_MapControlImageCourtesyOfMapDataSciences_Text,L_MapControlImageCourtesyOfZenrin_Text];b[Msn.VE.MapStyle.Aerial]=[L_MapControlImageCourtesyOfNASA_Text,L_MapControlHarrisCorp_Text,L_MapControlImageCourtesyOfUSGS_Text,L_MapControlImageCourtesyOfEarthData_Text,L_MapControlImageCourtesyOfGetmapping_Text,L_MapControlImageCourtesyOfGeoEye_Text,L_MapControlImageCourtesyOfPasco_Text];var a=[];a[Msn.VE.MapStyle.Oblique]=[];a[Msn.VE.MapStyle.Oblique][L_MapControlImageCourtesyOfPictometry_Text]=[];a[Msn.VE.MapStyle.Oblique][L_MapControlImageCourtesyOfBlom_Text]=[];a[Msn.VE.MapStyle.Road]=[];a[Msn.VE.MapStyle.Road][L_MapControlNavteq_Text]=[];a[Msn.VE.MapStyle.Road][L_MapControlImageCourtesyOfAND_Text]=[];a[Msn.VE.MapStyle.Road][L_MapControlImageCourtesyOfMapDataSciences_Text]=[];a[Msn.VE.MapStyle.Road][L_MapControlImageCourtesyOfZenrin_Text]=[];a[Msn.VE.MapStyle.Aerial]=[];a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfNASA_Text]=[];a[Msn.VE.MapStyle.Aerial][L_MapControlHarrisCorp_Text]=[];a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfUSGS_Text]=[];a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfEarthData_Text]=[];a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfGetmapping_Text]=[];a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfGeoEye_Text]=[];a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfPasco_Text]=[];a[Msn.VE.MapStyle.Oblique][L_MapControlImageCourtesyOfPictometry_Text].push(new VECopyrightTableEntry(1,20,24,-125,49,-66));a[Msn.VE.MapStyle.Oblique][L_MapControlImageCourtesyOfBlom_Text].push(new VECopyrightTableEntry(1,20,49,-11,60,2));a[Msn.VE.MapStyle.Road][L_MapControlNavteq_Text].push(new VECopyrightTableEntry(1,9,-90,-180,90,180));a[Msn.VE.MapStyle.Road][L_MapControlNavteq_Text].push(new VECopyrightTableEntry(10,19,16,-180,90,-50));a[Msn.VE.MapStyle.Road][L_MapControlNavteq_Text].push(new VECopyrightTableEntry(10,19,27,-32,40,-13));a[Msn.VE.MapStyle.Road][L_MapControlNavteq_Text].push(new VECopyrightTableEntry(10,19,35,-11,72,20));a[Msn.VE.MapStyle.Road][L_MapControlNavteq_Text].push(new VECopyrightTableEntry(10,19,21,20,72,32));a[Msn.VE.MapStyle.Road][L_MapControlNavteq_Text].push(new VECopyrightTableEntry(10,17,21.92,113.14,22.79,114.52));a[Msn.VE.MapStyle.Road][L_MapControlNavteq_Text].push(new VECopyrightTableEntry(10,17,21.73,119.7,25.65,122.39));a[Msn.VE.MapStyle.Road][L_MapControlNavteq_Text].push(new VECopyrightTableEntry(10,17,0,98.7,8,120.17));a[Msn.VE.MapStyle.Road][L_MapControlNavteq_Text].push(new VECopyrightTableEntry(10,17,0.86,103.2,1.92,104.45));a[Msn.VE.MapStyle.Road][L_MapControlImageCourtesyOfAND_Text].push(new VECopyrightTableEntry(10,19,-90,-180,90,180));a[Msn.VE.MapStyle.Road][L_MapControlImageCourtesyOfMapDataSciences_Text].push(new VECopyrightTableEntry(5,17,-45,111,-9,156));a[Msn.VE.MapStyle.Road][L_MapControlImageCourtesyOfMapDataSciences_Text].push(new VECopyrightTableEntry(5,17,-49.7,164.42,-30.82,180));a[Msn.VE.MapStyle.Road][L_MapControlImageCourtesyOfZenrin_Text].push(new VECopyrightTableEntry(4,17,23.5,122.5,46.65,151.66));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfNASA_Text].push(new VECopyrightTableEntry(1,8,-90,-180,90,180));a[Msn.VE.MapStyle.Aerial][L_MapControlHarrisCorp_Text].push(new VECopyrightTableEntry(9,13,-90,-180,90,180));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfUSGS_Text].push(new VECopyrightTableEntry(14,19,17.99,-150.11,61.39,-65.57));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfEarthData_Text].push(new VECopyrightTableEntry(14,19,21.25,-158.3,21.72,-157.64));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfEarthData_Text].push(new VECopyrightTableEntry(14,19,39.99,-80.53,40.87,-79.43));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfEarthData_Text].push(new VECopyrightTableEntry(14,19,34.86,-90.27,35.39,-89.6));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfGetmapping_Text].push(new VECopyrightTableEntry(14,19,49.94,-6.35,58.71,1.78));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfGeoEye_Text].push(new VECopyrightTableEntry(14,17,44.43,-63.75,45.06,-63.45));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfGeoEye_Text].push(new VECopyrightTableEntry(14,17,45.39,-73.78,45.66,-73.4));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfGeoEye_Text].push(new VECopyrightTableEntry(14,17,45.2,-75.92,45.59,-75.55));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfGeoEye_Text].push(new VECopyrightTableEntry(14,17,42.95,-79.81,44.06,-79.42));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfGeoEye_Text].push(new VECopyrightTableEntry(14,17,50.35,-114.26,51.25,-113.82));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfGeoEye_Text].push(new VECopyrightTableEntry(14,17,48.96,-123.33,49.54,-122.97));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfGeoEye_Text].push(new VECopyrightTableEntry(14,17,-35.42,138.32,-34.47,139.07));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfGeoEye_Text].push(new VECopyrightTableEntry(14,17,-32.64,115.58,-32.38,115.85));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfGeoEye_Text].push(new VECopyrightTableEntry(14,17,-34.44,150.17,-33.27,151.49));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfGeoEye_Text].push(new VECopyrightTableEntry(14,17,-28.3,152.62,-26.94,153.64));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfEarthData_Text].push(new VECopyrightTableEntry(14,19,40.6,-74.18,41.37,-73.51));a[Msn.VE.MapStyle.Aerial][L_MapControlImageCourtesyOfPasco_Text].push(new VECopyrightTableEntry(14,17,23.5,122.5,46.65,151.66));this.CreditsFor=function(c,k,l,j){var g=[];if(c!="undefined"&&c!=null&&typeof b[c]!="undefined"&&b[c]!=null){var m=b[c].length;for(var e=0;e0)if(e==2){f+="
";g+="\n"}else{f+="  ";g+=" "}f+=h[e];g+=h[e]}if(spacelandCreated)spacecontrol.SetCopyrightString(g);if(h.length<=2)c=13;else c=21;a.innerHTML=f;b.innerHTML=f;d()}function g(a,b){h=a;f=b;d()}this.Reposition=d;this.Update=i;this.SetOffset=g}function MapEvent(d,b,c,a){this.view=d;this.oblique=b;this.error=c;this.requestedView=a}function CreateEvent(a,e,c,d){var b=currentView.MakeCopy();if(a!=null&&a instanceof Msn.VE.LatLong)if(Msn.VE.API!=null){var h=new VELatLongFactory(new VELatLongFactorySpecFromMapView(b));b.LatLong=h.CreateVELatLong(a.latitude,a.longitude)}else b.latlong=a;if(e!=null&&typeof e=="number")b.zoomLevel=e;if(c==null||typeof c=="undefined")c="";var g=null;if(obliqueMode)g=obliqueMode.GetEventInfo();var f=null;if(d!=null&&d instanceof Msn.VE.MapView)f=d.MakeCopy();return new MapEvent(b,g,c,f)}function AttachEvent(d,c){var a=eventTable[d];if(!a){a=[];eventTable[d]=a}for(var b=0;b0)lines.pop().Destroy()}function ShowLines(){for(var a=0;aa[0].latitude?b[0].latitude:a[0].latitude,k=b[0].longitude>a[0].longitude?b[0].longitude:a[0].longitude,m=b[1].latitude=0)a--;k(i[a],b);A(b)}function k(f,a){if(s(f.boundingRectangle[0],f.boundingRectangle[1]))return;if(f.childRegions!=null)for(var j=0;j=southLatitude&&a<=northLatitude&&b>=westLongitude&&b<=eastLongitude}function s(a,b){return a.latitude>northLatitude&&b.latitude>northLatitude||a.latitudeeastLongitude&&b.longitude>eastLongitude||a.longitude0)ZoomIn();else if(b<0)ZoomOut();return false}function ContextMenu(a){a=GetEvent(a);CancelEvent(a);if(mouseZoomDisabled)return false;var b,c;if(currentMode==threeDMode){b=GetMouseX(a)-parseInt(spacediv.style.left);c=GetMouseY(a)-parseInt(spacediv.style.top)-y}else{b=originX+offsetX+GetMouseX(a)-x;c=originY+offsetY+GetMouseY(a)-y}var d=currentMode.PixelToLatLong(new Msn.VE.Pixel(b,c),currentView.zoomLevel);if(d!=null){var e=CreateEvent(d);Fire("oncontextmenu",e)}return false}function PanMap(b,c){if(b==0&&c==0)return;if(currentMode!=threeDMode){var a=ShiftView(currentView,currentBounds,b,c);if(typeof a!="undefined"&&a!=null){map.style.left=map.offsetLeft-a.x+"px";map.style.top=map.offsetTop-a.y+"px";offsetX=-map.offsetLeft;offsetY=-map.offsetTop;currentView.SetCenter(new Msn.VE.Pixel(width/2+originX+offsetX,height/2+originY+offsetY));window.setTimeout(tileLayerManager.PanView,1)}}else if(spacelandCreated)spacecontrol.ContinuousPan(b,c);if(copyright)copyright.Update()}function ContinuousPan(b,c,a,d){if(zooming)return;if(!a)a=-1;panningX=b;panningY=c;panCounter=a;if(!b&&!c){StopContinuousPan();return}keyboardPan=d;if(!panning){panning=true;StepPan();Fire("onstartcontinuouspan")}}function StepPan(){if(panning){PanMap(panningX,panningY);if(panCounter>0)panCounter--;if(panCounter!=0)window.setTimeout(StepPan,10);else StopContinuousPan()}}function StopContinuousPan(){panningX=0;panningY=0;panning=false;keyboardPan=false;if(currentMode!=threeDMode)if(panLatitude!=null&&panLongitude!=null){var b=new Msn.VE.LatLong(panLatitude,panLongitude),a=LatLongToPixel(b),c=a.x-width/2,d=a.y-height/2;PanMap(c,d);currentView.latlong.latitude=panLatitude;currentView.latlong.longitude=panLongitude;preferredView.Copy(currentView);panLatitude=null;panLongitude=null;if(obliqueMode)obliqueMode.UpdateAvailability()}else ComputeCenterPoint(true);else if(spacelandCreated)spacecontrol.ContinuousPan(0,0);Fire("onendcontinuouspan");Fire("onchangeview");if(resizeInProgress)resizeInProgress=false}function PanToLatLong(b,a){if(currentMode==threeDMode)SetCenter(b,a);else{panLatitude=b;panLongitude=a;PanToPixel(LatLongToPixel(new Msn.VE.LatLong(b,a)))}}function PanToView(a){var b=a.center.x-(originX+offsetX),c=a.center.y-(originY+offsetY);PanToPixel(new Msn.VE.Pixel(b,c))}function PanToPixel(a){if(currentView.mapStyle==obliqueStyle){var h=obliqueMode.GetScene();if(!h||!h.ContainsPixel(a,currentView.zoomLevel)){var d=preferredView.MakeCopy();d.sceneId=null;d.SetCenterLatLong(PixelToLatLong(a));SetView(d);if(resizeInProgress)resizeInProgress=false;return}}var b=a.x-width/2,c=a.y-height/2,e=Math.sqrt(b*b+c*c);if(!IsAnimationEnabled()||MathAbs(b)>2*width||MathAbs(c)>2*height||e>1.5*Math.sqrt(width*width+height*height)){var d=preferredView.MakeCopy(),j=a.x+(originX+offsetX),k=a.y+(originY+offsetY);d.SetCenter(new Msn.VE.Pixel(j,k));SetView(d);if(resizeInProgress)resizeInProgress=false;return}var f=Math.atan2(c,b),g=MathCeil(e/panToLatLongSpeed),i=MathRound(e/g);b=MathRound(Math.cos(f)*i);c=MathRound(Math.sin(f)*i);ContinuousPan(b,c,g)}function PushPinOffset(a,b){this.x=a;this.y=b}function getPushPinOffset(c){var b=Msn.VE.PushPinTypes,a;switch(c){case b.Annotation:a=new PushPinOffset(-2,-29/2-5);break;case b.SearchResult:a=new PushPinOffset(0,-29/2+3);break;case b.Direction:a=new PushPinOffset(-3,-26/2-3);break;case b.DirectionTemp:a=new PushPinOffset(2,-26/2+3);break;case b.TrafficLight:a=new PushPinOffset(0,-26/2);break;case b.TrafficOthers:a=new PushPinOffset(0,-29/2);break;case b.YouAreHere:a=new PushPinOffset(0,-26/2);break;case b.AdStandard:a=new PushPinOffset(0,-42/2);break;case b.AdWide:a=new PushPinOffset(0,-27/2);break;case b.Default:default:a=new PushPinOffset(0,0);break}return a}function GetPushpins(){return pushpins}function AddPushpin(k,i,j,h,f,c,d,g,e,a){var b=new Pushpin;b.Init(k,i,j,h,f,c,d,g,e);if(typeof a=="undefined"||a==false||a==null){if(typeof spacelandMode!="undefined"&&spacelandMode)SpacelandAddPushpin(k,i,j,h,f,c,d,g,e);map.appendChild(b.pin);pushpins.push(b)}if(typeof a!="undefined"&&a==true)return b.pin;else return b.pin}function RemovePushpin(b){for(var a=0;a0){var a=pushpins.pop();if(typeof spacelandMode!="undefined"&&spacelandMode)SpacelandRemovePushpin(a.id);a.Destroy()}}function RepositionPushpins(){for(var a=0;a0)g.pop();while(i.length>0)i.pop()};this.GetLatitude=function(){return b.latitude};this.GetLongitude=function(){return b.longitude};function q(){var b=zoomTotalSteps;for(var a=0;a<=b;a++){g[a]=c-m/2+e.x+"px";i[a]=d-l/2+e.y+"px"}}function j(){var k=zoomTotalSteps;for(var a=0;a<=k;a++){var b=a/k,j=1-b;g[a]=MathFloor(j*c+b*f-m/2+e.x)+"px";i[a]=MathFloor(j*d+b*h-l/2+e.y)+"px"}}function k(b){a.style.left=g[b];a.style.top=i[b]}function v(){var a=0;a=c;c=f;f=a;a=d;d=h;h=a}function s(){var e=currentMode.LatLongToPixel(b,currentView.zoomLevel);if(e){c=MathRound(e.x-originX);d=MathRound(e.y-originY);q();k(0);if(a.style.display!="none")a.style.display="block"}else a.style.display="none"}function u(g,i,k){c-=offsetX;d-=offsetY;var e=currentMode.LatLongToPixel(b,k);if(e){f=MathRound(e.x-g);h=MathRound(e.y-i);j();if(a.style.display!="none")a.style.display="block"}else a.style.display="none"}function n(){if(a.parentNode==map)map.removeChild(a)}function p(c){c=GetEvent(c);CancelEvent(c);if(panning||zooming)return false;var a=preferredView.MakeCopy();a.SetCenterLatLong(b);if(c.altKey)a.SetZoomLevel(currentView.zoomLevel-1);else a.SetZoomLevel(currentView.zoomLevel+1);SetView(a);return false}function r(a){a=GetEvent(a);CancelEvent(a);if(panning||zooming)return false;var b=GetMouseScrollDelta(a);if(b>0)ZoomIn();else if(b<0)ZoomOut();return false}function w(a){o(PixelToLatLong(a))}function o(a){b=a;s()}this.ClearSteps=q;this.PrecomputeSteps=j;this.SetFactor=k;this.SwapStates=v;this.Reposition=s;this.PrepareForZoom=u;this.RemoveFromMap=n;this.Move=w;this.MoveToLatLon=o}function ScaleBar(c){var r=0,f=0,i=null,a=document.createElement("div"),b=document.createElement("div"),d=document.createElement("div"),e=document.createElement("div"),h=150;this.Init=function(){a.className="ScaleBarLabel ScaleBarLabelBackground";b.className="ScaleBarLabel ScaleBarLabelForeground";d.className="ScaleBar ScaleBarBackground";e.className="ScaleBar ScaleBarForeground";l();j();c.appendChild(a);c.appendChild(b);c.appendChild(d);c.appendChild(e)};this.Destroy=function(){c.removeChild(a);c.removeChild(b);c.removeChild(d);c.removeChild(e);a=b=d=BarFg=null};function j(){a.style.top=height-45-f+"px";a.style.right="10px";a.style.display="block";b.style.top=height-46-f+"px";b.style.right="11px";b.style.display="block";d.style.top=height-30-f+"px";d.style.right="9px";d.style.display="block";e.style.top=height-31-f+"px";e.style.right="10px";e.style.display="block"}function m(a){return a*0.001}function o(a){return a*0.000621371192}function p(a){return a*1.0936133}function n(a){i=a}function l(){try{var f=GetMetersPerPixel(),c=f*h,e;if(i==null)e=$MVEM.IsEnabled(MapControl.Features.ScaleBarKilometers);else e=i==Msn.VE.DistanceUnit.Kilometers;if(e){var d=l918att,b=m(c),a=g(b);if(a<0.5){d=l344aut;b=c;a=g(b)}k("metric",d,a,Math.round(a/b*h))}else{d=l900ast;b=o(c);a=g(b);if(a<0.5){d=l676avt;b=p(c);a=g(b)}k("us",d,a,Math.round(a/b*h))}}catch(j){}}function g(d){var g=Math.log(d)/Math.log(10),e=Math.floor(g),a=Math.pow(10,e),c=d/a,b=Math.floor(c);if(b>=3)return b*a;var f=Math.floor(c*2)*0.5;return f*a}function k(i,h,c,f){if(c<1)c=c.toFixed(1);var g=c+" "+h;a.innerHTML=g;b.innerHTML=g;d.style.width=f;e.style.width=f}function q(a,b){r=a;f=b;j()}this.SetDistanceUnit=n;this.Update=l;this.Reposition=j;this.SetOffset=q}var totalRequestTime=0,totalRequestCount=0,totalFailureCount=0,responseRangeCeilings=[];responseRangeCeilings[roadStyle]=[325,975];responseRangeCeilings[aerialStyle]=[350,1050];responseRangeCeilings[hybridStyle]=[425,1275];responseRangeCeilings[obliqueStyle]=[450,1350];var responseRangeCounts=[0,0,0];function RequestTile(b,c,i,h,d,g,e,f){var a=new Tile;a.Init(b,c,i,h,b*tileSize-originX,c*tileSize-originY,d,g,e,f);return a}function ClearTiles(a){while(a.length>0){var b=a.pop();b.Destroy();b=null}}function GetResponseRangeCounts(){var b=0;for(var a=0;a0)j.pop();while(l.length>0)l.pop();while(q.length>0)q.pop();while(o.length>0)o.pop();j=l=q=o=null};function x(c,h,b,a){d=c;e=h;g=b;f=a}this.SetCurrentState=x;function E(c,d,b,a){i=c;k=d;p=b;n=a}this.SetNextState=E;function K(){for(var a=0;a<=zoomTotalSteps;a++){j[a]=d+"px";l[a]=e+"px";q[a]=g+"px";o[a]=f+"px"}}this.ClearSteps=K;function v(){for(var a=0;a<=zoomTotalSteps;a++){var b=a/zoomTotalSteps,c=1-b;j[a]=MathFloor(c*d+b*i)+"px";l[a]=MathFloor(c*e+b*k)+"px";q[a]=MathCeil(c*g+b*p)+"px";o[a]=MathCeil(c*f+b*n)+"px"}}this.PrecomputeSteps=v;function G(d){if(a==null||zooming&&!z)return;var b=a.style;b.left=j[d];b.top=l[d];b.width=q[d];b.height=o[d];var e=c.style;if(debug&&d==0){b.border="1px dashed red";e.left=j[d];e.top=l[d]}if(a.parentNode!=map){b.position="absolute";b.zIndex=h;if(B>0)if(b&&typeof b.filter!="undefined"){if(Msn.VE.Environment.BrowserInfo.MajorVersion<=6){r=document.createElement("div");b=r.style;b.left=j[d];b.top=l[d];b.width=q[d];b.height=o[d];b.position="absolute";b.zIndex=h;if(m!=1.0)b.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+a.src+"',sizingMethod='scale'), alpha(opacity="+m*100+")";else b.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+a.src+"',sizingMethod='scale')";map.appendChild(r)}else{b.zIndex=h;b.filter="alpha(opacity="+m*100+");opacity:"+m+";";map.appendChild(a);}}else{b.zIndex=h;b.opacity=m;map.appendChild(a)}else{if(b&&typeof b.filter!="undefined"){if(m<1)b.filter="alpha(opacity="+m*100+");opacity:"+m}else b.opacity=m;map.appendChild(a)}if(debug&&c.parentNode!=map){var f=a.src;c.innerHTML=f.substring(f.lastIndexOf("/")+1,f.lastIndexOf("."));e.position="absolute";e.zIndex=h+1;map.appendChild(c)}}}this.SetFactor=G;function F(){var a=0;a=d;d=i;i=a;a=e;e=k;k=a;a=g;g=p;p=a;a=f;f=n;n=a}this.SwapStates=F;function D(){if(b){b.onload=null;b.onerror=null;b=null}if(a){if(a.parentNode==map)map.removeChild(a);a=null}if(c){if(c.parentNode==map)map.removeChild(c);c=null}if(r)if(r.parentNode==map)map.removeChild(r)}this.RemoveFromMap=D;function N(){if(s!=currentView.zoomLevel||b==null)return;var d=new Date,c=d.getTime()-y.getTime();C(c);totalRequestTime+=c;totalRequestCount++;if(debug)window.status="last="+c+", average="+totalRequestTime/totalRequestCount;b.onload=null;b.onerror=null;a=b;a.onmousedown=function(){return false};b=null;if(!zooming)G(zoomCounter)}function M(){if(s!=currentView.zoomLevel||b==null)return;var c=new Date,a=c.getTime()-y.getTime();C(a);totalRequestTime+=a;totalRequestCount++;totalFailureCount++;b.onload=null;b.onerror=null;b=null}function C(b){for(var a=0;atileViewportX2-c||utileViewportY2-b);F();v();h=swapZIndex}this.PrepareSwapTile=I;function L(b){if(a!=null)a.style.border=b?"1px dashed red":"0px";c.style.display=b?"block":"none"}this.Debug=L;function J(){p=g;n=f}this.ClearStates=J}function SetMapTiles(){var a=new VETileSourceSpecification;a.ID=mapTiles;a.SourceName="http://%1%2.ortho.tiles.virtualearth.net/tiles/%3%4.%5?g=%6";a.NumServers=4;tileLayerManager.AddTileSource(a)}function SetView(a){if(currentMode!=null&¤tMode==threeDMode){var f=false;if(a==null){a=new Msn.VE.MapView;a.Copy(currentView);f=true}return SetView3D(a,f)}if(a==null){a=new Msn.VE.MapView;a.Copy(currentView);a.SetAltitude(-1000);a.SetTilt(-90);a.SetDirection(0);if(a.mapStyle==obliqueStyle)currentMode=obliqueMode;else currentMode=orthoMode;UpdateTiles(a);return true}if(zooming||dragging)return true;if(panning)StopContinuousPan();var c=a.latlong;if(a.GetViewType()=="latlongRect")c=a.latlongRect.Center();if(a.mapStyle==obliqueStyle){if(obliqueMode==null)return true;preferredView.Copy(a);currentMode=obliqueMode;p_elSource.style.backgroundColor="black";a.Resolve(currentMode,width,height);var b=obliqueMode.GetScene();if((!b||b.GetID()!=a.sceneId)&&a.sceneId!=null){obliqueMode.RequestScene(a.sceneId);return true}if(!b||!b.ContainsLatLong(c,a.zoomLevel)&&b.GetID()!=a.sceneId||b.GetOrientation()!=a.sceneOrientation){obliqueMode.RequestSceneAtLatLong(c,a.sceneOrientation,true);return true}}else{currentMode=orthoMode;if(a.mapStyle=="r")p_elSource.style.backgroundColor="#e9e7d4";else p_elSource.style.backgroundColor="black";a.Resolve(currentMode,width,height)}c=a.latlong;preferredView.Copy(a);currentMode.ValidateZoomLevel(a);currentBounds=currentMode.GetBounds(a);ClipView(a,currentBounds);a.Resolve(currentMode,width,height);if(a.Equals(currentView)&&!resizeInProgress)return false;var g=a.GetX(currentView.zoomLevel)-currentView.center.x,h=a.GetY(currentView.zoomLevel)-currentView.center.y,d=Math.sqrt(g*g+h*h);previousCenter=currentView.GetCenterLatLong();var e=0;if(!previousCenter.Equals(a.GetCenterLatLong()))e+=Msn.VE.ViewChangeType.Pan;if(currentView.zoomLevel!=a.zoomLevel)e+=Msn.VE.ViewChangeType.Zoom;SetLastViewChangeType(e);var j=db)return b;return a}function GetXmlHttp(){var a=null;try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(c){a=null}}if(!a&&typeof XMLHttpRequest!="undefined")a=new XMLHttpRequest;return a}function SetZoom(b){var a=preferredView.MakeCopy();a.SetZoomLevel(b);SetView(a)}function ZoomIn(){var a=preferredView.MakeCopy();a.SetZoomLevel(currentView.zoomLevel+1);SetView(a)}function ZoomOut(){var a=preferredView.MakeCopy();a.SetZoomLevel(currentView.zoomLevel-1);SetView(a)}function SetCenterAndZoom(d,b,c){var a=preferredView.MakeCopy();a.sceneId=null;a.SetCenterLatLong(new Msn.VE.LatLong(d,b));a.SetZoomLevel(c);SetView(a)}function GetCurrentViewMaxZoomLevel(b){var a=b;if(typeof a=="undefined"||a==null)a=preferredView;if(!currentMode)return tileLayerManager.GetMaxTileZoom();return currentMode.GetCurrentMaxZoomLevel(a)}function ObliqueMode(){var scene=null,available=false,availableBefore=false,xmlHttp=null,obliqueUrl=null,showOnLoad=false,requestUrl=null,timerId=-1,bounds=['02121222233','02121222322','02121222323','02121222332','02121222333','02121223222','02121223223','02121223232','02123000101','02123000103','02123000110','02123000111','02123000112','02123000113','02123000130','02123000131','02123000301','02123000303','02123000310','02123000312','02123000313','02123000321','02123000330','02123000331','02123000332','02123000333','02123001000','02123001001','02123001002','02123001003','02123001010','02123001012','02123001020','02123001021','02123001030','02123001220','02123001221','02123001222','02123001223','02123001232','02123002103','02123002110','02123002111','02123002112','02123002113','02123002121','02123002123','02123002130','02123002131','02123002132','02123002133','02123002233','02123002301','02123002310','02123002311','02123002312','02123002313','02123002320','02123002321','02123002322','02123002323','02123003000','02123003001','02123003002','02123003003','02123003010','02123003011','02123003012','02123003020','02123003021','02123003022','02123003023','02123003030','02123003032','02123003200','02123003201','02123003202','02123003203','02123003210','02123020011','02123020013','02123020031','02123020100','02123020101','02123020102','02123020103','02123020110','02123020112','02123020120','02123022103','02123022112','02123022113','02123022121','02123022122','02123022123','02123022130','02123022131','02123022132','02123022133','02123022211','02123022300','02123022301','02123022302','02123022303','02123022310','02123022311','02123022312','02123022313','02123022320','02123022321','02123022330','02123022331','02123023200','02123023202','02123023220','02123302112','02123302113','02123302130','02123302131','02123302132','02123302133','02123302310','02123302311','02123302313','02123303002','02123303003','02123303020','02123303021','02123303022','02123303023','02123303200','02123303201','02123303202','02123303203','02123303220','02123303221','02133122113','02133122131','02133122133','02133122212','02133122213','02133122230','02133122231','02133122232','02133122233','02133122302','02133122311','02133122313','02133122320','02133122322','02133122323','02133123002','02133123003','02133123012','02133123020','02133123021','02133123022','02133123023','02133123030','02133123032','02133123200','02133123201','02133123202','02133123210','02133123231','02133123232','02133123233','02133123320','02133123322','02133123323','02133123332','02133123333','02133300010','02133300011','02133300012','02133300013','02133300100','02133300102','02133301010','02133301011','02133301012','02133301013','02133301031','02133301100','02133301101','02133301102','02133301103','02133301110','02133301111','02133301112','02133301113','02133301120','02133301121','02133301122','02133301123','02133301130','02133301131','02133301132','02133301133','02133301300','02133301301','02133301303','02133301310','02133301311','02133301312','02133310020','02133310022','02133310200','02133310222','02133310223','02133310232','02133310233','02133310322','02133312000','02133312001','02133312002','02133312003','02133312010','02133312011','02133312012','02133312013','02133312021','02133312030','02133312031','02133312100','02133312102','02133333033','02133333112','02133333121','02133333122','02133333123','02133333130','02133333131','02133333132','02133333133','02133333201','02133333203','02133333210','02133333211','02133333212','02133333213','02133333300','02133333301','02133333302','02133333303','02133333310','02301002223','02301002232','02301002233','02301002322','02301002323','02301003323','02301003332','02301003333','02301012103','02301012112','02301012113','02301012121','02301012123','02301012130','02301012131','02301012132','02301012133','02301012310','02301012311','02301012312','02301012313','02301012330','02301012331','02301020001','02301020003','02301020010','02301020011','02301020012','02301020013','02301020030','02301020031','02301020033','02301020100','02301020101','02301020102','02301020103','02301020110','02301020112','02301020120','02301020121','02301020122','02301020123','02301020130','02301020131','02301020132','02301020133','02301020211','02301020300','02301020301','02301020310','02301020311','02301020312','02301020313','02301020331','02301020332','02301020333','02301021011','02301021013','02301021021','02301021022','02301021023','02301021030','02301021031','02301021032','02301021033','02301021100','02301021101','02301021102','02301021103','02301021110','02301021111','02301021112','02301021113','02301021120','02301021121','02301021122','02301021123','02301021130','02301021131','02301021132','02301021133','02301021200','02301021201','02301021202','02301021203','02301021210','02301021211','02301021212','02301021213','02301021220','02301021221','02301021222','02301021223','02301021230','02301021231','02301021232','02301021233','02301021300','02301021301','02301021302','02301021310','02301021320','02301021322','02301022110','02301022111','02301022112','02301022113','02301022131','02301023000','02301023001','02301023002','02301023003','02301023010','02301023011','02301023012','02301023013','02301023020','02301023021','02301023022','02301023023','02301023030','02301023031','02301023032','02301023033','02301023100','02301023102','02301023103','02301023120','02301023122','02301023201','02301023210','02301023211','02301023213','02301023300','02301023302','02301023320','02301031102','02301031103','02301031120','02301031121','02301031131','02301031133','02301120020','02301120022','02301212003','02301212012','02301212021','02301212023','02301212030','02301212032','02301212033','02301212210','02301212211','02301212213','02301212302','02301212303','02301212320','02301212321','02301212323','02301212330','02301212331','02301212332','02301212333','02301213211','02301213213','02301213221','02301213222','02301213223','02301213232','02301213233','02301213300','02301213301','02301213302','02301213303','02301213310','02301213311','02301213312','02301213313','02301213320','02301213321','02301213322','02301213323','02301213330','02301213331','02301213332','02301213333','02301231001','02301231003','02301231010','02301231011','02301231012','02301231013','02301231031','02301231100','02301231101','02301231102','02301231103','02301231110','02301231111','02301231112','02301231113','02301231120','02301231121','02301231130','02301231131','02301231132','02301231133','02301231303','02301231310','02301231311','02301231312','02301231321','02301231330','02301231331','02301300230','02301300231','02301300232','02301300233','02301300302','02301300320','02301301113','02301301131','02301301133','02301301311','02301301332','02301301333','02301302123','02301302132','02301302133','02301302200','02301302201','02301302202','02301302203','02301302210','02301302211','02301302212','02301302213','02301302220','02301302221','02301302222','02301302223','02301302230','02301302231','02301302232','02301302233','02301302300','02301302301','02301302302','02301302303','02301302310','02301302311','02301302312','02301302313','02301302320','02301302321','02301302322','02301302323','02301302330','02301302331','02301302332','02301302333','02301303021','02301303022','02301303110','02301303111','02301303200','02301303201','02301310002','02301310020','02301310021','02301310022','02301310023','02301310030','02301310032','02301310033','02301310200','02301310201','02301310210','02301310211','02301310212','02301310213','02301312033','02301312211','02301312300','02301312302','02301312320','02301312321','02301312332','02301320000','02301320001','02301320002','02301320003','02301320010','02301320011','02301320012','02301320013','02301320020','02301320021','02301320022','02301320023','02301320030','02301320031','02301320032','02301320033','02301320100','02301320101','02301320102','02301320103','02301320110','02301320111','02301320112','02301320113','02301320120','02301320121','02301320122','02301320123','02301320130','02301320131','02301320132','02301320133','02301320200','02301320201','02301320203','02301320210','02301320211','02301320212','02301320213','02301320230','02301320231','02301320300','02301320301','02301320302','02301320303','02301320310','02301320311','02301320312','02301320320','02301320321','02301320322','02301320323','02301320330','02301320332','02301321001','02301321002','02301321003','02301321010','02301321011','02301321012','02301321013','02301321020','02301321021','02301321022','02301321023','02301321030','02301321032','02301321033','02301321100','02301321101','02301321102','02301321103','02301321201','02301321210','02301321211','02301321212','02301321213','02301322100','02301322101','02301322102','02301322103','02301322110','02301322111','02301322112','02301322113','02301322120','02301322121','02301322122','02301322123','02301322130','02301322131','02301322132','02301322133','02301322301','02301322310','02301323000','02301323002','02301323020','02301330011','02301330100','02301330101','02301330102','02301330103','02301330110','02301331312','02301331313','02301331330','02301331331','02301332031','02301332033','02301332120','02301332121','02301332122','02301332123','02301332210','02301332211','02310012303','02310012312','02310012313','02310012321','02310012330','02310012331','02310101223','02310101230','02310101231','02310101232','02310101233','02310101322','02310101323','02310101332','02310101333','02310103001','02310103003','02310103010','02310103011','02310103012','02310103013','02310103021','02310103023','02310103030','02310103031','02310103032','02310103033','02310103100','02310103101','02310103102','02310103103','02310103110','02310103111','02310103112','02310103113','02310103120','02310103121','02310103122','02310103130','02310103131','02310103203','02310103210','02310103211','02310103212','02310103213','02310103231','02310103300','02310103302','02310103320','02310110222','02310110223','02310110232','02310112000','02310112001','02310112002','02310112003','02310112010','02310112012','02310112020','02310112021','02310112030','02310210322','02310210323','02310210332','02310210333','02310211203','02310211212','02310211213','02310211221','02310211222','02310211223','02310211230','02310211231','02310211232','02310211233','02310211302','02310211303','02310211320','02310211321','02310211322','02310212011','02310212100','02310212101','02310212110','02310212111','02310212112','02310212130','02310212132','02310213000','02310213001','02310213002','02310213003','02310213010','02310213011','02310213012','02310213100','02310213112','02310213113','02310213130','02310213131','02310213132','02310213133','02310213310','02310213311','02310220021','02310220023','02310220030','02310220031','02310220032','02310220033','02310220122','02310220200','02310220201','02310220202','02310220203','02310220210','02310220211','02310220212','02310220213','02310220220','02310220221','02310220223','02310220230','02310220231','02310220232','02310220233','02310220300','02310220302','02310220303','02310220320','02310220321','02310220322','02310220323','02310220330','02310222310','02310222311','02310222312','02310222313','02310222331','02310222333','02310223200','02310223201','02310223202','02310223203','02310223212','02310223220','02310223221','02310223222','02310223223','02310223230','02310223232','02310300110','02310300111','02310300112','02310300113','02310300122','02310300123','02310300130','02310300131','02310300300','02310300301','02310300302','02310300303','02310300320','02310300321','02310300322','02310300323','02310302002','02310302003','02310302012','02310302013','02310302020','02310302021','02310302022','02310302023','02310302030','02310302031','02310302032','02310302033','02310302101','02310302120','02310302121','02310302122','02310302123','02310302200','02310302201','02310302210','02310302211','02310302212','02310302213','02310302230','02310302231','02310302232','02310302233','02310302300','02310302301','02310302302','02310302320','02310322223','02310322232','02310322233','02310331033','02310331211','02310331213','02310331231','02310331300','02310331301','02310331302','02310331303','02310331320','02310331321','02311030103','02311030112','02311030113','02311030121','02311030123','02311030130','02311030131','02311030132','02311030133','02311030310','02311030311','02311030313','02311031002','02311031003','02311031020','02311031021','02311031022','02311031023','02311031200','02311031201','02311031202','02311031203','02311102213','02311102231','02311102302','02311102303','02311102320','02311102321','02311102323','02311102332','02311102333','02311103222','02311113322','02311113323','02311113332','02311113333','02311120101','02311120103','02311120110','02311120111','02311120112','02311120113','02311120121','02311120130','02311120131','02311121000','02311121002','02311121020','02311131013','02311131031','02311131100','02311131101','02311131102','02311131103','02311131110','02311131111','02311131112','02311131113','02311131120','02311131121','02311131130','02311131131','02311210231','02311210232','02311210233','02311210301','02311210302','02311210303','02311210310','02311210312','02311210313','02311210320','02311210321','02311210322','02311210323','02311210330','02311210331','02311210332','02311210333','02311212011','02311212013','02311212100','02311212101','02311212102','02311212103','02311212110','02311212111','02311212112','02311212113','02311212120','02311212121','02311212122','02311212123','02311212130','02311212131','02311212132','02311212133','02311212301','02311212310','02311212311','02311230121','02311230123','02311230130','02311230131','02311230132','02311230133','02311230301','02311230303','02311230310','02311230311','02311230312','02311230313','02311230321','02311230330','02311230331','02311231020','02311231021','02311231022','02311231023','02311231030','02311231032','02311231033','02311231200','02311231201','02311231202','02311231203','02311231210','02311231211','02311231212','02311231213','02311231220','02311231221','02311231222','02311231223','02311231230','02311231231','02311231232','02311231233','02311231300','02311231302','02311231320','02311231322','02311232010','02311232011','02311232012','02311232013','02311232023','02311232030','02311232031','02311232032','02311232033','02311232100','02311232101','02311232102','02311232103','02311232110','02311232111','02311232112','02311232113','02311232120','02311232121','02311232122','02311232123','02311232130','02311232131','02311232132','02311232133','02311232201','02311232210','02311232211','02311232212','02311232213','02311232230','02311232231','02311232233','02311232300','02311232301','02311232302','02311232310','02311232311','02311232320','02311233000','02311233001','02311233002','02311233003','02311233010','02311233011','02311233012','02311233013','02311233020','02311233021','02311233022','02311233100','02311233102','02311233200','02311300101','02311300103','02311300110','02311300111','02311300112','02311300113','02311300121','02311300123','02311300130','02311300131','02311300132','02311300133','02311300310','02311300311','02311300312','02311300313','02311300330','02311300331','02311301000','02311301001','02311301002','02311301003','02311301010','02311301012','02311301020','02311301021','02311301022','02311301023','02311301030','02311301200','02311301201','02311301202','02311301203','02311301220','02311301221','02311313111','02311313112','02311313113','02311313130','02311313131','02311313132','02311313133','02311323131','02311323133','02311323311','02311332020','02311332021','02311332022','02311332023','02311332032','02311332200','02311332201','02311332210','02312001000','02312001001','02312001002','02312100001','02312100003','02312100010','02312100011','02312100012','02312100013','02312100031','02312100033','02312100100','02312100102','02312100120','02312100122','02313003321','02313003323','02313003330','02313003331','02313003332','02313003333','02313012001','02313012003','02313012010','02313012011','02313012012','02313012013','02313012021','02313012023','02313012030','02313012031','02313012032','02313012033','02313012102','02313012103','02313012112','02313012120','02313012121','02313012122','02313012123','02313012130','02313012210','02313012211','02313012220','02313012222','02313012223','02313012300','02313012301','02313013123','02313013132','02313013133','02313013301','02313013310','02313013311','02313013312','02313013313','02313013330','02313013331','02313013333','02313021101','02313021103','02313021110','02313021111','02313021112','02313021113','02313021121','02313021130','02313021131','02313023201','02313023203','02313023210','02313023212','02313023221','02313023230','02313030000','02313030001','02313030002','02313030003','02313030010','02313030020','02313032013','02313032030','02313032031','02313032032','02313032033','02313032120','02313032121','02313032122','02313032123','02313032130','02313032131','02313032132','02313032133','02313032210','02313032211','02313032300','02313032301','02313032310','02313032311','02313102022','02313102023','02313102032','02313102033','02313102200','02313102201','02313102202','02313102203','02313102210','02313102211','02313102212','02313102213','02313102220','02313102221','02313102222','02313102223','02313102230','02313102231','02313102232','02313102233','02313102302','02313102320','02313102322','02313102332','02313102333','02313112031','02313112032','02313112033','02313112120','02313112121','02313112122','02313112123','02313112210','02313112211','02313112300','02313112301','02313113032','02313113033','02313113121','02313113122','02313113123','02313113130','02313113132','02313113210','02313113211','02313113212','02313113213','02313113230','02313113231','02313113232','02313113233','02313113300','02313113301','02313113302','02313113303','02313113311','02313113313','02313113320','02313113321','02313113322','02313113323','02313113330','02313113331','02313113332','02313113333','02313120001','02313120010','02313120011','02313120012','02313120013','02313120030','02313120031','02313120032','02313120100','02313120101','02313120102','02313120103','02313120110','02313120111','02313120120','02313131100','02313131101','02313131103','02313131110','02313131111','02313131112','02313131113','02313131121','02313131130','02313131131','02313131132','02313131133','02313210123','02313210132','02313210211','02313210213','02313210231','02313210300','02313210301','02313210302','02313210303','02313210310','02313210311','02313210312','02313210313','02313210320','02313210321','02313210322','02313210323','02313210330','02313210331','02313210332','02313210333','02313212101','02313212110','03022203201','03022203202','03022203203','03022203210','03022203211','03022203212','03022203213','03022203220','03022203221','03022203222','03022203223','03022203230','03022203231','03022203232','03022203233','03022203300','03022203302','03022203320','03022203322','03022220013','03022220031','03022220033','03022220102','03022220103','03022220112','03022220113','03022220120','03022220121','03022220122','03022220123','03022220130','03022220131','03022220132','03022220133','03022220211','03022220300','03022220301','03022220310','03022220311','03022221000','03022221001','03022221003','03022221010','03022221011','03022221012','03022221013','03022221021','03022221023','03022221030','03022221031','03022221032','03022221033','03022221100','03022221102','03022221120','03022221121','03022221122','03022221201','03022221210','03022221211','03022221212','03022221213','03022221223','03022221230','03022221231','03022221232','03022221233','03022221300','03022221302','03022221320','03022221322','03022221323','03022223001','03022223003','03022223010','03022223011','03022223012','03022223013','03022223021','03022223030','03022223031','03022223033','03022223100','03022223101','03022223102','03022223103','03022223120','03022223121','03022223122','03022223123','03022223130','03022223132','03022223300','03022223301','03022223310','03022231301','03022231303','03022231310','03022231311','03022231312','03022231313','03022231321','03022231323','03022231330','03022231331','03022231332','03022231333','03022302230','03022302231','03022302232','03022302233','03022302320','03022302321','03022302322','03022302323','03022302332','03022313313','03022313330','03022313331','03022313332','03022313333','03022320010','03022320011','03022320012','03022320013','03022320030','03022320031','03022320100','03022320101','03022320102','03022320103','03022320200','03022320201','03022320202','03022320203','03022320220','03022320221','03022320222','03022320223','03022320300','03022320301','03022320302','03022320303','03022320310','03022320311','03022320312','03022320313','03022320320','03022320321','03022320322','03022320323','03022320330','03022320331','03022320332','03022320333','03022321200','03022321202','03022322030','03022322031','03022322032','03022322033','03022322110','03022322120','03022322121','03022322122','03022322123','03022322130','03022322132','03022322210','03022322211','03022322212','03022322213','03022322230','03022322231','03022322300','03022322301','03022322302','03022322303','03022322320','03022322321','03022323021','03022323022','03022323023','03022323122','03022323123','03022323132','03022323133','03022323200','03022323201','03022323202','03022323203','03022323210','03022323211','03022323212','03022323213','03022323231','03022323233','03022323300','03022323301','03022323302','03022323303','03022323310','03022323311','03022323312','03022323313','03022323320','03022323321','03022323322','03022323323','03022323330','03022323331','03022330332','03022330333','03022331110','03022331111','03022331113','03022331123','03022331130','03022331131','03022331132','03022331133','03022331211','03022331212','03022331213','03022331220','03022331221','03022331222','03022331223','03022331230','03022331231','03022331232','03022331233','03022331300','03022331301','03022331302','03022331303','03022331310','03022331311','03022331312','03022331320','03022331321','03022331322','03022331323','03022331330','03022331332','03022332003','03022332012','03022332013','03022332020','03022332021','03022332022','03022332023','03022332030','03022332031','03022332032','03022332033','03022332101','03022332103','03022332110','03022332111','03022332112','03022332113','03022332200','03022332201','03022332202','03022332203','03022332210','03022332211','03022332212','03022332213','03022332220','03022332221','03022332231','03022332232','03022332233','03022332320','03022332321','03022332322','03022332323','03022333000','03022333001','03022333002','03022333003','03022333010','03022333011','03022333012','03022333013','03022333100','03022333101','03022333110','03023202202','03023202203','03023202212','03023202213','03023202220','03023202221','03023202222','03023202223','03023202230','03023202231','03023202232','03023202233','03023202302','03023202303','03023202320','03023202321','03023202322','03023202323','03023202330','03023202331','03023202332','03023202333','03023203130','03023203131','03023203132','03023203133','03023203202','03023203203','03023203212','03023203213','03023203220','03023203221','03023203222','03023203223','03023203230','03023203231','03023203232','03023203233','03023203300','03023203301','03023203302','03023203303','03023203310','03023203311','03023203312','03023203313','03023203320','03023203321','03023203322','03023203323','03023203330','03023203331','03023203332','03023203333','03023210110','03023210111','03023210112','03023210113','03023210131','03023210133','03023210230','03023210231','03023210232','03023210233','03023210311','03023210313','03023210322','03023210331','03023210333','03023211000','03023211001','03023211002','03023211003','03023211010','03023211011','03023211012','03023211013','03023211020','03023211021','03023211022','03023211023','03023211030','03023211031','03023211032','03023211033','03023211131','03023211132','03023211133','03023211200','03023211201','03023211202','03023211203','03023211210','03023211211','03023211212','03023211213','03023211220','03023211221','03023211222','03023211223','03023211230','03023211232','03023211310','03023211311','03023211312','03023211313','03023211330','03023211331','03023212001','03023212002','03023212003','03023212010','03023212011','03023212012','03023212013','03023212020','03023212021','03023212022','03023212023','03023212030','03023212031','03023212032','03023212033','03023212100','03023212102','03023212111','03023212120','03023212122','03023212200','03023212201','03023212202','03023212203','03023212210','03023212211','03023212212','03023212213','03023212220','03023212222','03023212223','03023212232','03023212233','03023212300','03023213000','03023213001','03023213112','03023213121','03023213123','03023213130','03023213132','03023213133','03023213300','03023213301','03023213303','03023213310','03023213311','03023213312','03023213313','03023213321','03023213323','03023213330','03023213331','03023213332','03023213333','03023220000','03023220001','03023220002','03023220003','03023220010','03023220011','03023220012','03023220013','03023220020','03023220021','03023220022','03023220023','03023220030','03023220031','03023220032','03023220033','03023220100','03023220101','03023220102','03023220103','03023220110','03023220111','03023220112','03023220113','03023220120','03023220122','03023220130','03023220131','03023220132','03023220133','03023220200','03023220201','03023220210','03023220211','03023220212','03023220213','03023220230','03023220231','03023220232','03023220233','03023220300','03023220301','03023220302','03023220303','03023220310','03023220311','03023220312','03023220313','03023220320','03023220321','03023220322','03023220323','03023220330','03023220331','03023220332','03023220333','03023221000','03023221001','03023221002','03023221003','03023221010','03023221011','03023221012','03023221013','03023221020','03023221021','03023221022','03023221023','03023221030','03023221031','03023221032','03023221033','03023221100','03023221101','03023221102','03023221103','03023221110','03023221111','03023221112','03023221113','03023221120','03023221121','03023221122','03023221123','03023221130','03023221131','03023221132','03023221200','03023221201','03023221202','03023221203','03023221210','03023221211','03023221212','03023221213','03023221220','03023221221','03023221222','03023221223','03023221230','03023221231','03023221232','03023221300','03023221301','03023221302','03023221303','03023221310','03023221312','03023221313','03023221320','03023221321','03023221322','03023221323','03023221330','03023221331','03023221332','03023221333','03023222010','03023222011','03023222100','03023222101','03023222110','03023222111','03023223000','03023223001','03023223010','03023223100','03023223101','03023223110','03023223111','03023230000','03023230001','03023230002','03023230003','03023230010','03023230012','03023230013','03023230020','03023230021','03023230030','03023230031','03023230102','03023230120','03023230331','03023230333','03023231101','03023231102','03023231103','03023231110','03023231111','03023231112','03023231113','03023231130','03023231131','03023231132','03023231133','03023231200','03023231201','03023231202','03023231203','03023231210','03023231211','03023231212','03023231213','03023231220','03023231221','03023231222','03023231223','03023231230','03023231231','03023231232','03023231233','03023231300','03023231302','03023231310','03023231311','03023231312','03023231313','03023231320','03023231321','03023231322','03023231323','03023231330','03023231331','03023231332','03023231333','03023233101','03023233110','03023233111','03023233212','03023233213','03023233221','03023233223','03023233230','03023233231','03023233232','03023233233','03023233320','03023233322','03023233333','03023300020','03023300022','03023300023','03023300200','03023300201','03023300202','03023300203','03023300210','03023300212','03023300220','03023300221','03023300222','03023300223','03023320020','03023320021','03023320022','03023320023','03023320030','03023320031','03023320032','03023320033','03023320120','03023320121','03023320122','03023320123','03023320130','03023320131','03023320132','03023320133','03023320200','03023320201','03023320202','03023320203','03023320210','03023320211','03023320212','03023320213','03023320220','03023320221','03023320222','03023320223','03023320230','03023320231','03023320232','03023320233','03023320300','03023320301','03023320302','03023320303','03023320310','03023320311','03023320312','03023320313','03023320320','03023320321','03023320322','03023320323','03023320330','03023320331','03023320332','03023320333','03023321003','03023321013','03023321020','03023321021','03023321022','03023321023','03023321030','03023321031','03023321032','03023321033','03023321102','03023321103','03023321120','03023321121','03023321122','03023321123','03023321130','03023321132','03023321200','03023321201','03023321202','03023321203','03023321210','03023321211','03023321212','03023321213','03023321220','03023321221','03023321222','03023321223','03023321230','03023321231','03023321232','03023321233','03023321300','03023321301','03023321302','03023321320','03023321321','03023321322','03023321323','03023321332','03023322000','03023322001','03023322010','03023322011','03023322100','03023322101','03023322110','03023322111','03023322222','03023322223','03023322231','03023322232','03023322233','03023322312','03023322320','03023322321','03023322322','03023322323','03023322330','03023322332','03023322333','03023323000','03023323001','03023323002','03023323003','03023323010','03023323011','03023323012','03023323013','03023323020','03023323021','03023323023','03023323030','03023323031','03023323032','03023323033','03023323100','03023323101','03023323102','03023323103','03023323110','03023323112','03023323113','03023323120','03023323121','03023323122','03023323123','03023323130','03023323131','03023323132','03023323133','03023323201','03023323210','03023323211','03023323300','03023323301','03023323302','03023323303','03023323310','03023323311','03023323312','03023323313','03023330222','03023330223','03023332000','03023332001','03023332002','03023332003','03023332010','03023332012','03023332020','03023332021','03023332022','03023332023','03023332030','03023332032','03023332201','03023332202','03023332203','03023332212','03023332220','03023332221','03131013130','03131013131','03131013132','03131013133','03131102020','03131102022','03131103110','03131103111','03131103112','03131103113','03131121111','03131121113','03131121130','03131121131','03131121132','03131121133','03131121310','03131121311','03131121312','03131121313','03131123313','03131123331','03131130000','03131130002','03131130022','03131130023','03131130200','03131130201','03131130331','03131130333','03131131123','03131131132','03131131202','03131131203','03131131212','03131131220','03131131221','03131131222','03131131230','03131131301','03131131310','03131132030','03131132031','03131132032','03131132033','03131132111','03131132113','03131132120','03131132122','03131132132','03131132133','03131132202','03131132211','03131132213','03131132220','03131132231','03131132233','03131132300','03131132302','03131132310','03131132311','03131132320','03131132321','03131132322','03131132323','03131132330','03131132332','03131132333','03131133000','03131133002','03131133020','03131133021','03131133022','03131133023','03131133030','03131133032','03131133100','03131133101','03131133102','03131133103','03131133200','03131133201','03131133203','03131133210','03131133212','03131133220','03131133221','03131133223','03131133230','03131133232','03131133323','03131133330','03131133332','03131301222','03131301223','03131301232','03131301332','03131301333','03131303000','03131303001','03131303010','03131303101','03131303102','03131303103','03131303110','03131303111','03131303112','03131303120','03131303121','03131303130','03131303233','03131303312','03131303322','03131310011','03131310022','03131310031','03131310033','03131310100','03131310101','03131310102','03131310103','03131310110','03131310111','03131310112','03131310113','03131310200','03131310212','03131310213','03131310230','03131310231','03131310302','03131310323','03131310332','03131311000','03131311001','03131311002','03131311003','03131311011','03131311012','03131311013','03131311030','03131311031','03131311100','03131311102','03131311113','03131311120','03131311121','03131311122','03131311123','03131311131','03131311213','03131311220','03131311221','03131311222','03131311223','03131311231','03131311303','03131311312','03131311320','03131311321','03131311322','03131311323','03131311330','03131311331','03131311332','03131311333','03131312000','03131312001','03131312002','03131312003','03131312010','03131312012','03131312013','03131312020','03131312021','03131312030','03131312031','03131312101','03131312103','03131312110','03131312112','03131312312','03131312313','03131312322','03131312323','03131312330','03131312331','03131312332','03131312333','03131313100','03131313101','03131313110','03131313111','03131313113','03131313130','03131313131','03131313202','03131313203','03131313212','03131313220','03131313221','03131313222','03131313223','03131313230','03131313232','03131313233','03131313321','03131313322','03131313323','03131313330','03131313331','03131313332','03131313333','03131321011','03131321013','03131321031','03131321033','03131321100','03131321102','03131321120','03131330100','03131330101','03131330110','03133131222','03133131223','03133311102','03133311103','03133311120','03133311121','03133330112','03133330130','03200000320','03200000321','03200000322','03200000323','03200000330','03200000331','03200000332','03200000333','03200002100','03200002101','03200002102','03200002103','03200002110','03200002111','03200002112','03200002113','03200002120','03200002121','03200002130','03200010232','03200010233','03200010302','03200010303','03200010312','03200010313','03200010320','03200010321','03200010322','03200010323','03200010330','03200010331','03200010332','03200010333','03200011233','03200011322','03200011323','03200012010','03200012011','03200012012','03200012013','03200012030','03200012031','03200012100','03200012101','03200012102','03200012103','03200012110','03200012111','03200012112','03200012113','03200012120','03200012121','03200012122','03200012123','03200012130','03200012131','03200012132','03200012133','03200012301','03200012310','03200012311','03200013011','03200013013','03200013100','03200013101','03200013102','03200013103','03200013131','03200013301','03200013303','03200013310','03200013311','03200013312','03200013313','03200013321','03200013330','03200013331','03200021301','03200021303','03200021310','03200021312','03200021321','03200021323','03200021330','03200023130','03200023131','03200023132','03200023133','03200023311','03200031310','03200031311','03200031312','03200031313','03200031330','03200031331','03200031333','03200032020','03200032021','03200032022','03200032023','03200032200','03200032201','03200100311','03200100312','03200100313','03200100322','03200100323','03200100330','03200100331','03200100332','03200100333','03200101202','03200101220','03200101221','03200101222','03200101223','03200102020','03200102021','03200102022','03200102023','03200102030','03200102032','03200102100','03200102101','03200102102','03200102103','03200102110','03200102111','03200102112','03200102113','03200102200','03200102201','03200102202','03200102203','03200102210','03200102212','03200102220','03200103000','03200103001','03200103002','03200110010','03200110011','03200110100','03200110101','03200110323','03200110330','03200110331','03200110332','03200110333','03200111220','03200111222','03200111223','03200112101','03200112103','03200112110','03200112111','03200112112','03200112113','03200113000','03200113001','03200113002','03200113003','03200120122','03200120123','03200120132','03200120200','03200120202','03200120220','03200120222','03200120300','03200120301','03200120302','03200120303','03200120310','03200120312','03200133020','03200133021','03200133022','03200133023','03200202000','03200202001','03200202002','03200202003','03200202010','03200202012','03200202020','03200202021','03200202022','03200202023','03200202030','03200202032','03200203001','03200203003','03200203010','03200203011','03200203012','03200203013','03200203021','03200203023','03200203030','03200203031','03200203032','03200203033','03200210033','03200210122','03200210211','03200210212','03200210213','03200210230','03200210231','03200210300','03200210301','03200210302','03200210303','03200210310','03200210320','03200210321','03200213032','03200213033','03200213103','03200213112','03200213113','03200213121','03200213122','03200213123','03200213130','03200213131','03200213132','03200213133','03200213210','03200213211','03200213300','03200221311','03200221313','03200221331','03200230021','03200230022','03200230023','03200230030','03200230032','03200230033','03200230101','03200230102','03200230103','03200230110','03200230111','03200230112','03200230113','03200230120','03200230121','03200230122','03200230130','03200230131','03200230132','03200230200','03200230201','03200230202','03200230203','03200230210','03200230211','03200230212','03200230213','03200230220','03200230221','03200230222','03200230223','03200230230','03200230231','03200230232','03200230300','03200230302','03200231002','03200231020','03200231103','03200231112','03200231113','03200231121','03200231123','03200231130','03200231131','03200231132','03200231133','03200231301','03200231303','03200231310','03200231311','03200231312','03200231313','03200231331','03200232120','03200232121','03200232122','03200232123','03200232130','03200232131','03200232132','03200232133','03200232211','03200232213','03200232300','03200232301','03200232302','03200232303','03200232310','03200232311','03200232312','03200232313','03200300223','03200300232','03200300233','03200300322','03200302001','03200302002','03200302003','03200302010','03200302011','03200302012','03200302013','03200302020','03200302021','03200302022','03200302023','03200302030','03200302031','03200302032','03200302100','03200302102','03200302222','03200302223','03200302232','03200320000','03200320001','03200320002','03200320003','03200320010','03200320012','03200320013','03200320020','03200320021','03200320022','03200320023','03200320030','03200320031','03200320032','03200320103','03200320112','03200320120','03200320121','03200320123','03200320130','03200320132','03200320200','03200320201','03200320202','03200320210','03200320220','03200331132','03200331133','03200331310','03200331311','03200332110','03200332111','03200332112','03200332113','03200332131','03200332133','03200332203','03200332212','03200332220','03200332221','03200332222','03200332223','03200332230','03200332231','03200332232','03200332233','03200332322','03200333000','03200333001','03200333002','03200333003','03200333012','03200333020','03200333021','03200333022','03200333023','03200333030','03201000333','03201001203','03201001212','03201001213','03201001220','03201001221','03201001222','03201001223','03201001230','03201001231','03201001232','03201001233','03201001320','03201001322','03201001323','03201002111','03201002113','03201002303','03201002311','03201002312','03201002313','03201002321','03201002330','03201002331','03201002332','03201002333','03201003000','03201003001','03201003002','03201003003','03201003010','03201003011','03201003012','03201003013','03201003022','03201003023','03201003030','03201003031','03201003032','03201003033','03201003100','03201003101','03201003102','03201003103','03201003110','03201003112','03201003120','03201003121','03201003122','03201003123','03201003200','03201003201','03201003202','03201003203','03201003210','03201003211','03201003212','03201003213','03201003220','03201003221','03201003222','03201003223','03201003230','03201003231','03201003232','03201003233','03201003300','03201003301','03201003302','03201003303','03201003322','03201010032','03201010131','03201010132','03201010133','03201010201','03201010203','03201010210','03201010211','03201010212','03201010213','03201010221','03201010230','03201010231','03201010232','03201010233','03201010300','03201010301','03201010302','03201010303','03201010310','03201010311','03201010312','03201010313','03201010320','03201010321','03201010322','03201010323','03201010330','03201010331','03201011000','03201011001','03201011002','03201011003','03201011010','03201011011','03201011012','03201011013','03201011020','03201011021','03201011022','03201011023','03201011030','03201011031','03201011032','03201011033','03201011100','03201011101','03201011102','03201011103','03201011110','03201011111','03201011112','03201011113','03201011120','03201011121','03201011122','03201011123','03201011130','03201011131','03201011200','03201011201','03201011202','03201011203','03201011210','03201011211','03201011212','03201011213','03201011220','03201011221','03201011222','03201011223','03201011230','03201011231','03201011232','03201012011','03201012100','03201012101','03201012112','03201012113','03201012121','03201012123','03201012130','03201012131','03201012132','03201012133','03201012301','03201012303','03201012310','03201012311','03201012312','03201012313','03201012321','03201012323','03201012330','03201012332','03201013000','03201013001','03201013002','03201013003','03201013010','03201013012','03201013020','03201013021','03201013022','03201013023','03201013030','03201013200','03201020111','03201020132','03201020133','03201021000','03201021001','03201021002','03201021003','03201021010','03201021011','03201021012','03201021013','03201021031','03201022110','03201022111','03201022112','03201022113','03201022130','03201022131','03201023230','03201023231','03201023232','03201023233','03201023302','03201023303','03201023312','03201023313','03201023320','03201023321','03201023322','03201023323','03201023330','03201023331','03201023332','03201023333','03201032220','03201032222','03201100000','03201100001','03201100002','03201100003','03201100010','03201100011','03201100012','03201100013','03201100020','03201100021','03201100100','03201100101','03201100102','03201100110','03201201010','03201201011','03201201100','03201201101','03201201110','03201201111','03201210000','03201210002','03201210020','03201210021','03201210022','03201210023','03201210201','03201210203','03201210210','03201210212','03201210230','03201210232','03201212002','03201212003','03201212010','03201212012','03201220022','03201220200','03202002022','03202002023','03202002032','03202002200','03202002201','03202002202','03202002210','03202010333','03202011222','03202011223','03202011232','03202012111','03202012113','03202012130','03202012131','03202013000','03202013001','03202013002','03202013003','03202013010','03202013012','03202013020','03202013021','03202101311','03202101313','03202101323','03202101332','03202101333','03202102331','03202102333','03202103101','03202103103','03202103110','03202103111','03202103112','03202103113','03202103121','03202103123','03202103130','03202103131','03202103132','03202103133','03202103202','03202103203','03202103220','03202103221','03202103222','03202103223','03202103311','03202110001','03202110003','03202110010','03202110011','03202110012','03202110013','03202110100','03202110200','03202110201','03202110202','03202110203','03202110220','03202112000','03202112002','03202112020','03202112021','03202112022','03202112023','03202112200','03202121023','03202121032','03202121033','03202121201','03202121203','03202121210','03202121211','03202121212','03202121213','03202121300','03202121302','03202121311','03202121313','03202121323','03202121331','03202121332','03202121333','03202123000','03202123001','03202123002','03202123003','03202123010','03202123011','03202123012','03202123013','03202123020','03202123021','03202123022','03202123023','03202123030','03202123031','03202123032','03202123033','03202123100','03202123101','03202123102','03202123103','03202123110','03202123111','03202123112','03202123113','03202123120','03202123121','03202123122','03202123123','03202123130','03202123131','03202123132','03202123133','03202123201','03202123210','03202123211','03202123212','03202123213','03202123300','03202123301','03202123310','03202123311','03202130023','03202130200','03202130201','03202130202','03202130203','03202130210','03202130212','03202130213','03202130220','03202130221','03202130222','03202130223','03202130230','03202130231','03202130232','03202130233','03202130322','03202132000','03202132001','03202132002','03202132003','03202132010','03202132011','03202132012','03202132013','03202132020','03202132021','03202132022','03202132023','03202132030','03202132031','03202132032','03202132033','03202132100','03202132102','03202132120','03202132122','03202132200','03202132201','03202132210','03202132211','03202132300','03202301011','03202301013','03202301031','03202301100','03202301102','03202301103','03202301112','03202301113','03202301120','03202301121','03202301122','03202301123','03202301130','03202301131','03202301132','03202301133','03202301300','03202301301','03202301310','03202301311','03202310020','03202310022','03202310133','03202310200','03202310311','03202310312','03202310313','03202310321','03202310323','03202310330','03202310331','03202310332','03202310333','03202311002','03202311020','03202311022','03202311200','03202311202','03202311220','03202311222','03202312100','03202312101','03202312102','03202312103','03202312110','03202312111','03202312112','03202312113','03202312121','03202312123','03202312130','03202312131','03202312132','03202312133','03202313000','03202313002','03311033103','03311033112','03311033121','03311033123','03311033130','03311033131','03311033132','03311103000','03311103001','03311120231','03311120233','03311120320','03311120321','03311120322','03311120323','12000313012','12000313013','12000313030','12000313031','12000313102','12002131031','12002131033','12002131120','12002131121','12002131122','12002131123','12002131130','12002131131','12002131132','12002131133','12002131202','12002131203','12002131211','12002131212','12002131221','12002131230','12002131300','12002131301','12002131303','12012003233','12012003303','12012003312','12012003313','12012003320','12012003321','12012003322','12012003323','12012003330','12012003331','12012003332','12012003333','12012021011','12012021013','12012021100','12012021101','12012021102','12012021103','12012021110','12012021111','12012021112','12012021113','12020022312','12020022313','12020022330','12020022331','12020022332','12020022333','12020023202','12020023220','12020023221','12020023222','12020023223','12020023230','12020023232','12020112103','12020112112','12020112121','12020112130','12020121222','12020121223','12020121303','12020121312','12020121321','12020121330','12020122100','12020122101','12020122102','12020122103','12020122232','12020122233','12020123000','12020123001','12020123112','12020123113','12020123130','12020123131','12020130202','12020130203','12020130220','12020130221','12020131000','12020131001','12020131002','12020131003','12020131120','12020131121','12020131122','12020131123','12020132003','12020132012','12020132020','12020132021','12020132022','12020132023','12020132030','12020132031','12020132032','12020132033','12020133220','12020133221','12020133222','12020133223','12020200002','12020200003','12020200020','12020200021','12020200022','12020200023','12020200132','12020200133','12020200220','12020200221','12020200222','12020200223','12020200232','12020200233','12020200302','12020200303','12020200310','12020200311','12020200322','12020200330','12020201001','12020201010','12020202000','12020202001','12020202002','12020202003','12020202010','12020202011','12020202012','12020202013','12020202020','12020202021','12020202100','12020202101','12020202102','12020202113','12020202121','12020202122','12020202123','12020202130','12020202131','12020202223','12020202230','12020202231','12020202232','12020202233','12020202300','12020202301','12020202303','12020202310','12020202311','12020202312','12020202320','12020203002','12020203020','12020210133','12020210313','12020211022','12020211023','12020211122','12020211123','12020211200','12020211201','12020211202','12020211203','12020211210','12020211212','12020211220','12020211221','12020211232','12020211233','12020211300','12020211301','12020211331','12020213010','12020213011','12020213022','12020213023','12020213200','12020213201','12020213331','12020213333','12020220001','12020300010','12020300011','12020300202','12020300203','12020300220','12020300221','12020300323','12020300332','12020301003','12020301012','12020301013','12020301021','12020301030','12020301031','12020301102','12020301103','12020301112','12020301120','12020301121','12020301130','12020301210','12020301211','12020301212','12020301213','12020301300','12020301302','12020301320','12020301321','12020301322','12020301323','12020301333','12020302012','12020302013','12020302030','12020302031','12020302220','12020302221','12020302222','12020302230','12020302231','12020302232','12020302233','12020303103','12020303112','12020303121','12020303130','12020310012','12020310013','12020310022','12020310023','12020310030','12020310123','12020311100','12020311101','12020312121','12020312123','12020312130','12020312132','12020313310','12020313312','12020313313','12020313330','12020313331','12020320010','12020320011','12020321113','12020322101','12020322103','12020322110','12020322311','12020322313','12020323131','12020323132','12020323133','12020323202','12020323310','12020323311','12020323331','12020323333','12020330002','12020330112','12020330113','12020330130','12020330131','12020330212','12020330213','12020330231','12020330320','12020331222','12020331323','12020331332','12020332020','12020332022','12020332200','12020332220','12020332222','12020332223','12020332233','12020332302','12020332320','12020332322','12020333000','12020333112','12020333121','12020333123','12020333130','12020333131','12020333132','12020333133','12020333310','12020333311','12021002322','12021002323','12021003203','12021003212','12021003221','12021003223','12021003230','12021003232','12021003301','12021003303','12021003310','12021003321','12021020100','12021020101','12021200021','12021200023','12021200030','12021200032','12021200110','12021200111','12021200112','12021200113','12021200210','12021200302','12021200303','12021200312','12021200320','12021200321','12021200330','12021201001','12021201003','12021201010','12021201012','12021202011','12021202013','12021202100','12021202102','12021202103','12021202112','12021202113','12021202120','12021202121','12021202123','12021202130','12021202131','12021202132','12021202202','12021202203','12021202212','12021202220','12021202221','12021202230','12021202320','12021202321','12021202322','12021202323','12021203221','12021203222','12021203223','12021203301','12021203303','12021203310','12021203312','12021210221','12021210223','12021210230','12021212123','12021212300','12021212301','12021220102','12021220103','12021220120','12021220121','12021220221','12021220223','12021220230','12021220232','12022002211','12022002213','12022002300','12022002302','12022020023','12022020032','12022020201','12022020210','12022021003','12022021021','12022022112','12022022113','12022022130','12022022131','12022032003','12022032012','12022032021','12022032030','12022033013','12022033030','12022033031','12022033033','12022033102','12022033120','12022033122','12022033200','12022033201','12022033202','12022033203','12022101110','12022101112','12022101113','12022101122','12022101123','12022101300','12022101301','12022101322','12022101333','12022103100','12022110001','12022110011','12022110012','12022110013','12022110030','12022110031','12022110033','12022110100','12022110101','12022110102','12022110103','12022110111','12022110112','12022110113','12022110120','12022110121','12022110122','12022110130','12022110131','12022110222','12022111000','12022111001','12022111002','12022111200','12022111201','12022111301','12022111303','12022111310','12022111312','12022112031','12022112033','12022112120','12022112122','12022113012','12022113030','12022120230','12022120231','12022120232','12022120233','12022121001','12022121003','12022121010','12022121012','12022122023','12022122201','12022122210','12022122220','12022122222','12022122223','12022123232','12022123233','12022123313','12022123322','12022123331','12022131333','12022132122','12022132123','12022132130','12022132131','12022132132','12022132133','12022132202','12022132211','12022132212','12022132213','12022132220','12022132230','12022132231','12022132233','12022132300','12022132301','12022132302','12022132320','12022132321','12022132322','12022132330','12022133023','12022133032','12022133111','12022133201','12022133210','12022133222','12022133223','12022133323','12022202133','12022202311','12022203022','12022203200','12022212123','12022212132','12022212212','12022212230','12022212301','12022212310','12022213002','12022213003','12022213010','12022213011','12022213012','12022213013','12022213020','12022213021','12022213030','12022213032','12022213310','12022213311','12022213312','12022213313','12022213330','12022213331','12022222031','12022222033','12022222330','12022222331','12022222332','12022222333','12022223220','12022230020','12022230022','12022301010','12022301011','12022301013','12022301100','12022301102','12022301112','12022301113','12022301331','12022302133','12022302311','12022303021','12022303022','12022303023','12022303030','12022303200','12022310000','12022310001','12022310002','12022310003','12022310110','12022310111','12022310203','12022310210','12022310211','12022310212','12022310213','12022310220','12022311030','12022311031','12022311033','12022311120','12022311121','12022311122','12022311123','12022311130','12022311132','12022311301','12022311310','12022311311','12022313001','12022313003','12022313010','12022313012','12022313013','12022313030','12022313031','12022313032','12022313033','12022313101','12022313102','12022313103','12022313110','12022313112','12022313113','12022313120','12022313131','12022313133','12022313210','12022331112','12022331113','12022331130','12022331131','12023000002','12023000003','12023000120','12023000121','12023000122','12023000123','12023000203','12023000212','12023000220','12023000221','12023000222','12023000223','12023000230','12023000232','12023002100','12023002101','12023002102','12023002103','12023020200','12023021232','12023021233','12023022023','12023022032','12023022111','12023022113','12023022121','12023022123','12023022130','12023022132','12023022201','12023022210','12023022211','12023022213','12023022232','12023022233','12023022301','12023022302','12023022303','12023022310','12023022311','12023022312','12023022321','12023022323','12023022330','12023022332','12023023000','12023023002','12023023010','12023023011','12023023121','12023023123','12023023130','12023023132','12023023133','12023200003','12023200010','12023200011','12023200012','12023200021','12023200030','12023200200','12023200201','12023200202','12023200212','12023200213','12023200230','12023200231','12023200301','12023200303','12023200310','12023200312','12023200320','12023200322','12023200323','12023200333','12023202002','12023202020','12023202022','12023202111','12023202202','12023202211','12023202213','12023202220','12023202323','12023202332','12023203000','12023203002','12023203003','12023203012','12023203021','12023203030','12023203122','12023203123','12023203300','12023203301','12023220101','12023220110','12023220133','12023220300','12023220301','12023220302','12023220303','12023220311','12023220323','12023220332','12023220333','12023221022','12023221102','12023221103','12023221112','12023221121','12023221123','12023221130','12023221132','12023221200','12023221222','12023222101','12023222103','12023222110','12023222111','12023222112','12023222113','12023222121','12023222130','12023222131','12023223000','12023223001','12023223002','12023223003','12023223022','12023223023','12023223200','12023223201','12023230200','12023230201','12023230202','12023230203','12023232033','12023232222','12023232223','12023232231','12023232233','12023232320','12023232322','12023233200','12023233331','12023233333','12023322220','12023322222','12200110002','12200110003','12200110020','12200110021','12200112211','12200112213','12200112300','12200112302','12201001111','12201001113','12201010000','12201010001','12201010002','12201010003','12201010010','12201010012','12201010013','12201010030','12201010031','12201010102','12201010120','12201011112','12201011130','12201013300','12201013323','12201013330','12201013332','12201013333','12201021211','12201021213','12201021300','12201021302','12201030313','12201031022','12201031023','12201031110','12201031200','12201031201','12201031202','12201031203','12201031220','12201031221','12201032103','12201032112','12201100023','12201100032','12201100121','12201100130','12201100201','12201100210','12201100311','12201102203','12201102221'];this.Init=function(a){obliqueUrl=a};this.Destroy=function(){};function IsValidTile(b,c,a){return scene.IsValidTile(b,c,a)}function GetFilename(a,b,c){return scene.GetTileFilename(a,b,c)}function MetersPerPixel(d){if(!scene)return 0;var a=new Msn.VE.Pixel(MathRound(originX+offsetX+width/2),MathRound(originY+offsetY+height/2)),e=scene.PixelToLatLong(a,d);a.x++;var f=scene.PixelToLatLong(a,d),g=Math.sin(DegToRad(e.latitude)),h=Math.sin(DegToRad(f.latitude)),b=earthRadius/2*MathAbs(Math.log((1+g)/(1-g))-Math.log((1+h)/(1-h))),c=earthRadius*MathAbs(DegToRad(e.longitude)-DegToRad(f.longitude));return Math.sqrt(c*c+b*b)}function PixelToLatLong(b,a){return scene?scene.PixelToLatLong(b,a):null}function LatLongToPixel(b,a){return scene?scene.LatLongToPixel(b,a):null}function GetCurrentMaxZoomLevel(){return 2}function ValidateZoomLevel(a){if(a.zoomLevel>=2)tileLayerManager.SetMarketMaxZoom(2);if(a.zoomLevel<1)a.SetZoomLevel(1);else if(a.zoomLevel>2)a.SetZoomLevel(2)}function GetScene(){return scene}function GetBounds(){return scene.GetBounds()}function IsAvailable(){return available}function GetEventInfo(){if(!available)return null;var a=new Object;return a}function UpdateAvailability(){if(currentView.mapStyle==obliqueStyle)return;if(currentView.zoomLevel<=0)return;if(currentView.zoomLevel0;b--){var a=0,f=1<=0&&b>=0&&a=k&&f<=i&&g>=l&&g<=j)if(d>=a[b].z1&&d<=a[b].z2||d<=tileLayerManager.GetMaxTileZoom())return a[b]}}function c(e){var f=e.center.x+mapCenterOffset.x,g=e.center.y+mapCenterOffset.y,c=0;for(var b=0;b=j&&f<=h&&g>=k&&g<=i)c=Math.max(c,a[b].z2)}c=Math.max(c,tileLayerManager.GetMaxTileZoom());return c}function d(d){var f=d.center.x+mapCenterOffset.x,g=d.center.y+mapCenterOffset.y,c=0;for(var b=0;b=j&&f<=h&&g>=k&&g<=i){c=0;if(a[b].z2>=d.zoomLevel){tileLayerManager.SetMarketMaxZoom(a[b].z2);return}else if(a[b].z2>c){tileLayerManager.SetMarketMaxZoom(a[b].z2);c=a[b].z2;if(c1&&MathAbs(e-f)>1){var b=preferredView.MakeCopy();b.SetZoomLevel(currentView.zoomLevel);b.SetPixelRectangle(new Msn.VE.PixelRectangle(new Msn.VE.Pixel(originX+c,originY+e),new Msn.VE.Pixel(originX+d,originY+f)));SetView(b)}l();if(a.releaseCapture)a.releaseCapture()}function h(e,f,d,c){g(b,e+1,f+1,d,c);g(a,e,f,d,c)}function g(a,d,e,c,b){a.style.left=d+"px";a.style.top=e+"px";a.style.width=c+"px";a.style.height=b+"px"}function m(){b.style.display="block";a.style.display="block"}function l(){b.style.display="none";a.style.display="none"}this.OnMouseDown=i;this.OnMouseMove=j;this.OnMouseUp=k}function PanTool(){var a=false;this.Init=function(){};this.Destroy=function(){};function b(b){a=false;lastMouseX=GetMouseX(b);lastMouseY=GetMouseY(b);if(p_elSource.setCapture)p_elSource.setCapture();var d=originX+offsetX+GetMouseX(b)-x,e=originY+offsetY+GetMouseY(b)-y,c=CreateEvent(currentMode.PixelToLatLong(new Msn.VE.Pixel(d,e),currentView.zoomLevel));Fire("onstartcontinuouspan",c);Fire("onmousedown",c)}function c(d){var b=GetMouseX(d),c=GetMouseY(d);PanMap(lastMouseX-b,lastMouseY-c);lastMouseX=b;lastMouseY=c;a=true}function d(c){ComputeCenterPoint(true);if(p_elSource.releaseCapture)p_elSource.releaseCapture();if(a){Fire("onendcontinuouspan");Fire("onchangeview");a=false}var d=originX+offsetX+GetMouseX(c)-x,e=originY+offsetY+GetMouseY(c)-y,b=CreateEvent(currentMode.PixelToLatLong(new Msn.VE.Pixel(d,e),currentView.zoomLevel));Fire("onmouseup",b);Fire("onclick",b);return b}this.OnMouseDown=b;this.OnMouseMove=c;this.OnMouseUp=d}function GetTrafficAvailability(){return trafficAvailable}function GetSlidingExpirationForAutoRefresh(){return 1800000}function GetAutoRefreshRate(){return 300000}function GetMarketsFile(){return "http://t1.traffic.virtualearth.net/incidents/markets.js"}function GetIncidentsFile(){return "http://t0.traffic.virtualearth.net/incidents/market"}var setTrafficViewflag=true;function SetTrafficView(){var a=new VETileSourceSpecification;a.ID=trafficTiles;a.SourceName="http://t%2.traffic.virtualearth.net/Flow/t%4.png";a.NumServers=2;tileLayerManager.AddTileSource(a);tileLayerManager.LoadTileLayer("Traffic",a.ID,0.6,1)}function VETileLayerManager(){var c=[],a=[],b=[],g=[],h=[],f=null,d=17;this.AddTileSource=function(a){if(c[a.ID]==null||c[a.ID]=="undefined")c[a.ID]=a;};this.LoadBaseLayer=function(d,e,f,g){if(a[d]==null||a[d]=="undefined"){a[d]=c[e];b.push(d)}a[d].opacity=f;a[d].zIndex=g};this.LoadTileLayer=function(d,e,h,i){if(a[d]==null||a[d]=="undefined"){a[d]=c[e];b.push(d)}if(a[d].currentTileList!=null)ClearTiles(a[d].currentTileList);a[d].currentTileList=[];a[d].oldTilesList=[];if(h!=null&&h!="undefined")a[d].opacity=h;else a[d].opacity=1;if(i!=null&&i!="undefined")a[d].zIndex=i;else a[d].zIndex=1;var f=false,g=c[e].MaxZoom;if(g==1)g=c[mapTiles].MaxZoom;if(currentView.zoomLevel>=c[e].MinZoom&¤tView.zoomLevel<=g)if(c[e].Bounds!="undefined"&&c[e].Bounds!=null)f=tileLayerManager.CheckTilesAvailability(e,d);else f=true;if(f){a[d].isActive=true;for(var k=tileViewportY1;k<=tileViewportY2;k++)for(var j=tileViewportX1;j<=tileViewportX2;j++){var l=RequestTile(j,k,currentView.zoomLevel,currentView.mapStyle,a[d],e,a[d].opacity,a[d].zIndex);a[d].currentTileList.push(l)}}};this.SetViewPort=function(){map.style.top="0px";map.style.left="0px";originX=MathRound(currentView.center.x-width/2);originY=MathRound(currentView.center.y-height/2);offsetX=0;offsetY=0;tileViewportX1=MathFloor((originX-buffer)/tileSize);tileViewportY1=MathFloor((originY-buffer)/tileSize);tileViewportX2=MathFloor((originX+width+buffer)/tileSize);tileViewportY2=MathFloor((originY+height+buffer)/tileSize);tileViewportWidth=tileViewportX2-tileViewportX1+1;tileViewportHeight=tileViewportY2-tileViewportY1+1};this.FinalizeView=function(){zooming=false;for(var c=0;c=0;d--)for(var c=0;c0){var f=a[b[c]].currentTileList.splice(d*tileViewportWidth,1)[0];try{f.RemoveFromMap()}catch(m){}}tileViewportX1++;tileViewportWidth--}while(tileViewportX1>i){tileViewportX1--;tileViewportWidth++;for(d=0;d0){f=RequestTile(tileViewportX1,tileViewportY1+d,currentView.zoomLevel,currentView.mapStyle,a[b[c]],b[c],a[b[c]].opacity,a[b[c]].zIndex);a[b[c]].currentTileList.splice(d*tileViewportWidth,0,f)}}while(tileViewportY10){f=a[b[c]].currentTileList.shift();try{f.RemoveFromMap()}catch(m){}}tileViewportY1++;tileViewportHeight--}while(tileViewportY1>k){tileViewportY1--;tileViewportHeight++;for(e=tileViewportWidth-1;e>=0;e--)for(c=0;c0){f=RequestTile(tileViewportX1+e,tileViewportY1,currentView.zoomLevel,currentView.mapStyle,a[b[c]],b[c],a[b[c]].opacity,a[b[c]].zIndex);a[b[c]].currentTileList.unshift(f)}}while(tileViewportX2>j){for(d=tileViewportHeight-1;d>=0;d--)for(c=0;c0){f=a[b[c]].currentTileList.splice(d*tileViewportWidth+tileViewportWidth-1,1)[0];try{f.RemoveFromMap()}catch(m){}}tileViewportX2--;tileViewportWidth--}while(tileViewportX20){f=RequestTile(tileViewportX2,tileViewportY1+d,currentView.zoomLevel,currentView.mapStyle,a[b[c]],b[c],a[b[c]].opacity,a[b[c]].zIndex);a[b[c]].currentTileList.splice(d*tileViewportWidth+tileViewportWidth-1,0,f)}}while(tileViewportY2>l){for(e=0;e0){f=a[b[c]].currentTileList.pop();try{f.RemoveFromMap()}catch(m){}}tileViewportY2--;tileViewportHeight--}while(tileViewportY20){f=RequestTile(tileViewportX1+e,tileViewportY2,currentView.zoomLevel,currentView.mapStyle,a[b[c]],b[c],a[b[c]].opacity,a[b[c]].zIndex);a[b[c]].currentTileList.push(f)}}};this.StepAnimation=e;this.zoomView=function(e){var i=originX+offsetX,j=originY+offsetY,l=currentView.zoomLevel,h=e.zoomLevel,f=MathRound(e.center.x-width/2),g=MathRound(e.center.y-height/2);a[mapTiles].oldTilesList=a[mapTiles].currentTileList;for(var c=0;cd)d=b.MaxZoom}if(a.GetTilePath!="undefined"&&a.GetTilePath!=null)b.GetTilePath=a.GetTilePath;tileLayerManager.AddTileSource(b)};this.DeleteTileSource=function(e){if(c[e]!=null&&c[e]!="undefined"){c[e]=null;delete c[e]}if(b!=null)for(var d=0;db.northwest.latitude||a.southeast.longitudeb.southeast.longitude)};this.ShowTrafficLegend=function(a){f=a;Fire("onapitrafficdisplay")};this.HideTrafficLegend=function(){Fire("onapitraffichide")};this.GetTimeStamp=function(){return f};this.GetMaxTileZoom=function(){return d};this.SetMarketMaxZoom=function(a){marketMaxZoom=a;c[mapTiles].MaxZoom=a}}function VETileSourceSpecification(){this.ID="";this.SourceName="";this.NumServers=0;this.Bounds=null;this.MinZoom=minZoom;this.MaxZoom=1;this.GetTilePath=function(a){try{if(a!=null&&a!="undefined"){var e="",b=0;for(var c=a.ZoomLevel;c>0;c--){b=0;var d=1<  '+l149amt;c.style.display="none";c.attachEvent("onclick",w);o.appendChild(c)}function X(){i=document.createElement("div");i.className="VE_Traffic_PanelText VE_Traffic_PanelText_Tiny";i.innerHTML="";i.style.display="none";s.appendChild(i)}function R(){D(x);if($MVEM.IsEnabled(MapControl.Features.MapStyle.Hybrid))d.style.display="none";if(g)g.Hide();m.Hide();j.Show();if(a.IsObliqueAvailable()&&$MVEM.IsEnabled(MapControl.Features.MapStyle.BirdsEye)&&(!b||b==Msn.VE.DashboardSize.Normal))c.style.display="block";if(e)e.Show();h.Hide()}function O(){D(v);if($MVEM.IsEnabled(MapControl.Features.MapStyle.Hybrid))d.style.display="block";if(g)g.Hide();m.Hide();j.Show();if($MVEM.IsEnabled(MapControl.Features.MapStyle.Hybrid))if(a.GetMapStyle()=="h")l.checked=true;else l.checked=false;if(a.IsObliqueAvailable()&&$MVEM.IsEnabled(MapControl.Features.MapStyle.BirdsEye)&&(!b||b==Msn.VE.DashboardSize.Normal))c.style.display="block";if(e)e.Show();h.Hide()}function N(){D(p);d.style.display="none";c.style.display="none";g.Show();j.Hide();m.Show();if(e)e.Hide();h.Show()}function M(){p.className="Dashboard_tab Dashboard_unselected";c.style.display="block"}function I(){p.className="Dashboard_tab Dashboard_disabled";c.style.display="none"}function U(){a.SetMapStyle("r")}function T(){if((P||l.checked)&&$MVEM.IsEnabled(MapControl.Features.MapStyle.Hybrid))a.SetMapStyle("h");else a.SetMapStyle("a");P=false}function w(){a.SetMapStyle("o")}function L(){var b=a.GetMapStyle();if(b=="a"){a.SetMapStyle("h");l.checked=true}else if(b=="h"){a.SetMapStyle("a");l.checked=false}}function V(){j.UpdateFromMap();m.UpdateFromMap()}function J(){if(a.GetMapStyle()=="o")return;M();h.UpdateFromMap()}function K(){I()}function E(a){switch(a.view.mapStyle){case "r":R();break;case "a":case "h":O();break;case "o":N();break}}function H(){g.Update();h.UpdateFromMap()}function Y(){i.style.display="block";if(a.GetZoomLevel()<9)i.innerHTML="
"+l87Zt+"
";else if(a.GetZoomLevel()>15)i.innerHTML="
"+l782Yt+"
";else i.innerHTML="
"+MapControl.Features.Traffic.Flow.Slow+"
"+"
"+MapControl.Features.Traffic.Flow.Moderate+"
"+"
"+MapControl.Features.Traffic.Flow.Fast+"
"+"
"+a.GetTimeStamp()+"
"}function ab(){i.style.display="none"}function fb(j){var b=document.createElement("div"),e=0,f=0,d=false,c=15;this.Init=function(){b.className="Compass";b.attachEvent("onmousedown",g);b.attachEvent("onmouseup",i);b.attachEvent("onmousemove",h);b.attachEvent("ondblclick",IgnoreEvent);j.appendChild(b)};this.Destroy=function(){b.detachEvent("onmousedown",g);b.detachEvent("onmouseup",i);b.detachEvent("onmousemove",h);b.detachEvent("ondblclick",IgnoreEvent);b=null};function g(g){g=GetEvent(g);CancelEvent(g);e=GetLeftPosition(b);f=GetTopPosition(b);if(b.setCapture)b.setCapture();var h=GetMouseX(g)-e-b.offsetWidth/2,i=GetMouseY(g)-f-b.offsetHeight/2;h=Math.min(Math.max(h,-c),c);i=Math.min(Math.max(i,-c),c);a.ContinuousPan(h,i);d=true;return false}function h(g){g=GetEvent(g);CancelEvent(g);if(d){var h=GetMouseX(g)-e-b.offsetWidth/2,i=GetMouseY(g)-f-b.offsetHeight/2;h=Math.min(Math.max(h,-c),c);i=Math.min(Math.max(i,-c),c);a.ContinuousPan(h,i)}return false}function i(c){c=GetEvent(c);CancelEvent(c);if(b.releaseCapture)b.releaseCapture();a.StopContinuousPan();d=false;return false}function k(){b.style.display="none"}function l(){b.style.display="block"}this.Hide=k;this.Show=l}function bb(e){var c=document.createElement("table"),b=new Array(3);this.Init=function(){c.className="obliqueSelectorTable";g();e.appendChild(c);var j=document.createElement("tbody");j.className="obliqueSelectorTable";c.appendChild(j);for(var a=0;a<3;a++){var k=document.createElement("tr");j.appendChild(k);b[a]=new Array(3);for(var f=0;f<3;f++){var i=document.createElement("div"),h=document.createElement("td");k.appendChild(h);h.appendChild(i);i.className="Dashboard_thumbnail";if(a==1&&f==1){b[a][f]=new d(i,false);h.className="obliqueSelectorCellCenter"}else{b[a][f]=new d(i,true);h.className="obliqueSelectorCellOff"}b[a][f].Init()}}};this.Destroy=function(){e.removeChild(c);c=null;for(var a=0;a';if(d)b.style.cursor="pointer"}else{b.innerHTML="";b.style.cursor="default"}if(d)b.parentNode.className="obliqueSelectorCellOff"};function g(){if(!c)return;a.SetObliqueScene(c.GetID())}function e(){b.parentNode.className="obliqueSelectorCellOn"}function f(){b.parentNode.className="obliqueSelectorCellOff"}}this.Update=f;this.Show=h;this.Hide=g}function eb(k){var c=document.createElement("div"),f=document.createElement("div"),d=document.createElement("div"),b=document.createElement("div"),e=document.createElement("div"),u=0,x=0,i=false;this.Init=function(){e.className="ZoomBar_minus";e.unselectable="on";e.attachEvent("onclick",r);b.className="ZoomBar_slider";b.unselectable="on";b.attachEvent("onmousedown",o);b.attachEvent("onmousemove",p);b.attachEvent("onmouseup",q);b.attachEvent("onclick",IgnoreEvent);d.className="ZoomBar_bar";d.unselectable="on";d.appendChild(b);d.attachEvent("onclick",s);f.className="ZoomBar_plus";f.unselectable="on";f.attachEvent("onclick",t);c.className="ZoomBar";c.appendChild(e);c.appendChild(d);c.appendChild(f);c.attachEvent("onmousedown",IgnoreEvent);c.attachEvent("onmouseup",IgnoreEvent);c.attachEvent("onclick",IgnoreEvent);c.attachEvent("ondblclick",IgnoreEvent);k.appendChild(c);h()};this.Destroy=function(){e.detachEvent("onclick",r);b.detachEvent("onmousedown",o);b.detachEvent("onmousemove",p);b.detachEvent("onmouseup",q);b.detachEvent("onclick",IgnoreEvent);d.removeChild(b);d.detachEvent("onclick",s);f.detachEvent("onclick",t);c.removeChild(f);c.removeChild(d);c.removeChild(e);c.detachEvent("onmousedown",IgnoreEvent);c.detachEvent("onmousedown",IgnoreEvent);c.detachEvent("onclick",IgnoreEvent);c.detachEvent("ondblclick",IgnoreEvent);k.removeChild(c);a.DetachEvent("onendzoom",h);e=b=d=f=c=k=a=null};function w(){c.style.display="block"}function v(){c.style.display="none"}function l(){u=GetLeftPosition(c);x=GetTopPosition(c)}function o(a){a=GetEvent(a);CancelEvent(a);l();if(b.setCapture)b.setCapture();i=true;return false}function p(a){a=GetEvent(a);CancelEvent(a);if(i)b.style.left=g(GetMouseX(a))+"px";return false}function q(a){a=GetEvent(a);CancelEvent(a);if(b.releaseCapture)b.releaseCapture();i=false;n(g(GetMouseX(a)));j.UpdateFromMap();m.UpdateFromMap();return false}function t(){if(a.GetCurrentViewMaxZoomLevel()>a.GetZoomLevel())a.ZoomIn()}function r(){if(a.GetZoomLevel()>1)a.ZoomOut()}function s(a){a=GetEvent(a);CancelEvent(a);l();n(g(GetMouseX(a)));return false}function g(a){a-=u+e.offsetWidth+b.offsetWidth;var c=d.offsetWidth-b.offsetWidth;if(a<0)a=0;else if(a>c)a=c;return a}function n(f){var e=d.offsetWidth-b.offsetWidth,c=1+MathRound(f/e*(a.GetCurrentViewMaxZoomLevel()-1));a.SetZoom(c)}function h(){var c=d.offsetWidth-b.offsetWidth,e=(a.GetZoomLevel()-1)/(a.GetCurrentViewMaxZoomLevel()-1)*c;b.style.left=e+"px"}this.UpdateFromMap=h;this.Show=w;this.Hide=v}function db(i){var b=document.createElement("div"),d=document.createElement("div"),c=document.createElement("div");b.title=l601aot;b.setAttribute("id","obliqueZoomContainer");d.setAttribute("id","obliqueZoomSmall");d.className="obliqueZoomSmallOn";c.setAttribute("id","obliqueZoomLarge");c.className="obliqueZoomLargeOff";d.attachEvent("onclick",f);c.attachEvent("onclick",e);b.appendChild(d);b.appendChild(c);i.appendChild(b);function k(){b.style.display="block"}function j(){b.style.display="none"}function f(){a.ZoomOut();d.className="obliqueZoomSmallOn";c.className="obliqueZoomLargeOff"}function e(){a.ZoomIn();d.className="obliqueZoomSmallOff";c.className="obliqueZoomLargeOn"}function h(){d.detachEvent("onclick",f);c.detachEvent("onclick",e);b.removeChild(d);b.removeChild(c);d=null;c=null;b.parentNode.removeChild(b);b=null}function g(){if(a.GetZoomLevel()==1){d.className="obliqueZoomSmallOn";c.className="obliqueZoomLargeOff"}else{d.className="obliqueZoomSmallOff";c.className="obliqueZoomLargeOn"}}this.Destroy=h;this.Show=k;this.Hide=j;this.UpdateFromMap=g}function r(w,u,v){var a=document.createElement("div");a.setAttribute("id",w);a.innerHTML=u;var c="obliqueCompassPointOff",f=v;a.attachEvent("onmouseover",e);a.attachEvent("onmouseout",g);a.attachEvent("onclick",h);this.onclick=null;this.onmouseover=null;this.onmouseout=null;var b=this,d=false,i=new s(a,17,17);function e(e){if(d)return;c=a.className;a.className="obliqueCompassPointHover";if(b.onmouseover)b.onmouseover(e)}function h(a){if(d)return;e(a);c="obliqueCompassPointOn";if(b.onclick)b.onclick(a)}function g(e){if(d)return;a.className=c;if(b.onmouseout)b.onmouseout(e)}function l(){c="obliqueCompassPointOn";a.className="obliqueCompassPointOn"}function k(){c="obliqueCompassPointOff";a.className="obliqueCompassPointOff"}function r(){d=true;k()}function j(){d=false;l()}function p(){return a}function m(){return f}function n(a){f=a}function t(){i.Reset();j()}function o(b){a.style.left=b.left;a.style.top=b.top}function s(s,o,p){var g=s,a=0,b=0.3,d=0,m=40,h=25,c=false,l=Math.PI/2,i=true,q=b+0.1;function n(a,b,c){if(b>=c-a&&b<=c+a)return true;return false}function j(){a+=b;if(a>Math.PI*2)a-=Math.PI*2;else if(a<0)a+=Math.PI*2;if(n(q,a,d)){b=0.3;a=d;e(a);c=false;return}e(a);window.setTimeout(j,m)}function e(a){var b=o+h*Math.sin(a),c=p+h*Math.cos(a);g.style.left=b+"px";g.style.top=c+"px"}function f(a){if(c)return;c=true;d=a;j()}function k(a,c){i=c;if(!i)b*=-1;f(l*a)}function r(){c=false;a=0}this.RotateTo=f;this.RotateToIndex=k;this.Reset=r}function q(){a.parentNode.removeChild(a);a.detachEvent("onmouseover",e);a.detachEvent("onmouseout",g);a.detachEvent("onclick",h);a=null}this.GetElement=p;this.GetCurrentPositionIndex=m;this.SetCurrentPositionIndex=n;this.SetCurrentPosition=o;this.On=l;this.Off=k;this.RotateToIndex=i.RotateToIndex;this.Reset=t;this.Disable=r;this.Enable=j;this.Destroy=q}function cb(D){var o=[];o.push({"top":"-8px","left":"17px"});o.push({"top":"17px","left":"42px"});o.push({"top":"42px","left":"17px"});o.push({"top":"17px","left":"-8px"});var b=document.createElement("div");b.setAttribute("id","obliqueCompassContainer");b.title=l695apt;var c=new r("obliqueCompassPointN","N",0),j=c.GetElement();j.attachEvent("onclick",s);j.attachEvent("onmouseover",v);j.attachEvent("onmouseout",h);var e=new r("obliqueCompassPointE","E",1),l=e.GetElement();l.attachEvent("onclick",u);l.attachEvent("onmouseover",y);l.attachEvent("onmouseout",h);var d=new r("obliqueCompassPointS","S",2),k=d.GetElement();k.attachEvent("onclick",t);k.attachEvent("onmouseover",w);k.attachEvent("onmouseout",h);var f=new r("obliqueCompassPointW","W",3),m=f.GetElement();m.attachEvent("onclick",x);m.attachEvent("onmouseover",z);m.attachEvent("onmouseout",h);var n=document.createElement("div");b.appendChild(j);b.appendChild(l);b.appendChild(k);b.appendChild(m);b.appendChild(n);D.appendChild(b);q();function p(a){if(a<0)a=4-Math.abs(a);return a}function i(g){var b=g.GetCurrentPositionIndex();e.SetCurrentPositionIndex(p(e.GetCurrentPositionIndex()-b));f.SetCurrentPositionIndex(p(f.GetCurrentPositionIndex()-b));c.SetCurrentPositionIndex(p(c.GetCurrentPositionIndex()-b));d.SetCurrentPositionIndex(p(d.GetCurrentPositionIndex()-b));var a=true;if(b==3)a=false;c.RotateToIndex(2-c.GetCurrentPositionIndex()<0?c.GetCurrentPositionIndex():2-c.GetCurrentPositionIndex(),a);e.RotateToIndex(2-e.GetCurrentPositionIndex()<0?e.GetCurrentPositionIndex():2-e.GetCurrentPositionIndex(),a);d.RotateToIndex(2-d.GetCurrentPositionIndex()<0?d.GetCurrentPositionIndex():2-d.GetCurrentPositionIndex(),a);f.RotateToIndex(2-f.GetCurrentPositionIndex()<0?f.GetCurrentPositionIndex():2-f.GetCurrentPositionIndex(),a)}function g(a){switch(a){case 0:h();break;case 1:A();break;case 2:B();break;case 3:C();break}}function h(){n.className="obliqueCompassArrowU"}function B(){n.className="obliqueCompassArrowD"}function A(){n.className="obliqueCompassArrowR"}function C(){n.className="obliqueCompassArrowL"}function t(){i(d);g(0);var b=a.GetObliqueScene();if(b){var c=b.GetRotation("South");if(c)a.SetObliqueOrientation("South")}}function s(){i(c);g(0);var b=a.GetObliqueScene();if(b){var d=b.GetRotation("North");if(d)a.SetObliqueOrientation("North")}}function u(){i(e);g(0);var b=a.GetObliqueScene();if(b){var c=b.GetRotation("East");if(c)a.SetObliqueOrientation("East")}}function x(){i(f);g(0);var b=a.GetObliqueScene();if(b){var c=b.GetRotation("West");if(c)a.SetObliqueOrientation("West")}}function w(){g(d.GetCurrentPositionIndex())}function y(){g(e.GetCurrentPositionIndex())}function z(){g(f.GetCurrentPositionIndex())}function v(){g(c.GetCurrentPositionIndex())}function F(){b.style.display="none"}function G(){b.style.display="block"}function q(){var b=a.GetObliqueScene();if(!b)return;switch(b.GetOrientation()){case "North":i(c);break;case "South":i(d);break;case "East":i(e);break;case "West":i(f);break}g(0);if(b.GetRotation("North"))c.Enable();else c.Disable();if(b.GetRotation("South"))d.Enable();else d.Disable();if(b.GetRotation("East"))e.Enable();else e.Disable();if(b.GetRotation("West"))f.Enable();else f.Disable()}function E(){c.Destroy();e.Destroy();d.Destroy();f.Destroy();j.detachEvent("onclick",s);j.detachEvent("onmouseover",v);j.detachEvent("onmouseout",h);l.detachEvent("onclick",u);l.detachEvent("onmouseover",y);l.detachEvent("onmouseout",h);k.detachEvent("onclick",t);k.detachEvent("onmouseover",w);k.detachEvent("onmouseout",h);m.detachEvent("onclick",x);m.detachEvent("onmouseover",z);m.detachEvent("onmouseout",h);b.parentNode.removeChild(b);b=null}this.Hide=F;this.Show=G;this.UpdateFromMap=q;this.Destroy=E}};Msn.VE.DashboardSize=new function(){this.Normal="normal";this.Small="small";this.Tiny="tiny"};Msn.VE.LatLong=function(b,a){this.latitude=b;this.longitude=a;this.ToString=function(){return "("+this.latitude+", "+this.longitude+")"};this.Copy=function(a){if(!a)return;this.latitude=a.latitude;this.longitude=a.longitude};this.Equals=function(a){if(a instanceof Msn.VE.LatLong)return this.latitude==a.latitude&&this.longitude==a.longitude;else return false}};Msn.VE.LatLongRectangle=function(a,b){this.northwest=a;this.southeast=b;this.ToString=function(){return "("+(this.northwest?this.northwest.ToString():"null")+", "+(this.southeast?this.southeast.ToString():"null")+")"};this.Copy=function(a){if(!a)return;if(!this.northwest)this.northwest=new Msn.VE.LatLong;if(!this.southeast)this.southeast=new Msn.VE.LatLong;this.northwest.Copy(a.northwest);this.southeast.Copy(a.southeast)};this.Center=function(){var b=Math.sin(this.northwest.latitude*Math.PI/180),c=Math.sin(this.southeast.latitude*Math.PI/180),d=0.25*(Math.log((1+b)/(1-b))+Math.log((1+c)/(1-c))),a=new Msn.VE.LatLong;a.latitude=Math.atan(Math.exp(d))*360/Math.PI-90;a.longitude=0.5*(parseFloat(this.northwest.longitude)+parseFloat(this.southeast.longitude));return a};this.Contains=function(c){return c.latitude<=a.latitude&&c.longitude>=a.longitude&&c.latitude>=b.latitude&&c.longitude<=b.longitude}};Msn.VE.MapStyle=new function(){this.Road="r";this.Aerial="a";this.Hybrid="h";this.Oblique="o"};Msn.VE.MapView=function(map){this.zoomLevel=0;this.mapStyle=null;this.tilt=0;this.direction=0;this.altitude=-1000;this.center=new Msn.VE.Pixel;this.latlong=new Msn.VE.LatLong;this.cameraLatlong=null;this.pixelRect=new Msn.VE.PixelRectangle;this.latlongRect=new Msn.VE.LatLongRectangle;this.sceneId=null;this.sceneOrientation=null;this._needsPivotOperation=true;var mapInstance=map,p_this=this,viewType="pixel";this.Destroy=function(){this.center=this.latlong=p_this=mapInstance=null};this.GetViewType=function(){return viewType};this.GetMap=function(){return mapInstance};this.SetMap=function(a){mapInstance=a};function MakeCopy(){var a=new Msn.VE.MapView;a.Copy(p_this);return a}function Copy(a){p_this.zoomLevel=a.zoomLevel;p_this.mapStyle=a.mapStyle;p_this.tilt=a.tilt;p_this.direction=a.direction;p_this.altitude=a.altitude;p_this.center.Copy(a.center);if(a.cameraLatlong!=null){p_this.cameraLatlong=new Msn.VE.LatLong;p_this.cameraLatlong.Copy(a.cameraLatlong)}p_this.latlong.Copy(a.latlong);p_this.pixelRect.Copy(a.pixelRect);p_this.latlongRect.Copy(a.latlongRect);p_this.sceneId=a.sceneId;p_this.sceneOrientation=a.sceneOrientation;p_this.SetMap(a.GetMap());viewType=a.GetViewType()}function Equals(a){return a!=null&&p_this.zoomLevel==a.zoomLevel&&p_this.mapStyle==a.mapStyle&&MathAbs(p_this.tilt-a.tilt)<1E-06&&MathAbs(p_this.direction-a.direction)<1E-06&&MathAbs(p_this.altitude-a.altitude)<1E-06&&MathAbs(p_this.center.x-a.center.x)<1E-06&&MathAbs(p_this.center.y-a.center.y)<1E-06&&p_this.sceneId==a.sceneId&&p_this.GetMap()==a.GetMap()&&p_this.sceneOrientation==a.sceneOrientation}function ToString(){return "("+p_this.latlong.ToString()+", "+p_this.zoomLevel+", "+p_this.mapStyle+")"}function SetCenter(a){if(!a)return;p_this.center=a;viewType="pixel"}function SetCenterLatLong(a){if(!a)return;p_this.latlong=a;p_this.cameraLatlong=null;viewType="latlong"}function SetPixelRectangle(a){p_this.pixelRect=a;p_this.cameraLatlong=null;p_this.tilt=-90;p_this.direction=0;viewType="pixelRect"}function SetLatLongRectangle(a){p_this.latlongRect=a;p_this.cameraLatlong=null;p_this.tilt=-90;p_this.direction=0;viewType="latlongRect"}function SetZoomLevel(a){if(a<=0)a=1;var c=mapInstance.GetCenterOffset().x,d=mapInstance.GetCenterOffset().y;switch(viewType){case "pixel":var b=Math.pow(2,a-p_this.zoomLevel);p_this.center.x=(p_this.center.x+c)*b-c;p_this.center.y=(p_this.center.y+d)*b-d;break;case "pixelRect":b=Math.pow(2,a-p_this.zoomLevel);p_this.pixelRect.topLeft.x=p_this.pixelRect.topLeft.x*b;p_this.pixelRect.topLeft.y=p_this.pixelRect.topLeft.y*b;p_this.pixelRect.bottomRight.x=p_this.pixelRect.bottomRight.x*b;p_this.pixelRect.bottomRight.y=p_this.pixelRect.bottomRight.y*b;break}if(p_this.zoomLevel!=a)p_this.altitude=-1000;p_this.zoomLevel=a}function SetMapStyle(a,c,b){p_this.mapStyle=a;if(viewType=="pixel")viewType="latlong";if(a!="o"){p_this.sceneId=null;p_this.sceneOrientation=null}else{p_this.sceneId=c;p_this.sceneOrientation=b}}function SetTilt(a){if(a>=269.99999)a=a-360;if(a<-90)a=-90;if(a>90)a=90;p_this.tilt=a;p_this._needsPivotOperation=true}function SetDirection(a){if(a<0||a>=360)a=0;p_this.direction=a;p_this._needsPivotOperation=true}function SetAltitude(a){if(a<-1000||a>15000000)a=-1000;p_this.altitude=a}function GetTilt(){return p_this.tilt}function GetDirection(){return p_this.direction}function GetAltitude(){return p_this.altitude}function GetX(a){if(a)return p_this.center.x*Math.pow(2,a-p_this.zoomLevel);return p_this.center.x}function GetY(a){if(a)return p_this.center.y*Math.pow(2,a-p_this.zoomLevel);return p_this.center.y}function GetCenter(a){if(a==undefined){var b=p_this.center.x+mapInstance.GetCenterOffset().x,c=p_this.center.y+mapInstance.GetCenterOffset().y;return new Msn.VE.Pixel(b,c)}b=(p_this.center.x+mapInstance.GetCenterOffset().x)*Math.pow(2,a-p_this.zoomLevel);c=(p_this.center.y+mapInstance.GetCenterOffset().y)*Math.pow(2,a-p_this.zoomLevel);return new Msn.VE.Pixel(b,c)}function GetZoomLevel(){return p_this.zoomLevel}function GetLatLongRectangle(){return p_this.latlongRect}function GetPixelRectangle(){return p_this.pixelRect}function GetCenterLatLong(){var b=p_this.center.x+mapInstance.GetCenterOffset().x,c=p_this.center.y+mapInstance.GetCenterOffset().y,a=mapInstance.GetCurrentMode().PixelToLatLong(new Msn.VE.Pixel(b,c),p_this.zoomLevel);return a==null?p_this.latlong:a}function Resolve(a,c,b){switch(viewType){case "pixel":p_this.latlong=a.PixelToLatLong(p_this.center,p_this.zoomLevel);break;case "latlong":p_this.center=a.LatLongToPixel(p_this.latlong,p_this.zoomLevel);if(p_this.center!=null){p_this.center.x-=mapInstance.GetCenterOffset().x;p_this.center.y-=mapInstance.GetCenterOffset().y}break;case "pixelRect":ResolveRectangle(a,c,b);break;case "latlongRect":if(p_this.mapStyle=="o"){p_this.zoomLevel=1;var d=a.GetScene();if(!d.ContainsLatLong(p_this.latlongRect.northwest)||!d.ContainsLatLong(p_this.latlongRect.southeast)){p_this.latlong=p_this.latlongRect.Center();p_this.center=a.LatLongToPixel(p_this.latlong,p_this.zoomLevel)}else{p_this.pixelRect.topLeft=a.LatLongToPixel(p_this.latlongRect.northwest,p_this.zoomLevel);p_this.pixelRect.bottomRight=a.LatLongToPixel(p_this.latlongRect.southeast,p_this.zoomLevel);ResolveRectangle(a,c,b)}}else{p_this.zoomLevel=12;p_this.altitude=-1000;p_this.pixelRect.topLeft=a.LatLongToPixel(p_this.latlongRect.northwest,p_this.zoomLevel);p_this.pixelRect.bottomRight=a.LatLongToPixel(p_this.latlongRect.southeast,p_this.zoomLevel);ResolveRectangle(a,c,b)}break}if(p_this.cameraLatlong==null)if(!p_this._UpdateCamera()){p_this.tilt=-90;p_this.cameraLatlong=p_this.latlong}viewType="pixel"}function ResolveRectangle(i,k,j){var c=19,a=Math.pow(2,c-p_this.zoomLevel),g=MathMax(1,MathAbs(p_this.pixelRect.topLeft.x-p_this.pixelRect.bottomRight.x)*a),f=MathMax(1,MathAbs(p_this.pixelRect.topLeft.y-p_this.pixelRect.bottomRight.y)*a),d=Math.log(2),e=c-Math.ceil(Math.log(g/k)/d),h=c-Math.ceil(Math.log(f/j)/d),b=MathMin(e,h);if(b<=0)b=1;a=Math.pow(2,b-p_this.zoomLevel);p_this.center.x=0.5*(p_this.pixelRect.topLeft.x+p_this.pixelRect.bottomRight.x)*a-mapInstance.GetCenterOffset().x;p_this.center.y=0.5*(p_this.pixelRect.topLeft.y+p_this.pixelRect.bottomRight.y)*a-mapInstance.GetCenterOffset().y;p_this.zoomLevel=b;p_this.altitude=-1000;p_this.latlong=i.PixelToLatLong(p_this.center,p_this.zoomLevel)}function _UpdateCamera(){p_this._needsPivotOperation=false;if(mapInstance.IsModeEnabled(Msn.VE.MapActionMode.Mode3D)){var control=mapInstance.Get3DControl();if(control!=null){var cam=control.JSCameraPositionGivenTarget(p_this.latlong.latitude,p_this.latlong.longitude,p_this.altitude,p_this.zoomLevel,p_this.tilt,p_this.direction);if(cam!=null){var lat,lon;eval(cam);p_this.cameraLatlong=new Msn.VE.LatLong;p_this.cameraLatlong.latitude=lat;p_this.cameraLatlong.longitude=lon}else return false}}return true}this.MakeCopy=MakeCopy;this.Copy=Copy;this.Equals=Equals;this.ToString=ToString;this.SetCenter=SetCenter;this.SetCenterLatLong=SetCenterLatLong;this.SetPixelRectangle=SetPixelRectangle;this.SetLatLongRectangle=SetLatLongRectangle;this.SetZoomLevel=SetZoomLevel;this.SetMapStyle=SetMapStyle;this.SetTilt=SetTilt;this.SetDirection=SetDirection;this.SetAltitude=SetAltitude;this.GetTilt=GetTilt;this.GetDirection=GetDirection;this.GetAltitude=GetAltitude;this.GetX=GetX;this.GetY=GetY;this.GetCenter=GetCenter;this.Resolve=Resolve;this.SetZoomLevel=SetZoomLevel;this.GetZoomLevel=GetZoomLevel;this.GetLatLongRectangle=GetLatLongRectangle;this.GetPixelRectangle=GetPixelRectangle;this.GetCenterLatLong=GetCenterLatLong;this._UpdateCamera=_UpdateCamera};Msn.VE.ViewChangeType=function(){};Msn.VE.ViewChangeType.Zoom=1;Msn.VE.ViewChangeType.Pan=2;Msn.VE.ViewChangeType.Hybrid=3;Msn.VE.ViewChangeType.IsValid=function(a){return typeof a=="number"&&a>0&&a<4};Msn.VE.ObliqueScene=function(i,y,q,u,x,A,a,b,l,k,f,w){var h=256;this.neighborScenes=f;var z=new Msn.VE.Bounds(1,2,0,0,a/2,b/2);function p(d,e){var c=Math.pow(2,e-2),f=[[d.x/c],[d.y/c],[1]],a=MatrixMultiply(l,f),b=new Msn.VE.LatLong;b.longitude=a[0][0]/a[2][0];b.latitude=a[1][0]/a[2][0];return b}function c(d,e){var c=Math.pow(2,e-2),f=[[d.longitude],[d.latitude],[1]],a=MatrixMultiply(k,f),b=new Msn.VE.Pixel;b.x=a[0][0]/a[2][0]*c;b.y=a[1][0]/a[2][0]*c;return b}function t(c,d,e){if(c<0||d<0)return false;if(e==1)return c=0&&d>=0&&cthis.topLeft.x&&a.y>this.topLeft.y&&a.x0){g[i]=Math.floor(c%d);c=Math.floor(c/d);--i}for(b=0;b=a&&d<=c){var e=(d-a)/(c-a),f=e*b+0.5;return Math.min(Math.floor(f),b)}else throw L_floatintegermapencodingoutofrange_text};this.IntToFloat=function(d){if(d<=b){var f=d/b,e=a+f*(c-a);return e}else throw L_floatintegermapencodingoutofrange_text}}var L_velatlongencodinginvalidstringlength_text="VELatLongEncoding: Invalid string length";function VELatLongEncoding(){var g=-90,f=90,e=-180,d=180,i="0123456789bcdfghjkmnpqrstvwxyz",h=6,a=new VEIntegerEncoding(i,h),c=new VEFloatIntegerMap(g,f,a.MaxValue()),b=new VEFloatIntegerMap(e,d,a.MaxValue());this.Encode=function(e,d){var f=a.Encode(c.FloatToInt(e))+a.Encode(b.FloatToInt(d));return f};this.Decode=function(f){if(f.length==2*a.ValueLength()){var e=a.ValueLength(),j=f.substr(0,e),h=f.substr(e,e),i=a.Decode(j),g=a.Decode(h),d=[];d[0]=c.IntToFloat(i);d[1]=b.IntToFloat(g);return d}else throw L_velatlongencodinginvalidstringlength_text}}var __vemapcontrolisReady=true,windowWidth=0,windowHeight=0,scrollbarWidth=null;function $ID(a){var b=document;return b.getElementById(a)}function $CE(a){var b=document;return b.createElement(a)}function $CENS(a){var b=document;return b.createElementNS(a)}function GetWindowWidth(){var a=0;if(typeof window.innerWidth=="number")a=window.innerWidth;else if(document.documentElement&&document.documentElement.clientWidth)a=document.documentElement.clientWidth;else if(document.body&&document.body.clientWidth)a=document.body.clientWidth;if(!a||a<100)a=100;return a}function GetWindowHeight(){var a=0;if(typeof window.innerHeight=="number")a=window.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)a=document.documentElement.clientHeight;else if(document.body&&document.body.clientHeight)a=document.body.clientHeight;if(!a||a<100)a=100;return a}function GetScrollbarWidth(){if(scrollbarWidth)return scrollbarWidth;if(navigator.userAgent.indexOf("IE")>=0){var a=document.createElement("div"),b=null;a.style.visible="hidden";a.style.overflowY="scroll";a.style.position="absolute";a.style.width=0;document.body.insertAdjacentElement("afterBegin",a);b=a.offsetWidth;a.parentNode.removeChild(a);if(!b)b=16;scrollbarWidth=b;return b}else return 0}function GetUrlPrefix(){var a=window.location.pathname.lastIndexOf("/"),b=window.location.protocol+"//"+window.location.hostname+window.location.pathname.substring(0,a+1);return b}function GetUrlParameterString(){var a=window.location.search;if(a.length==0||a.indexOf("?")==-1)return "";return a.substr(a.indexOf("?")+1)}function CheckWipExistence(){var a=GetUrlParameterString();if(a!=""&&a.indexOf("wip=")>-1)return true;return false}function GetUrlParameters(){var b=[],d=GetUrlParameterString();if(!d)return b;var e=d.split("&");for(var c=0;c=0&&d=0)a.childNodes[f].className=m;c=d;a.childNodes[d].className=r;e=a.childNodes[d].className}else{f=g();if(f>=0)a.childNodes[f].className=m;c=-1}}function g(){return c}function o(){if(c>=0&&c=b.length)return;if(d0)b.pop();while(a.childNodes.length>0)a.removeChild(a.lastChild);c=-1}function A(){a.style.display="block";this.isVisible=true}function z(){a.style.display="none";this.isVisible=false}this.OnClick=null;this.GetCount=x;this.GetElement=u;this.GetSelectedIndex=g;this.GetSelectedItem=o;this.SelectItemAtIndex=i;this.OnSelect=null;this.AddItem=y;this.OnMouseOver=null;this.OnSelect=null;this.OnMouseOut=null;this.ClearItems=t;this.RemoveItemAtIndex=n;this.Show=A;this.Hide=z}function OutputEncoder_URLEncodeUTF8(e){if(e==null)return "";var d=["%00","%01","%02","%03","%04","%05","%06","%07","%08","%09","%0a","%0b","%0c","%0d","%0e","%0f","%10","%11","%12","%13","%14","%15","%16","%17","%18","%19","%1a","%1b","%1c","%1d","%1e","%1f","%20","%21","%22","%23","%24","%25","%26","%27","%28","%29","%2a","%2b","%2c","%2d","%2e","%2f","%30","%31","%32","%33","%34","%35","%36","%37","%38","%39","%3a","%3b","%3c","%3d","%3e","%3f","%40","%41","%42","%43","%44","%45","%46","%47","%48","%49","%4a","%4b","%4c","%4d","%4e","%4f","%50","%51","%52","%53","%54","%55","%56","%57","%58","%59","%5a","%5b","%5c","%5d","%5e","%5f","%60","%61","%62","%63","%64","%65","%66","%67","%68","%69","%6a","%6b","%6c","%6d","%6e","%6f","%70","%71","%72","%73","%74","%75","%76","%77","%78","%79","%7a","%7b","%7c","%7d","%7e","%7f","%80","%81","%82","%83","%84","%85","%86","%87","%88","%89","%8a","%8b","%8c","%8d","%8e","%8f","%90","%91","%92","%93","%94","%95","%96","%97","%98","%99","%9a","%9b","%9c","%9d","%9e","%9f","%a0","%a1","%a2","%a3","%a4","%a5","%a6","%a7","%a8","%a9","%aa","%ab","%ac","%ad","%ae","%af","%b0","%b1","%b2","%b3","%b4","%b5","%b6","%b7","%b8","%b9","%ba","%bb","%bc","%bd","%be","%bf","%c0","%c1","%c2","%c3","%c4","%c5","%c6","%c7","%c8","%c9","%ca","%cb","%cc","%cd","%ce","%cf","%d0","%d1","%d2","%d3","%d4","%d5","%d6","%d7","%d8","%d9","%da","%db","%dc","%dd","%de","%df","%e0","%e1","%e2","%e3","%e4","%e5","%e6","%e7","%e8","%e9","%ea","%eb","%ec","%ed","%ee","%ef","%f0","%f1","%f2","%f3","%f4","%f5","%f6","%f7","%f8","%f9","%fa","%fb","%fc","%fd","%fe","%ff"],b,a=[],g=e.length;for(var f=0;f>6];a=a+d[128|c&63]}else{a=a+d[224|c>>12];a=a+d[128|c>>6&63];a=a+d[128|c&63]}}return a}function OutputEncoder_EncodeHtml(c){var a,b="";if(c==null)return "";for(var d=0;d96&&a<123||a>64&&a<91||a==32||a>47&&a<58||a==46||a==44||a==45||a==95)b=b+String.fromCharCode(a);else b=b+"&#"+a+";"}return b}function OutputEncoder_EncodeHtmlAttribute(c){var a,b="";if(c==null)return "";for(var d=0;d96&&a<123||a>64&&a<91||a>47&&a<58||a==46||a==44||a==45||a==95)b=b+String.fromCharCode(a);else b=b+"&#"+a+";"}return b}function OutputEncoder_EncodeXml(a){return OutputEncoder_EncodeHtml(a)}function OutputEncoder_EncodeXmlAttribute(a){return OutputEncoder_EncodeHtmlAttribute(a)}function OutputEncoder_EncodeJs(c){var a,b="";if(c==null)return "";for(var d=0;d96&&a<123||a>64&&a<91||a==32||a>47&&a<58||a==46||a==44||a==45||a==95)b=b+String.fromCharCode(a);else if(a>127)b=b+"\\u"+OutputEncoder_TwoByteHex(a);else b=b+"\\x"+OutputEncoder_SingleByteHex(a)}return "'"+b+"'"}function OutputEncoder_EncodeVbs(d){var b,a="",c=false;if(d==null)return "";for(var e=0;e96&&b<123||b>64&&b<91||b==32||b>47&&b<58||b==46||b==44||b==45||b==95){if(!c){a=a+'&"';c=true}a=a+String.fromCharCode(b)}else{if(c){a=a+'"';c=false}a=a+"&chrw("+b+")"}}if(a.charAt(0)=="&")a=a.substring(1);if(a.length==0)a='""';if(c)a=a+'"';return a}function OutputEncoder_AsUrl(a){if(a==null)return "";if(a.search(/^(?:http|https|ftp):\/\/[a-zA-Z0-9\.\-]+(?:\:\d{1,5})?(?:[A-Za-z0-9\.\;\:\@\&\=\+\$\,\?\/]|%u[0-9A-Fa-f]{4}|%[0-9A-Fa-f]{2})*$/i))throw"Unsanitized value passed to AsUrl";return a}function OutputEncoder_QualifyUrl(a){if(a==null)return "";if(a.search(/^(?:http|https|ftp):\/\//i))if(document.location.protocol=="HTTPS")return "https://"+document.location.hostname+OutputEncoder_QualifyUrl_MakePath(a);else return "http://"+document.location.hostname+OutputEncoder_QualifyUrl_MakePath(a);else return a}function OutputEncoder_QualifyUrl_MakePath(a){if(a==null)return "";if(!a.search(/^[\/\\]/))return a;var b=/^(\/(?:.*\/|))(?:[^\/\\]*\.\w+|\w*)$/;if(!document.location.pathname.search(b)){var c=b.exec(document.location.pathname);return c[1]+a}return "/"+a}function OutputEncoder_AsNumeric(a){if(a==null)return "";if(isNaN(parseFloat(a)))throw"IOSec.AsNumeric(): Error input ["+a+"] not a valid number.";return a}function OutputEncode_TruncateUrlSafe(a,b,e){if(a.length<=b)return a;var d="";if(e&&e.length>0){d=OutputEncoder_EncodeUrl(e);b-=d.length}a=a.substring(0,b);for(var c=1;c<6;c++)if(a.charAt(b-c)=="%"){a=a.substring(0,b-c);break}return a+d}function OutputEncode_EncodeUrlDelims(f,c){if(!f)return c;var a,h,b="";for(var d=0;d127)e="%u"+OutputEncoder_TwoByteHex(a);else e="%"+OutputEncoder_SingleByteHex(a);break}}b+=e}return b}function OutputEncoder_EncodeUrl(c){if(c==null)return "";var a,b="";for(var d=0;d96&&a<123||a>64&&a<91||a>47&&a<58||a==46||a==45||a==95)b=b+String.fromCharCode(a);else if(a>127)b=b+"%u"+OutputEncoder_TwoByteHex(a);else b=b+"%"+OutputEncoder_SingleByteHex(a)}return b}function OutputEncoder_SingleByteHex(b){if(b==null)return "";var a=b.toString(16);for(var c=a.length;c<2;c++)a="0"+a;return a}function OutputEncoder_TwoByteHex(b){if(b==null)return "";var a=b.toString(16);for(var c=a.length;c<4;c++)a="0"+a;return a}function OutputEncoder(){this.EncodeHtml=OutputEncoder_EncodeHtml;this.EncodeHtmlAttribute=OutputEncoder_EncodeHtmlAttribute;this.EncodeXml=OutputEncoder_EncodeXml;this.EncodeXmlAttribute=OutputEncoder_EncodeXmlAttribute;this.EncodeJs=OutputEncoder_EncodeJs;this.EncodeVbs=OutputEncoder_EncodeVbs;this.AsNumeric=OutputEncoder_AsNumeric;this.EncodeUrl=OutputEncoder_EncodeUrl;this.EncodeUrlDelims=OutputEncode_EncodeUrlDelims;this.TruncateUrlSafe=OutputEncode_TruncateUrlSafe;this.SingleByteHex=OutputEncoder_SingleByteHex;this.TwoByteHex=OutputEncoder_TwoByteHex;this.AsUrl=OutputEncoder_AsUrl;this.QualifyUrl=OutputEncoder_QualifyUrl;this.EncodeUrlUTF8=OutputEncoder_URLEncodeUTF8}var IOSec=new OutputEncoder;function VE_Panel(b,l,m,j,h,d,c,i,k,g,n,f,e){this.index=0;this.x=l;this.y=m;this.width=j;this.height=h;this.dynamicHeightMax=250;this.color=d;this.toolbarHeight=20;this.footerHeight=20;this.min=false;this.visible=true;this.onTitleClick=null;this.onCloseClick=null;this.onMaximize=null;this.onMinimize=null;var a=VE_Panel._CreateElement("div",b,"VE_Panel_el",c);this.el=a;this.titleDisabled=false;this.title=document.createElement("a");this.title.id=b+"_title";this.title.className="VE_Panel_title";this.title.appendChild(document.createElement("h1"));this.title.onclick=function(a){VE_Panel._OnTitleClick(a);return false};this.title.href="#";a.appendChild(this.title);this.SetTitle(i);this.closeboxDisabled=false;this.cb=VE_Panel._CreateElement("a",b+"_cb","VE_Panel_cb VE_Panel_cb_"+d,c+1);this.cb.onclick=function(a){VE_Panel._OnCloseClick(a);return false};this.cb.href="#";this.cb.unselectable="on";a.appendChild(this.cb);this.tb=VE_Panel._CreateElement("div",b+"_tb","VE_Panel_tb VE_Panel_tb_"+d,c+1);this.tb.unselectable="on";a.appendChild(this.tb);this.body=VE_Panel._CreateElement("div",b+"_body","VE_Panel_body",c+1);this.body.innerHTML=k;a.appendChild(this.body);this.foot=VE_Panel._CreateElement("div",b+"_foot","VE_Panel_foot VE_Panel_foot_"+d,c+1);this.foot.innerHTML=g;this.foot.unselectable="on";a.appendChild(this.foot);if(!f)this.SetOpacity(90);VE_Panel.panels.push(this);if(!e)e=document.body;e.appendChild(a)}VE_Panel.panels=[];VE_Panel.shadowThickness=3;VE_Panel._CreateElement=function(d,e,b,c){var a=document.createElement(d);a.id=e;a.className=b;a.style.zIndex=c;return a};VE_Panel._PositionElement=function(a,d,e,c,b){a.style.top=e+"px";a.style.left=d+"px";a.style.width=c+"px";a.style.height=b+"px"};VE_Panel.prototype.SetPosition=function(c,d,b,a){this.x=c;this.y=d;this.width=b;this.height=a;if(this.el.shimElement)UpdateIFrameShim(this.el)};VE_Panel.prototype.SetToolbarSize=function(toolbarHeight){this.toolbarHeight=toolbarHeight;var d=eval(toolbarHeight)>0?"block":"none";this.tb.style.display=d;this.Resize()};VE_Panel.prototype.SetFooterSize=function(footerHeight){this.footerHeight=footerHeight;var d=eval(footerHeight)>0?"block":"none";this.foot.style.display=d;this.Resize()};VE_Panel.prototype.Resize=function(){if(typeof header=="undefined"||header=="undefined"||header==null||typeof footer=="undefined"||footer=="undefined"||footer==null)return;var taskAreaHeight=document.body.clientHeight-(scopingBar_separator.offsetTop+scopingBar_separator.offsetHeight)-footer.offsetHeight;if(document.all){var css=footer.currentStyle;if(css&&typeof css!="undefined"){var strBottom=css["bottom"];if(strBottom&&typeof strBottom!="undefined"){var nBottom=Math.abs(parseInt(strBottom));taskAreaHeight+=nBottom}}}if(taskAreaHeight>=0&&typeof taskAreaHeight=="number"){taskArea_transparency.style.height=taskAreaHeight+"px";taskArea_positioner.style.height=taskAreaHeight+"px"}if(this.el.id=="contextMenu"||this.el.id=="scratchpad"||this.el.id=="annotationPanel"||this.el.id=="annotationPopup"||this.el.id=="searchPopup"||this.el.id=="help"){if(this.height!="auto"&&typeof this.height=="number")this.el.style.height=eval(this.height)+"px";if(this.width!="auto"&&typeof this.width=="number")this.el.style.width=eval(this.width)+"px";if(this.x!="auto"&&typeof this.x=="number")this.el.style.left=eval(this.x)+"px";if(this.y!="auto"&&typeof this.y=="number")this.el.style.top=eval(this.y)+"px"}else{var count=taskArea.getCount(),titleMargin=3,titleHeight=this.title.offsetHeight+titleMargin,bodyHeight=taskArea_transparency.offsetHeight-titleHeight*count-this.tb.offsetHeight-this.foot.offsetHeight;if(bodyHeight>=0&&typeof bodyHeight=="number")this.body.style.height=bodyHeight+"px"}if(this.el.shimElement)ShowShim(this.el)};VE_Panel.prototype.SetHeightToFit=function(){var contentid=this.id+"_body_table",content=$ID(contentid);if(!content)return false;this.height=0;var width=Math.max(eval(this.width),100);if(content.offsetWidth>width-14)this.height+=scrollbarWidth;this.height+=this.titleDisabled?14:21+14;this.height+=this.toolbarHeight;this.height+=content.offsetHeight;this.height+=this.footerHeight;this.height=Math.min(this.dynamicHeightMax,this.height)};VE_Panel.prototype.DisableClosebox=function(){if(this.closeboxDisabled)return;this.closeboxDisabled=true;this.el.removeChild(this.cb)};VE_Panel.prototype.EnableClosebox=function(){if(!this.closeboxDisabled)return;this.closeboxDisabled=false;this.el.insertBefore(this.cb,this.tb)};VE_Panel.prototype.DisableTitle=function(){if(this.titleDisabled)return;this.titleDisabled=true;this.el.removeChild(this.cb);this.el.removeChild(this.title)};VE_Panel.prototype.EnableTitle=function(){if(!this.titleDisabled)return;this.titleDisabled=false;this.el.insertBefore(this.cb,this.tb);this.el.insertBefore(this.title,this.cb)};VE_Panel.prototype.SetTitle=function(c){var b=document.createTextNode(c),a=this.title.firstChild;if(a)if(a.firstChild)a.replaceChild(b,a.firstChild);else a.appendChild(b)};VE_Panel.prototype.SetToolbar=function(a){this.tb.innerHTML=a};VE_Panel.prototype.SetBody=function(a){this.body.innerHTML=a};VE_Panel.prototype.SetDynamicBody=function(a){this.body.innerHTML='
'+a+"
"};VE_Panel.prototype.SetFooter=function(a){this.foot.innerHTML=a};VE_Panel.prototype.SetOpacity=function(o){if(o>=100)o=99.99;with(this.el.style){filter="alpha(opacity:"+o+")";o*=0.01;KHTMLOpacity=o;MozOpacity=o;opacity=o}};VE_Panel.prototype.SetColor=function(a){this.color=a;this.title.className="VE_Panel_title VE_Panel_title_"+a;this.foot.className="VE_Panel_foot VE_Panel_foot_"+a;this.cb.className="VE_Panel_cb VE_Panel_cb_"+a};VE_Panel.prototype.Minimize=function(){this.el.className=" VE_Panel_el_minimized";if(this.onMinimize)this.onMinimize(this._CreateEvent())};VE_Panel.prototype.Maximize=function(){this.el.className="VE_Panel_el";if(this.onMaximize)this.onMaximize(this._CreateEvent());this.Resize()};VE_Panel.prototype.isMaximized=function(){return this.el.className=="VE_Panel_el"};VE_Panel.prototype.Show=function(){this.el.style.display="block";this.visible=true;if(typeof spacelandMode!="undefined")ShowShim(this.el)};VE_Panel.prototype.Hide=function(){this.el.style.display="none";this.visible=false;if(typeof spacelandMode!="undefined")HideShim(this.el)};VE_Panel.prototype.Destroy=function(){this.el.parentNode.removeChild(this.el);var b=VE_Panel.panels;for(var a=0;a=0)return a;return null}}VE_SearchResult.prototype.Equals=function(a){if(a==null||a=="undefined")return false;try{var b=this.name==a.name&&this.description==a.description&&this.phone==a.phone&&this.rating==a.rating&&this.type==a.type&&this.latitude==a.latitude&&this.longitude==a.longitude;return b}catch(c){return false}};VE_WebSearchResult.prototype.Equals=function(a){if(a instanceof VE_WebSearchResult){var b=this.GetCaptionUrl()==a.GetCaptionUrl()&&this.GetDescription()==a.GetDescription()&&this.GetTitle()==a.GetTitle()&&this.GetDisplayUrl()==a.GetDisplayUrl()&&this.GetUrl()==a.GetUrl();return b}return false};VE_SearchResult.prototype.GetSerializedId=function(){switch(this.type){case "al":return "";case "adr":return "adr"+"."+this.name;case "aN":return VE_AnnotationData.SerializeAnnotation(this.pinId);default:return this.type+"."+this.id.toString()}};function VE_SearchResultCategory(b,a){this.id=b;this.name=a;this.IsValid=function(){return typeof parseInt(b)=="number"&&typeof a=="string"&&a.length>0};this.Destroy=function(){this.id=null;this.name=null}}function Ad(h,j,a,e,b,c,d,i,g,f,k){this.title=h;this.url=j;this.description=a;this.latitude=e;this.longitude=b;this.address1=c;this.address2=d;this.city=i;this.state=g;this.country=f;this.zip=k}Ad.prototype.ToHtml=function(){var a="
  • "+''+IOSec.EncodeHtml(this.title)+""+"$AdDescription$"+"
  • ";if(this.description&&this.description.length>0)a=a.replace("$AdDescription$","

    "+IOSec.EncodeHtml(this.description)+"

    ");return a};Ad.prototype.GetAdDescription=function(){var a=this.description;if(this.address1.length>0&&this.city.length>0&&this.state.length>0&&this.zip.length>0)a=this.address1+", "+this.city+", "+this.state+" "+this.zip;return a};Msn.VE.DirectionsDecoder=function(){var b=4,c=1000000;function d(a,c,m,l){if(!a||a.lengthc)f=f|a.RIGHT;if(he)f=f|a.TOP;return f}this.Clip=h}VE_LineClip=new VE_MapLineClip;L_GraphicsInitError_Text="Your Web browser does not support SVG or VML. Some graphics features may not function properly.";RegisterNamespaces("Msn.Drawing");Msn.Drawing.Graphic=function(){};Msn.Drawing.Graphic.CreateGraphic=function(f,b){if(document.all)return new Msn.Drawing.VMLGraphic(f,b);else{var c=0,e=0,g=new RegExp("Firefox/(.*)"),d=g.exec(navigator.userAgent);if(d[1]){var a=d[1].split(".");if(a){c=a[0];e=a[1];if(parseInt(c)>0&&parseInt(e)>=5||parseInt(c)>=2)return new Msn.Drawing.SVGGraphic(f,b)}}throw new Msn.Drawing.Exception(L_GraphicsInitError_Text)}};Msn.Drawing.BaseGraphic=function(){this._stroke=new Msn.Drawing.Stroke};Msn.Drawing.BaseGraphic.prototype.CreatePrimitive=function(){};Msn.Drawing.BaseGraphic.prototype.DrawPrimitive=function(d,c,a){var b=new Msn.Drawing.MapSymbol;if(a._stroke){b.stroke_weight=a._stroke.width;b.joinstyle=a._stroke.linejoin;b.stroke_color=a._stroke.color.ToHexString();b.stroke_dashstyle=a._stroke.linecap;b.stroke_opacity=a._stroke.color.A.toString();b.fill_color=a._stroke.fillcolor.ToHexString();b.fill_opacity=a._stroke.fillcolor.A.toString()}c.symbol=b;var e=a.CreatePrimitive(d,c,"");return e};Msn.Drawing.BaseGraphic.prototype.SetStroke=function(a){this._stroke=a};Msn.Drawing.VMLGraphic=function(c,d){Msn.Drawing.BaseGraphic.call();var g=new Msn.Drawing.Color(255,0,0,1),f=new Msn.Drawing.Color(255,0,0,1),e=1,a=c;c.unselectable="on";var b=[];this.DrawPrimitive=function(e){var c=Msn.Drawing.VMLGraphic.prototype.DrawPrimitive(d,e,this);if(a&&c){a.appendChild(c);b.push(c)}};this.resetOffset=function(){};this.SetZIndex=function(a){e=a};this.Clear=function(){var a=null,c=null;while(a=b.pop()){c=a.parentElement;if(c)c.removeChild(a);a=null}};this.Destroy=function(){this.Clear();a=null}};Msn.Drawing.VMLGraphic.prototype=new Msn.Drawing.BaseGraphic;Msn.Drawing.VMLGraphic.prototype.CreatePrimitive=function(d,a){var b=null;if(a.type==MC_GEO_TYPE_POINT){if(a.symbol.shape_drawtype=="v:oval"||a.symbol.shape_drawtype=="v:rect"||a.symbol.shape_drawtype=="v:roundrect")b=document.createElement(a.symbol.shape_drawtype);else b=document.createElement("v:roundrect");var f=LatLongtoRoundedPixel(d,a.points[1],a.points[0]);b.style.width=a.symbol.style_width;b.style.height=a.symbol.style_height;b.style.left=-5+f.x+d.GetOffsetX()+"px";b.style.top=-5+f.y+d.GetOffsetY()+"px";b.style.position=a.symbol.style_position}else{b=document.createElement("v:shape");var g=null;g=GetVmlPath(d,a);var h=d.GetMapWidth(),i=d.GetMapHeight();b.style.top=d.GetOffsetY()+"px";b.style.left=d.GetOffsetX()+"px";b.style.width=h+"px";b.style.height=i+"px";b.coordsize=h+" "+i;b.style.position=a.symbol.style_position;b.path=g}b.id=a.id!=0?a.id:a.iid;b.style.zIndex=a.symbol.style_zIndex;b.unselectable=a.symbol.shape_unselectable;var c=document.createElement("v:stroke");c.joinstyle=a.symbol.stroke_joinstyle;c.endcap=a.symbol.stroke_endcap;c.opacity=a.symbol.stroke_opacity;c.dashstyle=a.symbol.stroke_dashstyle;c.filltype=a.symbol.stroke_filltype;c.color2=a.symbol.stroke_color2;c.color=a.symbol.stroke_color;c.weight=a.symbol.stroke_weight;c.linestyle=a.symbol.stroke_style;if(a.type==MC_GEO_TYPE_POLYGON){var e=document.createElement("v:fill");e.color=a.symbol.fill_color;e.colors=a.symbol.fill_colors;e.color2=a.symbol.fill_color2;e.type=a.symbol.fill_type;e.opacity=a.symbol.fill_opacity;b.appendChild(e)}else if(a.type==MC_GEO_TYPE_POLYLINE){b.fill=false;b.filled=false}else if(a.type==MC_GEO_TYPE_POINT){b.style.filter=a.symbol.style_filter;b.style.zIndex=a.symbol.style_zIndex;b.style.display=a.symbol.style_display;b.unselectable=a.symbol.shape_unselectable;b.fill=true;b.filled=true;b.fillcolor=a.symbol.fill_color}b.appendChild(c);return b};Msn.Drawing.SVGGraphic=function(c,b){Msn.Drawing.BaseGraphic.call();var g=new Msn.Drawing.Color(255,0,0,1),f=new Msn.Drawing.Color(0,255,0,1);_curmap=b;this._svgLayer=null;var d=60,e=c,a=[];this.DrawPrimitive=function(d){var c=Msn.Drawing.SVGGraphic.prototype.DrawPrimitive(b,d,this);if(c)a.push(c)};this.resetOffset=function(){_curmap.resetSvgLayer()};this.SetZIndex=function(a){d=a;if(this._svgLayer!=null)this._svgLayer.SetZIndex(a)};this.Destroy=function(){this.Clear()};this.Clear=function(){if(this._svgLayer==null)return;var b=null,c=null;while(b=a.pop()){c=b.parentNode;if(c)c.removeChild(b);b=null}}};Msn.Drawing.SVGGraphic.prototype=new Msn.Drawing.BaseGraphic;Msn.Drawing.SVGGraphic.prototype.CreatePrimitive=function(a,b,c){this._svgLayer=a.getSvgLayer();return this._svgLayer.addShape(b,c)};Msn.Drawing.SvgLayer=function(e,f){var c=f,b=null,d=false,g=false;if(d==false){d=true;b=document.createElementNS("http://www.w3.org/2000/svg","svg");b.setAttribute("height","100%");b.setAttribute("width","100%");e.appendChild(b);this.lineDashStyles=[];var a=this.lineDashStyles;a[0]=new Array("Solid","none");a[1]=new Array("ShortDash","6,2");a[2]=new Array("ShortDot","2,2");a[3]=new Array("ShortDashDot","6,2,2,2");a[4]=new Array("ShortDashDotDot","6,2,2,2,2,2");a[5]=new Array("Dot","2,6");a[6]=new Array("Dash","10,6");a[7]=new Array("LongDash","20,6");a[8]=new Array("DashDot","10,6,2,6");a[9]=new Array("LongDashDot","20,6,2,6");a[10]=new Array("LongDashDotDot","20,6,2,6,2,6")}this.addShape=function(d){if(b==null)return;var a=null;if(d.type==MC_GEO_TYPE_POINT){a=document.createElementNS("http://www.w3.org/2000/svg","rect");var h=LatLongtoRoundedPixel(c,d.points[1],d.points[0]);a.setAttribute("x",h.x-6);a.setAttribute("y",h.y-6);a.setAttribute("width","6pt");a.setAttribute("height","6pt");a.setAttribute("stroke-width",d.symbol.stroke_weight);a.setAttribute("stroke",d.symbol.stroke_color);a.setAttribute("fill",d.symbol.fill_color);b.appendChild(a)}else if(d.type==MC_GEO_TYPE_POLYLINE||d.type==MC_GEO_TYPE_POLYGON){a=document.createElementNS("http://www.w3.org/2000/svg","polyline");a.setAttribute("points",GetSvgPath(c,d.points));a.setAttribute("stroke",d.symbol.stroke_color);a.setAttribute("stroke-width",d.symbol.stroke_weight);var g=this.lineDashStyles;for(var f=0;f1){e=parseInt(d.symbol.fill_opacity);if(e==NaN)e=0.3;else e/=100}a.setAttribute("fill-opacity",e)}}if(a){a.setAttribute("id",d.id!=0?d.id:d.iid);b.appendChild(a)}return a};this.SetZIndex=function(a){if(!c.bShowSVG)return;c.GetsvgDiv().style.zIndex=a}};function GetSvgPath(f,c){var b="",a=0,d=c.length/2,g=0;while(a=4){var d=LatLongtoRoundedPixel(g,c[b*2+1],c[b*2]);if(!d)return null;e=e.concat(d.x,",",d.y," ","l ");++b}var f=false;if(a.type!=MC_GEO_TYPE_POINT)if(a.minX==null||a.minY==null||a.maxX==null||a.maxY==null){f=false;a.minX=360;a.minY=360;a.maxX=-360;a.maxY=-360}else f=true;while(ba.longitude){e=b.longitude;b.longitude=a.longitude;a.longitude=e}if(b.latitude>a.latitude){e=b.latitude;b.latitude=a.latitude;a.latitude=e}var f=null;if(b!=null&&a!=null)f=new Msn.VE.Bounds(0,0,b.longitude,b.latitude,a.longitude,a.latitude);else f=new Msn.VE.Bounds(0,0,-Infinity,-Infinity,Infinity,Infinity);return f}function GetBufferedMapViewBounds(b,a){var c=null,e=Math.abs(a.x2-a.x1),d=Math.abs(a.y2-a.y1);c=new Msn.VE.Bounds(0,0,a.x1-b*e,a.y1-b*d,a.x2+b*e,a.y2+b*d);return c}function IsContainedInView(a,b){var c=false;if(b.x1>a.x1&&b.y1>a.y1&&b.x2b.x2||a.y2b.y2)return false;return true}function IsRecIntersect(c,d,a,b,g,h,e,f){if(ae||bf)return false;return true}var HelpHistory=[];function VE_Help(){}VE_Help.helpZIndex=31;VE_Help.introZIndex=31;VE_Help.introPanel=null;VE_Help.helpPanel=null;VE_Help.margins=110;VE_Help.LiveHelp=new function(){this.Keyword="keyword";this.Search="search";this.Topic="topic"};VE_Help.CreateHelpPanel=function(){var b='',a=new VE_Panel("help",220,160,windowWidth-430,windowHeight-220,"blue",VE_Help.helpZIndex,l141yt,b,"");a.body.className="VE_Panel_body_help";a.Hide();a.SetToolbarSize(0);a.SetFooterSize(0);a.SetOpacity(95);a.onCloseClick=function(){VE_Help.DisablePreventLayer();VE_Help.ClosePanel()};VE_Help.helpPanel=a};VE_Help.EnablePreventLayer=function(){var a=$ID("__preventLayer__");if(!a)a=document.createElement("div");a.id="__preventLayer__";a.className="preventLayer";document.body.appendChild(a)};VE_Help.DisablePreventLayer=function(){var a=$ID("__preventLayer__");if(a)document.body.removeChild(a)};VE_Help.EnableDrawingPreventLayer=function(){var e=$ID("msve_Header");if(e){var d=$ID("__preventLayerHeader__");if(!d)d=document.createElement("div");d.id="__preventLayerHeader__";d.className="preventLayer";d.style.left=e.clientLeft;d.style.top=e.clientTop;d.style.width=e.clientWidth;d.style.height=e.clientHeight;document.body.appendChild(d)}var f=$ID("msve_MapActionBar_Menu");if(e&&f){var a=$ID("__preventLayerActionBar__");if(!a)a=document.createElement("div");a.id="__preventLayerActionBar__";a.className="preventLayer";var i=findPosX(f);a.style.left=i;a.style.top=findPosY(f);a.style.width=f.clientWidth;a.style.height=f.clientHeight+6;document.body.appendChild(a);var h=$ID("msve_TaskArea_positioner");if(h&&i>0){var b=$ID("__preventLayerTaskArea__");if(!b)b=document.createElement("div");b.id="__preventLayerTaskArea__";b.className="preventLayer";b.style.left=0;b.style.top=a.style.top;b.style.width=a.style.left;b.style.height=h.clientHeight;document.body.appendChild(b)}}var g=$ID("msve_Footer");if(g){var c=$ID("__preventLayerFooter__");if(!c)c=document.createElement("div");c.id="__preventLayerFooter__";c.className="preventLayer";c.style.left=0;c.style.top=GetWindowHeight()-g.clientHeight;c.style.width=g.clientWidth;c.style.height=g.clientHeight;document.body.appendChild(c)}};VE_Help.DisableDrawingPreventLayer=function(){var d=$ID("__preventLayerHeader__");if(d)document.body.removeChild(d);var b=$ID("__preventLayerTaskArea__");if(b)document.body.removeChild(b);var a=$ID("__preventLayerActionBar__");if(a)document.body.removeChild(a);var c=$ID("__preventLayerFooter__");if(c)document.body.removeChild(c)};function findPosX(a){var b=0;if(a.offsetParent)while(a.offsetParent){b+=a.offsetLeft;a=a.offsetParent}else if(a.x)b+=a.x;return b}function findPosY(a){var b=0;if(a.offsetParent)while(a.offsetParent){b+=a.offsetTop;a=a.offsetParent}else if(a.y)b+=a.y;return b}VE_Help.CreateIntroPanel=function(){var b="";if(typeof window.welcomeUrl==undefined||window.welcomeUrl==""||window.welcomeUrl==null)b='
    '+l222fut+"
    ";else b='';var a=new VE_Panel("intro",0,0,"auto","auto","welcomePanel",VE_Help.introZIndex,l396bTt,b,"","",true,taskArea_data);a.el.className="welcomePanel";a.body.className="VE_Panel_body_help";if(typeof pseudoHover!=undefined)pseudoHover(a.title);a.SetToolbarSize(0);a.SetFooterSize(0);if(typeof window.welcomeUrl==undefined||window.welcomeUrl==""||window.welcomeUrl==null);else{a.onTitleClick=function(){taskArea.setCurrent(this)};a.onCloseClick=function(){var a=this.el.parentElement;if(a)a.removeChild(this.el);taskArea.removeItem(this);VE_Help.introPanel=null};a.onMaximize=function(){resetWhatBox()}}taskArea.addItem(a);VE_Help.introPanel=a};VE_Help.Open=function(b,c){VE_Help.EnablePreventLayer();VE_Help.helpPanel.Show();VE_Help.helpPanel.SetTitle(b);VE_Help.helpPanel.SetBody('');var a=$ID("helpFrame");a.src=c;VE_Help.Redraw()};VE_Help.OpenLiveHelp=function(b,a,c){var g="_live_help",f=550,e=575,i=(screen.availWidth-f)*0.5,j=(screen.availHeight-e)*0.5,h="resizable=yes,top="+j+",width="+f+",height="+e+",left="+i;if(typeof b=="undefined"||b==null||b=="")b=liveLocalHelpProjectCode;if(typeof a=="undefined"||a==null||a=="")a=VE_Help.LiveHelp.Keyword;if(typeof c=="undefined"||c==null||c=="")c="qaf";var k=liveHelpUrl+"&project="+b+"&querytype="+a+"&query="+c,d=window.open(k,g,h);if(d!=null&&typeof d=="object")d.focus()};VE_Help.Redraw=function(d){var a=VE_Help.helpPanel;if(!a)return;if(!d){var f=taskArea_transparency?taskArea_transparency.offsetWidth:0,e=scratchPad?scratchPad.getElement().offsetWidth:0;if(document.body.clientWidth>800)var c=document.body.clientWidth-2*VE_Help.margins;else var c=document.body.clientWidth-50,b=document.body.clientHeight-header.offsetHeight-mapActionBar.offsetHeight-VE_Help.margins-30;if(c>0)a.width=c;if(b>0)a.height=b}a.y=mapActionBar.offsetTop+mapActionBar.offsetHeight+8;a.x=VE_Help.margins;a.Resize()};VE_Help.CloseIntro=function(){if(VE_Help.introPanel)VE_Help.introPanel.Hide()};VE_Help.OpenIntro=function(){if(!VE_Help.introPanel)VE_Help.CreateIntroPanel();else taskArea.setCurrent(VE_Help.introPanel);toggleTaskArea(true);$VE_A.Log("VE | Welcome Pane","Welcome")};VE_Help.ClosePanel=function(){if(VE_Help.helpPanel){VE_Help.helpPanel.Hide();VE_Help.DisablePreventLayer()}};function SanitizeHtmlString(a){if(!a||typeof a!="string")return a;return IOSec.EncodeHtml(a)}function GetMousePosX(a){var b=0;if(a.pageX)b=a.pageX;else if(a.clientX)b=a.clientX+document.body.scrollLeft;return b}function GetMousePosY(a){var b=0;if(a.pageY)b=a.pageY;else if(a.clientY)b=a.clientY+document.body.scrollTop;return b}function GetTarget(b){if(!b)var b=window.event,a;if(b.srcElement)a=b.srcElement;else if(b.target)a=b.target;if(a.nodeType==3)a=targ.parentNode;return a}function SelectText(a,c,d){if(!a)return;if(a.createTextRange){var b=a.createTextRange();b.moveStart("character",c);b.moveEnd("character",d);b.select()}else if(a.setSelectionRange)a.setSelectionRange(c,d)}function GetElementLeftPositionByID(a){return GetElementLeftPosition($ID(a))}function GetElementLeftPosition(d,c){var a=d,b=0;while(a&&a!=c){b+=a.offsetLeft;a=a.offsetParent}if(navigator.userAgent.indexOf("Mac")!=-1&&typeof document.body.leftMargin!="undefined")b+=document.body.leftMargin;return b}function GetElementTopPositionByID(a){return GetElementTopPosition($ID(a))}function GetElementTopPosition(d,c){var a=d,b=0;while(a&&a!=c){b+=a.offsetTop;a=a.offsetParent}if(navigator.userAgent.indexOf("Mac")!=-1&&typeof document.body.topMargin!="undefined")b+=document.body.topMargin;return b}function SelectedTextLength(a){if(!a)return 0;if(a.document){var b=a.document.selection.createRange();return b.text.length}else{var c=a.selectionStart,d=a.selectionEnd;return d-c}}function setScrollPosition(a,b,c){if(!a)return;a.scrollTop=c;a.scrollLeft=b}function pseudoHover(a){if(!document.all)return;var c=function(){a.className+=" ms_pseudoHover"},b=function(){a.className=a.className.replace(/\s*ms_pseudoHover/g,"")};a.attachEvent("onmouseover",c);a.attachEvent("onmouseout",b);window.attachEvent("onunload",d);function d(){a.detachEvent("onmouseover",c);a.detachEvent("onmouseout",b)}}function pseudoHoverForChildren(d,a){if(!document.all)return;if(!a)a="LI";var c=d.getElementsByTagName(a);for(var b=0;b=2)this.Locale=arguments[1]}this.IsCompatibleWith=function(c){for(var b=0;ba.MajorVersion||a.MajorVersion==this.MajorVersion&&a.MinorVersion>=this.MinorVersion))return true}return false};function b(){if(a.UserAgent.indexOf("Mac")==-1&&(a.UserAgent.indexOf("Gecko")!=-1||a.UserAgent.indexOf("MSIE")!=-1))a.BrowserCaps|=Msn.VE.BrowserCaps.RightMouseButton}function c(){if(a.UserAgent.indexOf("MSIE 7")!=-1||a.UserAgent.indexOf("Gecko")!=-1)a.BrowserCaps|=Msn.VE.BrowserCaps.WindowlessSelectElement}function j(){if(a.UserAgent.indexOf("Mac")==-1&&(a.UserAgent.indexOf("MSIE 5")!=-1||a.UserAgent.indexOf("MSIE 6")!=-1||a.UserAgent.indexOf("MSIE 7")!=-1))a.BrowserCaps|=Msn.VE.BrowserCaps.VML}function i(){if(a.UserAgent.indexOf("MSIE")==-1){var c=0,e=0,f=new RegExp("Firefox/(.*)"),d=f.exec(a.UserAgent);if(d[1]){var b=d[1].split(".");if(b){c=b[0];e=b[1];if(parseInt(c)>0&&parseInt(e)>=5||parseInt(c)>=2)a.BrowserCaps|=Msn.VE.BrowserCaps.SVG}}}}function h(){try{if(a.UserAgent.indexOf("MSIE")!=-1)a.BrowserCaps|=Msn.VE.BrowserCaps.AddFavourite}catch(b){}}this.GetVersionString=function(){if(this.versionString==null)if(a.UserAgent.indexOf("Win")!=-1&&a.UserAgent.indexOf("MSIE")!=-1){var b=null,c;try{b=document.createElement(""+"
    "+l147Ct+" "+'"+"
    "+"
    "+'"+"
    ";this.AddControl(a);if(f){var d=$ID(b);if(d)d.style.display="none"}}$VE_A.LogAPI("VE | APIs","VEMap - ShowFindControl")};VEMap.prototype.Clear=function(){VEMap.ValidateState();this._ClearView();this.DeleteAllPushpins();this.m_vedirectionsmanager.RemoveRouteHighLight();this.m_vegraphicsmanager.Clear();this.m_veambiguouslist.Hide();this.m_vemessage.Hide();$VE_A.LogAPI("VE | APIs","VEMap - Clear")};VEMap.prototype._ShowLoading=function(){VEMap.ValidateState();if(!this.veloadingdiv){this.veloadingdiv=document.createElement("div");this.veloadingdiv.className="VE_Network_Loading";this.veloadingdiv.style.top="75px";this.veloadingdiv.style.left="80px";this.veloadingdiv.innerHTML=l669It;this.AddControl(this.veloadingdiv,202)}if(this.veloadingdiv.style.display!="block")this.veloadingdiv.style.display="block";else this.veloadingdiv.style.display="none"};VEMap.prototype.AddPolyline=function(a){VEMap.ValidateState();this.m_vegraphicsmanager.DrawLine(a);$VE_A.LogAPI("VE | APIs","VEMap - AddPolyline")};VEMap.prototype.DeletePolyline=function(a){VEMap.ValidateState();this.m_vegraphicsmanager.RemoveLinebyId(a);$VE_A.LogAPI("VE | APIs","VEMap - DeletePolyline")};VEMap.prototype.DeleteAllPolylines=function(){VEMap.ValidateState();this.m_vegraphicsmanager.RemoveAllLines();$VE_A.LogAPI("VE | APIs","VEMap - DeleteAllPolylines")};VEMap.prototype.AddPolygon=function(a){VEMap.ValidateState();this.m_vegraphicsmanager.DrawPolygon(a);$VE_A.LogAPI("VE | APIs","VEMap - AddPolygon")};VEMap.prototype.DeletePolygon=function(a){VEMap.ValidateState();this.m_vegraphicsmanager.RemovePolygonbyId(a);$VE_A.LogAPI("VE | APIs","VEMap - DeletePolygon")};VEMap.prototype.DeleteAllPolygons=function(){VEMap.ValidateState();this.m_vegraphicsmanager.RemoveAllPolygons();$VE_A.LogAPI("VE | APIs","VEMap - DeleteAllPolygons")};VEMap.prototype.AddLayer=function(a){VEMap.ValidateState();VEValidator.ValidateObject(a,"veLayerSpec",VELayerSpecification,"VELayerSpecification");this.m_velayermanager.AddLayer(a);$VE_A.LogAPI("VE | APIs","VEMap - AddLayer")};VEMap.prototype.ShowLayer=function(a){VEMap.ValidateState();this.m_velayermanager.Show(a);$VE_A.LogAPI("VE | APIs","VEMap - ShowLayer")};VEMap.prototype.ShowAllLayers=function(){VEMap.ValidateState();VEPushpin.Hide();this.m_velayermanager.ShowAllLayers();$VE_A.LogAPI("VE | APIs","VEMap - ShowAllLayers")};VEMap.prototype.HideLayer=function(a){VEMap.ValidateState();VEPushpin.Hide();this.m_velayermanager.Hide(a);$VE_A.LogAPI("VE | APIs","VEMap - HideLayer")};VEMap.prototype.HideAllLayers=function(){VEMap.ValidateState();VEPushpin.Hide();this.m_velayermanager.HideAllLayers();$VE_A.LogAPI("VE | APIs","VEMap - HideAllLayers")};VEMap.prototype.DeleteLayer=function(a){VEMap.ValidateState();this.m_velayermanager.DeleteLayerById(a);this.m_vegraphicsmanager.Clear();this.m_vegraphicsmanager.Draw();$VE_A.LogAPI("VE | APIs","VEMap - DeleteLayer")};VEMap.prototype.DeleteAllLayers=function(){VEMap.ValidateState();this.m_velayermanager.DeleteAllLayers();this.m_vegraphicsmanager.Clear();this.m_vegraphicsmanager.Draw();$VE_A.LogAPI("VE | APIs","VEMap - DeleteAllLayers")};VEMap.GetVersion=function(){$VE_A.LogAPI("VE | APIs","VEMap - GetVersion");return Msn.VE.API.Globals.vecurrentversion};VEMap.prototype.LoadTraffic=function(c,b,a){VEMap.ValidateState();VE_TrafficManager.m_vemap=this;VE_TrafficManager.turnedOn=true;VE_TrafficManager.showTrafficFlow=c;VE_TrafficManager.showIncidents=b;VE_TrafficManager.showConstructionIncidents=a;VE_TrafficManager.markets=[];VE_TrafficManager.incidents=[];window.setTimeout(VE_TrafficManager.GetMarkets,100);$VE_A.LogAPI("VE | APIs","VEMap - LoadTraffic")};VEMap.prototype.ClearTraffic=function(){VEMap.ValidateState();VE_TrafficManager.ClearTraffic();$VE_A.LogAPI("VE | APIs","VEMap - ClearTraffic")};VEMap.prototype.AddTileSource=function(a){VEMap.ValidateState();VEValidator.ValidateObject(a,"tileSourceSpec",VETileSourceSpecification,"VETileSourceSpecification");this.m_vetilesourcemanager.AddTileSource(a);$VE_A.LogAPI("VE | APIs","VEMap - AddTileSource")};VEMap.prototype.DeleteTileSource=function(a){VEMap.ValidateState();this.m_vetilesourcemanager.DeleteSourceById(a);$VE_A.LogAPI("VE | APIs","VEMap - DeleteSource")};VEMap.prototype.ShowDisambiguationDialog=function(a){VEMap.ValidateState();this.m_vesearchmanager.m_showDisambigousDialog=a;$VE_A.LogAPI("VE | APIs","VEMap - ShowDisambiguationDialog")};VEMap.prototype.HideDisambiguationDialog=function(){VEMap.ValidateState();this.m_vesearchmanager.m_showDisambigousDialog=false;$VE_A.LogAPI("VE | APIs","VEMap - HideDisambiguationDialog")}