// Copyright 2005 Microsoft Corporation // Version number : 1.3.20070327220207.22 var L_invalidinvoketarget_text="Invalid invoke target specified.",L_invaliddirections_text="Invalid argument passed; both start and end must be present.",L_invalidpageindex_text="Invalid search results page index is passed.",L_invalidelement_text="Invalid element id; unable to find the element in the document body.",L_noheadelement_text="Head element is missing for the current document; cannot initialize the API framework.",L_noserviceurl_text="Either a service url or script url is required to create VENetwork instance.",L_noscripturl_text="Invalid script source url is assigned; cannot download the assigned script.",L_nostylesurl_text="Invalid style source url is assigned; cannot attach the assigned styles.",L_invalidwhatwhere_text="Invalid what/where parameters; either 'what' or 'where' must be present.",L_notinitialized_text="Map is not loaded; cannot perform this operation.",L_noroute_text="Cannot calculate route at this point; try again later.",L_invalidpushpin_text="Invalid pushpin instance.",L_invalidpushpinid_text="Invalid pushpin id; either id is empty or another pushpin already exists with that id.",L_invalidpolylineid_text="Invalid polyline id; either id is empty or another polyline already exists with that id.",L_invalidpolygonid_text="Invalid polygon id; either id is empty or another polygon already exists with that id.",L_invalidargument_text="Invalid argument; input argument '%1' is not a valid '%2' value.",L_invalidlayerid_text="Invalid layer id; either id is empty or another layer already exists with that id.",L_invalidlayertype_text="Invalid layer type.",L_invalidlayersource_text="Invalid layer source; either layer is empty or does not exist.",L_invalidsourceid_text="Invalid source id; either id is empty or another tile source already exists with that id.",L_invalidminmaxzoom_text="Min zoom is greater than max zoom.",L_invalidopacity_text="Invalid opacity value.",L_loadxml_text="Unable to load source file.",L_Help_Text="Help",L_ErrorServerBusy_Text="The server is temporarily unavailable. Try again later.",L_error_text="Error",L_close_text="close",L_what_text="What",L_where_text="Where",L_find_text="Find",L_selectlocation_text="Select a location",L_Start_Text="Start",L_End_Text="End",L_DirectionsGetDirections_Text="Get directions",L_loading_text=".. Loading ..",L_arriveat_text="Arrive at",L_startat_text="Start at",L_step_text="Step %1 of %2",L_DirectionsStep_Text="Step",L_CollectionManagerViewerDefaultTitle_Text="Shared Collection",L_CollectionManagerUnsavedCollectionTitle_Text="Unsaved Collection",L_AnnotationConfDefaultTitle_Text="Untitled item",L_TrafficPopupSeverity_Text="Severity",L_TrafficPopupLocation_Text="Location",L_TrafficPopupDescription_Text="Description",L_TrafficPopupStartTime_Text="Start time",L_TrafficPopupEstEndTime_Text="Est. end time",L_TrafficManagerSerious_Text="Serious",L_TrafficManagerModerate_Text="Moderate",L_TrafficManagerMinor_Text="Minor",L_TrafficManager_Zoomout_Text="Zoom out to view Traffic information",L_TrafficManager_Zoomin_Text="Zoom in to view Traffic information",L_ClientTokenInvalid="Invalid client token.",L_ClientTokenExpired="Expired client token.",L_Shp_IncorrectPoints="The number of points does not match the specified VEShape type.",L_Shp_IncorrectLineWidth="The line width must be a positive integer.",L_Shp_IncorrectZoomLevel="The specified zoom level is invalid. The valid range is 1 to 21,inclusive.",L_Shp_IncorrectZoomLevel2="Max zoom is less than min zoom.",L_shp_Notinitialized_text="Shape is not initialized.",L_ShpExist_text="This shape has already been added to layer.",L_invalidwhere_text="Invalid argument; input argument 'where' is not a valid 'string, VELatLong, VELatLongRectangle, or VEPlace ' value.",L_invalidnonnegativeint_text="Invalid argument; input argument '%1' must be a non-negative int value.",L_invalidbetweenint_text="Invalid argument; input argument '%1' must be between %2 and %3, inclusive.",L_DashboardRoad_Text="Road",L_DashboardAerial_Text="Aerial",L_DashboardBirdsEye_Text="Bird's eye",L_DashboardBirdsEyeText_Text="See this location in bird's eye view",L_Dashboard3DText_Text="See this location in Virtual Earth 3D",L_DashboardShowLabels_Text="Show labels",L_ObliqueZoomBarSelectZoom_Text="Choose the zoom level",L_ObliqueCompassSelectDirection_Text="Change the direction of the view",L_ObliqueSelectorSelectThumbnail_Text="Choose a thumbnail to display an image from the surrounding area",L_ObliqueModeImageNotAvailable_Text="Bird's eye images are not available for this area.",L_MinimapHybrid_Text="H",L_MinimapRoad_Text="R",L_MinimapHideToolTip_Text="Hide mini map",L_MinimapShowToolTip_Text="Show mini map",L_MinimapLargerToolTip_Text="Larger mini map",L_MinimapSmallerToolTip_Text="Smaller mini map",L_MinimapRoadToolTip_Text="Switch the mini map to road view.",L_MinimapHybridToolTip_Text="Switch the mini map to hybrid view.",L_MinimapDragToolTip_Text="Drag to move the map.",L_MinimapReticuleDragToolTip_Text="Drag to center map.",L_ScaleBarMiles_Text="miles",L_ScaleBarKilometers_Text="km",L_ScaleBarMeters_Text="m",L_ScaleBarYards_Text="yds",L_NavActionFlatland_Text="2D",L_NavActionView3D_Text="3D",L_NavActionRoad_Text="Road",L_NavActionAerial_Text="Aerial",L_NavActionHybrid_Text="Hybrid",L_NavActionHideToolTip_Text="Minimize navigation control",L_NavActionShowToolTip_Text="Maximize navigation control",L_NavActionFlatlandToolTip_Text="See maps in 2D view.",L_NavActionView3DToolTip_Text="See maps in 3D view with Virtual Earth 3D (Beta).",L_NavActionOrthoToolTip_Text="Switch to map view.",L_NavActionObliqueToolTip_Text="Switch to bird's eye view.",L_NavActionStreetSideToolTip_Text="Street-level view",L_NavAction3DOrthoToolTip_Text="Look down",L_NavAction3DObliqueToolTip_Text="Look down at an angle",L_NavAction3DStreetSideToolTip_Text="Look toward horizon",L_ZoomBarMinusToolTip_Text="Zoom out",L_ZoomBarPlusToolTip_Text="Zoom in",L_ZoomBarSliderToolTip_Text="Move slider to zoom in or zoom out.",L_NavActionTitleAlternate_Text="Choose view",L_BrowserNotSupported_Text="To use this feature, open Live Search in Windows Internet Explorer version 6 or 7. For more information, and to download the latest version, visit the Microsoft Internet Explorer website (%1%3%2).",L_x64BrowserNotSupported_Text="To use this feature, open Live Search in the 32-bit version of Windows Internet Explorer.",L_NoHardwareAcceleration_Text="Virtual Earth 3D has detected that hardware acceleration is turned off.",L_GeoRssInvalidFormatError_Text="The GeoRSS file you have tried to import is improperly formatted.",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="© 2007 Pictometry International Corp.",L_MapControlImageCourtesyOfEarthData_Text="© EarthData",L_MapControlImageCourtesyOfGetmapping_Text="© Getmapping plc",L_MapControlImageCourtesyOfAND_Text="© AND",L_MapControlImageCourtesyOfBlom_Text="© 2006 Blom",L_MapCopyrightMicrosoft="© 2007 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",L_MapControlImageCourtesyOfIntergraph_Text="© GeoContent / (p) Intergraph",L_MapControlImageCourtesyOfTerraItaly_Text="© 2007 TerraItaly",L_MapControlImageCourtesyOfIntermap_Text="© 2007 Intermap",L_MapControlImageCourtesyOfStateofIndiana_Text="© 2007 State of Indiana",L_SupportedBrowserDownloadUrl_Text="http://www.microsoft.com/windows/ie/downloads/default.mspx"; _VERegisterNamespaces("MapControl"); MapControl.Features={PlatformName:L_MapControlPlatformName_Text,Copyright:{Navteq:L_MapControlNavteq_Text,ImageCourtesyOfNASA:L_MapControlImageCourtesyOfNASA_Text,HarrisCorp:L_MapControlHarrisCorp_Text,ImageCourtesyOfUSGS:L_MapControlImageCourtesyOfUSGS_Text,ImageCourtesyOfPictometry:L_MapControlImageCourtesyOfPictometry_Text},Image:{PoweredLogo:"logo_powered_by.png"},MapStyle:{Road:true,Shaded:true,Aerial:true,Hybrid:true,BirdsEye:true,View3D:true},BirdsEyeAtZoomLevel:10,ScaleBarKilometers:false,Traffic:{Flow:{Slow:"0-25 mph",Moderate:"25-45 mph",Fast:"45+ mph"}}}; function _VERegisterNamespaces(){for(var d=0;d=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)a.onreadystatechange=function(){if(a&&("loaded"==a.readyState||"complete"==a.readyState)){a.onreadystatechange=null; EndInvoke(g,h,f,a,e)}};else a.onload=function(){a.onload=null; EndInvoke(g,h,f,a,e)}; VENetwork.GetAttachTarget().appendChild(a)}function EndInvoke(endInvokeTarget,fnCallback,endInvokeMethod,elScript,executionId){var objects=null; if(endInvokeMethod)eval("if(typeof "+endInvokeMethod+" == 'function') {objects = "+endInvokeMethod+"();}"); document.getElementsByTagName("head")[0].removeChild(elScript); elScript=null; if(fnCallback!=null&&fnCallback!="undefined")fnCallback(objects,endInvokeTarget); if(Msn.VE.API.Globals.veonendinvokeevent)Msn.VE.API.Globals.veonendinvokeevent()}VENetwork.GetExecutionID=function(){var a=new Date,b=Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()); b+=Math.round(Math.random()*1000000); return b}; 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}VENetwork.AttachStyleSheetCallback=function(a){if(a)a()}; VENetwork.AttachStyleSheet=function(a,b,d,c){if(a==null||a=="undefined"||a.length==0)throw new VEException("VENetwork:AttachStylesheet","err_nostylesurl",""); elStyle=document.createElement("link"); if(d==true)elStyle.rel="alternate stylesheet";else elStyle.rel="stylesheet"; if(c)elStyle.media=c; elStyle.type="text/css"; elStyle.rev="stylesheet"; elStyle.id=VENetwork.GetExecutionID(); elStyle.href=a; VENetwork.GetAttachTarget().appendChild(elStyle); if(navigator.userAgent.indexOf("IE")>=0)elStyle.onreadystatechange=function(){if(elStyle&&("loaded"==elStyle.readyState||"complete"==elStyle.readyState)){elStyle.onreadystatechange=null; VENetwork.AttachStyleSheetCallback(b)}};else VENetwork.AttachStyleSheetCallback(b); return}; VENetwork.DownloadScriptCallback=function(a,b){if(a)a(b)}; VENetwork.DownloadScript=function(b,c,d){if(b==null||b=="undefined"||b.length==0)throw new VEException("VENetwork:DownloadScript","err_noscripturl",L_noscripturl_text); var a=document.createElement("script"); a.type="text/javascript"; a.language="javascript"; a.id=VENetwork.GetExecutionID(); a.src=b; if(navigator.userAgent.indexOf("IE")>=0)a.onreadystatechange=function(){if(a&&("loaded"==a.readyState||"complete"==a.readyState)){a.onreadystatechange=null; VENetwork.DownloadScriptCallback(c,d)}};else a.onload=function(){a.onload=null; VENetwork.DownloadScriptCallback(c,d)}; VENetwork.GetAttachTarget().appendChild(a); return}; VENetwork.DownloadXml=function(e,c,b,d){var a=GetXmlHttp(); a.open(c,e,true); a.onreadystatechange=function(){if(a.readyState==4){if(b)b(a.responseXML,d); a=null}}; a.send(null)}; VENetwork.GetAttachTarget=function(){if(document.getElementsByTagName("head")[0]!=null)return document.getElementsByTagName("head")[0];else throw new VEException("VENetwork:cstr","err_noheadelement",L_noheadelement_text)}; VENetwork.prototype.BeginInvoke=BeginInvoke; VENetwork.prototype.EndInvoke=EndInvoke; _VERegisterNamespaces("Msn.Drawing"); var MC_PointID=10000,MC_PolylineID=30000,MC_PolygonID=50000,MC_SYMBOL_IID=70000,MC_TEXT_IID=90000,MC_ENTITY_IID=200000,MC_COL_IID=1000,MC_GEO_TYPE_SYMBOL="Symbol",MC_GEO_TYPE_POINT="Point",MC_GEO_TYPE_POLYLINE="Polyline",MC_GEO_TYPE_POLYGON="Polygon",MC_GEO_TYPE_TEXT="Text",MC_GEO_TYPE_COL="Collection",MC_GEO_TYPE_ENTITY="Entity",VEShapeType={Pushpin:"Point",Polyline:"Polyline",Polygon:"Polygon"}; Msn.Drawing.GetGeoUID=function(b){var a=""; switch(b){case VEShapeType.Polygon:a=MC_PolygonID++; break;case VEShapeType.Pushpin:a=MC_PointID++; break;case VEShapeType.Polyline:a=MC_PolylineID++; break;case MC_GEO_TYPE_SYMBOL:a=MC_SYMBOL_IID++; break;case MC_GEO_TYPE_TEXT:a=MC_TEXT_IID++; break;case MC_GEO_TYPE_COL:a=MC_COL_IID++; break;case MC_GEO_TYPE_ENTITY:a=MC_ENTITY_IID++; break}return a.toString()}; Msn.Drawing.Exception=function(a){this.message=a; this.name="Msn.Drawing.Exception"}; Msn.Drawing.Exception.prototype.toString=function(){return this.name+": "+this.message}; Msn.Drawing.Point=function(a,b){this.id=0; this.points=[]; this.points.push(a); this.points.push(b); this.iid=Msn.Drawing.GetGeoUID(VEShapeType.Pushpin)}; Msn.Drawing.Point.prototype.type=VEShapeType.Pushpin; Msn.Drawing.Point.prototype.name=null; Msn.Drawing.Point.prototype.symbol=null; Msn.Drawing.Point.prototype.isLabel=true; Msn.Drawing.Point.prototype.isOnLegend=false; Msn.Drawing.Point.prototype.Destroy=function(){this.symbol=null; this.points=null}; Msn.Drawing.Point.prototype.toString=function(){return this.points[0]+","+this.points[1]}; Msn.Drawing.PolyLine=function(a){this.id=0; this.iid=Msn.Drawing.GetGeoUID(VEShapeType.Polyline); this.points=a?a:[]; this.minX=null; this.minY=null; this.maxX=null; this.maxY=null; this.length=-1}; Msn.Drawing.PolyLine.prototype.toString=function(){if(this.points!=null)return this.points.join(" ");else return ""}; Msn.Drawing.PolyLine.prototype.minX=null; Msn.Drawing.PolyLine.prototype.minY=null; Msn.Drawing.PolyLine.prototype.maxX=null; Msn.Drawing.PolyLine.prototype.maxY=null; Msn.Drawing.PolyLine.prototype.iid=Msn.Drawing.GetGeoUID(VEShapeType.Polyline); Msn.Drawing.PolyLine.prototype.labelPosX=null; Msn.Drawing.PolyLine.prototype.labelPosY=null; Msn.Drawing.PolyLine.prototype.name=null; Msn.Drawing.PolyLine.prototype.type=VEShapeType.Polyline; Msn.Drawing.PolyLine.prototype.symbol=null; Msn.Drawing.PolyLine.prototype.isLabel=true; Msn.Drawing.PolyLine.prototype.isOnLegend=false; Msn.Drawing.PolyLine.prototype.Destroy=function(){this.symbol=null; this.points=null; this.minX=null; this.minY=null; this.maxX=null; this.maxY=null}; Msn.Drawing.PolyLine.prototype.GetLength=function(){if(this.length<0)this.length=CalculateShapeLengthP(this.points); return this.length}; Msn.Drawing.PolyLine.prototype.SetLength=function(a){this.length=a}; Msn.Drawing.Polygon=function(a){this.id=0; this.iid=Msn.Drawing.GetGeoUID(VEShapeType.Polygon); this.points=a; this.length=-1; this.area=-1; this.minX=null; this.minY=null; this.maxX=null; this.maxY=null}; Msn.Drawing.Polygon.prototype.labelPosX=null; Msn.Drawing.Polygon.prototype.labelPosY=null; Msn.Drawing.Polygon.prototype.symbol=null; Msn.Drawing.Polygon.prototype.isLabel=true; Msn.Drawing.Polygon.prototype.isOnLegend=false; Msn.Drawing.Polygon.prototype.type=VEShapeType.Polygon; Msn.Drawing.Polygon.prototype.name=null; Msn.Drawing.Polygon.prototype.Destroy=function(){this.symbol=null; this.points=null; this.minX=null; this.minY=null; this.maxX=null; this.maxY=null}; Msn.Drawing.Polygon.prototype.GetLength=function(){if(this.length<0)this.length=CalculateShapeLength(this); return this.length}; Msn.Drawing.Polygon.prototype.SetLength=function(a){this.length=a}; Msn.Drawing.Polygon.prototype.GetArea=function(){if(this.area<0)this.area=CalculateAreaP(this.points); if(this.area<0)this.area=CalculateAreaP(this.points,false); return this.area}; Msn.Drawing.Polygon.prototype.SetArea=function(a){this.area=a}; Msn.Drawing.Stroke=function(){this.width=1; this.linecap="round"; this.opacity=1; this.linejoin="miter"; this.color=new Msn.Drawing.Color(255,255,255,1); this.fillcolor=new Msn.Drawing.Color(0,255,0,1)}; Msn.Drawing.Color=function(d,c,b,a){this.R=d?d:0; this.G=c?c:0; this.B=b?b:0; this.A=a?a:0; this.ToHexString=function(){return "#"+Number(this.R).toString(16)+(this.R<16?"0":"")+Number(this.G).toString(16)+(this.G<16?"0":"")+Number(this.B).toString(16)+(this.B<16?"0":"")}}; VEShapeStyle=function(){this.iid=Msn.Drawing.GetGeoUID(MC_GEO_TYPE_SYMBOL); this.id=this.iid}; VEShapeStyle.prototype.point_type="v:rect"; VEShapeStyle.prototype.name="symbol"; VEShapeStyle.prototype.highlight_stroke_color="#336666"; VEShapeStyle.prototype.highlight_fill_color="#FFCC33"; VEShapeStyle.prototype.shape_drawtype="v:shape"; VEShapeStyle.prototype.shape_fill="false"; VEShapeStyle.prototype.shape_filled="false"; VEShapeStyle.prototype.shape_unselectable="off"; VEShapeStyle.prototype.style_zIndex=60; VEShapeStyle.prototype.style_position="absolute"; VEShapeStyle.prototype.style_filter="alpha(opacity=30)"; VEShapeStyle.prototype.style_width="10"; VEShapeStyle.prototype.style_height="10"; VEShapeStyle.prototype.style_visibility="visible"; VEShapeStyle.prototype.style_display="block"; VEShapeStyle.prototype.stroke_drawtype="v:stroke"; VEShapeStyle.prototype.stroke_on="true"; VEShapeStyle.prototype.stroke_joinstyle="miter"; VEShapeStyle.prototype.stroke_endcap="round"; VEShapeStyle.prototype.stroke_opacity="1"; VEShapeStyle.prototype.stroke_color="#0000FF"; VEShapeStyle.prototype.stroke_weight="2pt"; VEShapeStyle.prototype.stroke_style="Single"; VEShapeStyle.prototype.stroke_filltype="solid"; VEShapeStyle.prototype.stroke_color2="red"; VEShapeStyle.prototype.stroke_dashstyle="Solid"; VEShapeStyle.prototype.stroke_startarrow="none"; VEShapeStyle.prototype.stroke_startarrowwidth="medium"; VEShapeStyle.prototype.stroke_startarrowlength="medium"; VEShapeStyle.prototype.stroke_endarrow="none"; VEShapeStyle.prototype.stroke_endarrowwidth="medium"; VEShapeStyle.prototype.stroke_endarrowlength="medium"; VEShapeStyle.prototype.fill_drawtype="v:fill"; VEShapeStyle.prototype.fill_color="#008000"; VEShapeStyle.prototype.fill_colors="30% yellow"; VEShapeStyle.prototype.fill_color2="blue"; VEShapeStyle.prototype.fill_type="solid"; VEShapeStyle.prototype.fill_opacity="0.3"; VEShapeStyle.prototype.fill_on="false"; VEShapeStyle.prototype.textbox_drawtype="v:textbox"; VEShapeStyle.prototype.textbox_text="name"; VEShapeStyle.prototype.textbox_color="#FFFFFF"; VEShapeStyle.prototype.textbox_bold=false; VEShapeStyle.prototype.textbox_italic=false; VEShapeStyle.prototype.textbox_underscore=false; VEShapeStyle.prototype.textbox_font="Arial"; VEShapeStyle.prototype.textbox_size=7; VEShapeStyle.prototype.imagedata_on=false; VEShapeStyle.prototype.imagedata_src=null; VEShapeStyle.prototype.isOn=false; VEShapeStyle.prototype.textbox_OffsetX=0; VEShapeStyle.prototype.textbox_OffsetY=0; VEShapeStyle.prototype.textbox_backcolor="#0000FF"; VEShapeStyle.textbox_color_opacity="1"; VEShapeStyle.textbox_backcolor_opacity="1"; VEShapeStyle.prototype.img_offsetX=0; VEShapeStyle.prototype.img_offsetY=0; VEShapeStyle.prototype.img_width=22; VEShapeStyle.prototype.img_height=22; VEShapeStyle.prototype.Clone=function(){var a=new VEShapeStyle; a.point_type=this.point_type; a.name=this.name; a.line_color=this.line_color; a.line_width=this.line_width; a.line_dasharray=this.line_dasharray; a.highlight_stroke_color=this.highlight_stroke_color; a.highlight_fill_color=this.highlight_fill_color; a.shape_drawtype=this.shape_drawtype; a.shape_fill=this.shape_fill; a.shape_filled=this.shape_filled; a.shape_unselectable=this.shape_unselectable; a.style_zIndex=this.style_zIndex; a.style_position=this.style_position; a.style_filter=this.style_filter; a.style_width=this.style_width; a.style_height=this.style_height; a.style_visibility=this.style_visibility; a.style_display=this.style_display; a.stroke_drawtype=this.stroke_drawtype; a.stroke_on=this.stroke_on; a.stroke_joinstyle=this.stroke_joinstyle; a.stroke_endcap=this.stroke_endcap; a.stroke_opacity=this.stroke_opacity; a.stroke_color=this.stroke_color; a.stroke_weight=this.stroke_weight; a.stroke_style=this.stroke_style; a.stroke_filltype=this.stroke_filltype; a.stroke_color2=this.stroke_color2; a.stroke_dashstyle=this.stroke_dashstyle; a.stroke_startarrow=this.stroke_startarrow; a.stroke_startarrowwidth=this.stroke_startarrowwidth; a.stroke_startarrowlength=this.stroke_startarrowlength; a.stroke_endarrow=this.stroke_endarrow; a.stroke_endarrowwidth=this.stroke_endarrowwidth; a.stroke_endarrowlength=this.stroke_endarrowlength; a.fill_drawtype=this.fill_drawtype; a.fill_color=this.fill_color; a.fill_colors=this.fill_colors; a.fill_color2=this.fill_color2; a.fill_type=this.fill_type; a.fill_opacity=this.fill_opacity; a.fill_on=this.fill_on; a.textbox_drawtype=this.textbox_drawtype; a.textbox_text=this.textbox_text; a.textbox_color=this.textbox_color; a.textbox_bold=this.textbox_bold; a.textbox_italic=this.textbox_italic; a.textbox_underscore=this.textbox_underscore; a.textbox_backcolor=this.textbox_backcolor; a.imagedata_on=this.imagedata_on; a.imagedata_src=this.imagedata_src; a.isOn=this.isOn; a.textbox_OffsetX=this.textbox_OffsetX; a.textbox_OffsetY=this.textbox_OffsetY; a.img_offsetX=this.img_offsetX; a.img_offsetY=this.img_offsetY; a.img_width=this.img_width; a.img_height=this.img_height; return a}; function VE_MapLineClip(){var b=-360,c=360,d=-180,e=180,a={LEFT:1,RIGHT:2,BOTTOM:4,TOP:8}; function h(i,s,u,t,v){b=s; c=t; d=u; e=v; if(typeof i=="undefined"||i==null||i.length<4)return null; var m=false,o=i.length; if(i[o-2]==i[0]&&i[o-1]==i[1])m=true; var f=[]; for(var l=0;lc)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."; _VERegisterNamespaces("Msn.Drawing"); Msn.Drawing.Graphic=function(){}; Msn.Drawing.Graphic.CreateGraphic=function(f,c){if(document.all)return new Msn.Drawing.VMLGraphic(f,c);else{var b=0,e=0,g=new RegExp("Firefox/(.*)"),d=g.exec(navigator.userAgent); if(d[1]){var a=d[1].split("."); if(a){b=a[0]; e=a[1]; if(parseInt(b)>0&&parseInt(e)>=5||parseInt(b)>=2)return new Msn.Drawing.SVGGraphic(f,c)}}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 VEShapeStyle; if(a._stroke){b.stroke_weight=a._stroke.width; b.stroke_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(f,e){var c=Msn.Drawing.VMLGraphic.prototype.DrawPrimitive(d,f,this); if(a&&c){if(e)a.appendChild(wrapVmlElementInDiv(c));else 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==VEShapeType.Pushpin){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==VEShapeType.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==VEShapeType.Polyline){b.fill=false; b.filled=false}else if(a.type==VEShapeType.Pushpin){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(f,g){var c=g,b=null,e=false,h=false; if(e==false){e=true; b=document.createElementNS("http://www.w3.org/2000/svg","svg"); b.setAttribute("height","100%"); b.setAttribute("width","100%"); f.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(e){if(b==null)return; var a=null; if(e.type==VEShapeType.Pushpin){a=document.createElementNS("http://www.w3.org/2000/svg","rect"); var h=LatLongtoRoundedPixel(c,e.points[1],e.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",e.symbol.stroke_weight); a.setAttribute("stroke",e.symbol.stroke_color); a.setAttribute("fill",e.symbol.fill_color); b.appendChild(a)}else if(e.type==VEShapeType.Polyline||e.type==VEShapeType.Polygon){a=document.createElementNS("http://www.w3.org/2000/svg","polyline"); a.setAttribute("points",GetSvgPath(c,e.points)); a.setAttribute("stroke",e.symbol.stroke_color); a.setAttribute("stroke-width",e.symbol.stroke_weight); a.setAttribute("stroke-linejoin",e.symbol.stroke_joinstyle); a.setAttribute("stroke-opacity",d(e.symbol.stroke_opacity)); var g=this.lineDashStyles; for(var f=0;f1)a/=100;else if(a<0)a=0; 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 e=LatLongtoRoundedPixel(g,c[b*2+1],c[b*2]); if(!e)return null; d.push(e.x); d.push(","); d.push(e.y); d.push(" l "); ++b}var f=false; if(a.type!=VEShapeType.Pushpin)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.x1&&b.y1>a.y1&&b.x2b.x2||a.y2b.y2)return false; return true}function IsDisplayShape(d,c,e,g,f,h){if(c==0)return true; if(e==f&&g==h)return true; var a=null,b=null; a=d.LatLongToPixel(new Msn.VE.LatLong(g,e)); b=d.LatLongToPixel(new Msn.VE.LatLong(h,f)); if(a==null||b==null)return true; if(Math.abs(b.y-a.y)>c||Math.abs(b.x-a.x)>c)return true;else return false}function IsRecIntersect(c,d,a,b,g,h,e,f){if(ae||bf)return false; return true}function wrapVmlElementInDiv(a){var c=Msn.VE.Css.Functions.getComputedStyle,b=document.createElement("div"); b.className="VmlContainer"; b.style.left=c(a,"left"); b.style.top=c(a,"top"); b.style.width=c(a,"width"); b.style.height=c(a,"height"); a.style.position="relative"; a.style.left="0px"; a.style.top="0px"; a.style.width="100%"; a.style.height="100%"; b.appendChild(a); return b}function VEColorToHexString(c,b,a){return "#"+Number(c).toString(16)+(c<16?"0":"")+Number(b).toString(16)+(b<16?"0":"")+Number(a).toString(16)+(a<16?"0":"")}function VEHexStringToColor(){this.Convert=function(a){a=a.toUpperCase(); var b=hTov(a.substring(0,1)),c=hTov(a.substring(1,2)),d=hTov(a.substring(2,3)),e=hTov(a.substring(3,4)),f=hTov(a.substring(4,5)),g=hTov(a.substring(5,6)),h=b*16+c,i=d*16+e,j=f*16+g; return new VEColor(h,i,j,1)}; function hTov(h){var v=0; if(h=="A")v=10;else if(h=="B")v=11;else if(h=="C")v=12;else if(h=="D")v=13;else if(h=="E")v=14;else if(h=="F")v=15;else v=eval(h); return v}}_VERegisterNamespaces("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; _VERegisterNamespaces("Msn.VE.UI"); Msn.VE.UI.IEGlyphStates={Unselected:"-unselected",Hover:"-hover",Pressed:"-pressed"}; Msn.VE.UI.IEGlyph=function(j,l){var k=Msn.VE.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,"")}}; 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("onmouseenter",c); a.attachEvent("onmouseleave",b); window.attachEvent("onunload",d); function d(){a.detachEvent("onmouseenter",c); a.detachEvent("onmouseleave",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)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("