=3D0&&d>=3D0&&c0;c--){var =
b=3D0,e=3D1<this.topLeft.x&&a.y>this.topLeft.y&&a.x0){g[i]=3DMath.floor(c%d);c=3DMath.floor(c/d);--i}for(var=
b=3D0;b=3Da&&d<=3Dc){var =
e=3D(d-a)/(c-a),f=3De*b+.5;return Math.min(Math.floor(f),b)}else throw =
L_floatintegermapencodingoutofrange_text};this.IntToFloat=3Dfunction(d){i=
f(d<=3Db){var f=3Dd/b,e=3Da+f*(c-a);return e}else throw =
L_floatintegermapencodingoutofrange_text}}var =
L_velatlongencodinginvalidstringlength_text=3D"_xz1: Invalid string =
length";function _xz1(b){var =
i=3D-90,h=3D90,g=3D-180,f=3D180,j=3D"0123456789bcdfghjkmnpqrstvwxyz",e=3D=
6;if(b!=3Dnull&&typeof b!=3D"undefined")e=3Db;var a=3Dnew =
VEIntegerEncoding(j,e),d=3Dnew =
VEFloatIntegerMap(i,h,a.MaxValue()),c=3Dnew =
VEFloatIntegerMap(g,f,a.MaxValue());this.Encode=3Dfunction(e,b){var =
f=3Da.Encode(d.FloatToInt(e))+a.Encode(c.FloatToInt(b));return =
f};this.Decode=3Dfunction(f){if(f.length=3D=3D2*a.ValueLength()){var =
e=3Da.ValueLength(),j=3Df.substr(0,e),h=3Df.substr(e,e),i=3Da.Decode(j),g=
=3Da.Decode(h),b=3D[];b[0]=3Dd.IntToFloat(i);b[1]=3Dc.IntToFloat(g);retur=
n b}else throw L_velatlongencodinginvalidstringlength_text}}function =
_xz1ForMobile(){_xz1.call(this,5)}var =
Shims=3D["help","msve_ScratchPad","VE_MessageControl","contextMenu","MSVE=
_dashboardId"],vedomain=3D"http://ecn.dev.virtualearth.net/mapcontrol/v6.=
3",_entityIdShapePostfix=3D"_Shape",_hackUniqueLayerId=3D"UniqueLayer_Hac=
k";function GetManifestUrl(a){return =
a.indexOf("http")=3D=3D0?a:vedomain+a}function Get3dMarket(){if(typeof =
Msn.VE.API=3D=3D"undefined"||Msn.VE.API=3D=3Dnull)return =
window.locale;else return Msn.VE.API.Globals.locale}function =
Get3dInstallMarket(){if(typeof =
Msn.VE.API=3D=3D"undefined"||Msn.VE.API=3D=3Dnull)return =
window.locale;else return Msn.VE.API.Globals.resourcelocale}function =
Get3dInstallUrl(b,a){if(typeof =
a=3D=3D"undefined"||a=3D=3Dnull)a=3DGet3dInstallMarket();if(typeof =
b=3D=3D"undefined"||b=3D=3Dnull){b=3D"Default.aspx?action=3Dinstall";if(a=
)b+=3D"&mkt=3D{0}"}var =
c=3D"http://www.bing.com/maps/Help/VE3DInstall/"+b;c=3Dc.replace("{0}",a)=
;return c}function Get3dHelpUrl(c,a){var =
b=3D"http://www.bing.com/maps/Help/{0}/"+c;if(typeof =
a=3D=3D"undefined"||a=3D=3Dnull)a=3DGet3dMarket();b=3Db.replace("{0}",a);=
return b}function initShimElements(){for(var =
a=3D0;a=3D0;functi=
on SetShimPosition(a,b){var =
c=3Dg(b).getRelativePosition(a.parentNode);a.style.top=3Dc.y+"px";a.style=
.left=3Dc.x+"px";a.width=3Db.offsetWidth;a.height=3Db.offsetHeight;if(Use=
ClipToSize)ConvertClipToSize(a,b);else =
a.style.clip=3Db.style.clip}function UpdateIFrameShim(c,e,d){var =
a=3Dtypeof =
c=3D=3D"object"?c:$ID(c);if(!a)return;if(!a.shimElement)addIFrameShim(a,e=
,d);var =
b=3Da.shimElement;SetShimPosition(b,a);if(Msn.VE.Css.Functions.getCompute=
dStyle(a,"display")=3D=3D"none"||Msn.VE.Css.Functions.getComputedStyle(a,=
"visibility")=3D=3D"hidden")b.style.display=3D"none";else =
b.style.display=3D"block"}function =
RepositionShims(){if(!view3DMode)return;for(var =
b=3D0;b=3D0)a.style.zIndex=3De;else =
a.style.zIndex=3D"1";a.style.backgroundColor=3D"white";b.shimElement=3Da;=
HideShim(b);var c=3Df;if(c=3D=3Dnull)c=3Db;var =
d=3Dc.parentNode;if(d=3D=3Dnull)d=3Ddocument.body;d.insertBefore(a,c);if(=
b.id=3D=3D"msve_ScratchPad"||b.id&&b.id.indexOf("_vefindcontrolinput")>0)=
hookResizeEvent(b);return a}function destroyIFrameShim(b){var =
a=3D$ID(b);DestroyShim(a)}function =
ShowShim(a,b){UpdateIFrameShim(a,b);if(a!=3Dnull&&a.shimElement)a.shimEle=
ment.style.display=3D"block"}function =
HideShim(a){if(a!=3Dnull&&a.shimElement)a.shimElement.style.display=3D"no=
ne"}function =
DestroyShim(a){if(a!=3Dnull&&a.shimElement){a.shimElement.parentNode.remo=
veChild(a.shimElement);a.shimElement=3Dnull}}function RollShim(b){var =
a=3Db.Recipient;if(a.shimElement)if(UseClipToSize)ConvertClipToSize(a.shi=
mElement,a);else a.shimElement.style.clip=3Da.style.clip}function =
OnView3DKeyDown(d,c){var =
b=3DparseInt(d);CloseContextMenu(b);ero.hide();var =
a=3DGetMapControlInstance(c);if(a=3D=3Dnull)return;switch(b){case =
65:a.SetMapStyle("a");break;case 72:a.SetMapStyle("h");break;case =
82:case 86:a.SetMapStyle("r");break;case 50:case =
98:window.setTimeout(function(){a.EnableMode(Msn.VE.MapActionMode.Mode2D)=
},10);break;case 66:case 79:a.GetDashboard().Oblique3DToggle()}}function =
OnNavigationHelpFired(){VE_Help.OpenLiveHelp("wl_local","topic","WL_LOCAL=
_PROC_3D_NavigateMap.htm")}function =
OnHardwareAccelHelpFired(){VE_Help.OpenLiveHelp("wl_local","topic","WL_LO=
CAL_TROU_3D_VideoAcceleration.htm")}var =
__shapeIdBeingDragged=3Dnull;function Deserialize3DMessage(message){var =
messageObject;if(typeof =
Sys!=3D"undefined"&&Sys!=3Dnull&&Sys.Serialization!=3Dnull)messageObject=3D=
Sys.Serialization.JavaScriptSerializer.deserialize(message);else =
eval("messageObject =3D "+message+";");return messageObject}function =
OnView3DMouseDown(b){var =
a=3DDeserialize3DMessage(b);if(a.button=3D=3D"Left"){__shapeIdBeingDragge=
d=3Da.shapeId;window.setTimeout(BeginDragPin3D,300)}CloseContextMenu();er=
o.hide();if(typeof =
Msn.VE.API=3D=3D"undefined"||Msn.VE.API=3D=3Dnull)VE_MapDispatch.ClickedE=
ntity=3Dnull}function =
BeginDragPin3D(){if(__shapeIdBeingDragged!=3Dnull){var =
d=3Dtrue,b=3DVE_MapManager.GetCollectionByAnId(__shapeIdBeingDragged);if(=
b!=3Dnull){var =
c=3DVE_MapManager.GetSelectedCollection();if(c!=3Dnull&&c.GetId()!=3Db.Ge=
tId())return}else return;var =
a=3DVE_MapManager.GetAnnotationInCollectionById(b,__shapeIdBeingDragged);=
if(typeof =
a!=3D"undefined"&&a!=3Dnull&&a.GetType()=3D=3DMC_GEO_TYPE_POINT){VE_Annot=
ations.EnterMovePushpinMode(__shapeIdBeingDragged,true);View3DMovePin(__s=
hapeIdBeingDragged)}}}function OnView3DDropGeometry(b){var =
a=3DDeserialize3DMessage(b);if(!a.pushpinId)return;var =
c=3DVE_MapManager.GetAnnotationById(a.pushpinId);if(c)VE_Annotations.Move=
Pushpin(null,new Msn.VE.LatLong(a.lat,a.lon))}function =
OnView3DLatLonAltClicked(b){var =
a=3DDeserialize3DMessage(b);VE_MapUpdateView_AutoSaveEntity();if(VE_EditC=
ontrol.GetMode()=3D=3DMC_DRAW_MODEL)VE_MapDispatch.OnCreateModel(a.lat,a.=
lon,a.alt);else VE_EditControl.AddPoint(null,a.lat,a.lon,a.alt)}function =
OnBeginFlyTo(c,b){ero.hide();var =
a=3DGetMapControlInstance(b);if(a!=3Dnull)a.OnBeginCameraUpdate()}functio=
n OnView3DUpdateViewpoint(k,l){var =
b=3DDeserialize3DMessage(k),c=3DGetMapControlInstance(l);if(c=3D=3Dnull)r=
eturn;c.OnEndCameraUpdate();var =
f=3D1e-6,e=3D.1,j=3D.01,a=3Dc.GetCurrentMapView(),h=3DMath.abs(b.heading-=
a.GetDirection())0){VE_MapManager.SetHighlightEntity(entit=
y,isCV);return}if(!isCV)VE_MapViewPreUpdate.ShowEro(pushpinId,VE_Directio=
ns.EntryPoint.Scratchpad,rect);else =
VE_MapViewPreUpdate.Viewer.ShowEroToItem(null,pushpinId,rect,null)}}catch=
(a){}return}}var =
ddERO=3D$find(pushpinId+"_ero");if(ddERO){CloseContextMenu();var =
content=3DddERO.get_Content();ero.clearActions();var =
ddActionNames=3Deval(ddERO.get_ActionNames()),ddActionValues=3Deval(ddERO=
.get_ActionValues());g(ddActionNames).forEach(function(a,b){ero.addAction=
(''+a+" ")});ero.setContent(content);ero.dockToRect(rect,null,-1=
);return}result=3DpushpinId.match(/pin_traffic_market_(.*)/);if(result!=3D=
null&&result.length>=3D2){var =
entity=3DVE_TrafficManager.GetEntity(pushpinId);if(entity!=3Dnull){var =
content=3DVE_TrafficManager.CreateZoomPopupContent(entity);if(content!=3D=
null&&content!=3D""&&content!=3D"undefined"){CloseContextMenu();ero.setCo=
ntent(content);ero.dockToRect(rect,null,-1);return}}}result=3DpushpinId.m=
atch(/pin_traffic_incident_(.*)/);if(result!=3Dnull&&result.length>=3D2){=
var =
entity=3DVE_TrafficManager.GetEntity(pushpinId);if(entity!=3Dnull){var =
content=3DVE_TrafficManager.CreatePopupContent(entity,true);if(content!=3D=
null&&content!=3D""&&content!=3D"undefined"){CloseContextMenu();ero.setCo=
ntent(content);ero.dockToRect(rect,null,-1);return}}}if(pushpinId=3D=3D"a=
utolocate"){var pushpins=3Dmapcontrol.GetPushpins();if(pushpins)for(var =
i=3D0;i=3D2){var =
entityID=3Dresult[1],r=3DVE_SearchManager.GetEntity(entityID);if(r=3D=3D=3D=
null){entityID=3Dresult[0];r=3DVE_SearchManager.GetEntity(entityID);if(r=3D=
=3D=3Dnull){var =
correspondingItem=3DGimme.id(entityID+"_number");entityID=3Dcorresponding=
Item&&correspondingItem.parentNode.id.replace(/_pin$/,"");r=3DVE_SearchMa=
nager.GetEntity(entityID)}}if(r!=3D=3Dnull){CloseContextMenu();VE_SearchM=
anager.SetLatLong(r.latitude,r.longitude);if(r.type!=3DVE_SearchType.Coll=
ection){var =
content=3DVE_SearchManager.CreatePopupContent(r,true);ero.setContent(cont=
ent);ero.dockToRect(rect,null,-1)}else ShowCollectionPopup(new =
VE_CollectionSearchEroData(r),rect,null)}return}}function =
OnHardwareCapabilitiesUpdate(){if(typeof =
view3DMode!=3D"undefined"&&view3DMode){map.Setup3DManifests();var =
b=3D"3D performance option =EF=BF=BD =
",a=3Dmap.Get3DControl().HardwareClassificationLevel;if(typeof =
a!=3D"undefined"&&a!=3Dnull){switch(a){case 3:b+=3D"Quality";break;case =
2:b+=3D"Balanced";break;case =
1:b+=3D"Performance"}UpdateStreetLevelGeometryState(map.Get3DControl());U=
pdateHiResModelsState(map.Get3DControl());UpdateWeatherPluginState(map.Ge=
t3DControl())}}}function =
View3DMovePin(a){map.Get3DControl().PickupGeometry("UniqueLayer_Hack",a)}=
Msn.VE.FFSentinel=3Dfunction(a){this.CurrentVersion=3Da};function =
BrowserSupports3D(){var a=3Dwindow.navigator.userAgent;return =
a.indexOf("Windows")!=3D-1&&(a.indexOf("MSIE")!=3D-1||a.indexOf("Firefox"=
)!=3D-1)}function =
GetSentinel(){if(BrowserSupports3D()){if(window.navigator.userAgent.index=
Of("MSIE")!=3D-1){var b;try{b=3Dnew =
ActiveXObject("Microsoft.SentinelVirtualEarth3DProxy.SentinelVE3DProxy")}=
catch(f){try{b=3Dnew =
ActiveXObject("Microsoft.SentinelVirtualEarth3D.SentinelVE3D")}catch(g){b=
=3Dnull}}return b}else if(typeof navigator.plugins!=3Dundefined)for(var =
a=3D0;a=3D0){var =
e=3Dnavigator.plugins[a].name.indexOf("plugin"),d=3DparseFloat(navigator.=
plugins[a].name.substring(c+17,e-1));return new =
Msn.VE.FFSentinel(d)}}}else if(typeof =
navigator.plugins!=3Dundefined)for(var =
a=3D0;a=3D0){var =
e=3Dnavigator.plugins[a].name.indexOf("plugin"),d=3DparseFloat(navigator.=
plugins[a].name.substring(c+17,e-1));return new =
Msn.VE.FFSentinel(d)}}return null}function =
HandleModeNotInstalled(b){if(b=3D=3DMsn.VE.MapActionMode.Mode3D){map.Enab=
leMode(Msn.VE.MapActionMode.Mode2D);if(BrowserSupports3D()){var =
a=3DGetSentinel();if(a!=3Dnull)View3DDamaged();else View3DInstall()}else =
if(typeof =
ShowMessage!=3D"undefined")ShowMessage(L_BrowserNotSupported3D_Text)}}fun=
ction View3DInstall(){try{if(typeof =
Msn.VE.API=3D=3D"undefined"||Msn.VE.API=3D=3Dnull)state.Set3DViewInstallI=
nProgress("true");if(window.navigator.userAgent.indexOf("MSIE")!=3D-1)VE_=
Help.OpenSized(L_View3DHelpWindowTitle_Text,Get3dInstallUrl(),650,520);el=
se =
VE_Help.OpenSized(L_View3DHelpWindowTitle_Text,Get3dInstallUrl(),680,540)=
;var =
a=3DVE_Help.helpPanel.onCloseClick;VE_Help.helpPanel.onCloseClick=3Dfunct=
ion(){a();VE_Help.helpPanel.onCloseClick=3Da}}catch(b){}}function =
View3DUpgrade(c){try{var =
b=3DGet3dInstallUrl("Default.aspx?v=3D"+c+"&mkt=3D{0}");if(typeof =
Msn.VE.API=3D=3D"undefined"||Msn.VE.API=3D=3Dnull)state.Set3DViewInstallI=
nProgress("true");if(typeof =
Msn.VE.API!=3D"undefined"&&Msn.VE.API!=3Dnull)window.open(b,"_blank","wid=
th=3D600,height=3D320,menubar=3D0,resizeable=3D0,status=3D0,titlebar=3D0,=
toolbar=3D0,scrollbars=3D0");else{VE_Help.OpenSized(L_View3DHelpWindowTit=
le_Text,b,600,320);var =
a=3DVE_Help.helpPanel.onCloseClick;VE_Help.helpPanel.onCloseClick=3Dfunct=
ion(){a();VE_Help.helpPanel.onCloseClick=3Da}}}catch(d){}}function =
View3DDamaged(){try{VE_Help.Open("",Get3dHelpUrl("View3DUnavailable.htm")=
)}catch(a){}}function =
View3DSwitch(){if(map)map.EnableMode(Msn.VE.MapActionMode.Mode3D)}functio=
n Start3DView(){if(map){if(typeof =
ShowMessage!=3D"undefined")ShowMessage(L_3DLoading_Text);window.setTimeou=
t(View3DSwitch,200)}}function =
Start3DViewWhenUpgradeComplete(){if(map){var =
a=3DGetSentinel();if(a.CurrentVersion>=3D4.0){if(typeof =
ShowMessage!=3D"undefined")ShowMessage(L_3DLoading_Text);window.setTimeou=
t(View3DSwitch,200)}else =
setTimeout(Start3DViewWhenUpgradeComplete,1500);a=3Dnull}}function =
NotifyWhen3DUpgraded(){if(map){var =
a=3DGetSentinel();if(a.CurrentVersion>=3D4.0)if(map.GetDashboard()&&map.G=
etDashboard().DisplayThreeDUpdatedNotification)map.GetDashboard().Display=
ThreeDUpdatedNotification();else{if(typeof =
ShowMessage!=3D"undefined")ShowMessage(L_3DLoading_Text);window.setTimeou=
t(View3DSwitch,200)}else =
setTimeout(NotifyWhen3DUpgraded,1500);a=3Dnull}}function =
PushpinURL(d,c){var =
a=3Dvedomain+"/i/bin/"+window.buildVersion+"/";if(typeof =
d=3D=3D"undefined"||d=3D=3Dnull||!d)return a+"pins/red_circ7px.gif";var =
b=3DMsn.VE.PushPinTypes;switch(d){case =
b.Annotation:if(c=3D=3D"shared")return a+"pins/poi_viewer.gif";else =
return a+"pins/poi_usergenerated.gif";case =
b.Overlay:if(c=3D=3D"shared")return =
a+"pins/poi_cruncher_viewer.gif";else return =
a+"pins/poi_cruncher.gif";case =
b.SearchResultPrecise:if(c=3D=3D"model"||c=3D=3D"sharemodel")return =
a+"pins/modelpoi.gif";else if(c=3D=3D"shared")return =
a+"pins/poi_title_viewer.gif";return a+"pins/poi_"+c+".gif";case =
b.SearchResultNonprecise:if(c=3D=3D"model"||c=3D=3D"sharemodel")return =
a+"pins/modelpoi.gif";else if(c=3D=3D"shared")return =
a+"pins/poi_title_viewer.gif";return =
a+"pins/poi_search_nonprecise.gif";case b.Collection:return =
a+"pins/poi_"+c+".gif";case b.AdSponsor:return =
a+"pins/poi_search.gif";case b.DirectionStep:return =
a+"pins/poi_direction_step.png";case b.Direction:return =
a+"blue_pushpin.png";case b.DirectionTemp:return =
a+"pins/mapicon_"+c+".gif";case b.TrafficOthers:return =
a+"Traffic/Traffic"+c+".gif";case b.YouAreHere:return =
a+"pins/poi_youarehere.gif";case b.Default:return a+"pins/"+c;case =
b.Context:return a+"pins/red_circ7px.gif";case b.AdRoofStandard:case =
b.AdRoofWide:case b.AdStandard:case b.AdWide:case b.AdCategory:return =
c}return a+"pins/poi_usergenerated.gif"}function =
_VEExtractImgUrlFromHtml(d){var =
b=3Dnull,a=3Ddocument.createElement("div");a.innerHTML=3Dd;var =
c=3Da.getElementsByTagName("img");if(c.length>=3D1)b=3Dc[0].getAttribute(=
"src");a=3Dnull;return b}var _VEHtmlToImgUrlHash=3D[];function =
TranslatePushpinURL(d,f,g){var =
a=3DMsn.VE.PushPinTypes,h,c=3Dnull;switch(g){case a.DirectionTemp:var =
e=3D/mapicon_(start|end).gif/g,b=3De.exec(f);if(b!=3Dnull&&b.length>=3D2)=
{c=3Db[1];break}else return vedomain+_VEExtractImgUrlFromHtml(f);case =
a.SearchResultPrecise:case a.SearchResultNonprecise:case =
a.Collection:var e=3D/VE_Pushpin =
VE_Pushpin_(.*)/g,b=3De.exec(d);if(b!=3Dnull&&b.length>=3D2)c=3Db[1];brea=
k;case a.TrafficOthers:if(typeof =
_VEHtmlToImgUrlHash[d]=3D=3D"string")c=3D_VEHtmlToImgUrlHash[d];else{var =
e=3Dnew RegExp(/VE_Pushpin =
VE_Traffic_(.*)/g),b=3De.exec(d);if(b!=3Dnull&&b.length>=3D2){c=3Db[1];_V=
EHtmlToImgUrlHash[d]=3Dc}e=3Dnull}break;case a.AdRoofStandard:case =
a.AdRoofWide:case a.AdStandard:case a.AdWide:case =
a.AdCategory:c=3D_VEExtractImgUrlFromHtml(f)}var =
h=3DPushpinURL(g,c);return h}var _VE_previousShapeId=3Dnull;function =
RaiseMouseEvent3D(g,d,b){try{var =
a=3DDeserialize3DMessage(g);if(a.shapeId!=3Dnull){var e=3Dtypeof =
Msn.VE.API!=3D"undefined"&&Msn.VE.API!=3Dnull;if(b=3D=3D"onclick"||!e&&b=3D=
=3D"onmouseover"&&a.shapeId.indexOf(_entityIdShapePostfix)>0&&_VE_previou=
sShapeId!=3Da.shapeId){if(typeof =
VE_Annotations!=3D"undefined")if(VE_Annotations.PanelOpen)return;_VE_prev=
iousShapeId=3Da.shapeId;Process3DPushpinHover(a.layerId,a.shapeId,a.rX1,a=
.rY1,a.rX2,a.rY2,d)}else =
if(!e&&b=3D=3D"onmouseout"&&a.shapeId.indexOf(_entityIdShapePostfix)>0){V=
E_MapManager.HighlightEntity(false);_VE_previousShapeId=3Dnull}}var =
c=3DGetMapControlInstance(d);if(c=3D=3Dnull)return;var =
f=3Dc.CreateEvent(a.lat=3D=3Dnull||a.lon=3D=3Dnull?null:new =
Msn.VE.LatLong(a.lat,a.lon),null,null,null,a.shapeId,a.button,a.alt);c.Fi=
re(b,f)}catch(h){}}function =
OnMouseDown3D(b,a){RaiseMouseEvent3D(b,a,"onmousedown")}function =
OnMouseUp3D(b,a){__shapeIdBeingDragged=3Dnull;RaiseMouseEvent3D(b,a,"onmo=
useup")}function =
OnClick3D(b,a){RaiseMouseEvent3D(b,a,"onclick")}function =
OnMouseOver3D(b,a){RaiseMouseEvent3D(b,a,"onmouseover")}function =
OnMouseOut3D(b,a){ero.hide();RaiseMouseEvent3D(b,a,"onmouseout")}function=
OnDoubleClick3D(b,a){RaiseMouseEvent3D(b,a,"ondoubleclick")}function =
OnChangeMapStyle3D(){var b=3DGetMapControlInstance();if(b){var =
a=3Db.Get3DControl();UpdateStreetLevelGeometryState(a);UpdateHiResModelsS=
tate(a);UpdateWeatherPluginState(a)}}function =
GetMapControlInstance(b){if(typeof =
Msn.VE.API=3D=3D"undefined"||Msn.VE.API=3D=3Dnull)return map;var =
a=3DGetVEMapInstance(b);if(a=3D=3Dnull)return null;return =
a.vemapcontrol}function GetVEMapInstance(a){if(typeof =
a=3D=3D"undefined"||a=3D=3Dnull){if(Msn.VE.API=3D=3Dnull||Msn.VE.API=3D=3D=
"undefined"||Msn.VE.API.Globals.vemapinstances=3D=3Dnull||Msn.VE.API.Glob=
als.vemapinstances=3D=3D"undefined")return null;var c=3D0;for(var b in =
Msn.VE.API.Globals.vemapinstances)if(Msn.VE.API.Globals.vemapinstances[b]=
instanceof =
VEMap&&Msn.VE.API.Globals.vemapinstances[b].GetMapMode()=3D=3DVEMapMode.M=
ode3D){c++;a=3Db}if(c!=3D1)return null}return =
VEMap._GetMapFromGUID(a)}function Get3DHardwareClassification(b){var =
a=3Db.HardwareClassificationLevel;if(a=3D=3D3)a=3D"Quality";else =
if(a=3D=3D2)a=3D"Balanced";else if(a=3D=3D1)a=3D"Performance";else =
a=3D"Unknown";return =
a}VE_3DPlugin=3D{MovieRecorderGuid:"791BC97B-7526-4C74-85DB-8CC220E3A65E"=
,PhotoGuid:"B1FC67C1-F8CE-4CA5-A957-B5FF2215037B",PhotoManifest:GetManife=
stUrl("http://go.microsoft.com/fwlink/?LinkID=3D99342"),PhotoUrl:GetManif=
estUrl("http://go.microsoft.com/fwlink/?LinkID=3D98905"),HiResModelsGuid:=
"5D4BE259-4D19-492F-8D6B-830833E2EAD9",HiResModelsManifest:GetManifestUrl=
("http://go.microsoft.com/fwlink/?LinkID=3D124117"),HiResModelsUrl:GetMan=
ifestUrl("http://go.microsoft.com/fwlink/?LinkID=3D124119"),WeatherPlugin=
Guid:"A020A315-34D9-4357-94AD-97F909E96B22",WeatherPluginManifest:GetMani=
festUrl("http://go.microsoft.com/fwlink/?LinkID=3D124118"),WeatherPluginU=
rl:GetManifestUrl("http://go.microsoft.com/fwlink/?LinkID=3D124120"),GeoC=
ommunityGuid:"49D0BC0C-67A7-44CD-93BA-C7CF6F20EAB9",GeoCommunityManifest:=
GetManifestUrl("http://go.microsoft.com/fwlink/?LinkID=3D99343"),GeoCommu=
nityUrl:GetManifestUrl("http://go.microsoft.com/fwlink/?LinkID=3D98904"),=
StreetLevelGeometryGuid:"C9F0B259-0B78-464A-BEC4-B4E90CF0BC8D",StreetLeve=
lGeometryManifest:GetManifestUrl("http://go.microsoft.com/fwlink/?LinkID=3D=
111353"),StreetLevelGeometryUrl:GetManifestUrl("http://go.microsoft.com/f=
wlink/?LinkID=3D109495")};var =
VE_3DPhotoPluginObj=3D0,VE_3DHiResModelsPluginObj=3D0,VE_3DWeatherPluginO=
bj=3D0,VE_3DGeoCommunityPluginObj=3D0,VE_3DStreetLevelGeometryObj=3D0,Plu=
ginEventRegistered=3D0,PhotoPluginEventRegistered=3D0,GeoCommunityPluginE=
ventRegistered=3D0,StreetLevelGeometryEventRegistered=3D0,VE3DVIASavedAct=
ion=3D0;function =
GetVE3DVIAInstallState(a){if(!a){a=3Dmap.Get3DControl();if(!a)return =
0}return =
a.GetComponentInstallState("EE3B731B-969E-4cb6-8949-ADFDC763A547")}functi=
on =
OnVE3DVIAInstallEnd(){if(VE3DVIASavedAction!=3D0){ProcessModelIn3DEx(VE3D=
VIASavedAction.actionType,VE3DVIASavedAction.properties,VE3DVIASavedActio=
n.control,L_PluginFeatureNotAvailable_Text);VE3DVIASavedAction=3D0}}funct=
ion ProcessModelRequire3DVIA(b,c,a){if(typeof =
b=3D=3D"undefined"||b=3D=3Dnull)return;if(!a){a=3Dmap.Get3DControl();if(!=
a)return}if(GetVE3DVIAInstallState()=3D=3D2)ProcessModelIn3DEx(b,c,a,L_Pl=
uginFeatureNotAvailable_Text);else{if(!VE3DVIASavedAction)VE3DVIASavedAct=
ion=3D{};VE3DVIASavedAction.actionType=3Db;VE3DVIASavedAction.properties=3D=
c;VE3DVIASavedAction.control=3Da;OnSetupVE3DVIA()}}function =
ProcessModelIn3D(b,c,d){var =
a=3DL_UnableToDisplay3DVIAModel_Text;if(VE_ModelActionType.DeleteModel=3D=
=3Db)a=3D"";ProcessModelIn3DEx(b,c,d,a)}function =
ProcessModelIn3DEx(b,e,a,d){if(typeof =
b=3D=3D"undefined"||b=3D=3Dnull)return;if(!a){var =
c=3DGetMapControlInstance();if(c)a=3Dc.Get3DControl();if(!a)return}if(!VE=
_3DGeoCommunityPluginObj)VE_3DGeoCommunityPluginObj=3DCreatePluginObj(a,V=
E_3DPlugin.GeoCommunityGuid,VE_3DPlugin.GeoCommunityManifest,VE_3DPlugin.=
GeoCommunityUrl);if(!GeoCommunityPluginEventRegistered){a.AttachPlugInEve=
nt(VE_3DPlugin.GeoCommunityGuid,"OnRefreshModel","OnRefreshModel");a.Atta=
chPlugInEvent(VE_3DPlugin.GeoCommunityGuid,"OnLaunchVE3DVIA","OnLaunchVE3=
DVIA");a.AttachPlugInEvent(VE_3DPlugin.GeoCommunityGuid,"LoadModelFileSta=
tus","VE_OnLoadModelFileStatus");GeoCommunityPluginEventRegistered=3D1}Fi=
rePluginEventIn3D(VE_3DGeoCommunityPluginObj,b,e,a,d)}function =
ProcessPhotoPluginActionIn3D(b,c,a){if(typeof =
b=3D=3D"undefined"||b=3D=3Dnull)return;if(!a){a=3Dmap.Get3DControl();if(!=
a)return}if(!VE_3DPhotoPluginObj)VE_3DPhotoPluginObj=3DCreatePluginObj(a,=
VE_3DPlugin.PhotoGuid,VE_3DPlugin.PhotoManifest,VE_3DPlugin.PhotoUrl);if(=
!PhotoPluginEventRegistered){a.AttachPlugInEvent(VE_3DPlugin.PhotoGuid,"O=
nSelectPhoto","OnSelectPhoto");a.AttachPlugInEvent(VE_3DPlugin.PhotoGuid,=
"OnActivate","OnActivate");a.AttachPlugInEvent(VE_3DPlugin.PhotoGuid,"OnC=
ameraPan","OnPhotoCameraPan");a.AttachPlugInEvent(VE_3DPlugin.PhotoGuid,"=
OnCameraZoom","OnPhotoCameraZoom");a.AttachPlugInEvent(VE_3DPlugin.PhotoG=
uid,"OnPhotoStateChanged","OnPhotoStateChanged");PhotoPluginEventRegister=
ed=3D1}FirePluginEventIn3D(VE_3DPhotoPluginObj,b,c,a,null)}function =
AllowWeatherPlugin(a){if(!a)return false;var =
c=3DGetMapControlInstance(null),d=3Da.HardwareClassificationLevel,b=3Dc.G=
etMapStyle();return d=3D=3D3&&(b=3D=3D"a"||b=3D=3D"h")}function =
AllowHiResModels(a){if(!a)return false;var =
c=3DGetMapControlInstance(null),b=3Da.HardwareClassificationLevel;return =
b=3D=3D3}function AllowStreetLevelDetail(a){if(!a)return false;var =
c=3DGetMapControlInstance(null),d=3Da.HardwareClassificationLevel,b=3Dc.G=
etMapStyle();return d=3D=3D3&&(b=3D=3D"a"||b=3D=3D"h")}function =
LoadWeatherPlugin(a){if(!VE_3DWeatherPluginObj)if(a&&AllowWeatherPlugin(a=
)){VE_3DWeatherPluginObj=3DCreatePluginObj(a,VE_3DPlugin.WeatherPluginGui=
d,VE_3DPlugin.WeatherPluginManifest,VE_3DPlugin.WeatherPluginUrl);if(VE_3=
DWeatherPluginObj){VE_3DWeatherPluginObj.Loading=3D1;a.LoadPlugInDll(VE_3=
DWeatherPluginObj.Url)}}}function OnHiResModelViewed(){}function =
LoadHiResModelsPlugin(a){if(!VE_3DHiResModelsPluginObj)if(a&&AllowHiResMo=
dels(a)){VE_3DHiResModelsPluginObj=3DCreatePluginObj(a,VE_3DPlugin.HiResM=
odelsGuid,VE_3DPlugin.HiResModelsManifest,VE_3DPlugin.HiResModelsUrl);if(=
VE_3DHiResModelsPluginObj){a.AttachPlugInEvent(VE_3DPlugin.HiResModelsGui=
d,"OnHiResModelViewed","OnHiResModelViewed");VE_3DHiResModelsPluginObj.Lo=
ading=3D1;a.LoadPlugInDll(VE_3DHiResModelsPluginObj.Url)}}}function =
LoadStreetLevelGeometry(a){if(!VE_3DStreetLevelGeometryObj)if(a&&AllowStr=
eetLevelDetail(a)){VE_3DStreetLevelGeometryObj=3DCreatePluginObj(a,VE_3DP=
lugin.StreetLevelGeometryGuid,VE_3DPlugin.StreetLevelGeometryManifest,VE_=
3DPlugin.StreetLevelGeometryUrl);if(VE_3DStreetLevelGeometryObj){VE_3DStr=
eetLevelGeometryObj.Loading=3D1;a.LoadPlugInDll(VE_3DStreetLevelGeometryO=
bj.Url)}}}function =
ActivateStreetLevelGeometry(a){if(AllowStreetLevelDetail(a))if(!VE_3DStre=
etLevelGeometryObj)LoadStreetLevelGeometry(a);else =
if(VE_3DStreetLevelGeometryObj.Loaded&&!VE_3DStreetLevelGeometryObj.Activ=
ated)if(a)a.ActivatePlugIn(VE_3DStreetLevelGeometryObj.Guid,VE_3DStreetLe=
velGeometryObj.Manifest)}function =
DeactivateStreetLevelGeometry(a){if(VE_3DStreetLevelGeometryObj)if(VE_3DS=
treetLevelGeometryObj.Loaded&&VE_3DStreetLevelGeometryObj.Activated&&!All=
owStreetLevelDetail(a))if(a)a.DeactivatePlugIn(VE_3DStreetLevelGeometryOb=
j.Guid)}function UpdateStreetLevelGeometryState(a){var =
b=3DAllowStreetLevelDetail(a);if(b){if(!VE_3DStreetLevelGeometryObj.Activ=
ated)ActivateStreetLevelGeometry(a)}else =
if(VE_3DStreetLevelGeometryObj.Activated)DeactivateStreetLevelGeometry(a)=
}function =
ActivateWeatherPlugin(a){if(AllowWeatherPlugin(a))if(!VE_3DWeatherPluginO=
bj)LoadWeatherPlugin(a);else =
if(VE_3DWeatherPluginObj.Loaded&&!VE_3DWeatherPluginObj.Activated)if(a)a.=
ActivatePlugIn(VE_3DWeatherPluginObj.Guid,VE_3DWeatherPluginObj.Manifest)=
}function =
DeactivateWeatherPlugin(a){if(VE_3DWeatherPluginObj)if(VE_3DWeatherPlugin=
Obj.Loaded&&VE_3DWeatherPluginObj.Activated&&!AllowWeatherPlugin(a))if(a)=
a.DeactivatePlugIn(VE_3DWeatherPluginObj.Guid)}function =
UpdateWeatherPluginState(a){var =
b=3DAllowWeatherPlugin(a);if(b){if(!VE_3DWeatherPluginObj.Activated)Activ=
ateWeatherPlugin(a)}else =
if(VE_3DWeatherPluginObj.Activated)DeactivateWeatherPlugin(a)}function =
ActivateHiResModelsPlugin(a){if(AllowHiResModels(a))if(!VE_3DHiResModelsP=
luginObj)LoadHiResModelsPlugin(a);else =
if(VE_3DHiResModelsPluginObj.Loaded&&!VE_3DHiResModelsPluginObj.Activated=
)if(a)a.ActivatePlugIn(VE_3DHiResModelsPluginObj.Guid,VE_3DHiResModelsPlu=
ginObj.Manifest)}function =
DeactivateHiResModelsPlugin(a){if(VE_3DHiResModelsPluginObj)if(VE_3DHiRes=
ModelsPluginObj.Loaded&&VE_3DHiResModelsPluginObj.Activated&&!AllowHiResM=
odels(a))if(a)a.DeactivatePlugIn(VE_3DHiResModelsPluginObj.Guid)}function=
UpdateHiResModelsState(a){var =
b=3DAllowHiResModels(a);if(b){if(!VE_3DHiResModelsPluginObj.Activated)Act=
ivateHiResModelsPlugin(a)}else =
if(VE_3DHiResModelsPluginObj.Activated)DeactivateHiResModelsPlugin(a)}fun=
ction =
CreatePluginObj(b,d,c,e){if(!PluginEventRegistered){b.AttachEvent("OnPlug=
InLoaded","On3DPlugInLoaded");b.AttachEvent("OnPlugInActivated","On3DPlug=
InActivated");b.AttachEvent("OnPlugInDeactivated","On3DPlugInDeactivated"=
);PluginEventRegistered=3D1}var =
a=3D{};a.Loaded=3D0;a.Loading=3D0;a.Activated=3D0;a.actionCounter=3D0;a.a=
ctionType=3D[];a.properties=3D[];a.control=3D[];a.errorMessage=3D[];a.Gui=
d=3Dd.toUpperCase();a.Manifest=3Dc;a.Url=3De;return a}function =
FirePluginEventIn3D(a,c,d,b,e){if(a.Activated)b.RaiseEvent(a.Guid,c,d);el=
se{if(!a.Loaded&&!a.Loading){a.Loading=3D1;b.LoadPlugInDll(a.Url)}QueuePl=
uginEvent(a,c,d,b,e)}}function =
QueuePluginEvent(a,c,d,e,b){a.actionType[a.actionCounter]=3Dc;a.propertie=
s[a.actionCounter]=3Dd;a.control[a.actionCounter]=3De;a.errorMessage[a.ac=
tionCounter]=3Db;a.actionCounter=3Da.actionCounter+1}function =
FireErrorMessage(b){var =
a,c;for(a=3D0;a=3D500};Web.Browser.AttachSafariCompatibil=
ity=3Dfunction(a){if(Web.Browser.isSafari2())try{document.getElementsByTa=
gName("HTML")[0]}catch(s){}a.CollectGarbage=3Dfunction(){};Web.Browser.Bu=
tton=3D{LEFT:0,RIGHT:2,MIDDLE:1};function i(a){window.event=3Da}function =
q(b,c,d){var =
a=3Dc.slice(2);if(a!=3D=3D"mouseenter"&&a!=3D=3D"mouseleave")b.addEventLi=
stener(a,i,true);else{b.addEventListener("mouseover",i,true);b.addEventLi=
stener("mouseout",i,true)}b.addEventListener(a,d,false)}function =
p(d,b,c){var =
a=3Db.slice(2);if(b=3D=3D=3D"mousewheel")a=3D"DOMMouseScroll";d.removeEve=
ntListener(a,c,false)}function =
j(a,b){if(a=3D=3D=3D"onclick")a=3D"onmouseup";q(this,a,b)}function =
k(a,b){if(a=3D=3D=3D"onclick")a=3D"onmouseup";p(this,a,b)}if(Web.Browser.=
isSafari2())if(typeof =
a["[[DOMDocument.prototype]]"]=3D=3D=3D"undefined"||typeof =
a["[[DOMElement.prototype]]"]=3D=3D=3D"undefined"){Object.prototype.attac=
hEvent=3Dj;Object.prototype.detachEvent=3Dk}else{a.attachEvent=3Da["[[DOM=
Document.prototype]]"].attachEvent=3Da["[[DOMElement.prototype]]"].attach=
Event=3Dj;a.detachEvent=3Da["[[DOMDocument.prototype]]"].detachEvent=3Da[=
"[[DOMElement.prototype]]"].detachEvent=3Dk}else =
if(Web.Browser.isSafari3()){a.attachEvent=3Da.HTMLDocument.prototype.atta=
chEvent=3Da.HTMLElement.prototype.attachEvent=3Dj;a.detachEvent=3Da.HTMLD=
ocument.prototype.detachEvent=3Da.HTMLElement.prototype.detachEvent=3Dk}v=
ar g=3Dfalse;function =
c(a){if(g){a.preventDefault();a.returnValue=3Dfalse;document.removeEventL=
istener(a.type,c,true);a.capturedTarget=3Da.target;g.dispatchEvent(a);del=
ete =
a.captureTarget;if(g)document.addEventListener(a.type,c,true);a.stopPropa=
gation()}}function b(a){a.stopPropagation();a.preventDefault()}function =
o(){g=3Dthis;document.addEventListener("mousemove",c,true);document.addEv=
entListener("mouseover",b,true);document.addEventListener("mouseout",b,tr=
ue);document.addEventListener("mouseenter",b,true);document.addEventListe=
ner("mouseleave",b,true);document.addEventListener("mouseup",c,true)}func=
tion =
m(){g=3Dnull;document.removeEventListener("mousemove",c,true);document.re=
moveEventListener("mouseover",b,true);document.removeEventListener("mouse=
out",b,true);document.removeEventListener("mouseenter",b,true);document.r=
emoveEventListener("mouseleave",b,true);document.removeEventListener("mou=
seup",c,true)}if(Web.Browser.isSafari2()){var n=3D0;function =
l(){if(typeof =
a["[[DOMElement.prototype]]"]=3D=3D=3D"undefined"){if(n<100){n++;setTimeo=
ut(l,100)}}else{a["[[DOMElement.prototype]]"].setCapture=3Do;a["[[DOMElem=
ent.prototype]]"].releaseCapture=3Dm}}l()}else =
if(Web.Browser.isSafari3()){a.HTMLElement.prototype.setCapture=3Do;a.HTML=
Element.prototype.releaseCapture=3Dm}function h(){}function d(){}var =
f=3Dnull,e=3Dnull;if(Web.Browser.isSafari2()){h=3Dfunction(e,c,b){var =
a=3Dd(e,c,b);if(a.length>0)return a[0];else return =
null};d=3Dfunction(g,e,d){var =
c=3Dd.getElementsByTagName(e),b=3D[],a,f=3Dc.length;for(a=3D0;a0)return b[0];else return =
null};d=3Dfunction(b,f,e){var =
d=3Db.evaluate(f,e,b.createNSResolver(b.documentElement),XPathResult.ORDE=
RED_NODE_SNAPSHOT_TYPE,null),c=3D[],a,g=3Dd.snapshotLength;for(a=3D0;a1){a=3DparseInt(a);if(a=3D=3D=3DNaN)a=3D.3=
;else a/=3D100}return a}}}var =
windowWidth=3D0,windowHeight=3D0,scrollbarWidth=3Dnull;function =
$ID(a){var b=3Ddocument;return b.getElementById(a)}function $CE(a){var =
b=3Ddocument;return b.createElement(a)}function $CENS(a){var =
b=3Ddocument;return b.createElementNS(a)}function GetWindowWidth(){var =
a=3D0;if(typeof =
window.innerWidth=3D=3D"number")a=3Dwindow.innerWidth;else =
if(document.documentElement&&document.documentElement.clientWidth)a=3Ddoc=
ument.documentElement.clientWidth;else =
if(document.body&&document.body.clientWidth)a=3Ddocument.body.clientWidth=
;if(!a||a<100)a=3D100;return a}function GetWindowHeight(){var =
a=3D0;if(typeof =
window.innerHeight=3D=3D"number")a=3Dwindow.innerHeight;else =
if(document.documentElement&&document.documentElement.clientHeight)a=3Ddo=
cument.documentElement.clientHeight;else =
if(document.body&&document.body.clientHeight)a=3Ddocument.body.clientHeig=
ht;if(!a||a<100)a=3D100;return a}function =
GetScrollbarWidth(){if(scrollbarWidth)return =
scrollbarWidth;if(navigator.userAgent.indexOf("IE")>=3D0){var =
a=3Ddocument.createElement("div"),b=3Dnull;a.style.visible=3D"hidden";a.s=
tyle.overflowY=3D"scroll";a.style.position=3D"absolute";a.style.width=3D0=
;document.body.insertAdjacentElement("afterBegin",a);b=3Da.offsetWidth;a.=
parentNode.removeChild(a);if(!b)b=3D16;scrollbarWidth=3Db;return b}else =
return 0}function GetUrlPrefix(){var =
a=3Dwindow.location.pathname.lastIndexOf("/"),b=3Dwindow.location.protoco=
l+"//"+window.location.hostname+window.location.pathname.substring(0,a+1)=
;return b}function GetUrlParameterString(){var =
a=3Dwindow.location.search;if(a.length=3D=3D0||a.indexOf("?")=3D=3D-1)ret=
urn "";return a.substr(a.indexOf("?")+1)}function =
CheckWipExistence(){var =
a=3DGetUrlParameterString();if(a!=3D""&&a.indexOf("wip=3D")>-1)return =
true;return false}function GetUrlParameters(){var =
b=3D[],d=3DGetUrlParameterString();if(!d)return b;var =
e=3Dd.split("&");for(var c=3D0;c1)c=3Dh.elem;if(i.initialCollection!=3D=3Dnu=
ll)elems=3Dj(i.initialCollection,b[b.length-1]);else =
elems=3Dm(b[b.length-1],c);if(b.length=3D=3D=3D1)return =
elems;if(b.length=3D=3D=3D3)if(h.isIdeal)return elems;var =
s=3D0,k,g,t=3Delems.length,r=3Da.combinator,l,p,f,e,n=3Dnull,o=3D[];a:for=
(k=3D0;k0&&!g["."].processFn(b,j)||i.length>0&&!g["["].processFn(b,i)|=
|l.length>0&&!g[":"].processFn(b,l))return false;var =
h,e,k=3Dd.exProps;for(h in =
f){e=3Df[h].name;if(k[e]&&!f[h].processFn(b,k[e]))return false}return =
true}function m(h,f){f=3Df||document.documentElement;var =
l=3D0,d,j,c,a=3Dh.inProps,m=3Dh.exProps;if(a.id){c=3D[$ID(a.id)];delete =
a.id}else{var =
e=3Da.pseudos[a.pseudos.length-1];if(e&&e.name=3D=3D=3D"nth-child"){c=3Dk=
(e.param.a,e.param.b,a.tag);a.pseudos=3Da.pseudos.splice(a.pseudos.length=
,1)}else =
c=3Df.getElementsByTagName(a.tag||"*");if(m.isEmpty&&a.classes.length<1&&=
a.attributes.length<1&&a.pseudos.length<1)return g(c);delete a.tag}var =
i=3D[];j=3Dc.length;for(d=3D0;d=3D0&&g%j=3D=3D=3D0&&(b&&a.tagName!=3D=3Db?false:true)){if(h)d.pus=
h(a);d[c(a)]=3Dtrue}}return d}function i(c,d,f){var =
b=3Dc+"n+"+d,a=3De[b];if(!a)a=3De[b]=3Dl(c,d);return =
a[f]=3D=3D=3Dtrue}},d=3Dnew function(){var =
d=3Dnull,f=3Dnull,c=3D"";this.setRules=3Dfunction(b){d=3Db;var a;for(a =
in d.combinator)if(d.combinator.hasOwnProperty(a))c+=3Da;f=3Dnew =
RegExp("\\s*(["+c+"])\\s*","g")};this.parseSelector=3Dfunction(l){l=3De(l=
).replace(f,"$1");var i=3Dnull,k=3D[],n=3Dnew b,m=3D{anchor:new =
g,isPartialQuery:false,initialCollection:null},h=3Dm.anchor,p=3Dh,s,t,v,q=
,r,u,d,j=3D0,o=3D"",w=3Dl.length;while(j"&&h.elem&&h.elem!=3D=3D-1&=
&h.index=3D=3D=3Dk.length-2?h.elem.childNodes:null}else{i=3Da.inRules["ta=
g"];continue}j++}k.push(n);h.isIdeal=3Dh.elem!=3D=3D-1&&k.length-3=3D=3D=3D=
h.index;m.anchor=3Dh;return =
{selectors:k,hints:m}};this.parseAttribute=3Dfunction(c){var =
d=3D/\=3D|\^=3D|\$=3D|\*=3D|\|=3D|~=3D|!=3D/,a=3Dc.match(d);a=3Da&&a[0];v=
ar =
b=3Dc.split(a),f=3Db[0]&&e(b[0].replace(/[\[\]"]/g,"")),g=3Db[1]&&e(b[1].=
replace(/[\[\]"]/g,""));return =
{name:f,delim:a,val:g}};this.parsePseudo=3Dfunction(f){var =
d=3D/(.*)\((.*)\)/,b=3Df.match(d),g=3Db&&b[1]||f,a=3Db&&b[2],c,h,e;if(g=3D=
=3D=3D"nth-child")if(a=3D=3D=3D"even")a=3D{wholeValue:a,a:2,b:0};else =
if(a=3D=3D=3D"odd")a=3D{wholeValue:a,a:2,b:1};else{d=3D/([+-]?\d+)?(n)?([=
+-]?\d+)?/;b=3Da.match(d);c=3DparseInt(b[1])||1;e=3Db[2]?1:0;h=3Dc&&!e?c:=
parseInt(b[3])||0;a=3D{wholeValue:a,a:c*e,b:h}}return =
{name:g,param:a}};this.createReferenceSelector=3Dfunction(a){return new =
b(a)};function =
b(e){this.cursor=3Dnull;this.refersTo=3De;this.inProps=3D{id:null,tag:nul=
l,classes:[],attributes:[],pseudos:[]};this.exProps=3D{isEmpty:true};var =
d,b,c=3Da.exRules;for(d in c)if(c.hasOwnProperty(d)){delete =
this.exProps.isEmpty;b=3Dc[d];switch(b.objType){case =
"array":this.exProps[b.name]=3D[];break;case =
"null":default:this.exProps[b.name]=3Dnull}}}b.prototype.addPart=3Dfuncti=
on(a,c){var b=3Dc.name,f=3Dc.preFn,e=3Dc.hintFn,g=3D-1;if(typeof =
f=3D=3D=3D"function")a=3Df(a);var d=3Dtypeof =
this.inProps[b]!=3D=3D"undefined"?this.inProps:this.exProps;d[b]instanceo=
f Array?d[b].push(a):(d[b]=3Da);if(typeof =
e=3D=3D=3D"function")g=3De(a);return g};function =
g(b,a,c){this.index=3Db=3D=3D=3D0?0:b||NaN;this.elem=3Da=3D=3D=3Dnull?nul=
l:a||-1;this.isIdeal=3Dc||false}},a=3D{inRules:{"tag":{name:"tag",endsWit=
h:"#.[:",preFn:function(a){return =
a.toUpperCase()},hintFn:function(a){return =
a=3D=3D=3D"BODY"||a=3D=3D=3D"HTML"?document.getElementsByTagName(a)[0]:-1=
},processFn:function(a,b){return =
a.tagName=3D=3D=3Db}},"#":{name:"id",endsWith:"#.[:",startSkip:1,preFn:nu=
ll,hintFn:function(a){return $ID(a)},processFn:function(a,b){return =
a.id=3D=3D=3Db}},".":{name:"classes",endsWith:".[:",startSkip:1,objType:"=
array",processFn:function(d,c){var a=3Dd.className;if(typeof =
a!=3D=3D"string")a=3Dd.getAttribute("class");if(!a||a.length<1)return =
false;var e=3D" "+a+" ",b,f=3Dc.length;for(b=3D0;b":function(a,d){var c=3Dd.parentNode;a.cursor=3Dc;return =
b.processSelector(a,c)},"<":function(d,e){var =
c=3De.childNodes,a,f=3Dc.length;for(a=3D0;a0)if(a)a=3Da.parentNode;else =
break;return a};Gimme.ext.getSibling=3Dfunction(b,g){var =
c=3Dthis.entities[g||0];if(b=3D=3D=3D0)return c;var =
e=3Db>0?"nextSibling":"previousSibling",a=3Dc,f=3DMath.abs(b),d=3D0;while=
(da-1)b=3Da-1;return =
this.points[b]};Gimme.Animation.AccelerationLine=3Dfunction(a,c){var =
d=3Da[a.length-1],b=3Dg(a).map(function(a){return =
{x:a/d,y:0}});this.bezier=3Dnew =
Gimme.Animation.BezierCurve(b,c);this.points=3Dthis.bezier.points};Gimme.=
Animation.AccelerationLine.prototype.getValue=3Dfunction(a){return =
this.bezier.getPoint(a).x};Gimme.Animation.AccelerationLines=3D{zoom:new =
Gimme.Animation.AccelerationLine([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1=
6,17,18,19,20,500,501,502,503,504,505,506,507,508,509,510,511,512,513,514=
,515,516,517,518,519,520],75),slowStartAccelerate:new =
Gimme.Animation.AccelerationLine([0,1,2,3,8,50],100),quickStartDecelerate=
:new Gimme.Animation.AccelerationLine([0,50,55,56,57,58],100),linear:new =
Gimme.Animation.AccelerationLine([0,10],100)};Gimme.Animation.Acceleratio=
nLines.defaultLine=3DGimme.Animation.AccelerationLines.zoom;Gimme.ext.fad=
eIn=3Dfunction(b,c,a){g(this.entities).fadeTo(null,.99999,b,c,a);a=3Dnull=
;return =
this};Gimme.ext.fadeOut=3Dfunction(b,c,a){g(this.entities).fadeTo(null,0,=
b,c,a);a=3Dnull;return =
this};Gimme.ext.fadeTo=3Dfunction(b,c,e,h,d,a){a=3Da||Gimme.Animation.Acc=
elerationLines.linear;g(this.entities).animate(a,e,h,d,f,i);function =
i(d){d.style.zoom=3D"1";var =
a=3Db=3D=3D=3D0?0:b||Number(g(d).getStyle("opacity")),e=3Dc-a;return =
{startOpacity:a,deltaO:e}}function f(e,b,c,a){var =
f=3Dc.getValue(b),d=3Da.startOpacity+f*a.deltaO;g(e).setStyle("opacity",d=
)}return this};Gimme.ext.veil=3Dfunction(b,d,h,c,e){var =
a=3DGimme.Animation.Directions;b=3DMath.floor(b)||a[b]||a.vertically;g(th=
is.entities).animate(e,d,h,c,f,i);function i(d){var =
e=3Dd.style.display||g(d).getStyle("display");if(e=3D=3D=3D"none")return =
false;var c=3Dfunction(b){var =
a=3D{};g(b).forEach(function(b){a[b]=3DparseInt(g(d).getStyle(b),10)});re=
turn =
a}(["height","width","paddingTop","paddingRight","paddingBottom","padding=
Left"]);d["_$gimme$_veil"]=3Dc.height+";"+c.width+";"+c.paddingTop+";"+c.=
paddingRight+";"+c.paddingBottom+";"+c.paddingLeft;d.style.overflow=3D"hi=
dden";if((b&a.horizontally)=3D=3D=3Da.horizontally)d.style.height=3Dc.hei=
ght+"px";return c}function =
f(d,g,m,c){if(g>=3D1)d.style.display=3D"none";var =
e=3Dm.getValue(g),k,l,j,h,f,i;if((b&a.vertically)=3D=3D=3Da.vertically){k=
=3Dc.height-e*c.height;j=3Dc.paddingTop-e*c.paddingTop;f=3Dc.paddingBotto=
m-e*c.paddingBottom;d.style.height=3Dk+"px";d.style.paddingTop=3Dj+"px";d=
.style.paddingBottom=3Df+"px"}if((b&a.horizontally)=3D=3D=3Da.horizontall=
y){l=3Dc.width-e*c.width;h=3Dc.paddingRight-e*c.paddingRight;i=3Dc.paddin=
gLeft-e*c.paddingLeft;d.style.width=3Dl+"px";d.style.paddingRight=3Dh+"px=
";d.style.paddingLeft=3Di+"px"}}return =
this};Gimme.ext.unveil=3Dfunction(b,e,i,d,f){var =
a=3DGimme.Animation.Directions;b=3DMath.floor(b)||a[b]||a.vertically;var =
c=3Dtrue;g(this.entities).animate(f,e,i,d,h,j);function j(b){var =
l=3Db.style.display||g(b).getStyle("display");if(l!=3D=3D"none"&&l!=3D=3D=
null)return false;var =
m=3DGimme.Helper.convertToPixels,d=3Db.cloneNode(true);d.setAttribute("st=
yle","position:absolute;top:0;left:0;visibility:hidden;margin:0;padding:0=
;border:0;height:;width:;");d.style.display=3D"block";b.parentNode.append=
Child(d);var =
j,k,i,f,e,h,a=3Db["_$gimme$_veil"];if(a){a=3Da.split(";");j=3Da[0];k=3Da[=
1];i=3Da[2];f=3Da[3];e=3Da[4];h=3Da[5]}else{var =
c=3Dg(d);j=3DparseInt(m(b.style.height),10)||parseInt(c.getStyle("height"=
),10);k=3DparseInt(m(b.style.width),10)||parseInt(c.getStyle("width"),10)=
;d.style.padding=3D"";i=3DparseInt(c.getStyle("paddingTop"),10);e=3Dparse=
Int(c.getStyle("paddingBottom"),10);f=3DparseInt(c.getStyle("paddingRight=
"),10);h=3DparseInt(c.getStyle("paddingLeft"),10)}b.parentNode.removeChil=
d(d);b.style.overflow=3D"hidden";return =
{deltaH:j,deltaW:k,paddingTop:i,paddingBottom:e,paddingLeft:h,paddingRigh=
t:f}}function h(h,j,p,d){var =
n,o,m,i,k,l,f=3Dg(h),e=3D1-p.getValue(j);if(c){h.style.display=3D"block";=
c=3Dfalse}if(j>=3D1)h.style.overflow=3D"";if(b=3D=3D=3Da.vertically)f.set=
Styles("width",d.deltaW+"px","paddingRight",d.paddingRight+"px","paddingL=
eft",d.paddingLeft+"px");else =
if(b=3D=3D=3Da.horizontally)f.setStyles("height",d.deltaH+"px","paddingTo=
p",d.paddingTop+"px","paddingBottom",d.paddingBottom+"px");if((b&a.vertic=
ally)=3D=3D=3Da.vertically){n=3Dd.deltaH-e*d.deltaH;m=3Dd.paddingTop-e*d.=
paddingTop;i=3Dd.paddingBottom-e*d.paddingBottom;f.setStyles("height",n+"=
px","paddingTop",m+"px","paddingBottom",i+"px")}if((b&a.horizontally)=3D=3D=
=3Da.horizontally){o=3Dd.deltaW-e*d.deltaW;k=3Dd.paddingRight-e*d.padding=
Right;l=3Dd.paddingLeft-e*d.paddingLeft;f.setStyles("width",o+"px","paddi=
ngRight",k+"px","paddingLeft",l+"px")}}return =
this};Gimme.ext.scrollTo=3Dfunction(b,e,a,c){g(this.entities[0]).animate(=
c,b,e,a,d,f);function f(c){var =
a=3DGimme.Screen.getScrollPosition(),b=3Dg(c).getPagePosition().y-a.y;ret=
urn {scrollPos:a,deltaY:b}}function d(f,b,c,a){var =
d=3Dc.getValue(b),e=3Da.scrollPos.y+d*a.deltaY;window.scrollTo(0,Math.flo=
or(e))}return =
this};Gimme.ext.slideToPoint=3Dfunction(a,c,f,b,d){g(this.entities).anima=
te(d,c,f,b,e,h);function h(e){var =
b=3Dg(e).getComputedPosition();if(a.x=3D=3D=3Dnull)a.x=3Db.x;if(a.y=3D=3D=
=3Dnull)a.y=3Db.y;var d=3Da.y-b.y,c=3Da.x-b.x;return =
{startPt:b,deltaX:c,deltaY:d}}function e(c,e,f,a){var =
b=3Da.startPt,g=3Da.deltaX,h=3Da.deltaY,d=3Df.getValue(e),i=3Db.x+d*g,j=3D=
b.y+d*h;c.style.top=3DMath.floor(Math.round(j))+"px";c.style.left=3DMath.=
floor(Math.round(i))+"px"}return =
this};Gimme.ext.followPath=3Dfunction(f,a,d,e,c){a=3Da||1;g(this.entities=
).animate(f,d,e,c,b,h);function h(b){var =
a=3Dg(b).getComputedPosition();return {startPt:a}}function =
b(c,e,g,f){var =
b=3Df.startPt,d=3Dg.getPoint(e),h=3Db.x+d.x*a,i=3Db.y+d.y*a;c.style.top=3D=
Math.floor(Math.round(i))+"px";c.style.left=3DMath.floor(Math.round(h))+"=
px"}return this};Gimme.ext.animate=3Dfunction(d,b,a,h,c,e){var =
f=3Dthis.entities.length;if(f<1)return;d=3Dd||Gimme.Animation.Acceleratio=
nLines.defaultLine;b=3DMath.floor(b)||Gimme.Animation.Speeds[b]||Gimme.An=
imation.Speeds.quickly;a=3Da||"AUTOGUID_"+Math.random((new =
Date).getTime());if(!Gimme.Animation.isGrouping()&&Gimme.Animation.isRunn=
ing(a))return;Gimme.Animation.whenDone(a,h);var g=3D0,j=3D(new =
Date).getTime();this.forEach(function(c,b){Gimme.Animation.start(a,i(c,b)=
,1)});function i(i){var h=3De(i),l=3Dfunction(){var l=3D(new =
Date).getTime(),k=3D(l-j)/b;if(k>=3D1){if(typeof =
c=3D=3D=3D"function")c(i,1,d,h);if(++g=3D=3D=3Df){Gimme.Animation.end(a);=
e=3Dnull;c=3Dnull}}else =
c(i,k,d,h)},k=3Dfunction(){Gimme.Animation.end(a)};return =
h?l:k}};Gimme.Events=3Dnew function(){var =
c=3D{},b=3Dnull,a=3Dnull;this.captureMouse=3Dfunction(c){Gimme.Events.rel=
easeMouse();b=3Dc;if(typeof =
c.setCapture!=3D=3D"undefined")c.setCapture();else{a=3Dfunction(b){b.stop=
Propagation();var =
d,e;if(Gimme.Browser.isGecko){d=3Ddocument.createEvent("MouseEvents");d.i=
nitMouseEvent(b.type,b.bubbles,b.cancelable,window,b.detail,b.screenX,b.s=
creenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.butt=
on,b.relatedTarget);e=3DGimme.Screen.getScrollPosition();d.__defineGetter=
__("pageX",function(){return =
this.clientX+e.x});d.__defineGetter__("pageY",function(){return =
this.clientY+e.y})}else =
d=3Db;document.removeEventListener(b.type,a,true);d.captureTarget=3Db.tar=
get;c.dispatchEvent(d);if(a!=3D=3Dnull)document.addEventListener(b.type,a=
,true);delete =
d.captureTarget};document.addEventListener("mouseover",a,true);document.a=
ddEventListener("mouseout",a,true);document.addEventListener("mousemove",=
a,true);document.addEventListener("mouseup",a,true);document.addEventList=
ener("mousedown",a,true);document.addEventListener("click",a,true);docume=
nt.addEventListener("dblclick",a,true)}return =
this};this.releaseMouse=3Dfunction(){if(b!=3D=3Dnull){if(typeof =
b.releaseCapture!=3D=3D"undefined")b.releaseCapture();else{document.remov=
eEventListener("mouseover",a,true);document.removeEventListener("mouseout=
",a,true);document.removeEventListener("mousemove",a,true);document.remov=
eEventListener("mouseup",a,true);document.removeEventListener("mousedown"=
,a,true);document.removeEventListener("click",a,true);document.removeEven=
tListener("dblclick",a,true)}b=3Da=3Dnull}return =
this};this.getCaptureTarget=3Dfunction(a){return =
a.captureTarget||a.srcElement||a.target};Gimme.ext.onmouseenter=3Dfunctio=
n(e,b,c){var =
a=3Dd(e);c?this.addEvent("mouseover",a,b,false):this.removeEvent("mouseov=
er",a,b,false);a=3Dnull};Gimme.ext.onmouseleave=3Dfunction(e,b,c){var =
a=3Dd(e);c?this.addEvent("mouseout",a,b,false):this.removeEvent("mouseout=
",a,b,false);a=3Dnull};Gimme.ext.onmousewheel=3Dfunction(d,c,e){var =
a=3D"mousewheel",b=3Dd;if(Gimme.Browser.isGecko){a=3D"DOMMouseScroll";b=3D=
f(d)}e?this.addEvent(a,b,c,false):this.removeEvent(a,b,c,false)};function=
e(c,a,b){if(c=3D=3D=3Da)return false;var =
d=3D0;while(a&&a!=3Dc){d++;a=3Da.parentNode}b=3Db||d;return =
a=3D=3D=3Dc&&b=3D=3D=3Dd}function d(b){var =
d=3DGimme.Helper.getObjectGUID(b),a=3Dc[d];if(typeof =
a=3D=3D=3D"undefined")a=3Dc[d]=3Dfunction(c){var =
a=3Dc.relatedTarget;if(this=3D=3D=3Da||e(this,a))return;b.call(this,c)};r=
eturn a}function f(b){var =
d=3DGimme.Helper.getObjectGUID(b),a=3Dc[d];if(typeof =
a=3D=3D=3D"undefined")a=3Dc[d]=3Dfunction(a){a.wheelDelta=3D-a.detail;b.c=
all(this,a);a.wheelDelta=3Dnull};return a}};Gimme.ver=3D"Gimme v2.0.0.3 =
(Caspian) :: 12/2/2008, =
9:57:48";Gimme.ext.getRelativePosition=3Dfunction(d,e){var =
a=3Dthis.entities[e||0],b=3D0,c=3D0;while(a!=3D=3Dnull&&a!=3D=3Dd){b+=3Da=
.offsetLeft;c+=3Da.offsetTop;a=3Da.offsetParent}return =
{x:b,y:c}};Gimme.ext.addShim=3Dfunction(d,e){var =
b=3Dthis.entities[0];if(b.shim){b.shim.parentNode.removeChild(b.shim);b.s=
him=3Dnull}var =
a=3Ddocument.createElement("iframe");a.frameBorder=3D"0";a.scrolling=3D"n=
o";a.className=3D"iframeShim";a.style.position=3D"absolute";a.style.zInde=
x=3De||"1";a.style.background=3D"#fff";a.style.height=3Db.offsetHeight+"p=
x";a.style.width=3Db.offsetWidth+"px";var =
c=3Dg(b);a.style.top=3Dc.getStyle("top");a.style.left=3Dc.getStyle("left"=
);a.style.marginTop=3Dc.getStyle("marginTop");a.style.marginLeft=3Dc.getS=
tyle("marginLeft");a.style.marginRight=3Dc.getStyle("marginRight");a.styl=
e.marginBottom=3Dc.getStyle("marginBottom");this.entities.push(a);d=3Dd||=
b;(d.parentNode||document.body).insertBefore(a,d);b.shim=3Da;return =
this};Gimme.ext.removeShim=3Dfunction(){var =
b=3Dthis.entities[0],a=3Db.shim;if(a){a.parentNode.removeChild(a);b.shim=3D=
null}return =
this};Gimme.ext.toggle=3Dfunction(a){if(a!=3D=3Dtrue)a=3Dfalse;this.forEa=
ch(function(c){var =
b=3Dg(c);if(a)b.setStyle("visibility",b.getStyle("visibility")=3D=3D=3D"v=
isible"?"hidden":"visible");else =
b.setStyle("display",b.getStyle("display")!=3D=3D"none"?"none":"block")})=
;return this};function =
MVC_Init_AbstractView_Shared(){Msn.MVC.AbstractView.prototype.GetMoveMenu=
OptionAsHtml=3Dfunction(a){return a}}function =
MVC_Init_View3D_Shared(){Msn.MVC.View3D.prototype.GetMoveMenuOptionAsHtml=
=3Dfunction(d,c){var e=3Dc.GetPrimitiveCount();for(var =
a=3D0;a=3D0&&d=3D0)a.childNodes[f].className=3Dm;c=3Dd;a.childNodes[d].cla=
ssName=3Dr;e=3Da.childNodes[d].className}else{var =
f=3Dg();if(f>=3D0)a.childNodes[f].className=3Dm;c=3D-1}}function =
g(){return c}function o(){if(c>=3D0&&c=3Db.length)return;if(d0)b.pop();while(a.childNodes.length>0)a.removeChild(a.=
lastChild);c=3D-1}function =
A(){a.style.display=3D"block";this.isVisible=3Dtrue}function =
z(){a.style.display=3D"none";this.isVisible=3Dfalse}this.OnClick=3Dnull;t=
his.GetCount=3Dx;this.GetElement=3Du;this.GetSelectedIndex=3Dg;this.GetSe=
lectedItem=3Do;this.SelectItemAtIndex=3Di;this.OnSelect=3Dnull;this.AddIt=
em=3Dy;this.OnMouseOver=3Dnull;this.OnSelect=3Dnull;this.OnMouseOut=3Dnul=
l;this.ClearItems=3Dt;this.RemoveItemAtIndex=3Dn;this.Show=3DA;this.Hide=3D=
z}function DecodeHtml(a){var c=3D"";if(typeof =
a=3D=3D"string"&&a.length>0){var =
b=3Ddocument.createElement("span");b.innerHTML=3Da;c=3Db.firstChild.nodeV=
alue;b=3Dnull}return c}function =
OutputEncoder_URLEncodeUTF8(e){if(e=3D=3Dnull)return "";var =
d=3D["%00","%01","%02","%03","%04","%05","%06","%07","%08","%09","%0a","%=
0b","%0c","%0d","%0e","%0f","%10","%11","%12","%13","%14","%15","%16","%1=
7","%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","%6=
0","%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","%a=
9","%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","%f=
2","%f3","%f4","%f5","%f6","%f7","%f8","%f9","%fa","%fb","%fc","%fd","%fe=
","%ff"],b,a=3D[],g=3De.length;for(var f=3D0;f>6];a=3Da+d[128|c&63]}else{a=3Da+d[224|c>>12]=
;a=3Da+d[128|c>>6&63];a=3Da+d[128|c&63]}}return a}function =
OutputEncoder_URLEncodeEscapeUTF8(e){if(e=3D=3Dnull)return "";var =
d=3D["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","3=
9","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","8=
2","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","c=
b","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=3D[],g=3De.length;for(va=
r f=3D0;f>6];a=3Da+"%25"+d[128|c&63]}else{a=3Da+=
"%25"+d[224|c>>12];a=3Da+"%25"+d[128|c>>6&63];a=3Da+"%25"+d[128|c&63]}}re=
turn a}function OutputEncoder_EncodeHtml(c){var =
a,b=3D"";if(c=3D=3Dnull)return "";for(var =
d=3D0;d96&&a<123||a>64&&a<91||a=3D=
=3D32||a>47&&a<58||a=3D=3D46||a=3D=3D44||a=3D=3D45||a=3D=3D95)b=3Db+Strin=
g.fromCharCode(a);else b=3Db+""+a+";"}return b}function =
OutputEncoder_EncodeHtmlAttribute(c){var a,b=3D"";if(c=3D=3Dnull)return =
"";for(var =
d=3D0;d96&&a<123||a>64&&a<91||a>4=
7&&a<58||a=3D=3D46||a=3D=3D44||a=3D=3D45||a=3D=3D95)b=3Db+String.fromChar=
Code(a);else b=3Db+""+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=3D"";if(c=3D=3Dnull)return "";for(var =
d=3D0;d96&&a<123||a>64&&a<91||a=3D=
=3D32||a>47&&a<58||a=3D=3D46||a=3D=3D44||a=3D=3D45||a=3D=3D95)b=3Db+Strin=
g.fromCharCode(a);else =
if(a>127)b=3Db+"\\u"+OutputEncoder_TwoByteHex(a);else =
b=3Db+"\\x"+OutputEncoder_SingleByteHex(a)}return "'"+b+"'"}function =
OutputEncoder_EncodeVbs(d){var b,a=3D"",c=3Dfalse;if(d=3D=3Dnull)return =
"";for(var =
e=3D0;e96&&b<123||b>64&&b<91||b=3D=
=3D32||b>47&&b<58||b=3D=3D46||b=3D=3D44||b=3D=3D45||b=3D=3D95){if(!c){a=3D=
a+'&"';c=3Dtrue}a=3Da+String.fromCharCode(b)}else{if(c){a=3Da+'"';c=3Dfal=
se}a=3Da+"&chrw("+b+")"}}if(a.charAt(0)=3D=3D"&")a=3Da.substring(1);if(a.=
length=3D=3D0)a=3D'""';if(c)a=3Da+'"';return a}function =
OutputEncoder_AsUrl(a){if(a=3D=3Dnull)return =
"";if(a.search(/^(?:http|https|ftp):\/\/[a-zA-Z0-9\.\-]+(?:\:\d{1,5})?(?:=
[A-Za-z0-9\.\;\:\@\&\=3D\+\$\,\?\/]|%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=3D=3Dnull)return =
"";if(a.search(/^(?:http|https|ftp):\/\//i))if(document.location.protocol=
=3D=3D"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=3D=3Dnull)return =
"";if(!a.search(/^[\/\\]/))return a;var =
b=3D/^(\/(?:.*\/|))(?:[^\/\\]*\.\w+|\w*)$/;if(!document.location.pathname=
.search(b)){var c=3Db.exec(document.location.pathname);return =
c[1]+a}return "/"+a}function =
OutputEncoder_AsNumeric(a){if(a=3D=3Dnull)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<=3Db)return a;var =
d=3D"";if(e&&e.length>0){d=3DOutputEncoder_EncodeUrl(e);b-=3Dd.length}var=
a=3Da.substring(0,b);for(var =
c=3D1;c<6;c++)if(a.charAt(b-c)=3D=3D"%"){a=3Da.substring(0,b-c);break}ret=
urn a+d}function OutputEncode_EncodeUrlDelims(f,c){if(!f)return c;var =
a,h,b=3D"";for(var =
d=3D0;d127)e=3D"%u"+=
OutputEncoder_TwoByteHex(a);else =
e=3D"%"+OutputEncoder_SingleByteHex(a);break}}b+=3De}return b}function =
OutputEncoder_EncodeUrl(c){if(c=3D=3Dnull)return "";var =
a,e=3Dc.length,b=3Dnew Array(e);for(var =
d=3D0;d96&&a<123||a>64&&a<91||a>47&&a<58=
||a=3D=3D46||a=3D=3D45||a=3D=3D95)b.push(String.fromCharCode(a));else =
if(a>127){b.push("%u");b.push(OutputEncoder_TwoByteHex(a))}else{b.push("%=
");b.push(OutputEncoder_SingleByteHex(a))}}return b.join("")}function =
OutputEncoder_SingleByteHex(b){if(b=3D=3Dnull)return "";var =
a=3Db.toString(16);for(var c=3Da.length;c<2;c++)a=3D"0"+a;return =
a}function OutputEncoder_TwoByteHex(b){if(b=3D=3Dnull)return "";var =
a=3Db.toString(16);for(var c=3Da.length;c<4;c++)a=3D"0"+a;return =
a}function =
GetValidatedUrl(a){if(a=3D=3Dnull||a=3D=3D"undefined"||a.length<=3D0)retu=
rn "";try{a=3Dunescape(a);a=3Da.replace(/\|/g," ").replace(/\^/g," =
").replace(/^\s+/g,"").replace(/\s+$/g,"");var b=3Dnew =
RegExp(/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:=
.?+=3D&%@!\-\/]))?/);if(a.match(b))return a;else return =
""}catch(c){return ""}}function =
OutputEncoder(){this.GetValidatedUrl=3DGetValidatedUrl;this.EncodeHtml=3D=
OutputEncoder_EncodeHtml;this.EncodeHtmlAttribute=3DOutputEncoder_EncodeH=
tmlAttribute;this.EncodeXml=3DOutputEncoder_EncodeXml;this.EncodeXmlAttri=
bute=3DOutputEncoder_EncodeXmlAttribute;this.EncodeJs=3DOutputEncoder_Enc=
odeJs;this.EncodeVbs=3DOutputEncoder_EncodeVbs;this.AsNumeric=3DOutputEnc=
oder_AsNumeric;this.EncodeUrl=3DOutputEncoder_EncodeUrl;this.EncodeUrlDel=
ims=3DOutputEncode_EncodeUrlDelims;this.TruncateUrlSafe=3DOutputEncode_Tr=
uncateUrlSafe;this.SingleByteHex=3DOutputEncoder_SingleByteHex;this.TwoBy=
teHex=3DOutputEncoder_TwoByteHex;this.AsUrl=3DOutputEncoder_AsUrl;this.Qu=
alifyUrl=3DOutputEncoder_QualifyUrl;this.EncodeUrlUTF8=3DOutputEncoder_UR=
LEncodeUTF8;this.EncodeUrlEscapeUTF8=3DOutputEncoder_URLEncodeEscapeUTF8;=
this.DecodeHtml=3DDecodeHtml}var IOSec=3Dnew OutputEncoder;function =
VE_Panel(c,q,r,o,m,f,d,n,p,l,s,t,e,h,i,j){var =
b=3Dthis;this.index=3D0;this.x=3Dq;this.y=3Dr;this.width=3Do;this.height=3D=
m;this.dynamicHeightMax=3D600;this.color=3Df;this.sPanel=3Dnull;this.tool=
barHeight=3D20;this.footerHeight=3D20;this.min=3Dfalse;this.visible=3Dtru=
e;this.onTitleClick=3Dnull;this.onCloseClick=3Dnull;this.onMaximize=3Dnul=
l;this.onMinimize=3Dnull;this.isLegacyPanel=3Dh=3D=3Dtrue;this.usesShimIn=
3D=3D!this.isLegacyPanel;if(!e)e=3Ddocument.body;var =
a=3Dnull;if(!this.isLegacyPanel){a=3DVE_Panel._CreateElement("div",c,"VE_=
Panel_el",d);this.el=3Da;this.titleDisabled=3Dfalse;this.title=3Ddocument=
.createElement("a");this.title.id=3Dc+"_title";this.title.className=3D"VE=
_Panel_title";this.title.appendChild(document.createElement("span"));this=
.title.onclick=3Dfunction(a){VE_Panel._OnTitleClick(a);return =
false};this.title.href=3D"#";a.appendChild(this.title);this.SetTitle(n);t=
his.closeboxDisabled=3Dfalse;this.cb=3DVE_Panel._CreateElement("a",c+"_cb=
","VE_Panel_cb =
VE_Panel_cb_"+f,d+1);this.cb.onclick=3Dfunction(a){VE_Panel._OnCloseClick=
(a);return false};this.cb.onmouseover=3Dfunction(){if(typeof =
Msn.VE.Css!=3D"undefined")Msn.VE.Css.Functions.addClass(b.title,"VE_Panel=
_title_hover")};this.cb.onmouseout=3Dfunction(){if(typeof =
Msn.VE.Css!=3D"undefined")Msn.VE.Css.Functions.removeClass(b.title,"VE_Pa=
nel_title_hover")};this.cb.href=3D"#";this.cb.unselectable=3D"on";a.appen=
dChild(this.cb);this.tb=3DVE_Panel._CreateElement("div",c+"_tb","toolbar"=
,d+1);this.tb.unselectable=3D"on";a.appendChild(this.tb)}else{var =
k=3D$ID(c+"_tb");this.tb=3DVE_Panel._CreateElement("div","","",d+1);k.app=
endChild(this.tb)}this.body=3DVE_Panel._CreateElement("div",c+"_body","VE=
_Panel_body",d+1);this.body.innerHTML=3Dp;if(!this.isLegacyPanel){a.appen=
dChild(this.body);this.foot=3DVE_Panel._CreateElement("div",c+"_foot","VE=
_Panel_foot =
VE_Panel_foot_"+f,d+1);this.foot.innerHTML=3Dl;this.foot.unselectable=3D"=
on";a.appendChild(this.foot)}else{a=3Dthis.body;this.el=3Da}VE_Panel.pane=
ls.push(this);if(i){a.style.top=3D"0";a.style.left=3D"0";if(j)a.style.pos=
ition=3D"absolute";else{a.style.display=3D"none";a.style.visibility=3D"hi=
dden"}}e.appendChild(a);if(!Gimme.Browser.isKHTML){var =
g=3DGimme.id("TaskHost_CollectionsViewer_state");if(g!=3D=3Dnull)e.append=
Child(g)}this.Destroy=3Dfunction(){if(a.parentNode)a.parentNode.removeChi=
ld(a);if(b.sPanel!=3Dnull)b.sPanel.Destroy();if(a.shimElement&&a.shimElem=
ent.parentNode)a.shimElement.parentNode.removeChild(a.shimElement);a.shim=
Element=3Dnull;var d=3DVE_Panel.panels;for(var =
c=3D0;c0?"block":"none";this.tb.style.display=3Dd;this.R=
esize()};VE_Panel.prototype.SetFooterSize=3Dfunction(footerHeight){if(!th=
is.isLegacyPanel){this.footerHeight=3DfooterHeight;var =
d=3Deval(footerHeight)>0?"block":"none";this.foot.style.display=3Dd;this.=
Resize()}};VE_Panel.prototype.Resize=3Dfunction(){if(typeof =
ve_globals!=3D"undefined"){var =
geoFn=3DMsn.VE.Geometry.Functions,taskAreaHeight=3DGimme.Screen.getViewpo=
rtSize().y-g(ve_globals["taskArea"]).getScreenPosition().y-ve_globals["fo=
oter"].offsetHeight;if(taskAreaHeight>=3D0&&typeof =
taskAreaHeight=3D=3D"number")ve_globals["taskArea"].style.height=3DtaskAr=
eaHeight-2+"px";if(this.el.id=3D=3D"contextMenu"||this.el.id=3D=3D"scratc=
hpad"||this.el.id=3D=3D"annotationPanel"||this.el.id=3D=3D"annotationPopu=
p"||this.el.id=3D=3D"searchPopup"||this.el.id=3D=3D"help"){if(this.height=
!=3D"auto"&&typeof =
this.height=3D=3D"number")this.el.style.height=3Deval(this.height)+"px";i=
f(this.width!=3D"auto"&&typeof =
this.width=3D=3D"number")this.el.style.width=3Deval(this.width)+"px";if(t=
his.x!=3D"auto"&&typeof =
this.x=3D=3D"number")this.el.style.left=3Deval(this.x)+"px";if(this.y!=3D=
"auto"&&typeof =
this.y=3D=3D"number")this.el.style.top=3Deval(this.y)+"px"}if(this.el.shi=
mElement)ShowShim(this.el)}};VE_Panel.prototype.SetHeightToFit=3Dfunction=
(){var =
contentid=3Dthis.id+"_body_table",content=3D$ID(contentid);if(!content)re=
turn false;this.height=3D0;var =
width=3DMath.max(eval(this.width),100);if(content.offsetWidth>width-14)th=
is.height+=3DscrollbarWidth;this.height+=3Dthis.titleDisabled?14:21+14;th=
is.height+=3Dthis.toolbarHeight;this.height+=3Dcontent.offsetHeight;this.=
height+=3Dthis.footerHeight;this.height=3DMath.min(this.dynamicHeightMax,=
this.height)};VE_Panel.prototype.DisableClosebox=3Dfunction(){if(!this.is=
LegacyPanel){if(this.closeboxDisabled)return;this.closeboxDisabled=3Dtrue=
;this.el.removeChild(this.cb)}};VE_Panel.prototype.EnableClosebox=3Dfunct=
ion(){if(!this.isLegacyPanel){if(!this.closeboxDisabled)return;this.close=
boxDisabled=3Dfalse;this.el.appendChild(this.cb)}};VE_Panel.prototype.Dis=
ableTitle=3Dfunction(){if(!this.isLegacyPanel){if(this.titleDisabled)retu=
rn;this.titleDisabled=3Dtrue;this.el.removeChild(this.cb);this.el.removeC=
hild(this.title)}};VE_Panel.prototype.EnableTitle=3Dfunction(){if(!this.i=
sLegacyPanel){if(!this.titleDisabled)return;this.titleDisabled=3Dfalse;th=
is.el.insertBefore(this.cb,this.tb);this.el.insertBefore(this.title,this.=
cb)}};VE_Panel.prototype.SetTitle=3Dfunction(c){if(!this.isLegacyPanel){v=
ar =
b=3Ddocument.createTextNode(c),a=3Dthis.title.firstChild;if(a)if(a.firstC=
hild)a.replaceChild(b,a.firstChild);else =
a.appendChild(b)}};VE_Panel.prototype.SetToolbar=3Dfunction(a){this.tb.in=
nerHTML=3Da};VE_Panel.prototype.SetBody=3Dfunction(a){this.body.innerHTML=
=3Da};VE_Panel.prototype.SetDynamicBody=3Dfunction(a){this.body.innerHTML=
=3D'"};VE_Panel.=
prototype.SetFooter=3Dfunction(a){if(!this.isLegacyPanel)this.foot.innerH=
TML=3Da};VE_Panel.prototype.SetOpacity=3Dfunction(o){if(o>=3D100)o=3D99.9=
9;with(this.el.style){filter=3D"alpha(opacity:"+o+")";o*=3D.01;KHTMLOpaci=
ty=3Do;MozOpacity=3Do;opacity=3Do}};VE_Panel.prototype.SetColor=3Dfunctio=
n(a){if(!this.isLegacyPanel){this.color=3Da;this.title.className=3D"VE_Pa=
nel_title VE_Panel_title_"+a;this.foot.className=3D"VE_Panel_foot =
VE_Panel_foot_"+a;this.cb.className=3D"VE_Panel_cb =
VE_Panel_cb_"+a}};VE_Panel.prototype.Minimize=3Dfunction(){this.el.classN=
ame=3D" =
VE_Panel_el_minimized";if(this.onMinimize)this.onMinimize(this._CreateEve=
nt())};VE_Panel.prototype.Maximize=3Dfunction(){this.el.className=3D"VE_P=
anel_el";if(this.onMaximize)this.onMaximize(this._CreateEvent());this.Res=
ize()};VE_Panel.prototype.isMaximized=3Dfunction(){return =
this.el.className=3D=3D"VE_Panel_el"};VE_Panel.prototype.Show=3Dfunction(=
){this.el.style.display=3D"block";this.visible=3Dtrue;if(this.usesShimIn3=
D)mvcViewFacade.ShowShimIfSupported(this.el)};VE_Panel.prototype.Hide=3Df=
unction(){this.el.style.display=3D"none";this.visible=3Dfalse;HideShim(th=
is.el)};VE_Panel.prototype.IsVisible=3Dfunction(){return =
this.el.style.display!=3D"none"};function =
VE_PanelEvent(a){this.srcPanel=3Da}VE_Panel.prototype._CreateEvent=3Dfunc=
tion(){return new =
VE_PanelEvent(this)};VE_Panel._OnTitleClick=3Dfunction(c){if(!c)c=3Dwindo=
w.event;var d=3DGetTarget(c),b=3DVE_Panel.panels;for(var =
a=3D0;a"+''+IOSec.EncodeHtml(this.title)+" "+"$AdDescription$"+"";=
if(this.description&&this.description.length>0)a=3Da.replace("$AdDescript=
ion$",""+IOSec.EncodeHtml(this.description)+"
");return =
a};Ad.prototype.HasAddress=3Dfunction(){return =
this.address1.length>0&&this.city.length>0&&this.state.length>0&&this.zip=
.length>0};Ad.prototype.GetAdDescription=3Dfunction(){var =
a=3Dthis.description;if(this.HasAddress())a=3Dthis.address1+", =
"+this.city+", "+this.state+" "+this.zip;return =
a};Msn.VE.DirectionsDecoder=3Dfunction(){var a=3D4,b=3D1000000;function =
e(a,c,m,l){if(!a||a.length',a=3Dnew =
VE_Panel("help",e,f,c<=3D300?300:c,b<=3D200?200:b,"blue",VE_Help.helpZInd=
ex,L_Help_Text,d,"",null,null,null,null,true,null);a.body.className=3D"VE=
_Panel_body_help";a.Hide();a.el.style.visibility=3D"";a.SetToolbarSize(0)=
;a.SetFooterSize(0);a.onCloseClick=3Dfunction(){VE_Help.DisablePreventLay=
er();VE_Help.ClosePanel()};VE_Help.helpPanel=3Da};VE_Help.EnablePreventLa=
yer=3Dfunction(){var =
a=3D$ID("__preventLayer__");if(!a)a=3Ddocument.createElement("div");a.id=3D=
"__preventLayer__";a.className=3D"preventLayer";document.body.appendChild=
(a)};VE_Help.DisablePreventLayer=3Dfunction(){var =
a=3D$ID("__preventLayer__");if(a)document.body.removeChild(a)};VE_Help.En=
ableDrawingPreventLayer=3Dfunction(){var =
c=3D$ID("msve_header");if(c){var =
b=3D$ID("__preventLayerHeader__");if(!b)b=3Ddocument.createElement("div")=
;b.id=3D"__preventLayerHeader__";b.className=3D"preventLayer";b.style.lef=
t=3Dc.clientLeft;b.style.top=3Dc.clientTop;b.style.width=3Dc.clientWidth;=
b.style.height=3Dc.clientHeight;document.body.appendChild(b)}var =
d=3D$ID("sb_foot");if(d){var =
a=3D$ID("__preventLayerFooter__");if(!a)a=3Ddocument.createElement("div")=
;a.id=3D"__preventLayerFooter__";a.className=3D"preventLayer";a.style.lef=
t=3D0;a.style.top=3DGetWindowHeight()-d.clientHeight;a.style.width=3Dd.cl=
ientWidth;a.style.height=3Dd.clientHeight;document.body.appendChild(a)}};=
VE_Help.DisableDrawingPreventLayer=3Dfunction(){var =
d=3D$ID("__preventLayerHeader__");if(d)document.body.removeChild(d);var =
b=3D$ID("__preventLayerTaskArea__");if(b)document.body.removeChild(b);var=
=
a=3D$ID("__preventLayerActionBar__");if(a)document.body.removeChild(a);va=
r =
c=3D$ID("__preventLayerFooter__");if(c)document.body.removeChild(c)};func=
tion findPosX(a){var =
b=3D0;if(a.offsetParent)while(a.offsetParent){b+=3Da.offsetLeft;a=3Da.off=
setParent}else if(a.x)b+=3Da.x;return b}function findPosY(a){var =
b=3D0;if(a.offsetParent)while(a.offsetParent){b+=3Da.offsetTop;a=3Da.offs=
etParent}else if(a.y)b+=3Da.y;return =
b}VE_Help.Open=3Dfunction(b,c){VE_Help.EnablePreventLayer();VE_Help.helpP=
anel.Show();VE_Help.helpPanel.SetTitle(b);VE_Help.helpPanel.SetBody('');var =
a=3D$ID("helpFrame");a.src=3Dc;VE_Help.Redraw()};VE_Help.OpenSized=3Dfunc=
tion(f,g,a,b){var =
d=3DGetWindowWidth(),c=3DGetWindowHeight();if(a>d-10)a=3Dd-10;if(b>c-10)b=
=3Dc-10;VE_Help.CreateSizedHelpPanel((d-a)/2,(c-b)/2,a,b);VE_Help.EnableP=
reventLayer();VE_Help.helpPanel.Show();VE_Help.helpPanel.SetTitle(f);VE_H=
elp.helpPanel.SetBody('');var =
e=3D$ID("helpFrame");e.src=3Dg};VE_Help.OpenLiveHelp=3Dfunction(b,a,c){va=
r =
g=3D"_live_help",f=3D550,e=3D575,i=3D(screen.availWidth-f)*.5,j=3D(screen=
.availHeight-e)*.5,h=3D"resizable=3Dyes,top=3D"+j+",width=3D"+f+",height=3D=
"+e+",left=3D"+i;if(typeof =
b=3D=3D"undefined"||b=3D=3Dnull||b=3D=3D"")b=3DliveLocalHelpProjectCode;i=
f(typeof =
a=3D=3D"undefined"||a=3D=3Dnull||a=3D=3D"")a=3DVE_Help.LiveHelp.Keyword;i=
f(typeof c=3D=3D"undefined"||c=3D=3Dnull||c=3D=3D"")c=3D"qaf";var =
k=3DliveHelpUrl+"&project=3D"+b+"&querytype=3D"+a+"&query=3D"+c,d=3Dwindo=
w.open(k,g,h);if(d!=3Dnull&&typeof =
d=3D=3D"object")d.focus()};VE_Help.Redraw=3Dfunction(){var =
b=3DVE_Help.helpPanel;if(!b)return;var =
c=3DGimme.Screen.getViewportSize(),a=3Dg(b.el);a.setStyle("top",(c.height=
-a.element().offsetHeight)/2+"px");a.setStyle("left",(c.width-a.element()=
.offsetWidth)/2+"px");ShowShim(b.el)};VE_Help.CloseIntro=3Dfunction(){if(=
VE_Help.introPanel)VE_Help.introPanel.Hide()};VE_Help.ClosePanel=3Dfuncti=
on(){if(VE_Help.helpPanel){VE_Help.helpPanel.Hide();VE_Help.DisablePreven=
tLayer()}};VE_Help.Destroy=3Dfunction(){if(VE_Help.introPanel){VE_Help.in=
troPanel.Destroy();VE_Help.introPanel=3Dnull}if(VE_Help.helpPanel){VE_Hel=
p.helpPanel.Destroy();VE_Help.helpPanel=3Dnull}};function =
SanitizeHtmlString(a){if(!a||typeof a!=3D"string")return a;return =
IOSec.EncodeHtml(a)}function GetTarget(b){if(!b)b=3Dwindow.event;var =
a=3Dnull;if(b.srcElement)a=3Db.srcElement;else =
if(b.target)a=3Db.target;if(a&&a.nodeType){if(b.capturedTarget)a=3Db.capt=
uredTarget;if(a.nodeType=3D=3D3)a=3Da.parentNode}return a}function =
SelectText(a,c,d){if(!a)return;if(a.createTextRange){var =
b=3Da.createTextRange();b.moveStart("character",c);b.moveEnd("character",=
d);b.select()}else =
if(a.setSelectionRange)a.setSelectionRange(c,d)}function =
SelectedTextLength(a){if(!a)return 0;if(a.document){var =
b=3Da.document.selection.createRange();return b.text.length}else{var =
c=3Da.selectionStart,d=3Da.selectionEnd;return d-c}}function =
GetXMLText(a){if(a.text)return a.text;else if(a.textContent)return =
a.textContent;else if(a.firstChild&&a.firstChild.data)return =
a.firstChild.data;return ""}function =
VEValidator(){}VEValidator.ValidateFloat=3Dfunction(b,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateFloat";if(=
b=3D=3Dnull||b=3D=3D"undefined")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","float"));try{if(isNaN(parseFloat(b)))throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","float"));return true}catch(d){throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","float"))}};VEValidator.ValidateInt=3Dfunction(b,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateInt";if(b=3D=
=3Dnull||b=3D=3D"undefined")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","int"));try{if(isNaN(parseInt(b))||parseFloat(b)!=3DparseI=
nt(b))throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","int"));return true}catch(d){throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","int"))}};VEValidator.ValidateNonNegativeInt=3Dfunction(a,=
c){var =
b=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)b=3DVEValidator.Get=
Caller(arguments.caller);if(b=3D=3D"")b=3D"VEValidator.ValidateNonNegativ=
eInt";if(a=3D=3Dnull||a=3D=3D"undefined")throw new =
VEException(b,"err_invalidargument",L_invalidnonnegativeint_text.replace(=
"%1",c));try{if(isNaN(parseInt(a))||parseFloat(a)!=3DparseInt(a)||parseIn=
t(a)<0)throw new =
VEException(b,"err_invalidargument",L_invalidnonnegativeint_text.replace(=
"%1",c));return true}catch(d){throw new =
VEException(b,"err_invalidargument",L_invalidnonnegativeint_text.replace(=
"%1",c))}};VEValidator.ValidateFunction=3Dfunction(b,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateFunction";=
if(b=3D=3Dnull||typeof b!=3D"function")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","function"))};VEValidator.ValidateNonNull=3Dfunction(b,c){=
var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateNonNull";i=
f(b=3D=3Dnull||b=3D=3D"undefined")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","non =
null"))};VEValidator.ValidateBetween=3Dfunction(b,e,d,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateBetween";i=
f(bc)throw new =
VEException(a,"err_invalidargument",L_invalidbetweenint_text.replace("%1"=
,e).replace("%2",d).replace("%3",c))};VEValidator.ValidateBoolean=3Dfunct=
ion(b,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateBoolean";i=
f(b!=3Dtrue&&b!=3Dfalse)throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","bool"))};VEValidator.ValidateMapStyle=3Dfunction(a,c){var=
=
b=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)b=3DVEValidator.Get=
Caller(arguments.caller);if(b=3D=3D"")b=3D"VEValidator.ValidateMapStyle";=
if(a=3D=3Dnull||a=3D=3D"undefined")throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","MapStyle"));if(a=3D=3D"r"||a=3D=3D"R"||$MVEM.IsEnabled(Ma=
pControl.Features.MapStyle.Shaded)&&(a=3D=3D"s"||a=3D=3D"S")||$MVEM.IsEna=
bled(MapControl.Features.MapStyle.Aerial)&&(a=3D=3D"a"||a=3D=3D"A")||$MVE=
M.IsEnabled(MapControl.Features.MapStyle.BirdsEye)&&(a=3D=3D"o"||a=3D=3D"=
O")||$MVEM.IsEnabled(MapControl.Features.MapStyle.BirdsEye)&&(a=3D=3D"b"|=
|a=3D=3D"B")||$MVEM.IsEnabled(MapControl.Features.MapStyle.Hybrid)&&(a=3D=
=3D"h"||a=3D=3D"H"))return true;throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","MapStyle"))};VEValidator.ValidateClusteringType=3Dfunctio=
n(a,c){var =
b=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)b=3DVEValidator.Get=
Caller(arguments.caller);if(b=3D=3D"")b=3D"VEValidator.ValidateClustering=
Type";if(a=3D=3Dnull||a=3D=3D"undefined")throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","ClusteringType"));if(typeof =
a=3D=3D"number"&&(a=3D=3DVEClusteringType.None||a=3D=3DVEClusteringType.G=
rid))return true;throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","ClusteringType"))};VEValidator.ValidateMapMode=3Dfunction=
(b,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D"")a=3D"VEValidator.ValidateMapMode";if(b=
=3D=3Dnull||b=3D=3D"undefined")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","MapMode"));if(b=3D=3DVEMapMode.Mode2D||$MVEM.IsEnabled(Ma=
pControl.Features.MapStyle.View3D)&&b=3D=3DVEMapMode.Mode3D)return =
true;throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","MapMode"))};VEValidator.ValidateDistanceUnit=3Dfunction(b=
,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateDistanceUn=
it";if(b=3D=3Dnull||b=3D=3D"undefined")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEDistanceUnit"));if(b=3D=3DVEDistanceUnit.Miles||b=3D=3D=
VEDistanceUnit.Kilometers)return true;throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEDistanceUnit"))};VEValidator.ValidateMaxZoom=3Dfunction=
(b,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateMaxZoom";i=
f(b=3D=3Dnull||b=3D=3D"undefined")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","ValidateMaxZoom"));if(b<=3DMsn.VE.API.Globals.vemaxzoom)r=
eturn true;throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","ValidateMaxZoom"))};VEValidator.ValidateLayerType=3Dfunct=
ion(a,c){var =
b=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)b=3DVEValidator.Get=
Caller(arguments.caller);if(b=3D=3D"")b=3D"VEValidator.ValidateLayerType"=
;if(a=3D=3Dnull||a=3D=3D"undefined")throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEDataType"));if(a=3D=3DVEDataType.GeoRSS||a=3D=3DVEDataT=
ype.VECollection||a=3D=3DVEDataType.VETileSource)return true;throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEDataType"))};VEValidator.ValidateDashboardSize=3Dfuncti=
on(a,c){var =
b=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)b=3DVEValidator.Get=
Caller(arguments.caller);if(b=3D=3D"")b=3D"VEValidator.ValidateDashboardS=
ize";if(a=3D=3Dnull||a=3D=3D"undefined")throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEDashboardSize"));if(a=3D=3DVEDashboardSize.Normal||a=3D=
=3DVEDashboardSize.Small||a=3D=3DVEDashboardSize.Tiny)return true;throw =
new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEDashboardSize"))};VEValidator.ValidateMiniMapSize=3Dfun=
ction(b,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateMiniMapSiz=
e";if(b=3D=3Dnull||b=3D=3D"undefined")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEMiniMapSize"));if(b=3D=3DVEMiniMapSize.Small||b=3D=3DVE=
MiniMapSize.Large)return true;throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEMiniMapSize"))};VEValidator.ValidateAltitudeMode=3Dfunc=
tion(b,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateAltitudeMo=
de";if(b=3D=3Dnull)throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEAltitudeMode"));if(b!=3DVEAltitudeMode.Absolute&&b!=3DV=
EAltitudeMode.RelativeToGround)throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEAltitudeMode"));return =
true};VEValidator.ValidateObject=3Dfunction(b,c,e,d){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateObject";if=
(b=3D=3Dnull||b=3D=3D"undefined")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","non null"));if(!(b instanceof e))throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2",d))};VEValidator.ValidateObjectArray=3Dfunction(a,d,f,e){v=
ar =
b=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)b=3DVEValidator.Get=
Caller(arguments.caller);if(b=3D=3D"")b=3D"VEValidator.ValidateObject";if=
(a=3D=3Dnull||typeof a=3D=3D"undefined"||a.length=3D=3Dnull||typeof =
a.length=3D=3D"undefined")throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",d=
).replace("%2","array"));for(var =
c=3D0;c=3Da.BottomRightLatLong.Longitu=
de)throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VELatLongRectangle"))};VEValidator.GetCaller=3Dfunction()=
{return ""};function =
VEPushpin(f,e,d,h,g,c,b,a){VEValidator.ValidateNonNull(f,"pinId");VEValid=
ator.ValidateNonNull(e,"veLatLong");var =
i=3Dthis;this.IsInLayer=3Dfalse;this.ID=3Df;this.LatLong=3De;this.Title=3D=
h;if(d=3D=3Dnull||d=3D=3D"undefined"||d.length=3D=3D0)this.Iconurl=3DMsn.=
VE.API.Constants.iconurl;else =
this.Iconurl=3Dd;this.Details=3Dg;if(c=3D=3Dnull||c=3D=3D"undefined"||c.l=
ength=3D=3D0)this.IconStyle=3D"";else =
this.IconStyle=3Dc;if(b=3D=3Dnull||b=3D=3D"undefined"||b.length=3D=3D0)th=
is.TitleStyle=3D"VE_Pushpin_Popup_Title";else =
this.TitleStyle=3Db;if(a=3D=3Dnull||a=3D=3D"undefined"||a.length=3D=3D0)t=
his.DetailsStyle=3D"VE_Pushpin_Popup_Body";else =
this.DetailsStyle=3Da;if(window.ero=3D=3Dnull||window.ero=3D=3D"undefined=
")window.ero=3DERO.getInstance()}VEPushpin.ShowDetailOnMouseOver=3Dtrue;V=
EPushpin.OnMouseOverCallback=3Dnull;VEPushpin.prototype.Dispose=3Dfunctio=
n(){this.DetailsStyle=3D=3Dnull;this.TitleStyle=3Dnull;this.IconStyle=3Dn=
ull;this.Details=3Dnull;this.IconUrl=3Dnull;this.Title=3Dnull;this.LatLon=
g=3Dnull;this.ID=3Dnull;this.m_vemapcontrol=3Dnull;this.m_vemap=3Dnull};V=
EPushpin.Hide=3Dfunction(a){if(window.ero!=3Dnull){if(a=3D=3D"undefined"|=
|a=3D=3Dnull)a=3Dfalse;window.ero.hide(a)}};VEPushpin.GetEroContent=3Dfun=
ction(c,b,e,d){var =
a=3D"";if(c!=3Dnull&&c!=3D"undefined"&&c.length>0)a+=3D'
'+unescape(c)+"
";if(b!=3Dnull&&b!=3D"undefined"&&b.=
length>0)a+=3D''+unescape(b)+"
";if(!document.all&&(c.length=3D=3D0=
||b.length=3D=3D0))a+=3D" ";a+=3D"
";return =
a};VEPushpin.Show=3Dfunction(l,m,k,h,d,c,g,e){var =
a=3DVEMap._GetMapFromGUID(l);if(a=3D=3Dnull||a=3D=3D"undefined")return;va=
r =
i=3Da.vemapcontrol.GetX(h)+a.GetLeft(),j=3Da.vemapcontrol.GetY(k)+a.GetTo=
p();if(VEPushpin.ShowDetailOnMouseOver){var =
b=3D$ID(m+"_"+a.GUID);if(b!=3Dnull&&b!=3D"undefined"){var =
f=3DVEPushpin.GetEroContent(d,c,g,e);window.ero.setContent(f);window.ero.=
setBoundingArea(null);window.ero.getBoundingArea().move(Gimme.Screen.getS=
crollPosition());window.ero.dockToElement(b)}}if(VEPushpin.OnMouseOverCal=
lback!=3Dnull)VEPushpin.OnMouseOverCallback(i,j,d,unescape(c))};VEPushpin=
.Show3D=3Dfunction(a,c,b,f,d){if(VEPushpin.ShowDetailOnMouseOver){var =
e=3DVEPushpin.GetEroContent(c,b,f,d);window.ero.setContent(e);ero.setGlit=
z(false,false,false,true);window.ero.dockToRect(a,null,-1)}if(VEPushpin.O=
nMouseOverCallback!=3Dnull)VEPushpin.OnMouseOverCallback(a.getP1().x,a.ge=
tP1().y,c,unescape(b))};function GetContent(){var =
g=3Dthis.ID+"_"+this.m_vemap.GUID,a=3D" 0,d=3D=
this.Details!=3Dnull&&this.Details!=3D"undefined"&&this.Details.length>0;=
if(e||d){var b=3D"if =
(VEMap._GetMapFromGUID("+this.m_vemap.GUID+").FireEvent(",c=3D"))return;"=
;a+=3D" onmouseout=3D'"+b+'"onmouseout"'+c+"VEPushpin.Hide();' ";a+=3D" =
onmousedown=3D'"+b+'"onmousedown"'+c+"VEPushpin.Hide(true);' ";a+=3D" =
onmouseover=3D'"+b+'"onmouseover"'+c+'VEPushpin.Show("'+this.m_vemap.GUID=
+'","'+this.ID+'",'+this.LatLong.Latitude+","+this.LatLong.Longitude;if(e=
)a+=3D', "'+escape(this.Title)+'"';else a+=3D',""';if(d)a+=3D', =
"'+escape(this.Details)+'"';else =
a+=3D',""';a+=3D',"'+this.TitleStyle+'"';a+=3D',"'+this.DetailsStyle+'"';=
a+=3D");' "}a+=3D"/>";return =
a}VEPushpin.DisposeERO=3Dfunction(){if(window.ero!=3Dnull&&window.ero!=3D=
"undefined"){window.ero.destroy();window.ero=3Dnull}};VEPushpin.prototype=
._SetMapInstance=3Dfunction(a){this.m_vemap=3Da;this.m_vemapcontrol=3Da.v=
emapcontrol};VEPushpin.prototype.GetContent=3DGetContent;function =
GetImageFullUrl(a){var =
b=3D"";if(a&&a.constructor=3D=3DString&&a.length>0){var c=3Dnew =
Image;c.src=3Da;b=3Dc.src}return b}function =
VE_ScratchpadManager(){}VE_ScratchpadManager.AddGeoLocation=3Dfunction(){=
return};VE_ScratchpadManager.AddLocation=3DVE_ScratchpadManager.AddGeoLoc=
ation;VE_Scratchpad=3DVE_ScratchpadManager;function =
VEMessage(b){VEValidator.ValidateObject(b,"vemap",VEMap,"VEMap");this.m_v=
emap=3Db;var =
a=3Dthis;this.Show=3Dfunction(g){if(g=3D=3Dnull||g=3D=3D"undefined"||g.le=
ngth<=3D0)return;g=3Dc(g);if(this.vemessagepanel=3D=3Dnull||this.vemessag=
epanel=3D=3D"undefined"){var =
d=3Ddocument.createElement("div");d.id=3Dthis.m_vemap.ID+"_vemessagepanel=
";d.className=3D"VE_Message";d.style.zIndex=3DMsn.VE.API.Globals.vemessag=
epanelzIndex;var =
i=3Dthis.m_vemap.GetHeight()/2-Msn.VE.API.Globals.vemessagepanelheight/2;=
if(i<0)i=3D0;d.style.top=3Di+"px";d.style.left=3D30+"px";var =
h=3Dthis.m_vemap.GetWidth()-60;if(h<30)h=3D30;d.style.width=3Dh+"px";d.st=
yle.height=3DMsn.VE.API.Globals.vemessagepanelheight+"px";d.style.positio=
n=3D"absolute";this.vemessagepanel=3Dd;var =
e=3Ddocument.createElement("a");e.className=3D"VE_Message_Title";e.style.=
zIndex=3DparseInt(Msn.VE.API.Globals.vemessagepanelzIndex)+1;e.style.top=3D=
"1px";e.style.left=3D"1px";e.style.width=3DparseInt(this.vemessagepanel.s=
tyle.width)-5+"px";e.innerHTML=3DIOSec.EncodeHtml(L_error_text);e.unselec=
table=3D"on";this.vemessagepanel.appendChild(e);var =
f=3Ddocument.createElement("a");f.className=3D"VE_Message_Close";f.style.=
zIndex=3DparseInt(Msn.VE.API.Globals.vemessagepanelzIndex)+2;f.style.top=3D=
"1px";f.style.right=3D"1px";f.onclick=3Da.Hide;f.unselectable=3D"on";f.in=
nerHTML=3DL_close_text;this.vemessagepanel.appendChild(f);var =
b=3Ddocument.createElement("div");b.id=3Dthis.m_vemap.ID+"_vemessagepanel=
_body";b.className=3D"VE_Message_Body";b.style.zIndex=3DparseInt(Msn.VE.A=
PI.Globals.vemessagepanelzIndex)+3;b.style.top=3D22+"px";b.style.left=3D0=
+"px";b.style.width=3DparseInt(this.vemessagepanel.style.width)-8+"px";b.=
onclick=3Da.Hide;b.unselectable=3D"on";b.innerHTML=3Dg;this.vemessagepane=
l.appendChild(b);this.m_vemap.AddControl(this.vemessagepanel,Msn.VE.API.G=
lobals.vemessagepanelzIndex)}else{var =
b=3D$ID(this.m_vemap.ID+"_vemessagepanel_body");b.innerHTML=3Dg}this.veme=
ssagepanel.style.display=3D"block";mvcViewFacade.ShowShimIfSupported(this=
.vemessagepanel);this.timeoutIntervalID=3Dwindow.setInterval(this.Hide,10=
000)};this.Hide=3Dfunction(){if(a.vemessagepanel!=3Dnull&&a.vemessagepane=
l!=3D"undefined"){a.vemessagepanel.style.display=3D"none";HideShim(a.veme=
ssagepanel);if(a.timeoutIntervalID!=3Dnull){window.clearInterval(a.timeou=
tIntervalID);a.timeoutIntervalID=3Dnull}}};this.Dispose=3Dfunction(){if(t=
his.vemessagepanel!=3Dnull&&this.vemessagepanel!=3D"undefined")this.vemes=
sagepanel=3Dnull};function c(a){var =
b=3D/]*>/gi;a=3Da.replace(b,"");b=3D/<\/a>/gi;a=3Da.replace(b,"");re=
turn a}}function =
VEAmbiguouslist(vemap){VEValidator.ValidateNonNull(vemap,"vemap");this.m_=
vemap=3Dvemap;var =
self=3Dthis;this.ID=3Dthis.m_vemap.ID+"_veplacelistpanel";this.Show=3Dfun=
ction(a,onSelectCallback,callbackOnClose){var =
body=3Dnull,veambiglistHide=3D"VEMap._GetMapFromGUID('"+this.m_vemap.GUID=
+"').m_veambiguouslist.Hide();",veambiglistSetViewport=3D"VEMap._GetMapFr=
omGUID('"+this.m_vemap.GUID+"').vemapcontrol.SetViewport";if(this.veplace=
listpanel=3D=3Dnull||this.veplacelistpanel=3D=3D"undefined"){var =
e=3Ddocument.createElement("div");e.id=3Dthis.ID;e.className=3D"VE_PlaceL=
ist";e.style.top=3Dthis.m_vemap.GetHeight()/2-Msn.VE.API.Globals.veplacel=
istpanelheight/2+"px";e.style.left=3Dthis.m_vemap.GetWidth()/2-Msn.VE.API=
.Globals.veplacelistpanelwidth/2+"px";e.style.width=3DMsn.VE.API.Globals.=
veplacelistpanelwidth+"px";e.style.height=3DMsn.VE.API.Globals.veplacelis=
tpanelheight+"px";e.style.position=3D"absolute";this.veplacelistpanel=3De=
;var =
title=3Ddocument.createElement("a");title.className=3D"VE_PlaceList_Title=
";title.style.zIndex=3DparseInt(Msn.VE.API.Globals.veplacelistpanelzIndex=
)+1;title.style.width=3DparseInt(Msn.VE.API.Globals.veplacelistpanelwidth=
)-5+"px";title.style.top=3D"1px";title.style.left=3D"1px";title.style.hei=
ght=3D"20px";title.innerHTML=3DIOSec.EncodeHtml(L_selectlocation_text);ti=
tle.unselectable=3D"on";this.veplacelistpanel.appendChild(title);var =
cb=3Ddocument.createElement("a");cb.className=3D"VE_PlaceList_Close";cb.i=
d=3Dthis.m_vemap.ID+"_veplaceListclose";cb.style.zIndex=3DparseInt(Msn.VE=
.API.Globals.veplacelistpanelzIndex)+2;cb.style.top=3D"1px";cb.style.righ=
t=3D"1px";cb.unselectable=3D"on";cb.innerHTML=3DL_close_text;this.veplace=
listpanel.appendChild(cb);body=3Ddocument.createElement("div");body.id=3D=
this.m_vemap.ID+"_veplacelistbody";body.style.zIndex=3D300;body.style.hei=
ght=3DMsn.VE.API.Globals.veplacelistpanelheight-38+"px";body.style.width=3D=
Msn.VE.API.Globals.veplacelistpanelwidth-8+"px";body.className=3D"VE_Plac=
eList_Body";this.veplacelistpanel.appendChild(body);this.m_vemap.AddContr=
ol(this.veplacelistpanel,Msn.VE.API.Globals.veplacelistpanelzIndex)}else =
body=3D$ID(this.m_vemap.ID+"_veplacelistbody");var =
cb=3D$ID(this.m_vemap.ID+"_veplaceListclose");if(callbackOnClose=3D=3Dtru=
e)cb.onclick=3Dfunction(){eval(veambiglistHide+onSelectCallback+"();")};e=
lse cb.onclick=3Dself.Hide;body.innerHTML=3D"";for(var =
i=3D0;i '+a[i].name+"";else =
loc.innerHTML=3D''+a[i].name+" ";else =
if(onSelectCallback!=3Dnull&&onSelectCallback!=3D"undefined")loc.innerHTM=
L=3D''+a[i][0]+" ";else loc.innerHTML=3D''+a[i][0]+" ";body.appendChild(loc)}this.veplacelistpan=
el.style.display=3D"block";mvcViewFacade.ShowShimIfSupported(this.veplace=
listpanel)};this.Hide=3Dfunction(){if(self.veplacelistpanel!=3Dnull&&self=
.veplacelistpanel!=3D"undefined"){HideShim(self.veplacelistpanel);self.ve=
placelistpanel.style.display=3D"none"}};this.IsVisible=3Dfunction(){var =
a=3Dfalse;if(this.veplacelistpanel!=3Dnull&&this.veplacelistpanel!=3D"und=
efined"&&this.veplacelistpanel.style.display!=3D"none")a=3Dtrue;return =
a};this.Dispose=3Dfunction(){DestroyShim(self.veplacelistpanel);if(this.v=
eplacelistpanel!=3Dnull&&this.veplacelistpanel!=3D"undefined")this.veplac=
elistpanel=3Dnull}}function =
VEGraphicsManager(x){VEValidator.ValidateObject(x,"vemap",VEMap,"VEMap");=
var =
a=3Dthis,w=3D!Msn.VE.Environment.IsSVG();this._spacecontrol=3Dnull;this._=
hackUniqueLayerId=3D"UniqueLayer_Hack";var =
bb=3Dnull;this._entityIdShapePostfix=3D"_Shape";this.m_vemap=3Dx;this.m_v=
emapcontrol=3Dthis.m_vemap.vemapcontrol;var =
f=3Dnull,G=3Dx._mapOptions.DrawingBuffer,p=3Dfalse,T=3D1,d=3Dnull;this._u=
seOffset=3DVEShapeAccuracy.None;this._drawOverMaxShapes=3DVEFailedShapeRe=
quest.DrawInaccurately;this._failRequest=3DVEFailedShapeRequest.DrawInacc=
urately;var =
ab=3Dnull,y=3Dnull,g=3D[],b=3D[],j=3D{},e=3Dfalse,c=3Dnull;this.m_spec=3D=
null;var =
s=3Dnull,k=3Dnull,m=3Dtrue,Z=3DMsn.VE.API.Constants.iconurl,t=3D0,n=3Dnew=
=
_xy1;this.SetDisplayThreshold=3Dfunction(a){t=3Da};this.Initialize=3Dfunc=
tion(){if(this.m_vegraphiccanvas=3D=3Dnull||this.m_vegraphiccanvas=3D=3D"=
undefined"){this.m_vegraphicspolylines=3D[];this.m_vegraphicspolygons=3D[=
];var =
b=3Ddocument.createElement("div");b.id=3D"rootgraphicshape";this.m_vemapc=
ontrol.SetChildDiv(b);this.m_vegraphiccanvas=3DMsn.Drawing.Graphic.Create=
Graphic(b,this.m_vemapcontrol);this.m_vegraphiccanvas.SetZIndex(17);this.=
m_vemapcontrol.AttachEvent("onstartzoom",a.OnStartZoom);this.m_vemapcontr=
ol.AttachEvent("onchangeview",a.Update);this.m_vemapcontrol.AttachEvent("=
onmapoffsetreset",a.OnMapOffsetReset);this.m_vemapcontrol.AttachEvent("on=
initmode",a.UpdateViewMode);if(window.ero=3D=3Dnull||window.ero=3D=3D"und=
efined")window.ero=3DERO.getInstance()}};this.HideClusterLayers=3Dfunctio=
n(){var d=3Da.m_vemap.GetShapeLayerCount();for(var c=3D0;cd.x1&&a.minY>d.y1&&a.maxX0){d++;if(f[d]=3D=
=3Dnull){k=3Dfalse;d=3Dd+i-1;i=3D0}else{var =
j=3Da.m_vemapcontrol.PixelToLatLong(f[d],a.m_vemapcontrol.GetZoomLevel())=
;b[c]._OffsetPoints.push(s.CreateVELatLong(j.latitude,j.longitude));i--;l=
.push(f[d])}}}q(b[c]);if(k){h(b[c]);if(b[c]._OffsetCallBack)b[c]._OffsetC=
allBack(l)}else{b[c]._OffsetScene=3Dnull;b[c]._OffsetLatLong=3Dnull;b[c].=
_OffsetPoints=3Dnull;if(a._failRequest=3D=3DVEFailedShapeRequest.DoNotDra=
w){if(b[c]._OffsetCallBack)b[c]._OffsetCallBack(null)}else =
if(a._failRequest=3D=3DVEFailedShapeRequest.DrawInaccurately){b[c]._Offse=
tScene=3D-1;h(b[c]);b[c]._OffsetScene=3Dnull;if(b[c]._OffsetCallBack)b[c]=
._OffsetCallBack(null)}else =
if(a._failRequest=3D=3DVEFailedShapeRequest.QueueRequest){e=3Dtrue;o(b[c]=
)};}d++}else for(var =
c=3D0;c0){var =
f=3DMsn.VE.API.Constants.maxasynlatlongs,d=3D[];while(g.length>0&&f>0){va=
r =
c=3Dg.shift();if(c.GetPrimitive(0).type!=3DVEShapeType.Pushpin&&c.GetPrim=
itive(0).points.length/2>f-1){var =
j=3Dc.GetPrimitive(0).points;if(j.length/2>Msn.VE.API.Constants.maxasynla=
tlongs-1){q(c);if(a._drawOverMaxShapes=3D=3DVEFailedShapeRequest.DoNotDra=
w){if(c._OffsetCallBack)c._OffsetCallBack(null)}else =
if(a._drawOverMaxShapes=3D=3DVEFailedShapeRequest.DrawInaccurately){c._Of=
fsetScene=3D-1;h(c);if(c._OffsetCallBack)c._OffsetCallBack(null)};}else{g=
.unshift(c);f=3D0}}else =
if(c._OffsetScene!=3Dk.GetID()){b.push(c);d.push(new =
Msn.VE.LatLong(c.Latitude,c.Longitude));f--;if(c.GetPrimitive(0).type!=3D=
VEShapeType.Pushpin){var j=3Dc.GetPrimitive(0).points;for(var =
i=3D0;i0)e=3Dtrue;if(d!=3Dnull&&d.length>0){y=3Dk.GetID();a.m_v=
emapcontrol.LatLongToPixelAsync(d,a.m_vemapcontrol.GetZoomLevel(),J)}}};f=
unction =
Y(){if(!c)return;MC_MAX_COL_SIZE=3D200;if(c.GetCollectionCount()<1)return=
;l();for(var d=3D0;db.MaxScale||p0&&!IsBoundsIntersect(f,e))return =
false;if(b.Spec!=3Dnull&&b.Spec.IconUrl!=3Dnull&&b.Spec.IconUrl!=3D"undef=
ined")Z=3Db.Spec.IconUrl;var =
g=3D$ID(b.GetId());if(g=3D=3Dnull){g=3Ddocument.createElement("div");g.se=
tAttribute("id",b.GetId());k.appendChild(g)}var =
o=3Dtrue;m=3Dtrue;if(IsContainedInView(d,e)){m=3Dfalse;o=3DIsDisplayShape=
(a.m_vemap.vemapcontrol,t,e.x1,e.y1,e.x2,e.y2)}for(var =
n=3D0;nb.maxZoomLevel||m0){var c=3Da.m_vegraphicspolylines.length;for(var =
b=3D0;b0){var =
g=3Da.m_vegraphicspolygons.length;for(var b=3D0;b0)M(e,b._clusteringOptions)}if(b._c=
lusteringOptions&&b._clusteringOptions.Callback)clusterDescription=3Db._c=
lusteringOptions.Callback(d);var f=3D[];for(var =
c=3D0;c0){var =
h=3Dd/c,i=3De/c;a.LatLong=3Dnew VELatLong(h,i)}var g=3Dnew =
VEShape(VEShapeType.Pushpin,a.LatLong);a._clusterShape=3Dg;Q(a,f);L(a)}}f=
unction =
Q(a,b){if(a!=3Dnull&&a._clusterShape!=3Dnull)if(b&&b.Icon)a._clusterShape=
.SetCustomIcon(b.Icon);else =
a._clusterShape.SetCustomIcon(Msn.VE.API.Constants.clustericonurl)}functi=
on L(b){if(b!=3Dnull&&b._clusterShape!=3Dnull){var =
d=3DL_ClusterDefaultTitle_Text.replace(/%1/g,b.Shapes.length);b._clusterS=
hape.SetTitle(d);var =
c=3Da.m_vemap.vemapcontrol.GetCurrentMode();if(c&&a.m_vemap.GetZoomLevel(=
)0){g[i]=3DMath.floor(c%d);c=3DMath.floor(c/d);--i}for(var=
b=3D0;b=3Da&&d<=3Dc){var =
e=3D(d-a)/(c-a),f=3De*b+.5;return Math.min(Math.floor(f),b)}else throw =
L_floatintegermapencodingoutofrange_text};this.IntToFloat=3Dfunction(d){i=
f(d<=3Db){var f=3Dd/b,e=3Da+f*(c-a);return e}else throw =
L_floatintegermapencodingoutofrange_text}}var =
L_velatlongencodinginvalidstringlength_text=3D"_xz1: Invalid string =
length";function _xz1(b){var =
i=3D-90,h=3D90,g=3D-180,f=3D180,j=3D"0123456789bcdfghjkmnpqrstvwxyz",e=3D=
6;if(b!=3Dnull&&typeof b!=3D"undefined")e=3Db;var a=3Dnew =
VEIntegerEncoding(j,e),d=3Dnew =
VEFloatIntegerMap(i,h,a.MaxValue()),c=3Dnew =
VEFloatIntegerMap(g,f,a.MaxValue());this.Encode=3Dfunction(e,b){var =
f=3Da.Encode(d.FloatToInt(e))+a.Encode(c.FloatToInt(b));return =
f};this.Decode=3Dfunction(f){if(f.length=3D=3D2*a.ValueLength()){var =
e=3Da.ValueLength(),j=3Df.substr(0,e),h=3Df.substr(e,e),i=3Da.Decode(j),g=
=3Da.Decode(h),b=3D[];b[0]=3Dd.IntToFloat(i);b[1]=3Dc.IntToFloat(g);retur=
n b}else throw L_velatlongencodinginvalidstringlength_text}}function =
_xz1ForMobile(){_xz1.call(this,5)}VEMapMode=3Dnew =
function(){this.Mode2D=3D1;this.Mode3D=3D2};function =
VEMapViewSpecification(c,d,e,g,f){this.LatLong=3Dnull;this.ZoomLevel=3Dnu=
ll;this.Altitude=3Dnull;this.Pitch=3Dnull;this.Heading=3Dnull;if(c!=3Dnul=
l&&c!=3D"undefined"){VEValidator.ValidateObject(c,"veLatLong",VELatLong,"=
VELatLong");this.LatLong=3Dc}if(d!=3Dnull&&d!=3D"undefined"){VEValidator.=
ValidateNonNegativeInt(d,"zoomLevel");this.ZoomLevel=3Dd}if(e!=3Dnull&&e!=
=3D"undefined"){VEValidator.ValidateFloat(e,"altitude");this.Altitude=3Dp=
arseFloat(e)}if(g!=3Dnull&&g!=3D"undefined"){VEValidator.ValidateFloat(g,=
"pitch");var =
a=3DparseFloat(g);a=3Da%360;if(a<-90)a=3D-90;if(a>90)a=3D90;this.Pitch=3D=
a}if(f!=3Dnull&&f!=3D"undefined"){VEValidator.ValidateFloat(f,"heading");=
var =
b=3DparseFloat(f);b=3Db%360;if(b<0)b+=3D360;this.Heading=3Db}}function =
MapViewSpecClone(){var a=3Dnew =
VEMapViewSpecification;a.LatLong=3Dthis.LatLong.Clone();a.Altitude=3Dthis=
.Altitude;a.Pitch=3Dthis.Pitch;a.Heading=3Dthis.Heading;return =
veLatLong}VEMapViewSpecification.prototype.Clone=3DMapViewSpecClone;VEMap=
Style=3Dnew =
function(){this.Road=3DMsn.VE.MapStyle.Road;this.Shaded=3DMsn.VE.MapStyle=
.Shaded;this.Aerial=3DMsn.VE.MapStyle.Aerial;this.Hybrid=3DMsn.VE.MapStyl=
e.Hybrid;this.Oblique=3DMsn.VE.MapStyle.Oblique;this.Birdseye=3DMsn.VE.Ma=
pStyle.Oblique;this.BirdseyeHybrid=3DMsn.VE.MapStyle.ObliqueHybrid};VEOri=
entation=3Dnew =
function(){this.North=3DMsn.VE.Orientation.North;this.East=3DMsn.VE.Orien=
tation.East;this.West=3DMsn.VE.Orientation.West;this.South=3DMsn.VE.Orien=
tation.South};function =
VEBirdseyeScene(d){VEValidator.ValidateNonNull(d,"obliqueScene");var =
a=3Dd,f=3Dnull,c=3Dnull,e=3Dnew VELatLongFactory(new =
VELatLongFactoryAlwaysEncodeSpec),b=3Dnew =
_xy1;this.PixelToLatLong=3Dfunction(d,b,f){if(b!=3Dnull){VEValidator.Vali=
dateNonNegativeInt(b,"zoomLevel");b=3DparseInt(b)}else =
b=3DVEMap._GetMapFromGUID(c).GetZoomLevel();if(f){VEValidator.ValidateObj=
ectArray(d,"pixelArray",VEPixel,"VEPixel =
array");VEValidator.ValidateFunction(f,"callback");this.PixelToLatLongAsy=
nc(d,b,f)}else{VEValidator.ValidateObject(d,"pixel",VEPixel,"VEPixel");va=
r g=3Da.PixelToLatLong(d,b);return =
e.CreateVELatLong(g.latitude,g.longitude)}};this.PixelToLatLongAsync=3Dfu=
nction(b,c,d){a.PixelToLatLongAsync(b,c,d)};this.LatLongToPixel=3Dfunctio=
n(e,d,f){if(d!=3Dnull){VEValidator.ValidateNonNegativeInt(d,"zoomLevel");=
d=3DparseInt(d)}else =
d=3DVEMap._GetMapFromGUID(c).GetZoomLevel();if(f){VEValidator.ValidateObj=
ectArray(e,"veLatLongArray",VELatLong,"VELatLong =
array");VEValidator.ValidateFunction(f,"callback");this.LatLongToPixelAsy=
nc(e,d,f)}else{VEValidator.ValidateObject(e,"veLatLong",VELatLong,"VELatL=
ong");var g=3Db.Decode(e),h=3Dnew =
Msn.VE.LatLong(g.Latitude,g.Longitude);return =
a.LatLongToPixel(h,d)}};this.LatLongToPixelAsync=3Dfunction(e,g,h){var =
f=3D[];for(var c=3D0;ca)d=3Da;return =
b[d]};this.getTotal=3Dfunction(){return this.getValue(1)};function =
c(){b=3D[];b[0]=3D0;for(var =
c=3D1;c<=3Da;c++)b[c]=3Db[c-1]+d(c/a)}},Movie:function(b,g){var =
a=3Dthis;this.Repeat=3Dtrue;this.AppendContent=3Dtrue;var =
e=3D[],c=3D-1,d=3Dnull;this.addFrame=3Dfunction(b,a){if(a=3D=3Dnull)a=3Dt=
rue;var =
c=3D{data:b,append:a};e.push(c)};this.start=3Dfunction(){a.stop();a.show(=
);a.clear();c=3D-1;d=3DsetInterval(h,g)};this.stop=3Dfunction(){if(d)clea=
rInterval(d)};this.end=3Dfunction(){a.stop();f(e.length-1)};this.show=3Df=
unction(){b.style.visibility=3D"visible"};this.hide=3Dfunction(){b.style.=
visibility=3D"hidden"};this.clear=3Dfunction(){b.innerHTML=3D""};function=
=
h(){c++;if(c>e.length-1){c=3D0;if(!a.Repeat){clearInterval(d);return}else=
a.clear()}f(c)}function f(c){var =
a=3De[c];if(a.append)b.innerHTML+=3Da.data;else =
b.innerHTML=3Da.data}},RollDirection:{TopDown:1,RightLeft:2,BottomUp:4,Le=
ftRight:8},RollStyle:{In:0,Out:1},Roller:function(q){var =
c=3Dthis;this.superclass=3DMsn.VE.OO.Eventable.EventableObject;this.super=
class();var =
l=3DMsn.VE.Css,a=3DMsn.VE.Animation,h=3DMsn.VE.OO.Eventable,b=3Dq,d=3Dnul=
l,f=3Dtrue,g=3Dfalse,e=3DAccelerationFunctions.CrazyElevator,i=3D10,j=3D1=
0,m=3D5,p=3D{top:1,right:2,bottom:3,left:4},o=3D{top:3,right:4,bottom:1,l=
eft:2};this.setAccelerationFunction=3Dfunction(a){if(a instanceof =
Msn.VE.Animation.AccelerationFunction)e=3Da};this.setXLeave=3Dfunction(a)=
{if(typeof =
a=3D=3D"number"&&a>=3D0)i=3DMath.floor(a,10)};this.setYLeave=3Dfunction(a=
){if(typeof =
a=3D=3D"number"&&a>=3D0)j=3DMath.floor(a,10)};this.getLeave=3Dfunction(){=
return {x:i,y:j}};this.setDelay=3Dfunction(a){if(typeof =
a=3D=3D"number"&&a>0)m=3DMath.floor(a,10)};this.isExpanded=3Dfunction(){r=
eturn f};this.isRolling=3Dfunction(){return =
g};this.isAssociated=3Dfunction(){if(d!=3Dnull&&d.length>0)return =
true;return false};this.associate=3Dfunction(a){if(a instanceof =
Array)d=3Da};this.rollIn=3Dfunction(d){if(g)return;c.executeEvent("before=
rollin",c,new =
h.EventArgs("beforerollin",b));k(a.RollStyle.In,d);f=3Dfalse};this.rollOu=
t=3Dfunction(d){if(g)return;c.executeEvent("beforerollout",c,new =
h.EventArgs("beforerollout",b));k(a.RollStyle.Out,d);f=3Dtrue};this.expan=
d=3Dfunction(b){k(a.RollStyle.Out,b,false);f=3Dtrue};this.collapse=3Dfunc=
tion(b){k(a.RollStyle.In,b,false);f=3Dfalse};function =
k(u,k,t){g=3Dtrue;if(t!=3D=3Dfalse)t=3Dtrue;n();var =
f=3Dp,q=3D0,r=3D0;if(u=3D=3Da.RollStyle.Out){f=3Do;q=3Di;r=3Dj}var =
y=3Db.offsetWidth,w=3Db.offsetHeight,A=3Dy-i,B=3Dw-j,C=3DA/e.getTotal(),D=
=3DB/e.getTotal(),x=3De.getSteps();if(!t){v(1)();return}for(var =
s=3D0;s<=3Dx;s++){var z=3Ds/x;setTimeout(v(z),s*m)}function v(i){return =
function(){var =
m=3DparseInt(Math.round(e.getValue(i)*C))+q,n=3DparseInt(Math.round(e.get=
Value(i)*D))+r,j=3D{top:0,right:0,bottom:0,left:0};if((k&a.RollDirection.=
TopDown)=3D=3Da.RollDirection.TopDown){l.Functions.setClip(b,f.top,n+"px"=
);j.top=3Dn-r}if((k&a.RollDirection.RightLeft)=3D=3Da.RollDirection.Right=
Left){l.Functions.setClip(b,f.right,y-m+"px");j.right=3D-m+q}if((k&a.Roll=
Direction.BottomUp)=3D=3Da.RollDirection.BottomUp){l.Functions.setClip(b,=
f.bottom,w-n+"px");j.bottom=3D-n+r}if((k&a.RollDirection.LeftRight)=3D=3D=
a.RollDirection.LeftRight){l.Functions.setClip(b,f.left,m+"px");j.left=3D=
m-q}if(d!=3Dnull){var p;for(p=3D0;p0)b=3Da};this.slideToPoint=3Dfunction(e,i){var =
d=3Dnew =
c.Point(e.offsetLeft,e.offsetTop),n=3Dd.getDistanceFrom(i);a.setSteps(Mat=
h.floor(n/10));var =
p=3Dn/a.getTotal(),o=3Di.y-d.y,l=3Di.x-d.x,f=3DMath.atan(o/l),m=3Da.getSt=
eps();for(var h=3D0;h<=3Dm;h++){sum=3Da.getValue(h/m);var =
g=3Dsum*p,k,j;if(l<0){k=3Dd.y-Math.sin(f)*g;j=3Dd.x-Math.cos(f)*g}else{k=3D=
d.y+Math.sin(f)*g;j=3Dd.x+Math.cos(f)*g}setTimeout(q(j,k),h*b)}function =
q(a,b){return =
function(){e.style.top=3DparseInt(Math.round(b))+"px";e.style.left=3Dpars=
eInt(Math.round(a))+"px"}}}}};var AccelerationFunctions=3D{Linear:new =
Msn.VE.Animation.AccelerationFunction(function(){return =
1}),ExponentialAcc:new =
Msn.VE.Animation.AccelerationFunction(function(b){var =
a=3D0,d=3D1,c=3Dd-a,f=3Da+b*c,e=3DMath.pow(f,2);return =
e}),ExponentialDec:new =
Msn.VE.Animation.AccelerationFunction(function(b){var =
a=3D-1,d=3D0,c=3Dd-a,f=3Da+b*c,e=3DMath.pow(f,2);return =
e}),CosineWave:new Msn.VE.Animation.AccelerationFunction(function(b){var =
a=3D-Math.PI,d=3DMath.PI,c=3Dd-a,f=3Da+b*c,e=3DMath.cos(f)+1;return =
e}),CrazyElevator:new =
Msn.VE.Animation.AccelerationFunction(function(b){var =
a=3D-5,d=3D5,c=3Dd-a,f=3Da+b*c,e=3D2/(Math.pow(Math.abs(f),3)+1);return =
e})};_VERegisterNamespaces("Msn.VE.Geometry");Msn.VE.Geometry.Point=3Dfun=
ction(c,d){var =
a=3Dthis,b=3DMsn.VE.Geometry;this.x=3Dc;this.y=3Dd;this.add=3Dfunction(c,=
d){var e=3Dnew b.Point(a.x+c,a.y+d);return =
e};this.getDistanceFrom=3Dfunction(b){var =
c=3DMath.pow(b.x-a.x,2)+Math.pow(b.y-a.y,2),d=3DMath.sqrt(c);return =
d}};Msn.VE.Geometry.Overlap=3D{Range:{GreaterThanX:1,LessThanX:2,GreaterT=
hanY:4,LessThanY:8,InXRange:16,InYRange:32,InRange:48},getInstance:functi=
on(f,g){var d=3DMsn.VE.Geometry.Overlap,a=3Df,b=3Dg,c=3D0;e();function =
e(){if(b.getP2().x>a.getP2().x)c+=3Dd.Range.GreaterThanX;if(b.getP1().xa.getP2().y)c+=3Dd.Range=
.GreaterThanY;if(b.getP1().y =3Da.x&&c.x<=3Db.x&&c.y>=3Da.y&&c.y<=3Db.y};this.scale=3Dfunction(d){=
a.x-=3Dd;a.y-=3Dd;b.x+=3Dd;b.y+=3Dd;c()};this.getOverlap=3Dfunction(a){va=
r b=3DMsn.VE.Geometry;return new b.Overlap.getInstance(g,a)};function =
c(){d=3Db.y-a.y;e=3Db.x-a.x}};Msn.VE.Geometry.Functions=3D{getSlope:funct=
ion(a,b){return (b.y-a.y)/(b.x-a.x)},getYIntercept:function(b,a){return =
a.y-b*a.x},getBestBoundingPoint:function(f,b,c){var =
a=3DMsn.VE.Geometry;if(!b)b=3Dg(f).getScreenPosition();var e=3Dnew =
a.Rectangle(b,new =
a.Point(b.x+f.offsetWidth,b.y+f.offsetHeight)),j=3Dc.getOverlap(e),d=3Dj.=
getRange();if((d&a.Overlap.Range.InRange)=3D=3Da.Overlap.Range.InRange)re=
turn b;var =
h=3Db.x,i=3Db.y;if(d&a.Overlap.Range.GreaterThanX)h=3Dc.getP2().x-e.getWi=
dth();if(d&a.Overlap.Range.LessThanX)h=3Dc.getP1().x;if(d&a.Overlap.Range=
.GreaterThanY)i=3Dc.getP2().y-e.getHeight();if(d&a.Overlap.Range.LessThan=
Y)i=3Dc.getP1().y;return new =
a.Point(h,i)}};_VERegisterNamespaces("Msn.VE.OO.Eventable");Msn.VE.OO.Eve=
ntable.EventArgs=3Dfunction(b,a){this.EventName=3Db;this.Recipient=3Da};M=
sn.VE.OO.Eventable.EventableObject=3Dfunction(){if(typeof =
window.attachEvent!=3D"undefined")window.attachEvent("onunload",c);var =
a=3D[];this.getEventHash=3Dfunction(){return =
a};this.hookEvent=3Dfunction(d,e){var c=3Da[d];if(typeof =
c=3D=3D"undefined"||c=3D=3Dnull){c=3Dnew =
b(d);a[d]=3Dc}c.addEvent(e)};this.unhookEvent=3Dfunction(d,e){var =
c=3Da[d];if(c instanceof =
b)c.removeEvent(e)};this.executeEvent=3Dfunction(g,h,f){var =
d=3Da[g];if(!(d instanceof b))return;var =
e=3Dd.getEvents(),c;for(c=3D0;c');e.addFrame('
');e.addFrame('
');e.addFrame("");e.addFrame("");e.addFrame('
',false);e.addFrame('
',false);e.Repeat=3Dfalse;this.destroy=3Dfunction(){if(b){=
if(typeof =
b.removeEventListener!=3D"undefined"){b.removeEventListener("mouseover",x=
,false);b.removeEventListener("mouseout",y,false)}else{b.detachEvent("onm=
ouseover",x);b.detachEvent("onmouseout",y)}if(j.shimElement){j.shimElemen=
t.removeNode(true);j.shimElement=3Dnull}b.parentNode.removeChild(b);d.par=
entNode.removeChild(d);b=3Dnull;s=3Dnull;j=3Dnull;q=3Dnull;p=3Dnull;m=3Dn=
ull;l=3Dnull;t=3Dnull;v=3Dnull}ERO.m_theEro=3Dnull;k=3Dnull};this.getElem=
ent=3Dfunction(){return b};this.getBody=3Dfunction(){return =
j};this.getAnimation=3Dfunction(){return =
e};this.getDelay=3Dfunction(){return =
o+n};this.setDelay=3Dfunction(a){o=3Da||o};this.getDelayDelta=3Dfunction(=
){return =
n};this.setDelayDelta=3Dfunction(a,b){B=3Db=3D=3Dfalse?false:true;if(type=
of =
a=3D=3D"number"){n=3Da;if(!h&&r!=3D-1)c.hide()}};this.setClasses=3Dfuncti=
on(b,d){var =
a;if(ERO.DefaultClasses=3D=3D=3Dnull){ERO.DefaultClasses=3D{};for(a in =
ERO.Classes)ERO.DefaultClasses[a]=3DERO.Classes[a]}if(d!=3D=3Dfalse)c.set=
Classes(ERO.DefaultClasses,false);for(a in b)if(typeof =
ERO.Classes[a]!=3D"undefined")ERO.Classes[a]=3Db[a];D()};this.setBeak=3Df=
unction(a){if(a=3D=3DERO.BeakDirection.Left)g(b).removeClass(ERO.Classes.=
ContainerRightBeak).addClass(ERO.Classes.ContainerLeftBeak);else =
g(b).removeClass(ERO.Classes.ContainerLeftBeak).addClass(ERO.Classes.Cont=
ainerRightBeak)};this.setContent=3Dfunction(c){var =
a=3Ddocument.createElement("div");a.className=3D"firstChild";a.innerHTML=3D=
c;var b=3Dl.firstChild;if(b)l.replaceChild(a,b);else =
l.appendChild(a);a=3Dnull;b=3Dnull};this.addAction=3Dfunction(b){var =
a=3Ddocument.createElement("li");if(!b)return;a.innerHTML=3Db;p.appendChi=
ld(a);a=3Dnull};this.clearActions=3Dfunction(){var =
a=3Dp.getElementsByTagName("li"),c=3Da.length;for(var =
b=3D0;bf.getP2().x?=
f.getP1().x+f.getWidth()-B:s-B-m.getWidth()}if(p&a.Overlap.Range.LessThan=
X){c.setBeak(ERO.BeakDirection.Left);w=3Df.getP1().x}if(p&a.Overlap.Range=
.GreaterThanY){x=3Df.getP1().y+f.getHeight()-G;var =
H=3DD.getBottomYBleed();g+=3DH;if(g>b.offsetHeight-ERO.BeakHeight)g=3Db.o=
ffsetHeight-ERO.BeakHeight-4}if(p&a.Overlap.Range.LessThanY){x=3Df.getP1(=
).y;var =
H=3DD.getTopYBleed();g-=3DH;if(g<0)g=3D0}b.style.top=3Dx+v;b.style.left=3D=
w+v;t.style.top=3Dg+"px";c.executeEvent("beforeshow",c,new =
ERO.EROEventArgs("beforeshow",b,k));if(!i.useBeak)b.className=3DERO.Class=
es.ContainerNoBeak;z=3Dfalse;if(i.useProgressTimer){e.start();if(!i.useFa=
de){setTimeout(u,o+n);return}}if(i.useFade)setTimeout(F,o+n);else =
u()};this.showImmediate=3Dfunction(){z=3Dh=3Dtrue;e.end();u()};this.hide=3D=
function(a){h=3Dfalse;if(a=3D=3D=3Dtrue)A();else{clearTimeout(r);r=3DsetT=
imeout(A,o+n)}};this.setGlitz=3Dfunction(c,d,a,b){if(c!=3Dnull)i.useBeak=3D=
c;if(d!=3Dnull)i.useFade=3Dd;if(a!=3Dnull)i.useProgressTimer=3Da;if(b=3D=3D=
=3Dtrue)i.isTemporary=3Db;else =
C=3Di.copy()};this.setBoundingArea=3Dfunction(e,g){if(e=3D=3D=3Dnull){var=
=
b=3DGimme.Screen.getScrollPosition(),c=3DGimme.Screen.getViewportSize(),d=
=3Dnew a.Rectangle(new a.Point(0,0),new =
a.Point(c.width,c.height));d.move(new a.Point(b.x,b.y));f=3Dd}else =
f=3Dnew a.Rectangle(e,g)};this.getBoundingArea=3Dfunction(){return =
f};this.isInUse=3Dfunction(){return =
h};this.isVisible=3Dfunction(){return =
b.style.visibility=3D=3D"visible"};this.addToPage=3Dfunction(){b.style.vi=
sibility=3D"hidden";d.style.visibility=3D"hidden";document.body.appendChi=
ld(b);document.body.appendChild(d)};this.getSize=3Dfunction(){var =
c=3Db.offsetLeft,d=3Db.offsetTop,f=3Dc+b.offsetWidth,g=3Dd+b.offsetHeight=
,e=3Dnew a.Rectangle(new a.Point(c,d),new a.Point(f,g));return =
e};function E(b,a){if(b=3D=3Da)return =
false;while(a&&a!=3Db)a=3Da.parentNode;return a=3D=3Db}function =
x(){h=3Dtrue}function y(a){var =
d=3Da.relatedTarget||a.toElement||a.srcElement;if(!E(b,d))c.hide()}functi=
on =
u(){if(b&&h){if(b.style.visibility!=3D"visible")b.style.visibility=3D"vis=
ible";if(typeof =
b.style.opacity!=3D"undefined")b.style.opacity=3D1;c.executeEvent("afters=
how",c,new ERO.EROEventArgs("aftershow",b,k));i=3DC.copy()}}function =
A(){if(!h&&b){c.executeEvent("beforehide",c,new =
ERO.EROEventArgs("beforehide",b,k));b.style.visibility=3D"hidden";e.hide(=
);if(!Msn.VE.API){d.style.left=3Db.style.left=3D"0";d.style.top=3Db.style=
.top=3D"0"}k=3Dnull;c.executeEvent("afterhide",c,new =
ERO.EROEventArgs("afterhide",b,k))}if(B)n=3D0}function =
F(){if(z||!h||!b)return;if(b.style&&typeof =
b.style.filter!=3D"undefined"){b.style.filter=3D"progid:DXImageTransform.=
Microsoft.Fade(duration=3D.5)";b.filters[0].Apply();b.style.visibility=3D=
"visible";b.style.display=3D"block";b.filters[0].Play();var =
c=3DsetInterval(function(){if(b.filters[0].status=3D=3D0){clearInterval(c=
);u()}},10)}else{b.style.visibility=3D"visible";if(w=3D=3D=3D0)a()}functi=
on a(){if(h&&++w<=3D10){var =
c=3Dw*.09999999;b.style.opacity=3Dc;setTimeout(a,50)}else{u();w=3D0}}}fun=
ction =
D(){b.className=3DERO.Classes.Container;s.className=3DERO.Classes.Shadow;=
j.className=3DERO.Classes.Body;t.className=3DERO.Classes.Beak;q.className=
=3DERO.Classes.Actions;m.className=3DERO.Classes.ActionsBackground;l.clas=
sName=3DERO.Classes.PreviewArea;v.className=3DERO.Classes.PaddingHack;d.c=
lassName=3DERO.Classes.ProgressAnimation}}}};function =
LogEROBehavior(eroEvent,fromPanel){var =
bERO=3D$find(eroEvent.Entity.id+"_ero");if(bERO!=3Dnull){var =
eroSource=3Deval(fromPanel?bERO.get_EROPanel():bERO.get_EROMap()),pageNam=
e=3Deval(bERO.get_PageName());if(eroSource)$VE_A.Log(pageName,eroSource)}=
}function =
LogEROBehaviorFromPanel(a){ero.unhookEvent("aftershow",LogEROBehaviorFrom=
Panel);LogEROBehavior(a,true)}function =
LogEROBehaviorFromMap(a){ero.unhookEvent("aftershow",LogEROBehaviorFromMa=
p);LogEROBehavior(a,false)}function =
VETime(){}VETime.FormatTime=3Dfunction(a){if(a=3D=3Dnull||a=3D=3D""||a=3D=
=3D"undefined")return "";var =
c=3Dfalse,d=3Da.substr(0,10),e=3Da.substr(11,5),b=3D"";if(a.indexOf("AM")=
>-1){b=3D"AM";c=3Dtrue}else b=3D"PM";return d+" =
"+VETime.ConvertTo12HourFormat(e,c)+" =
"+b};VETime.ConvertTo12HourFormat=3Dfunction(d,c){var a=3Dd;try{var =
b=3DparseFloat(a.replace(":","."));if(b>12)if(b<13&&c!=3Dtrue);else =
b=3Db-12;a=3Db.toFixed(2);a=3Da.replace(".",":")}catch(e){a=3D""}return =
a};VETime.FormatPanelTime=3Dfunction(a,g){if(a=3D=3Dnull||a=3D=3D""||a=3D=
=3D"undefined")return "";try{var =
b=3D0,d=3Dfalse,i=3Da.substr(4,8),h=3Da.indexOf(":"),f=3Da.substr(h-2,5),=
c=3D"";if(a.indexOf("AM")>-1){c=3D"AM";d=3Dtrue;b=3Da.indexOf("AM")}else{=
c=3D"PM";b=3Da.indexOf("PM")}var =
e=3D"";if(b>0)e=3Da.substr(b+3,3);if(g)return i+" =
"+VETime.ConvertTo12HourFormat(f,d)+" "+c+" "+e;else return =
VETime.ConvertTo12HourFormat(f,d)+" "+c+" =
"+e}catch(j){}};VETime.getMonth=3Dfunction(a){switch(a){case "01":return =
" Jan";case "02":return " Feb";case "03":return " Mar";case "04":return =
" Apr";case "05":return " May";case "06":return " Jun";case "07":return =
" Jul";case "08":return " Aug";case "09":return " Sep";case "10":return =
" Oct";case "11":return " Nov";case "12":return " =
Dec"}};VEMap.prototype.GetImageryMetadata=3Dfunction(c,a){var =
j=3Dthis;VEValidator.ValidateFunction(c);if(a){VEValidator.ValidateObject=
(a,"options",VEImageryMetadataOptions,"VEImageryMetadataOptions");if(a.La=
tLong!=3Dnull)VEValidator.ValidateObject(a.LatLong,"LatLong",VELatLong,"V=
ELatLong");if(a.MapStyle!=3Dnull)VEValidator.ValidateMapStyle(a.MapStyle,=
"MapStyle");if(a.ZoomLevel!=3Dnull){VEValidator.ValidateNonNegativeInt(a.=
ZoomLevel,"ZoomLevel");if(a.ZoomLevel=3D=3D0||a.ZoomLevel>Msn.VE.API.Glob=
als.vemaxzoom)throw new =
VEException("VEMap.GetImageryMetadata","err_invalidargument",L_invalidarg=
ument_text.replace("%1","ZoomLevel").replace("%2","int"))}}else a=3Dnew =
VEImageryMetadataOptions;if(a.LatLong=3D=3Dnull)a.LatLong=3Dthis.GetCente=
r();if(a.MapStyle=3D=3Dnull)a.MapStyle=3Dthis.GetMapStyle();if(a.ZoomLeve=
l=3D=3Dnull)a.ZoomLevel=3Dthis.GetZoomLevel();if((a.MapStyle=3D=3DVEMapSt=
yle.Road||a.MapStyle=3D=3DVEMapStyle.Shaded||a.MapStyle=3D=3DVEMapStyle.A=
erial||a.MapStyle=3D=3DVEMapStyle.Hybrid)&&(this.HasClientToken()||this.H=
asValidCredentials())){if(a.MapStyle=3D=3DVEMapStyle.Shaded)a.MapStyle=3D=
=3DVEMapStyle.Road;var d=3Dnew =
Msn.VE.LatLong;d.latitude=3Da.LatLong.Latitude;d.longitude=3Da.LatLong.Lo=
ngitude;var =
g=3Dthis.vemapcontrol.GetOrthoMode(),i=3Dg.LatLongToPixel(d,a.ZoomLevel),=
h=3DVEPixelToQuadKey(i,a.ZoomLevel),b=3D[];b.push(new =
VEParameter("quadKey",'"'+h+'"'));b.push(new =
VEParameter("mapStyle",'"'+a.MapStyle+'"'));b.push(new =
VEParameter("tileGeneration",'"'+this.vemapcontrol.GetTileGeneration(a.Ma=
pStyle)+'"'));this.vemapcontrol.Fire("onstartrequest");function =
e(a){j._GetImageryMetadataHandler(a,c)}VEAPIRequestInvoke(Msn.VE.API.Cons=
tants.imageryurl+"/GetTileMetadata",b,e,this)}else{var f=3Dnew =
VEImageryMetadata;c(f)}};VEMap.prototype._GetImageryMetadataHandler=3Dfun=
ction(a,c){this.vemapcontrol.Fire("onendrequest");this.__HandleAuthentica=
tion(a);var b=3Dnull;if(a){b=3Dnew VEImageryMetadata;if(typeof =
a.Vintage!=3D"undefined"&&a.Vintage!=3Dnull){if(typeof =
a.Vintage.From!=3D"undefined"&&a.Vintage.From!=3Dnull){var =
d=3Da.Vintage.From;b.DateRangeStart=3DParseJsonDate(d)}if(typeof =
a.Vintage.To!=3D"undefined"&&a.Vintage.To!=3Dnull){var =
e=3Da.Vintage.To;b.DateRangeEnd=3DParseJsonDate(e)}}}if(typeof =
c=3D=3D"function")c(b)};function ParseJsonDate(dateString){var =
date=3Dnull;if(dateString)try{dateString=3DdateString.replace(/\//g,"");d=
ate=3Deval("new "+dateString+";")}catch(a){}return date}function =
VEImageryMetadata(){this.DateRangeStart=3Dnull;this.DateRangeEnd=3Dnull;t=
his.toString=3Dfunction(){strDateStart=3D"";strDateEnd=3D"";if(this.DateR=
angeStart)strDateStart+=3Dthis.DateRangeStart.getFullYear();if(this.DateR=
angeEnd)strDateEnd+=3Dthis.DateRangeEnd.getFullYear();var =
a;if(strDateStart=3D=3DstrDateEnd)a=3DstrDateStart;else =
a=3DstrDateStart+" - "+strDateEnd;return a}}function =
VEImageryMetadataOptions(){this.LatLong=3Dnull;this.MapStyle=3Dnull;this.=
ZoomLevel=3Dnull}var =
customCursors=3DMsn.VE.Css.Cursors.CustomCursors;if(customCursors!=3Dnull=
){var =
i,len=3DcustomCursors.length;for(i=3D0;i=3D0)&&(typeof =
VEAPI_DisableAtlasCompat=3D=3D"undefined"||VEAPI_DisableAtlasCompat!=3Dtr=
ue))VENetwork.DownloadScript(Msn.VE.API.Constants.atlascompatjs);VENetwor=
k.AttachStyleSheet(Msn.VE.API.Constants.stylesheet);if(navigator.userAgen=
t.indexOf("MSIE")>=3D0&&parseInt(navigator.userAgent.substring(navigator.=
userAgent.indexOf("MSIE")+5))=3D=3D6)VENetwork.AttachStyleSheet(Msn.VE.AP=
I.Constants.stylesheetiev6);try{document.namespaces.add("v","urn:schemas-=
microsoft-com:vml")}catch(a){}function =
RequestQueueItem(a,b,c,d){this.Call=3Da;this.Param1=3Db;this.Param2=3Dc;t=
his.Param3=3Dd}function =
VECustomEvent(b,a){this.Name=3Db;this.Callback=3Da}VECacheMode=3D{Auto:0,=
EnableTileCaching:1};function =
VEMapOptions(){this.EnableBirdseye=3Dtrue;this.EnableDashboardLabels=3Dtr=
ue;this.LoadBaseTiles=3Dtrue;this.BirdseyeOrientation=3DVEOrientation.Nor=
th;this.DrawingBuffer=3D0;this.CacheMode=3DVECacheMode.Auto;this.Dashboar=
dColor=3D"blue";this.EnableClickableLogo=3Dfalse;this.EnableSearchLogo=3D=
false}function VEMap(m){var =
a=3Dthis;this.ID=3Dm;this.GUID=3DVENetwork.GetExecutionID();this.ClientTo=
ken=3Dnull;this.Credentials=3Dnull;var =
i=3Dfalse;this.SessionQueue=3Dnull;var =
f=3Dnull,l=3Dnull,d=3Dnull;if(Msn.VE.API.Globals.vemapinstances=3D=3Dnull=
||Msn.VE.API.Globals.vemapinstances=3D=3D"undefined")Msn.VE.API.Globals.v=
emapinstances=3D[];Msn.VE.API.Globals.vemapinstances[this.GUID]=3Da;this.=
requestQueue=3D[];this.preInitCustomEvents=3D[];this.network=3Dnew =
VENetwork;this.mapelement=3D$ID(m);this.pushpins=3D[];this.Disambiguation=
Callback=3Dnull;this.ShowMessageBox=3Dtrue;if(this.mapelement=3D=3Dnull)t=
hrow new =
VEException("VEMap:cstr","err_invalidelement",L_invalidelement_text);this=
.m_vedirectionsmanager=3Dnull;this._dm=3Dthis.m_vedirectionsmanager;this.=
m_routemanager=3Dnull;this.m_vesearchmanager=3Dnull;this._sm=3Dthis.m_ves=
earchmanager;this.m_vemessage=3Dnew =
VEMessage(this);this.m_veambiguouslist=3Dnew VEAmbiguouslist(this);var =
c=3Dnew VELatLongFactory(new VELatLongFactorySpecFromMap(this)),b=3Dnew =
_xy1;this.queueEventInitialized=3Dfalse;this.RequestQueueEnabled=3Dtrue;t=
his.queueEventInitialized=3Dfalse;windowWidth=3DGetWindowWidth();windowHe=
ight=3DGetWindowHeight();scrollbarWidth=3DGetScrollbarWidth();this.dashbo=
ardSize=3DMsn.VE.DashboardSize.Normal;this.dashboardVersion=3D6;this._sho=
wDashboard=3Dtrue;this._showScalebar=3Dtrue;this._mapPrintOptions=3Dnull;=
this.LoadMap=3Dfunction(c,j,l,k,d,i,e,h){if(!a)throw new =
VEException("VEMap:LoadMap","err_notinitializedmap",L_notinitialized_text=
);if(typeof =
d!=3D"undefined"&&d!=3Dnull){VEValidator.ValidateMapMode(d,"mapMode");thi=
s.mapMode=3Dd}if(c!=3Dnull&&c!=3D"undefined"){VEValidator.ValidateObject(=
c,"veLatLong",VELatLong,"VELatLong");var =
f=3Db.Decode(c);this.initialLatitude=3Df.Latitude;this.initialLongitude=3D=
f.Longitude}this.fixedMap=3Dk;this.initialZoomLevel=3Dj;this.initialMapSt=
yle=3Dl;this.showMapModeSwitch=3Di;if(e!=3Dnull&&typeof =
e!=3D"undefined")this.tileBuffer=3De;this._mapOptions=3Dh?h:new =
VEMapOptions;VEValidator.ValidateOrientation(this._mapOptions.BirdseyeOri=
entation,"VEMapOptions.BirdseyeOrientation");VEValidator.ValidateFloat(th=
is._mapOptions.DrawingBuffer,"VEMapOptions.DrawingBuffer");VEValidator.Va=
lidateBetween(this._mapOptions.DrawingBuffer,"VEMapOptions.DrawingBuffer"=
,0,Number.POSITIVE_INFINITY);VEValidator.ValidateCacheMode(this._mapOptio=
ns.CacheMode,"VEMapOptions.CacheMode");this.veonmaploadevent=3Dthis.onLoa=
dMap;this.mapelement.innerHTML=3D"";this.mapelement.innerHTML=3D"";this.Initi=
alizeMap();this.vemapcontrol.AttachEvent("onstartpan",function(){if(windo=
w.ero)window.ero.hide(true)});g([new =
VEParameter("entry","0")])};function g(b){if(b){var =
e=3DMsn.VE.API.Constants.logservice+"/Log";b.push(new =
VEParameter("fmt","1"));b.push(new VEParameter("type","3"));b.push(new =
VEParameter("group","MapControl"));b.push(new =
VEParameter("name","AJAX"));b.push(new =
VEParameter("version",Msn.VE.API.Globals.vecurrentversion));b.push(new =
VEParameter("session",a.GUID));b.push(new =
VEParameter("mkt",Msn.VE.API.Globals.locale));var =
p=3Da.Credentials!=3Dnull&&a.Credentials.length>0;if(p||!a.HasClientToken=
()){var i=3DVENetwork.GetExecutionID(),c=3D"LogCredCB"+i;b.push(new =
VEParameter("auth",p?a.Credentials:Msn.VE.API.Constants.defaultLogCredent=
ials));b.push(new VEParameter("&jsonp",c));var m=3Dnew =
VENetwork;m.UseCloseDep=3Dtrue;m.ServiceUrl=3De;if(!a.SessionQueue)a.Sess=
ionQueue=3D[];l=3Dc;window[c]=3Dfunction(b){if(a&&l=3D=3Dc){if(d!=3Dnull)=
{clearTimeout(d);d=3Dnull}var =
e=3Db!=3Dnull&&b.authenticationResultCode=3D=3D"ValidCredentials";f=3De&&=
typeof =
b.sessionId=3D=3D"string"&&b.sessionId.length>0?b.sessionId:null;if(e)j()=
;else =
h();k()}window[c]=3Dnull};if(d!=3Dnull)clearTimeout(d);d=3DsetTimeout(n,1=
0000);m.BeginInvoke("_f"+i,b,null,null,i)}else{b.push(new =
VEParameter("auth",a.ClientToken));b.push(new =
VEParameter("image","1"));e+=3D"?";for(var =
g=3D0;g0)this.PixelToLatLongAsync(b,a,d)}else{=
VEValidator.ValidateObject(b,"pixel",VEPixel,"VEPixel");var =
e=3Dthis.vemapcontrol.PixelToLatLong(b,a),f=3Dc.CreateVELatLong(e.latitud=
e,e.longitude);return =
f}};this.PixelToLatLongAsync=3Dfunction(a,b,c){this.vemapcontrol.PixelToL=
atLongAsync(a,b,c)};this.SetCenter=3Dfunction(c){VEValidator.ValidateObje=
ct(c,"veLatLong",VELatLong,"VELatLong");var =
a=3Db.Decode(c);this._QueueRequest(this.vemapcontrol.SetCenterAccurate,a.=
Latitude,a.Longitude)};this.SetCenterClassic=3Dfunction(c){VEValidator.Va=
lidateObject(c,"veLatLong",VELatLong,"VELatLong");var =
a=3Db.Decode(c);this._QueueRequest(this.vemapcontrol.SetCenter,a.Latitude=
,a.Longitude)};this.SetCenterAndZoom=3Dfunction(c,d){VEValidator.Validate=
Object(c,"veLatLong",VELatLong,"VELatLong");VEValidator.ValidateNonNegati=
veInt(d,"zoomLevel");var =
a=3Db.Decode(c);this._QueueRequest(this.vemapcontrol.SetCenterAndZoom,a.L=
atitude,a.Longitude,d);return =
true};this.GetMouseWheelZoomToCenter=3Dfunction(){return =
a.vemapcontrol.GetMouseWheelZoomToCenter()};this.SetMouseWheelZoomToCente=
r=3Dfunction(b){return =
a.vemapcontrol.SetMouseWheelZoomToCenter(b)};this.IncludePointInView=3Dfu=
nction(c){VEValidator.ValidateObject(c,"veLatLong",VELatLong,"VELatLong")=
;var a=3Db.Decode(c);return =
this.vemapcontrol.IncludePointInViewport(a.Latitude,a.Longitude)};this.Ge=
tOffsetX=3Dfunction(){return =
a.vemapcontrol.GetOffsetX()};this.GetOffsetY=3Dfunction(){return =
a.vemapcontrol.GetOffsetY()};this.getSvgLayer=3Dfunction(){return =
a.vemapcontrol.getSvgLayer()};this.resizeSVG=3Dfunction(){return =
a.vemapcontrol.resizeSVG()};this.GetsvgDiv=3Dfunction(){return =
a.vemapcontrol.GetsvgDiv()};this.LatLongToPixel=3Dfunction(c,a,d){if(a!=3D=
null){VEValidator.ValidateNonNegativeInt(a,"zoomLevel");a=3DparseInt(a)}i=
f(d){VEValidator.ValidateObjectArray(c,"veLatLongArray",VELatLong,"VELatL=
ong =
array");VEValidator.ValidateFunction(d,"callback");this.LatLongToPixelAsy=
nc(c,a,d)}else{VEValidator.ValidateObject(c,"veLatLong",VELatLong,"VELatL=
ong");var e=3Db.Decode(c),f=3Dnew =
Msn.VE.LatLong(e.Latitude,e.Longitude);return =
this.vemapcontrol.LatLongToPixel(f,a)}};this.LatLongToPixelAsync=3Dfuncti=
on(d,f,g){var e=3D[];for(var a=3D0;a0)this.Find(this.lastwhatsear=
ch,null,1,this.m_vesearchmanager.vesearchcallback)};this._DoFind=3Dfuncti=
on(){try{this.lastwhatsearch=3D$ID(this.ID+"_vewhatinput").value;this.las=
twheresearch=3D$ID(this.ID+"_vewhereinput").value;this.Find(this.lastwhat=
search,this.lastwheresearch)}catch(a){this.ShowMessage(a.message)}};this.=
Dispose=3Dfunction(){try{g([new =
VEParameter("entry","1")]);a.SessionQueue=3Dnull;if(a.vemapcontrol!=3Dnul=
l){a.vemapcontrol.DetachEvent("onchangeview",a._ClearView);a.vemapcontrol=
.DetachEvent("onresize",a._ReArrangeControls);a.vemapcontrol.DetachEvent(=
"onendpan",a._RefreshLayers);a.vemapcontrol.DetachEvent("oninitmode",a._E=
ROHouseKeeping)}a.vemapcontrol.DetachEvent("onclick",VEPushpin.Hide);var =
c=3Da.controlzIndexes.length;for(var =
b=3D0;b0)b=3Df;else =
if(a.Credentials!=3Dnull&&a.Credentials.length>0)b=3Da.Credentials;else =
if(a.HasClientToken())b=3Da.ClientToken;else =
b=3DMsn.VE.API.Constants.defaultLogCredentials;return =
b};this.HasValidCredentials=3Dfunction(){return =
i}}VEMap._GetMapFromGUID=3Dfunction(a){if(Msn.VE.API.Globals.vemapinstanc=
es!=3Dnull&&Msn.VE.API.Globals.vemapinstances[a]=3D=3Dnull||Msn.VE.API.Gl=
obals.vemapinstances[a]=3D=3D"undefined"){throw new =
VEException("VEMap:_GetMapFromGUID","err_notinitialized",L_notinitialized=
_text);return}return =
Msn.VE.API.Globals.vemapinstances[a]};VEMap.prototype.InitializeMap=3Dfun=
ction(){_VERegisterNamespaces("Msn.VE");this.mapelement.innerHTML=3D"";th=
is.mapelement.style.overflow=3D"hidden";if(this.mapelement.className=3D=3D=
null||this.mapelement.className=3D=3D"undefined"||this.mapelement.classNa=
me=3D=3D""){if(this.mapelement.style=3D=3Dnull||this.mapelement.style.hei=
ght=3D=3Dnull||this.mapelement.style.height=3D=3D"undefined"||this.mapele=
ment.style.height=3D=3D"")this.mapelement.style.height=3DMsn.VE.API.Globa=
ls.vemapheight+"px";if(this.mapelement.style=3D=3Dnull||this.mapelement.s=
tyle.width=3D=3Dnull||this.mapelement.style.width=3D=3D"undefined"||this.=
mapelement.style.width=3D=3D"")this.mapelement.style.width=3DMsn.VE.API.G=
lobals.vemapwidth+"px"}var =
a=3D{};if(this.mapMode!=3Dnull&&this.mapMode!=3D"undefined")a.mapMode=3Dt=
his.mapMode;else =
a.mapMode=3DMsn.VE.API.Globals.vemapmode;a.mapGUID=3Dthis.GUID;a.clientTo=
ken=3Dthis.ClientToken;if(this.initialLatitude!=3Dnull&&this.initialLatit=
ude!=3D"undefined")a.latitude=3Dthis.initialLatitude;else =
a.latitude=3DMsn.VE.API.Globals.vemaplatitude;if(this.initialLongitude!=3D=
null&&this.initialLongitude!=3D"undefined")a.longitude=3Dthis.initialLong=
itude;else =
a.longitude=3DMsn.VE.API.Globals.vemaplongitude;if(this.initialZoomLevel!=
=3Dnull&&this.initialZoomLevel!=3D"undefined")a.zoomlevel=3Dthis.initialZ=
oomLevel;else =
a.zoomlevel=3DMsn.VE.API.Globals.vemapzoom;if(this.initialMapStyle!=3Dnul=
l&&this.initialMapStyle!=3D"undefined")a.mapstyle=3Dthis.initialMapStyle;=
else =
a.mapstyle=3DMsn.VE.API.Globals.vemapstyle;this.m_dashboardId=3Dthis.ID+"=
_dashboard";if(this.fixedMap!=3Dtrue){a.showDashboard=3DVE_CheckModuleSta=
tus(VE_ModuleName.APICONTROLS)=3D=3D"loaded"&&this._showDashboard;a.dashb=
oardSize=3Dthis.dashboardSize;a.dashboardVersion=3Dthis.dashboardVersion;=
a.dashboardX=3D5;a.dashboardY=3D5;a.dashboardId=3Dthis.m_dashboardId;a.sh=
owScaleBar=3Dthis._showScalebar}a.dashboardColor=3Dthis._mapOptions.Dashb=
oardColor;a.obliqueEnabled=3Dthis._mapOptions.EnableBirdseye;a.labelsDefa=
ult=3Dthis._mapOptions.EnableDashboardLabels;a.loadBaseTiles=3Dthis._mapO=
ptions.LoadBaseTiles;a.birdseyeOrientation=3Dthis._mapOptions.BirdseyeOri=
entation;a.useOriginTiles=3Dthis._mapOptions.CacheMode=3D=3DVECacheMode.A=
uto;a.useEnhancedRoadStyle=3Dthis._mapOptions.UseEnhancedRoadStyle;a.obli=
queUrl=3DMsn.VE.API.Constants.imageryurl;if(this.fixedMap=3D=3Dtrue)a.fix=
edView=3Dtrue;a.disableLogo=3Dfalse;a.enableClickLogo=3Dthis._mapOptions.=
EnableClickableLogo;a.enableSearchLogo=3Dthis._mapOptions.EnableSearchLog=
o;if(this.showMapModeSwitch=3D=3Dfalse)a.showMapModeSwitch=3Dfalse;else =
a.showMapModeSwitch=3Dtrue;if(this.tileBuffer!=3Dnull&&typeof =
this.tileBuffer!=3D"undefined")a.buffer=3Dthis.tileBuffer*Msn.VE.API.Glob=
als.vetilesize;this.vemapcontrol=3Dnew =
Msn.VE.MapControl(this.mapelement,a,this);var =
d=3Dthis.preInitCustomEvents.length;for(var c=3D0;c=3D0||a>=3D0){if(b<0)b=3Dthis.GetWidth();if(a<0)a=3Dthis.Get=
Height()}return =
this.vemapcontrol.Resize(b,a)};VEMap.prototype.SetMapMode=3Dfunction(a){V=
EValidator.ValidateMapMode(a,"mapMode");this.vemapcontrol.EnableMode(a,th=
is.GUID)};VEMap.prototype.GetMapMode=3Dfunction(){if(this.vemapcontrol.Is=
ModeEnabled(Msn.VE.MapActionMode.Mode3D))return VEMapMode.Mode3D;return =
VEMapMode.Mode2D};VEMap.prototype.SetMapStyle=3Dfunction(a){VEValidator.V=
alidateMapStyle(a,"mapStyle");if(this.GetMapMode()=3D=3DMsn.VE.MapActionM=
ode.Mode3D&&(a=3D=3DVEMapStyle.Birdseye||a=3D=3DVEMapStyle.BirdseyeHybrid=
))return =
false;this.vemapcontrol.SetMapStyle(a)};VEMap.prototype.SetScaleBarDistan=
ceUnit=3Dfunction(a){VEValidator.ValidateDistanceUnit(a,"distanceUnit");t=
his.vemapcontrol.SetScaleBarDistanceUnit(a=3D=3DVEDistanceUnit.Miles?Msn.=
VE.DistanceUnit.Miles:Msn.VE.DistanceUnit.Kilometers)};VEMap.prototype.Se=
tZoomLevel=3Dfunction(a){VEValidator.ValidateNonNegativeInt(a,"zoomLevel"=
);this._QueueRequest(this.vemapcontrol.SetZoom,parseInt(a));return =
true};VEMap.prototype.ZoomIn=3Dfunction(){this.vemapcontrol.ZoomIn()};VEM=
ap.prototype.ZoomOut=3Dfunction(){this._QueueRequest(this.vemapcontrol.Zo=
omOut)};VEMap.prototype.AttachEvent=3Dfunction(b,a){VEValidator.ValidateN=
onNull(b,"eventname");VEValidator.ValidateNonNull(a,"eventhandler");if(th=
is.vemapcontrol)this.vemapcontrol.AttachCustomEvent(b,a);else =
this.preInitCustomEvents.push(new =
VECustomEvent(b,a))};VEMap.prototype.DetachEvent=3Dfunction(b,a){VEValida=
tor.ValidateNonNull(b,"eventname");VEValidator.ValidateNonNull(a,"eventha=
ndler");this.vemapcontrol.DetachCustomEvent(b,a)};VEMap.prototype.FireEve=
nt=3Dfunction(a){try{var b=3Dwindow.event;return =
this.vemapcontrol.FireCustomEvent(a,b)}catch(c){return =
false}};VEMap.prototype.ShowMessage=3Dfunction(a){if(this.ShowMessageBox)=
this.m_vemessage.Show(a)};VEMap.prototype.GetHeight=3Dfunction(){var =
a=3D0;if(this.mapelement.style.height.search(/px/)>0)a=3DparseInt(this.ma=
pelement.style.height.replace("px",""));if(isNaN(a)||a=3D=3D0)a=3Dthis.ma=
pelement.offsetHeight;return =
a};VEMap.prototype.GetWidth=3Dfunction(){var =
a=3D0;if(this.mapelement.style.width.search(/px/)>0)a=3DparseInt(this.map=
element.style.width.replace("px",""));if(isNaN(a)||a=3D=3D0)a=3Dthis.mape=
lement.offsetWidth;return a};VEMap.prototype.GetLeft=3Dfunction(){return =
this.vemapcontrol.GetLeftPx()};VEMap.prototype.GetTop=3Dfunction(){return=
=
this.vemapcontrol.GetTopPx()};VEMap.prototype.SetFindResultsPanel=3Dfunct=
ion(a){if(a=3D=3Dnull||a=3D=3D"undefined")throw new =
VEException("VEMap:SetFindResultsPanel","err_invalidelement",L_invalidele=
ment_text);var b=3D$ID(a);if(b=3D=3Dnull||b=3D=3D"undefined")throw new =
VEException("VEMap:SetFindResultsPanel","err_invalidelement",L_invalidele=
ment_text);this.searchelement=3Da};VEMap.prototype._AddControlInner=3Dfun=
ction(a){a.style.position=3D"absolute";a.style.zIndex=3D201;var =
e=3Dthis.GetTop(),d=3Dthis.GetLeft();if(!a.style.top)a.style.top=3D"0px";=
if(!a.style.left)a.style.left=3D"0px";var =
c=3Da.style.top,b=3Da.style.left;if(isNaN(c))c=3Dc.toString().toLowerCase=
();if(isNaN(b))b=3Db.toString().toLowerCase();e+=3DparseInt(c.replace("px=
"));d+=3DparseInt(b.replace("px"));a.style.top=3De+"px";a.style.left=3Dd+=
"px";document.body.appendChild(a)};VEMap.prototype.AddControl=3Dfunction(=
a,b){if(a=3D=3Dnull||a=3D=3D"undefined")throw new =
VEException("VEMap:AddControl","err_invalidelement",L_invalidelement_text=
);if(this.controls=3D=3Dnull||this.controls=3D=3D"undefined")throw new =
VEException("VEMap:AddControl","err_notinitialized",L_notinitialized_text=
);this.controlzIndexes.push(b);this.controls.push(a);this.controltops.pus=
h(a.style.top);this.controllefts.push(a.style.left);this._AddControlInner=
(a,b)};VEMap.prototype.DeleteControl=3Dfunction(b){if(b=3D=3Dnull||b=3D=3D=
"undefined")throw new =
VEException("VEMap:DeleteControl","err_invalidelement",L_invalidelement_t=
ext);if(this.controls=3D=3Dnull||this.controls=3D=3D"undefined")throw =
new =
VEException("VEMap:DeleteControl","err_notinitialized",L_notinitialized_t=
ext);if(b.shimElement){b.shimElement.removeNode(true);b.shimElement=3Dnul=
l}document.body.removeChild(b);var c=3D-1;for(var =
a=3D0;a=3D0){for(var =
a=3Dc;a0){this.requestQueue.push(new =
RequestQueueItem(a,b,c,d));return}}a(b,c,d)};VEMap.prototype._ProcessQueu=
edRequest=3Dfunction(){if(this.requestQueue.length>0){var =
a=3Dthis.requestQueue.shift();a.Call(a.Param1,a.Param2,a.Param3)}};VEMap.=
prototype.ShowMapModeSwitch=3Dfunction(a){if(this.fixedMap!=3Dtrue){this.=
vemapcontrol.SetShowMapModeSwitch(a);this.showMapModeSwitch=3Da}};VEMap.p=
rototype.SetTileBuffer=3Dfunction(a){this.tileBuffer=3Da;if(this.vemapcon=
trol!=3Dnull&&this.vemapcontrol!=3D"undefined")this.vemapcontrol.SetTileP=
ixelBuffer(a*Msn.VE.API.Globals.vetilesize)};VEMap.prototype._EROHouseKee=
ping=3Dfunction(d){if(d=3D=3DMsn.VE.MapActionMode.Mode2D){ero.setGlitz(tr=
ue,false,true,false);ero.unhookEvent("aftershow",c);ero.unhookEvent("afte=
rhide",b);ero.unhookEvent("beforeshow",a)}else{ero.setGlitz(true,false,tr=
ue,false);ero.hookEvent("aftershow",c);ero.hookEvent("afterhide",b);ero.h=
ookEvent("beforeshow",a)}function =
c(){ShowShim(ero.getBody(),ero.getElement())}function =
b(){HideShim(ero.getBody())}function =
a(a){if(a.Entity=3D=3D-1)ero.setGlitz(false,null,false,true)}};VEMap.prot=
otype.AllTilesLoaded=3Dfunction(){if(this.vemapcontrol.IsModeEnabled(Msn.=
VE.MapActionMode.Mode3D)){var =
a=3Dthis.vemapcontrol.Get3DControl();return =
a?a.AllTilesLoaded:false}return =
true};VEMap.prototype.HasClientToken=3Dfunction(){return =
this.ClientToken!=3Dnull&&typeof =
this.ClientToken!=3D"undefined"&&this.ClientToken.length>0};VEMap.GetVers=
ion=3Dfunction(){return =
Msn.VE.API.Globals.vecurrentversion};VEMap.prototype.ShowDisambiguationDi=
alog=3Dfunction(a){VEValidator.ValidateBoolean(a,"value");this.m_vedirect=
ionsmanager.m_showDisambigousDialog=3Da};VEMap.prototype.SetAnimationEnab=
led=3Dfunction(a){VEValidator.ValidateBoolean(a,"value");if(this.vemapcon=
trol)this.vemapcontrol.SetAnimationEnabled(a)};function =
VEPrintOptions(a){VEValidator.ValidateBoolean(a,"enablePrinting");this.En=
ablePrinting=3Da}VEMap.prototype.SetPrintOptions=3Dfunction(a){VEValidato=
r.ValidateBoolean(a.EnablePrinting,"VEPrintOptions.EnablePrinting");if(!(=
Web.Browser.isSafari()||Msn.VE.Environment.IsIE80())){this._mapPrintOptio=
ns=3Da;if(this.vemapcontrol)this.vemapcontrol.SetPrintable(a.EnablePrinti=
ng)}};function =
VEAPIRequestInvoke(f,a,e,b){if(b&&b.SessionQueue)b.SessionQueue.push({ser=
vice:f,parameters:a,fnCallback:e});else{var d=3Dnew =
VENetwork,c=3DVENetwork.GetExecutionID();d.UseCloseDep=3Dtrue;d.ServiceUr=
l=3Df;if(b)a.push(new =
VEParameter(Msn.VE.API.Constants.clienttoken,b._GetCredentials()));a.push=
(new =
VEParameter(Msn.VE.API.Constants.culture,'"'+Msn.VE.API.Globals.locale+'"=
'));a.push(new =
VEParameter(Msn.VE.API.Constants.format,Msn.VE.API.Constants.json));a.pus=
h(new =
VEParameter(Msn.VE.API.Constants.requestid,c));d.BeginInvoke("_f"+c,a,e,n=
ull,c)}}VEMap.prototype.GetDistance=3Dfunction(a,b){VEValidator.ValidateO=
bject(a,"veLatLong1",VELatLong,"VELatLong");VEValidator.ValidateObject(b,=
"veLatLong2",VELatLong,"VELatLong");var =
h=3D6378137,c=3DMath.PI/180,d=3Da.Latitude*c,e=3Db.Latitude*c,f=3DMath.si=
n((d-e)/2),g=3DMath.sin((a.Longitude-b.Longitude)*c/2),i=3DMath.asin(Math=
.sqrt(f*f+Math.cos(d)*Math.cos(e)*g*g));return =
h*2*i/1000};VEMap.prototype.InitNavControl=3Dfunction(){};VEDashboardSize=
=3DMsn.VE.DashboardSize;VEMap.prototype.SetDashboardSize=3Dfunction(a){if=
(typeof =
a!=3D"undefined"&&a!=3Dnull){VEValidator.ValidateDashboardSize(a,"VEDashb=
oardSize");this.dashboardSize=3Da;this.dashboardVersion=3D6;if(this.dashb=
oardSize=3D=3DVEDashboardSize.Small||this.dashboardSize=3D=3DVEDashboardS=
ize.Tiny)this.dashboardVersion=3D5}};VEMap.prototype.SetDashboardVersion=3D=
function(a){this.dashboardVersion=3Da};VEMap.prototype.ShowDashboard=3Dfu=
nction(){if(this.vemapcontrol){var =
a=3Dthis.vemapcontrol.GetDashboard();if(!a)this.vemapcontrol.CreateDashbo=
ard(5,5,this.dashboardSize,this.m_dashboardId,this.showMapModeSwitch,this=
._mapOptions.EnableBirdseye,this._mapOptions.EnableDashboardLabels,this.d=
ashboardVersion);else =
a.Show();if($MVEM.IsEnabled(MapControl.Features.MapStyle.View3D))this.Sho=
w3DNavigationControl()}this._showDashboard=3Dtrue};VEMap.prototype.HideDa=
shboard=3Dfunction(){if(this.vemapcontrol){var =
a=3Dthis.vemapcontrol.GetDashboard();if(a)a.Hide();if($MVEM.IsEnabled(Map=
Control.Features.MapStyle.View3D))this.Hide3DNavigationControl()}this._sh=
owDashboard=3Dfalse};VEMap.prototype.ShowScalebar=3Dfunction(){if(this.ve=
mapcontrol)this.vemapcontrol.SetScaleBarVisibility(true);this._showScaleb=
ar=3Dtrue};VEMap.prototype.HideScalebar=3Dfunction(){if(this.vemapcontrol=
)this.vemapcontrol.SetScaleBarVisibility(false);this._showScalebar=3Dfals=
e};VEMap.prototype.ShowMiniMap=3Dfunction(a,b,d){if(a!=3Dnull&&typeof =
a!=3D"undefined"&&b!=3Dnull&&typeof =
b!=3D"undefined"){VEValidator.ValidateInt(a,"x");VEValidator.ValidateInt(=
b,"y")}if(d)VEValidator.ValidateMiniMapSize(d,"size");var =
c=3Dthis.vemapcontrol.GetMinimap();if(c){if(a!=3Dnull&&typeof =
a!=3D"undefined"&&b!=3Dnull&&typeof =
b!=3D"undefined")c.SetPosition(parseInt(a),parseInt(b));c.Show()}else =
c=3Dthis.vemapcontrol.CreateMinimap(a,b,null,true,false,null,this.ClientT=
oken);if(d)c.SetSize(d)};VEMap.prototype.HideMiniMap=3Dfunction(){var =
a=3Dthis.vemapcontrol.GetMinimap();if(a)a.Hide()};VE_SetModuleStatus(VE_M=
oduleName.APICONTROLS,"loaded");VEMap.prototype.InitBirdseye=3Dfunction()=
{};VEMap.prototype.GetBirdseyeScene=3Dfunction(){if(this.GetMapMode()=3D=3D=
Msn.VE.MapActionMode.Mode3D)return null;var =
a=3Dnull,b=3Dthis.vemapcontrol.GetObliqueScene();if(b!=3Dnull&&b!=3D"unde=
fined"){a=3Dnew =
VEBirdseyeScene(b);a.SetClientToken(this.ClientToken);a.SetGUID(this.GUID=
)}return =
a};VEMap.prototype.IsBirdseyeAvailable=3Dfunction(){if(this.GetMapMode()=3D=
=3DMsn.VE.MapActionMode.Mode3D)return false;return =
this.vemapcontrol.IsObliqueAvailable()};VEMap.prototype.SetBirdseyeOrient=
ation=3Dfunction(a){if(this.GetMapMode()=3D=3DMsn.VE.MapActionMode.Mode3D=
)return false;VEValidator.ValidateOrientation(a,"orientation");return =
this.vemapcontrol.SetObliqueOrientation(a)};VEMap.prototype.SetBirdseyeSc=
ene=3Dfunction(a,b,c,d){if(this.GetMapMode()=3D=3DMsn.VE.MapActionMode.Mo=
de3D)return false;if(a=3D=3Dnull||a instanceof VELatLong)return =
this.SetBirdseye(a,b,c,d);else return =
this.vemapcontrol.SetObliqueScene(a)};VEMap.prototype.SetBirdseye=3Dfunct=
ion(b,a,c,d){if(this.GetMapMode()=3D=3DMsn.VE.MapActionMode.Mode3D)return=
=
false;if(b)VEValidator.ValidateObject(b,"veLatLong",VELatLong,"VELatLong"=
);else =
b=3Dthis.GetCenter();if(a)VEValidator.ValidateOrientation(a,"orientation"=
);else =
a=3DVEOrientation.North;if(c)VEValidator.ValidateNonNegativeInt(c,"zoomLe=
vel");else c=3D1;if(d)VEValidator.ValidateFunction(d,"callback");else =
d=3Dnull;var e=3D(new _xy1).Decode(b);return =
this.vemapcontrol.SetObliqueLocation(new =
Msn.VE.LatLong(e.Latitude,e.Longitude),a,c,d)};VEMap.prototype.SetShapesA=
ccuracy=3Dfunction(a){if(a!=3DVEShapeAccuracy.None&&a!=3DVEShapeAccuracy.=
Pushpin&&a!=3DVEShapeAccuracy.All)throw new =
VEException("VEMap:SetShapesAccuracy","err_invalidargument",L_invalidargu=
ment_text.replace("%1","value").replace("%2","VEShapeAccuracy"));this.m_v=
egraphicsmanager._useOffset=3Da};VEMap.prototype.SetOverMaxPointsShapeReq=
uest=3Dfunction(a){if(a!=3DVEFailedShapeRequest.DoNotDraw&&a!=3DVEFailedS=
hapeRequest.DrawInaccurately)throw new =
VEException("VEMap:SetOverMaxPointsShapeRequest","err_invalidargument",L_=
invalidargument_text.replace("%1","value").replace("%2","VEFailedShapeReq=
uest"));this.m_vegraphicsmanager._drawOverMaxShapes=3Da};VEMap.prototype.=
SetFailedShapeRequest=3Dfunction(a){if(a!=3DVEFailedShapeRequest.DoNotDra=
w&&a!=3DVEFailedShapeRequest.DrawInaccurately&&a!=3DVEFailedShapeRequest.=
QueueRequest)throw new =
VEException("VEMap:SetFailedShapeRequest","err_invalidargument",L_invalid=
argument_text.replace("%1","value").replace("%2","VEFailedShapeRequest"))=
;this.m_vegraphicsmanager._failRequest=3Da};VEMap.prototype.SetShapesAccu=
racyRequestLimit=3Dfunction(a){VEValidator.ValidateNonNegativeInt(a,"valu=
e");Msn.VE.API.Constants.maxasynlatlongs=3Da};VEShapeAccuracy=3Dnew =
function(){this.None=3D0;this.Pushpin=3D1;this.All=3D2};VEFailedShapeRequ=
est=3Dnew =
function(){this.DoNotDraw=3D0;this.DrawInaccurately=3D1;this.QueueRequest=
=3D2};VE_SetModuleStatus(VE_ModuleName.APIBIRDSEYE,"loaded");VEMap.protot=
ype.SetDisplayThreshold=3Dfunction(a){var =
a=3DparseInt(a);if(isNaN(a))this.m_vegraphicsmanager.SetDisplayThreshold(=
a)};VEMap.prototype.EnableShapeDisplayThreshold=3Dfunction(a){VEValidator=
.ValidateBoolean(a,"value");VE_LatLongThreshold.UseThreshold=3Da};VEMap.p=
rototype.ImportShapeLayerData=3Dfunction(a,c,b){VEValidator.ValidateObjec=
t(a,"_spec",VEShapeSourceSpecification,"VEShapeSourceSpecification");if(t=
ypeof a.LayerSource!=3D"string"||typeof a.Type!=3D"string")throw new =
VEException("VEMap:AddLayer","err_invalidlayertype",L_invalidlayertype_te=
xt);this.m_velayermanager.ImportLayer(a,c,b)};VEMap.prototype.Import3DMod=
el=3Dfunction(a,c,d,b,e){VEValidator.ValidateObject(a,"modelShapeSource",=
VEModelSourceSpecification,"VEModelSourceSpecification");if(typeof =
a.ModelSource!=3D"string"||typeof a.Format!=3D"string")throw new =
VEException("VEMap:Import3DModel","err_invalidlayertype",L_invalidlayerty=
pe_text);return =
this.m_velayermanager.ImportModelLayer(a,c,d,b,e)};VEMap.prototype.SetInf=
oBoxStyles=3Dfunction(a){window.ero.setClasses(a)};VEMap.prototype.ClearI=
nfoBoxStyles=3Dfunction(){window.ero.setClasses(_VECustomInfoBox)};VEMap.=
prototype.SetDefaultInfoBoxStyles=3Dfunction(){window.ero.setClasses(ERO.=
DefaultClasses)};VEMap.prototype.ShowInfoBox=3Dfunction(c,b,d){var =
l=3Dtypeof c=3D=3D"object"&&c instanceof VEShape;if(!l)return;var =
k=3Dc._shplayer=3D=3Dnull||c._shplayer._mapGuid=3D=3Dnull;if(k)return;var=
h=3Dnull,e=3Dnull,g=3Dnull;if(typeof b=3D=3D"object")if(b instanceof =
VELatLong){var i=3Dnew =
_xy1;b=3Di.Decode(b);e=3Db.Latitude;g=3Db.Longitude}else if(b instanceof =
VEPixel)if(!isNaN(b.x)&&!isNaN(b.y))h=3Db;if(e=3D=3Dnull&&h=3D=3Dnull){va=
r =
f=3Dc.Primitives[0];if(f.type=3D=3DVEShapeType.Pushpin){e=3Df.points[1];g=
=3Df.points[0]}else{e=3Df.labelPosY;g=3Df.labelPosX}}var =
m=3DMsn.Drawing.GetLabelUID(c.Primitives[0].iid),a=3Dnull;if(e!=3Dnull){a=
=3Dthis.vemapcontrol.LatLongToPixel(new =
Msn.VE.LatLong(e,g),this.vemapcontrol.GetZoomLevel());if(a=3D=3Dnull)a=3D=
new VEPixel(0,0)}else a=3Dh;var j=3Dtypeof d=3D=3D"object"&&d instanceof =
VEPixel;if(j)if(!isNaN(d.x)&&!isNaN(d.y)){a.x+=3Dd.x;a.y+=3Dd.y}if(a.x<0|=
|a.x>this.GetWidth()||a.y<0||a.y>this.GetHeight())if(b instanceof =
VELatLong)throw new =
VEException("VEMap:ShowInfoBox","L_invalidargument_text",L_invalidargumen=
t_text.replace("%1","veAnchor").replace("%2","VELatLong"));else if(b =
instanceof VEPixel)throw new =
VEException("VEMap:ShowInfoBox","L_invalidargument_text",L_invalidargumen=
t_text.replace("%1","veAnchor").replace("%2","VEPixel"));else =
return;a.x+=3Dthis.GetLeft();a.y+=3Dthis.GetTop();VEShowVEShapeERO(m,this=
.GUID,null,c,a.x,a.y)};VEMap.prototype.HideInfoBox=3Dfunction(){VEHideVES=
hapeERO(true)};VEMap.prototype.CloneShape=3Dfunction(a){VEValidator.Valid=
ateObject(a,"_veshape",VEShape,"VEShape");var =
c=3Dthis.m_velayermanager.VE_LayerManager,b=3Dc.CloneAnnotation(a);return=
b};VEMap.prototype.AddShape=3Dfunction(b){var =
a=3Dthis.m_velayermanager.VE_LayerManager.GetCollectionByIndex(0);a._mapG=
uid=3Dthis.GUID;a.AddShape(b)};VEMap.prototype.DeleteShape=3Dfunction(a){=
VEValidator.ValidateObject(a,"_veshape",VEShape,"VEShape");if(a._shplayer=
)a._shplayer.DeleteShape(a)};VEMap.prototype.GetShapeByID=3Dfunction(a){i=
f(typeof a=3D=3D"undefined"||a=3D=3Dnull||a=3D=3D"")return null;var =
b=3Dthis.m_velayermanager.VE_LayerManager,c=3Db.GetAnnotationById(a);retu=
rn =
c};VEMap.prototype.AddShapeLayer=3Dfunction(a,c){VEValidator.ValidateObje=
ct(a,"shpLyr",VEShapeLayer,"VEShapeLayer");if(a._mapGuid!=3Dnull)throw =
new =
VEException("VEMap:AddLayer","err_invalidlayertype",L_invalidlayertype_te=
xt);a._mapGuid=3Dthis.GUID;var =
d=3Dthis.m_velayermanager.VE_LayerManager;d.AddCollection(null,a);if(!a.G=
etVisibility())return;if(typeof c!=3D"undefined"&&c=3D=3Dtrue){var =
b=3Da.GetBoundingBox(),e=3D[new Msn.VE.LatLong(b.y1,b.x1),new =
Msn.VE.LatLong(b.y2,b.x2)];this.vemapcontrol.SetBestMapView(e)}this.m_veg=
raphicsmanager.DrawLayer(a)};VEMap.prototype.DeleteShapeLayer=3Dfunction(=
a){VEValidator.ValidateObject(a,"shpLyr",VEShapeLayer,"VEShapeLayer");try=
{a._clusteringAlgorithm=3Dnull;a.DeleteAllShapes();a.DeleteClusterLayer()=
;this.m_velayermanager.VE_LayerManager.RemoveCollection(a)}catch(b){}};VE=
Map.prototype.DeleteAllShapeLayers=3Dfunction(){try{this.DeleteAllShapes(=
);var d=3D[],c=3Dthis.GetShapeLayerCount();for(var a=3D0;a0){var =
d=3Dc.GetBoundingBox(),h=3D[new Msn.VE.LatLong(d.y1,d.x1),new =
Msn.VE.LatLong(d.y2,d.x2)];a.m_vemapcontrol.SetBestMapView(h)}a.m_vemap.m=
_vegraphicsmanager.DrawLayer(c)}if(typeof =
c.Spec.FnCallback=3D=3D"function")c.Spec.FnCallback(c)};this.RetrieveImpo=
rtedCallback=3Dfunction(a,b){var =
c=3DparseInt(a);if(isNaN(c))this.RetrieveCollectionCallback(a,b)};this.Re=
trieveCollectionCallback=3Dfunction(f,g){var =
h=3Dd(f),b=3Da.VE_LayerManager.RetrieveCollectionById(g);if(!b)return;b.S=
pec.Success=3Dtrue;var e=3Dnew =
VE_MapRequestBean(MC_ACTION_RETRIEVE_COLLECTION);VE_MapCmlReader.ExtractC=
ollections(e,h,this.VE_LayerManager);if(b.GetVisibility()){if(b.Spec.Sets=
BestMapView&&b.GetShapeCount()>0){var c=3Db.GetBoundingBox(),i=3D[new =
Msn.VE.LatLong(c.y1,c.x1),new =
Msn.VE.LatLong(c.y2,c.x2)];a.m_vemapcontrol.SetBestMapView(i)}a.m_vemap.m=
_vegraphicsmanager.DrawLayer(b)}if(b.Spec.FnCallback!=3Dnull&&b.Spec.FnCa=
llback!=3D"undefined")b.Spec.FnCallback(b)};this.RetrieveAllAnnotationsCa=
llback=3Dfunction(){}}VELayerManager.prototype.Dispose=3Dfunction(){this.=
m_vemap.m_vegraphicsmanager.ClearAll();this.VE_LayerManager.DeleteAll();t=
his.m_vemapcontrol=3Dnull;this.m_vemap=3Dnull;this.m_veLatLongDecoder=3Dn=
ull;this.m_spec=3Dnull;this.VE_LayerManager.Dispose();this.VE_LayerManage=
r=3Dnull};VELayerManager.prototype.ShowAllLayers=3Dfunction(){this.VE_Lay=
erManager.SetVisibility(true);var =
b=3D[],e=3Dthis.VE_LayerManager.GetCollectionCount();for(var =
c=3D0;c0){=
var a=3Dd.GetBoundingBox();if(a!=3Dnull){b.push(new =
Msn.VE.LatLong(a.y1,a.x1));b.push(new =
Msn.VE.LatLong(a.y2,a.x2))}}}if(b.length>=3D2)this.m_vemapcontrol.SetBest=
MapView(b);this.m_vemap.m_vegraphicsmanager.DrawAll()};function =
_VEAPIOnImportLayerDataCallback(h,a){try{if(typeof =
a=3D=3D"string"&&a.length>2){var =
g=3Da.length,c=3Da.indexOf("_");if(c<0||c>g-2)return;var =
f=3Da.substring(0,c),e=3Da.substring(c+1),d=3DVEMap._GetMapFromGUID(f)._l=
m,b=3Dd.VE_LayerManager.RetrieveCollectionById(e);if(!b.Spec.Success)if(t=
ypeof =
b.Spec.FnCallback=3D=3D"function")b.Spec.FnCallback(b,L_loadxml_text);els=
e d.m_vemap.ShowMessage(L_loadxml_text)}}catch(i){throw =
i;return}}function =
VECreateVEShapeERO(b,d){if(b._IconContent=3D=3Dnull){var =
a=3D[],f=3Db.GetPrimitive(0),e=3Df.iid;if(f.type!=3DVEShapeType.Pushpin)e=
=3DMsn.Drawing.GetLabelUID(e);var =
c=3Db._customIcon;if(c=3D=3Dnull)c=3Db.IconUrl;if(c.indexOf("<")<0)c=3D'<=
img src=3D"'+c+'" />';a.push(" =
");a.push(c);a.push("
");b._IconContent=3Da.join("")}return =
b._IconContent}function VEDragVEShapeDown(f,e){var =
a=3DGetVEMapInstance(e);if(a=3D=3Dnull)return;if(a.m_velayermanager=3D=3D=
null)return;var =
b=3Da.m_velayermanager.VE_LayerManager;if(!b)return;annotation=3Db.GetAnn=
otationById(f);if(!annotation)return;if(annotation.Draggable){if(typeof =
annotation.onstartdrag=3D=3D"function")annotation.onstartdrag(new =
ShapeDragEventArgs(annotation,annotation.GetIconAnchor()));function =
c(c){var b=3Da.PixelToLatLong(new VEPixel(c.mapX,c.mapY));if(typeof =
annotation.ondrag!=3D"function"||!(annotation.ondrag(new =
ShapeDragEventArgs(annotation,b))=3D=3Dtrue))annotation.SetIconAnchor(b);=
return true}function =
d(){a.DetachEvent("onmousemove",c);a.DetachEvent("onmouseup",d);if(typeof=
annotation.onenddrag=3D=3D"function")annotation.onenddrag(new =
ShapeDragEventArgs(annotation,annotation.GetIconAnchor()))}a.AttachEvent(=
"onmousemove",c);a.AttachEvent("onmouseup",d)}}function =
VEShowVEShapeERO(m,q,h,p,f,g){var =
j=3DGetVEMapInstance(q);if(j=3D=3Dnull)return;var =
a=3Dnull,s=3Dnull,r=3Dnull;if(typeof =
p=3D=3D"object")a=3Dp;else{if(j.m_velayermanager=3D=3Dnull)return;var =
k=3Dnull;k=3Dj.m_velayermanager.VE_LayerManager;if(!k)return;a=3Dk.GetAnn=
otationById(m);if(!a)return}if(!a._eroContent){var =
l=3Dfalse,e=3Da.Title,d=3Da.Notes,n=3DIOSec.GetValidatedUrl(a.Url),i=3DIO=
Sec.GetValidatedUrl(a.PhotoUrl);r=3Da.Latitude;s=3Da.Longitude;var =
c=3D"";if(typeof i=3D=3D"string"&&i.length>1){c=3Dc.concat('");c=3Dc.concat(' ')}e=3Dc.concat(e);if(typeof =
n=3D=3D"string"&&n.length>0)d=3Dd.concat("
');var =
b=3D[];b.push("");if(e.length>0){b.push('
");=
l=3Dtrue}if(d.length>0){b.push('');b.push(unescape(d));b.push("
");l=
=3Dtrue}if(!document.all&&(e.length=3D=3D0||d.length=3D=3D0))b.push(" ");b.push("");if(l)a._eroContent=3Db.join("");else =
a._eroContent=3D""}eroContent=3Da._eroContent;if(eroContent.length>0){win=
dow.ero.setContent(eroContent);if(j.GetMapMode()=3D=3DMsn.VE.MapActionMod=
e.Mode2D)if(typeof f=3D=3D"number"&&typeof g=3D=3D"number"){var h=3Dnew =
Msn.VE.Geometry.Rectangle(new Msn.VE.Geometry.Point(f,g),new =
Msn.VE.Geometry.Point(f,g));window.ero.dockToRect(h,null,-1)}else{var =
o=3D$ID(m);if(o!=3Dnull&&o!=3D"undefined"){window.ero.setBoundingArea(nul=
l);window.ero.getBoundingArea().move(Gimme.Screen.getScrollPosition());wi=
ndow.ero.dockToElement(o)}}else{if(typeof =
h=3D=3D"undefined"||h=3D=3Dnull)h=3Dnew Msn.VE.Geometry.Rectangle(new =
Msn.VE.Geometry.Point(f,g),new =
Msn.VE.Geometry.Point(f,g));ero.setGlitz(false,false,false,true);window.e=
ro.dockToRect(h,null,-1)}}}function =
VEHideVEShapeERO(a){if(window.ero!=3Dnull){if(a=3D=3D"undefined"||a=3D=3D=
null)a=3Dfalse;window.ero.hide(a)}}var =
_VECustomInfoBox=3D{ContainerNoBeak:"customInfoBox-noBeak",ContainerRight=
Beak:"customInfoBox-with-rightBeak",ContainerLeftBeak:"customInfoBox-with=
-leftBeak",Beak:"customInfoBox-beak",Shadow:"customInfoBox-shadow",Body:"=
customInfoBox-body",Actions:"customInfoBox-actions",ActionsBackground:"cu=
stomInfoBox-actionsBackground",PreviewArea:"customInfoBox-previewArea",Pa=
ddingHack:"customInfoBox-paddingHack",ProgressAnimation:"customInfoBox-pr=
ogressAnimation"};function VE_GetGeoCommunityUrl(a){if(a)return =
MC_GEOCOMMUNITY_SERVICEURL;else return "GeoCommunity.asjx"}function =
VE_IsLargeData(a){if(a.length>MC_GEOCOMMUNITY_SIZELIMIT-2048)return =
true;return false}var =
MC_GEOCOMMUNITY_SIZELIMIT=3D204800,MC_GEOCOMMUNITY_SERVICEURL=3D"GeoCommu=
nity.asjx",MC_VESHAPE_EMPTY=3D-1777,MC_VIEW_BUFFER=3D1,MC_STYLE_PINZIndex=
=3D300,MC_IID_NAMESPACE=3D"msftve",MC_IID_CON_TOKEN=3D"_",MC_GEO_TYPE_MUL=
TIGEOMETRY=3D"Multigeometry",MC_GEO_TYPE_FREEHAND=3D"Freehand",MC_STYLE_F=
ILL_COLOR=3D"fillcolor",MC_STYLE_STROKE_COLOR=3D"strokecolor",MC_STYLE_ST=
ROKE_WEIGHT=3D"strokeweight",MC_STYLE_STROKE_STYLE=3D"stroke-style",MC_ST=
YLE_STROKE_DASH=3D"stroke-dashstyle",MC_STYLE_FONT_COLOR=3D"font_color",M=
C_STYLE_STROKE_ARROW=3D"stroke_arrow",MC_STYLE_FONT_ITALIC=3D"font_italic=
",MC_STYLE_FONT_UNDERSCORE=3D"font_underscore",MC_STYLE_FONT_BOLD=3D"font=
_bold",STATE_DEFAULT=3D0,STATE_DRAWING=3D1,STATE_EDITING=3D2,MC_DRAW_DEFA=
ULT=3D100,MC_DRAW_POINT=3D101,MC_DRAW_POLYLINE=3D102,MC_DRAW_POLYGON=3D10=
3,MC_DRAW_RECT=3D104,MC_DRAW_CIRCLE=3D105,MC_DRAW_TEXT=3D1065,MC_DRAW_MOD=
EL=3D1066,MC_EDIT_ADDNODE=3D107,MC_EDIT_DELNODE=3D108,MC_EDIT_MOVENODE=3D=
108,MC_EDIT_SELNODE=3D109,MC_EDIT_SELEDGE=3D110,MC_EDIT_CONTINUELINE=3D11=
1,MC_LABEL_VIEWER=3D"viewer",MC_PROPERTY_DEFAULT=3D0,MC_PROPERTY_HIGHWAY=3D=
1,MC_PROPERTY_ROAD=3D2,MC_PROPERTY_LAKE=3D3,MC_PROPERTY_PARK=3D4,MC_PROPE=
RTY_PARKINGLOT=3D5,MC_PROPERTY_PUSHPIN=3D6,MC_PROPERTY_TEMPDRAW=3D7,MC_PR=
OPERTY_TEMPEDIT=3D8,MC_PROPERTY_EDITNODE=3D10,MC_PROPERTY_EDITSELNODE=3D1=
1,MC_PROPERTY_GHOSTNODE=3D12,MC_NUMBERFORMAT_NUMBEROFDIGITSAFTERDOT=3D2,M=
C_NUMBERFORMAT_ZEROSTRING=3D"0",MC_DECIMALROUNDOFF_THRESHOLD=3D100,MC_CML=
_ENTITY_NAME=3D"Entity",MC_CML_ENTITY_PRIMITIVES=3D"Primitives",MC_CML_EN=
TITY_PRIMITIVE=3D"Primitive",MC_CML_ENTITY_COORDINATES=3D"coordinates",MC=
_CML_DESCRIPTION=3D"Description",MC_CML_TAGS=3D"Tags",MC_CML_VIEWPORT=3D"=
ViewPort",MC_CML_TOUR=3D"Tour",MC_CML_PITCH=3D"pitch",MC_CML_HEADING=3D"h=
eading",MC_CML_MAPSTYLE=3D"mapstyle",MC_CML_SCENEID=3D"sceneId",MC_CML_AC=
TIONS=3D"Actions",MC_CML_ACTION=3D"Action",MC_CML_MODELREP=3D"ModelRep",M=
C_CML_TRANSFORM=3D"transform",MC_CML_MODELREFID=3D"modelRefId",MC_CML_ENT=
ITY_TYPE_PUSHPIN=3D"pushpin",MC_CML_PROPERTYS=3D"Properties",MC_CML_PROPE=
RTY=3D"Property",MC_CML_MINBOUNDS=3D"minbounds",MC_CML_MAXBOUNDS=3D"maxbo=
unds",MC_CML_R2EOFFSET=3D"r2eoffset",MC_CML_PHOTOS=3D"Photos",MC_CML_PHOT=
O=3D"Photo",MC_CML_PREAUTHURL=3D"PreAuthUrl",MC_CML_PUBLISHER=3D"publishe=
r",MC_CML_PROPERTY_ROUTABLELATITUDE=3D"RoutableLatitude",MC_CML_PROPERTY_=
ROUTABLELONGITUDE=3D"RoutableLongitude",MC_CML_PROPERTY_ICONURL=3D"iconur=
l",MC_CML_PROPERTY_KEYWORDS=3D"keywords",MC_CML_PROPERTY_URL=3D"url",MC_C=
ML_PROPERTY_PHOTOURL=3D"photourl",MC_CML_PROPERTY_USERDATE=3D"userdate",M=
C_CML_PROPERTY_DISPLAYORDER=3D"displayorder",MC_CML_PROPERTY_BUSINESSLIST=
INGID=3D"businesslistingid",MC_CML_PROPERTY_MAPSERVICETYPE=3D"mapserviceT=
ype",MC_CML_PROPERTY_MAPSERVICESOURCE=3D"mapserviceSource",MC_CML_PROPERT=
Y_MAPSERVICEOPACITY=3D"mapserviceOpacity",MC_CML_PROPERTY_MAPSERVICEMETAD=
ATA=3D"mapserviceMetadata",MC_CML_PROPERTY_MAPSERVICESTATUS=3D"mapservice=
Status",MC_CML_PROPERTY_SOURCEURL=3D"sourceurl",MC_CML_PROPERTY_SOURCETYP=
E=3D"sourcetype",MC_CML_TILEID=3D"tileId",MC_CML_PROPERTY_TYPE=3D"type",M=
C_CML_LASTMODIFIED=3D"DateModified",MC_CML_DATECREATED=3D"DateCreated",MC=
_CML_ROOT=3D"CML",MC_CML_SEPERT=3D"/",MC_CML_TOKEN=3D",",MC_CML_VERSION=3D=
"0.1",MC_CML_ID=3D"id",MC_CML_IID=3D"clientid",MC_CML_NAME=3D"name",MC_CM=
L_CULTURE=3D"culture",MC_CML_SHARELEVEL=3D"Sharelevel",MC_CML_STATE=3D"St=
ate",MC_CML_STATE_PUBLIC_CAN_VIEW=3D1,MC_CML_STATE_OWNER_CAN_VIEW=3D2,MC_=
CML_STATE_OWNER_CAN_UPDATE=3D4,MC_CML_STATE_OWNER_IS_VIEWING=3D8,MC_CML_T=
YPE=3D"Type",MC_CML_Add=3D"Add",MC_CML_EXTRUSION=3D"Extrusion",MC_CML_VIS=
IBILITY=3D"visibility",MC_CML_DISPLAYORDER=3D"displayorder",MC_CML_DEFAUL=
TSTYLE=3D"DefaultStyle",MC_CML_LABELSTYLE=3D"LabelStyle",MC_CML_POSITION=3D=
"Position",MC_CML_STYLE=3D"Style",MC_CML_FILLSYMBOL=3D"Fill",MC_CML_SHAPE=
SYMBOL=3D"Shape",MC_CML_STYLESYMBOL=3D"Style",MC_CML_STROKESYMBOL=3D"Stro=
ke",MC_CML_SHADOWSYMBOL=3D"Shadow",MC_CML_IMAGEDATASYMBOL=3D"Imagedata",M=
C_CML_ZOOMLEVEL=3D"zoomlevel",MC_CML_ONSCRATCHPAD=3D"onScratchpad",MC_CML=
_TOKEN1=3D",",MC_CML_TOKEN2=3D":",MC_CML_TOKEN3=3D";",MC_CML_CONTENTS=3D"=
Contents",MC_CML_CONTENT=3D"Content",MC_CML_SIMPLEHTML=3D"SimpleHTML",MC_=
CML_GLINK=3D"glink",MC_CML_COLLECTIONS=3D"Collections",MC_CML_COLLECTION=3D=
"Collection",MC_CML_ENTITY=3D"Entity",MC_CML_MULTIGEOMETRY=3D"MultiGeomet=
ry",MC_CML_POLYGON=3D"Polygon",MC_CML_OUTLS=3D"outerBoundaryIs",MC_CML_IT=
LS=3D"interBoundaryIs",MC_CML_LINEARSTRING=3D"LinearRing",MC_CML_POLYLINE=
=3D"LineString",MC_CML_LENGTH=3D"length",MC_CML_AREA=3D"area",MC_CML_HREF=
=3D"href",MC_CML_POINT=3D"Point",MC_CML_COORDS=3D"coordinates",MC_CML_ALT=
ITUDE=3D"altitudes",MC_CML_ALTITUDEMODE=3D"altitudemode",MC_CML_ALTGROUND=
=3D"Ground",MC_CML_ALTDATUM=3D"Datum",MC_CML_EXTRUDE=3D"extruded",MC_CML_=
KEY=3D"key",MC_CML_VALUE=3D"value",MC_CML_CLIENTDATA=3D"ClientData",MC_CM=
L_EXCOL_PREFIX=3D"E*",MC_CML_IMPORT_DATAURL=3D"mapurl",MC_CML_IMPORT_SAVE=
STATUS=3D"saveimport",MC_CML_IMPORT_COLNAME=3D"colname",MC_CML_IMPORT_REP=
ORT=3D"importreport",MC_CML_IMPORT_FILEUPLOAD=3D"fileupload",MC_CML_CID_L=
IST=3D"cids",MC_ACTION_IMPORT_COLLECTION=3D"ImportCol",MC_ACTION_IMPORT_E=
NTITY=3D"ImportEntity",MC_ACTION_CLONE_ENTITY=3D"CloneEntity",MC_ACTION_C=
REATE_COLLECTION=3D"CreateCollection",MC_ACTION_UPDATE_COLLECTION=3D"Upda=
teCollection",MC_ACTION_DELETE_COLLECTION=3D"DeleteCollection",MC_ACTION_=
CLEAR_COLLECTION=3D"ClearCollection",MC_ACTION_RETRIEVE_ALLCOLLECTIONS=3D=
"RetrieveAllCollections",MC_ACTION_RETRIEVE_ALLCOLLECTIONS_METADATA=3D"Re=
trieveAllCollectionsMetadata",MC_ACTION_RETRIEVE_COLLECTION=3D"RetrieveCo=
llection",MC_ACTION_RETRIEVE_SHAREDCOLLECTION=3D"RetrieveSharedCollection=
",MC_ACTION_DELETE_ENTITY=3D"DeleteEntity",MC_ACTION_ADD_ENTITY=3D"AddEnt=
ity",MC_FCCALLBACK=3D"fncallback",MC_ACTION_REPAINT=3D"Repaint",MC_ACTION=
_CREATE_PHOTO=3D"CreatePhoto",MC_ACTION_DELETE_PHOTO=3D"DeletePhoto",MC_C=
HANGE_STATE_UPDATE=3D1,MC_CHANGE_STATE_DELETE=3D2,MC_CHANGE_STATE_CREATE=3D=
3,MC_CHANGE_STATE_CLONE=3D4,MC_CHANGE_STATE_MOVE=3D5,MC_CHANGE_STATE_DEFA=
ULT=3D0,MC_CHANGE_TYPE_METADATA=3D1,MC_CHANGE_TYPE_CHILDREN=3D2,MC_CHANGE=
_TYPE_ALL=3D3,MC_MAPSERVICE_STATUS_NONE=3D0,MC_MAPSERVICE_STATUS_ERROR=3D=
1,MC_MAPSERVICE_STATUS_READY=3D2,MC_MAPSERVICE_STATUS_FETCH=3D3,MC_MAPSER=
VICE_ARG_SERVICETYPE=3D"svc",MC_MAPSERVICE_ARG_COLLECTIONID=3D"cid",MC_MA=
PSERVICE_ARG_ENTITYID=3D"eid",MC_COLLECTION_SIGNIN_SIZE=3D2048,MC_MAXSHAP=
EPOINTS_IN_EMAIL=3D200,MC_MAX_EMAIL_LINK_LEN=3D1800,MC_MIN_EMAIL_NOTES_LE=
N=3D100,MC_MAX_DRILL_SIZE=3D200,MC_TIMER_KEEPTRYING=3D"keeptrying",MC_TIM=
ER_MINDELAY=3D0,MC_TIMER_DELAY=3D3000,MC_TIMER_REPEAT_DELAY=3D3000,MC_TIM=
ER_NOW=3D10,MC_TIMER_EXTENDDELAY=3D5000,MC_TIMER_EXTENDDELAY_CN=3D100000,=
MC_REQUEST_QUEUE_MAXSIZE=3D20,MC_TIMER_VALUE=3D"DELAYVALUE",MC_UPLOAD_TIM=
EOUT=3D90000,MC_KVP_COLLIST=3D"COLLIST",MC_KVP_COL_MSNID=3D"COL_MSNID",MC=
_KVP_COL_MSNID2=3D"COL_MSNID2",MC_KVP_COL=3D"COL",MC_KVP_COL_CLIENTDATA=3D=
"COL_CLIENTDATA",MC_KVP_ENTITY_MSNID=3D"ENTITY_MSNID",MC_KVP_ENTITYLIST=3D=
"ENTITYLIST",MC_KVP_ENTITY=3D"ENTITY",MC_KVP_SERVER_STATUS=3D"req_status"=
,MC_KVP_SETBESTMAPVIEW=3D"set_best_view",MC_KVP_VIEWTOUR=3D"view_tour",MC=
_KVP_CML=3D"CML",MC_COLLECTIONLIST_UL_ID=3D"sp_collection_list",MC_SCRATC=
HPADITEM_LI_SUFFIX=3D"_li",MC_SCRATCHPADITEM_MEASURE_SUFFIX=3D"_m",MC_SIG=
NIN=3D"Signin",MC_SCRATCHPAD_DRAGCURSOR=3D"move",MC_SCRATCHPAD_DRAGGEDSTY=
LE=3D"DraggedLI",MC_SCRATCHPAD_COLLECTIONLISTDIV_ID=3D"scratchPadCollecti=
onListWrapper",MC_SCRATCHPAD_WRAPLEN_TITLE=3D22,MC_SCRATCHPAD_WRAPLEN_DES=
C=3D26,MC_CV_WRAPLEN_COLLECTIONDESC=3D28,MC_CV_WRAPLEN_TITLE=3D22,MC_CV_W=
RAPLEN_DESC=3D22,MC_ERO_WRAPLEN_TITLE=3D22,MC_ERO_WRAPLEN_DESC=3D28,MC_SE=
RVER_STATUS_NO_ACCESS=3D"not authorized",MC_SERVER_STATUS_BUSY=3D"server =
busy",MC_SERVER_STATUS_OK=3D"200",MC_SERVER_STATUS_STORE_ERROR=3D"570",MC=
_SERVER_STATUS_NAMEEXIST_ERROR=3D"571",MC_SERVER_STATUS_QUOTA_ERROR=3D"57=
2",MC_SERVER_STATUS_UNEXPECTED_ERROR=3D"500",MC_SERVER_STATUS_ACCESSDENIE=
D_ERROR=3D"403",MC_SERVER_STATUS_CONTAINSSENSITIVEWORDS_ERROR=3D"581",MC_=
COL_TYPE_FAVORITE=3D1,MC_COL_TYPE_COLLECTION=3D0,MC_COL_TYPE_RESULT=3D2,M=
C_COL_TYPE_TRAFFIC=3D3,MC_COL_TYPE_DRIVING=3D4,MC_COL_TYPE_RSSFEED=3D5,MC=
_COL_TYPE_TILEIMAGE=3D6,MC_DS_MSN_CML=3D0,MC_DS_FILE_CML=3D1,MC_DS_MSN_VE=
ML=3D2,MC_MAX_LOADED_COLS=3D2,MC_MAX_COL_SIZE=3D200,cssCursors,MC_SA_NEWC=
OL=3D"newcol",MC_SA_IMPORT=3D"import",MC_SA_UPLOADPHOTO=3D"uploadphoto",M=
C_SA_REFRESH=3D"forcedrefresh";function =
VE_MapStruct(){}VE_MapStruct.PushpinType=3D{ViewerClass:"VE_Community_sea=
rchResult",PushpinClass:"VE_Pushpin",Token:" ",PushpinAn:"VE_Pushpin =
VE_Pushpin_aN",Polyline:"VE_Pushpin =
VE_Pushpin_Polyline",Polygon:"VE_Pushpin =
VE_Pushpin_Polygon",Model:"VE_Pushpin =
VE_Pushpin_Model_viewer",Overlay:"VE_Pushpin =
VE_Pushpin_Overlay",PushpinViewer:"VE_Pushpin_viewer",PolylineViewer:"VE_=
Pushpin_Polyline_viewer",PolygonViewer:"VE_Pushpin_Polygon_viewer",ModelV=
iewer:"VE_Pushpin_Model_viewer",OverlayViewer:"VE_Pushpin_Overlay_viewer"=
,PushpinViewerTopMost:"VE_Pushpin_viewer =
topMost",PolylineViewerTopMost:"VE_Pushpin_Polyline_viewer =
polytopMost",PolygonViewerTopMost:"VE_Pushpin_Polyline_viewer =
polytopMost",ModelViewerTopMost:"VE_Pushpin_Model_viewer =
polytopMost",OverlayViewerTopMost:"VE_Pushpin_Overlay_viewer =
polytopMost",SearchResults:"searchResults"};VE_MapStruct.PushpinSize=3D{W=
idthaN:22,HeightaN:17,WidthShp:22,HeightShp:-17,WidthLbl:-29,HeightLbl:-1=
7,WidthView:22,HeightView:17,WidthShpView:22,HeightShpView:-17};_VERegist=
erNamespaces("Msn.VE.Core");Msn.VE.Core.Layer=3Dfunction(){this.iid=3Dnul=
l;this.MsnId=3Dnull;this.Name=3D"unsaved =
collection";this.Type=3D0;this.Visibility=3Dtrue;this.Boundingbox=3Dnull;=
this.MaxScale=3D21;this.MinScale=3D1;this.Spec=3Dnull};Msn.VE.Core.Layer.=
prototype.SetMsnId=3Dfunction(a){this.MsnId=3Da};Msn.VE.Core.Layer.protot=
ype.GetMsnId=3Dfunction(){return =
this.MsnId};Msn.VE.Core.Layer.prototype.SetId=3Dfunction(a){this.iid=3Da}=
;Msn.VE.Core.Layer.prototype.GetId=3Dfunction(){return =
this.iid};Msn.VE.Core.Layer.prototype.SetName=3Dfunction(a){this.Name=3Da=
};Msn.VE.Core.Layer.prototype.GetName=3Dfunction(){return =
this.Name};Msn.VE.Core.Layer.prototype.SetType=3Dfunction(a){this.Type=3D=
a};Msn.VE.Core.Layer.prototype.GetType=3Dfunction(){return =
this.Type};Msn.VE.Core.Layer.prototype.SetVisibility=3Dfunction(a){this.V=
isibility=3Da};Msn.VE.Core.Layer.prototype.GetVisibility=3Dfunction(){ret=
urn =
this.Visibility};Msn.VE.Core.Layer.prototype.SetMaxZoomLevel=3Dfunction(a=
){this.MaxScale=3Da};Msn.VE.Core.Layer.prototype.GetMaxZoomLevel=3Dfuncti=
on(){return =
this.MaxScale};Msn.VE.Core.Layer.prototype.SetMinZoomLevel=3Dfunction(a){=
this.MinScale=3Da};Msn.VE.Core.Layer.prototype.GetMinZoomLevel=3Dfunction=
(){return =
this.MinScale};Msn.VE.Core.Layer.prototype.SetBoundingBox=3Dfunction(f,e,=
c,d,a,b){if(!this.Boundingbox){if(c=3D=3Dnull||d=3D=3Dnull||a=3D=3Dnull||=
b=3D=3Dnull)return null;this.Boundingbox=3Dnew =
Msn.VE.Bounds(f,e,c,d,a,b)}else{this.Boundingbox.x1=3Dc;this.Boundingbox.=
y1=3Dd;this.Boundingbox.z1=3Df;this.Boundingbox.x2=3Da;this.Boundingbox.y=
2=3Db;this.Boundingbox.z2=3De}return =
this.Boundingbox};Msn.VE.Core.Layer.prototype.GetBoundingBox=3Dfunction()=
{if(typeof =
this.Boundingbox=3D=3D"undefined"||!this.Boundingbox)this.Boundingbox=3Dn=
ew Msn.VE.Bounds(0,0,Infinity,Infinity,-Infinity,-Infinity);return =
this.Boundingbox};Msn.VE.Core.VectorLayer=3Dfunction(){};Msn.VE.Core.Vect=
orLayer.prototype=3Dnew =
Msn.VE.Core.Layer;Msn.VE.Core.RasterLayer=3Dfunction(){};Msn.VE.Core.Rast=
erLayer.prototype=3Dnew Msn.VE.Core.Layer;function =
VELatLong(b,a,c,d){this.Latitude=3Dnull;this.Longitude=3Dnull;this.Altitu=
de=3Dnull;this.AltitudeMode=3Dnull;this._reserved=3Dnull;if(b!=3Dnull){VE=
Validator.ValidateFloat(b,"latitude");this.Latitude=3Db}if(a!=3Dnull){VEV=
alidator.ValidateFloat(a,"longitude");this.Longitude=3Da}if(c!=3Dnull)thi=
s.SetAltitude(c,d)}VELatLong.prototype.SetAltitude=3Dfunction(b,a){VEVali=
dator.ValidateFloat(b,"altitude");this.Altitude=3Db;if(a!=3Dnull){VEValid=
ator.ValidateAltitudeMode(a,"altitudeMode");this.AltitudeMode=3Da}else =
this.AltitudeMode=3DVEAltitudeMode.Default};VELatLong.prototype.HasAltitu=
de=3Dfunction(){return this.Altitude!=3Dnull};function Clone(){var =
a=3Dnew =
VELatLong;a.Latitude=3Dthis.Latitude;a.Longitude=3Dthis.Longitude;a._rese=
rved=3Dthis._reserved;a.Altitude=3Dthis.Altitude;a.AltitudeMode=3Dthis.Al=
titudeMode;return a}function toString(){var =
a=3D"";if(this.Latitude!=3Dnull&&this.Longitude!=3Dnull)a=3Dthis.Latitude=
+", "+this.Longitude;if(this.Altitude!=3Dnull)a+=3D", =
"+this.Altitude;return =
a}VELatLong.prototype.toString=3DtoString;VELatLong.prototype.Clone=3DClo=
ne;function =
VELatLongRectangle(d,c,b,a){VEValidator.ValidateObject(d,"topLeftLatLong"=
,VELatLong,"VELatLong");VEValidator.ValidateObject(c,"bottomRightLatLong"=
,VELatLong,"VELatLong");this.TopLeftLatLong=3Dd;this.BottomRightLatLong=3D=
c;if(b!=3Dnull&&b!=3D"undefined"){VEValidator.ValidateObject(b,"topRightL=
atLong",VELatLong,"VELatLong");this.TopRightLatLong=3Db}if(a!=3Dnull&&a!=3D=
"undefined"){VEValidator.ValidateObject(a,"bottomLeftLatLong",VELatLong,"=
VELatLong");this.BottomLeftLatLong=3Da}}VEAltitudeMode=3Dnew =
function(){this.Default=3D"Ground";this.Absolute=3D"Datum";this.RelativeT=
oGround=3D"Ground"};function =
VEValidator(){}VEValidator.ValidateFloat=3Dfunction(b,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateFloat";if(=
b=3D=3Dnull||b=3D=3D"undefined")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","float"));try{if(isNaN(parseFloat(b)))throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","float"));return true}catch(d){throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","float"))}};VEValidator.ValidateInt=3Dfunction(b,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateInt";if(b=3D=
=3Dnull||b=3D=3D"undefined")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","int"));try{if(isNaN(parseInt(b))||parseFloat(b)!=3DparseI=
nt(b))throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","int"));return true}catch(d){throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","int"))}};VEValidator.ValidateNonNegativeInt=3Dfunction(a,=
c){var =
b=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)b=3DVEValidator.Get=
Caller(arguments.caller);if(b=3D=3D"")b=3D"VEValidator.ValidateNonNegativ=
eInt";if(a=3D=3Dnull||a=3D=3D"undefined")throw new =
VEException(b,"err_invalidargument",L_invalidnonnegativeint_text.replace(=
"%1",c));try{if(isNaN(parseInt(a))||parseFloat(a)!=3DparseInt(a)||parseIn=
t(a)<0)throw new =
VEException(b,"err_invalidargument",L_invalidnonnegativeint_text.replace(=
"%1",c));return true}catch(d){throw new =
VEException(b,"err_invalidargument",L_invalidnonnegativeint_text.replace(=
"%1",c))}};VEValidator.ValidateFunction=3Dfunction(b,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateFunction";=
if(b=3D=3Dnull||typeof b!=3D"function")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","function"))};VEValidator.ValidateNonNull=3Dfunction(b,c){=
var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateNonNull";i=
f(b=3D=3Dnull||b=3D=3D"undefined")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","non =
null"))};VEValidator.ValidateBetween=3Dfunction(b,e,d,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateBetween";i=
f(bc)throw new =
VEException(a,"err_invalidargument",L_invalidbetweenint_text.replace("%1"=
,e).replace("%2",d).replace("%3",c))};VEValidator.ValidateBoolean=3Dfunct=
ion(b,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateBoolean";i=
f(b!=3Dtrue&&b!=3Dfalse)throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","bool"))};VEValidator.ValidateMapStyle=3Dfunction(a,c){var=
=
b=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)b=3DVEValidator.Get=
Caller(arguments.caller);if(b=3D=3D"")b=3D"VEValidator.ValidateMapStyle";=
if(a=3D=3Dnull||a=3D=3D"undefined")throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","MapStyle"));if(a=3D=3D"r"||a=3D=3D"R"||$MVEM.IsEnabled(Ma=
pControl.Features.MapStyle.Shaded)&&(a=3D=3D"s"||a=3D=3D"S")||$MVEM.IsEna=
bled(MapControl.Features.MapStyle.Aerial)&&(a=3D=3D"a"||a=3D=3D"A")||$MVE=
M.IsEnabled(MapControl.Features.MapStyle.BirdsEye)&&(a=3D=3D"o"||a=3D=3D"=
O")||$MVEM.IsEnabled(MapControl.Features.MapStyle.BirdsEye)&&(a=3D=3D"b"|=
|a=3D=3D"B")||$MVEM.IsEnabled(MapControl.Features.MapStyle.Hybrid)&&(a=3D=
=3D"h"||a=3D=3D"H"))return true;throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","MapStyle"))};VEValidator.ValidateClusteringType=3Dfunctio=
n(a,c){var =
b=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)b=3DVEValidator.Get=
Caller(arguments.caller);if(b=3D=3D"")b=3D"VEValidator.ValidateClustering=
Type";if(a=3D=3Dnull||a=3D=3D"undefined")throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","ClusteringType"));if(typeof =
a=3D=3D"number"&&(a=3D=3DVEClusteringType.None||a=3D=3DVEClusteringType.G=
rid))return true;throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","ClusteringType"))};VEValidator.ValidateMapMode=3Dfunction=
(b,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D"")a=3D"VEValidator.ValidateMapMode";if(b=
=3D=3Dnull||b=3D=3D"undefined")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","MapMode"));if(b=3D=3DVEMapMode.Mode2D||$MVEM.IsEnabled(Ma=
pControl.Features.MapStyle.View3D)&&b=3D=3DVEMapMode.Mode3D)return =
true;throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","MapMode"))};VEValidator.ValidateDistanceUnit=3Dfunction(b=
,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateDistanceUn=
it";if(b=3D=3Dnull||b=3D=3D"undefined")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEDistanceUnit"));if(b=3D=3DVEDistanceUnit.Miles||b=3D=3D=
VEDistanceUnit.Kilometers)return true;throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEDistanceUnit"))};VEValidator.ValidateMaxZoom=3Dfunction=
(b,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateMaxZoom";i=
f(b=3D=3Dnull||b=3D=3D"undefined")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","ValidateMaxZoom"));if(b<=3DMsn.VE.API.Globals.vemaxzoom)r=
eturn true;throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","ValidateMaxZoom"))};VEValidator.ValidateLayerType=3Dfunct=
ion(a,c){var =
b=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)b=3DVEValidator.Get=
Caller(arguments.caller);if(b=3D=3D"")b=3D"VEValidator.ValidateLayerType"=
;if(a=3D=3Dnull||a=3D=3D"undefined")throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEDataType"));if(a=3D=3DVEDataType.GeoRSS||a=3D=3DVEDataT=
ype.VECollection||a=3D=3DVEDataType.VETileSource)return true;throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEDataType"))};VEValidator.ValidateDashboardSize=3Dfuncti=
on(a,c){var =
b=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)b=3DVEValidator.Get=
Caller(arguments.caller);if(b=3D=3D"")b=3D"VEValidator.ValidateDashboardS=
ize";if(a=3D=3Dnull||a=3D=3D"undefined")throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEDashboardSize"));if(a=3D=3DVEDashboardSize.Normal||a=3D=
=3DVEDashboardSize.Small||a=3D=3DVEDashboardSize.Tiny)return true;throw =
new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEDashboardSize"))};VEValidator.ValidateMiniMapSize=3Dfun=
ction(b,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateMiniMapSiz=
e";if(b=3D=3Dnull||b=3D=3D"undefined")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEMiniMapSize"));if(b=3D=3DVEMiniMapSize.Small||b=3D=3DVE=
MiniMapSize.Large)return true;throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEMiniMapSize"))};VEValidator.ValidateAltitudeMode=3Dfunc=
tion(b,c){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateAltitudeMo=
de";if(b=3D=3Dnull)throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEAltitudeMode"));if(b!=3DVEAltitudeMode.Absolute&&b!=3DV=
EAltitudeMode.RelativeToGround)throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VEAltitudeMode"));return =
true};VEValidator.ValidateObject=3Dfunction(b,c,e,d){var =
a=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)a=3DVEValidator.Get=
Caller(arguments.caller);if(a=3D=3D"")a=3D"VEValidator.ValidateObject";if=
(b=3D=3Dnull||b=3D=3D"undefined")throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","non null"));if(!(b instanceof e))throw new =
VEException(a,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2",d))};VEValidator.ValidateObjectArray=3Dfunction(a,d,f,e){v=
ar =
b=3D"";if(arguments!=3Dnull&&arguments.caller!=3Dnull)b=3DVEValidator.Get=
Caller(arguments.caller);if(b=3D=3D"")b=3D"VEValidator.ValidateObject";if=
(a=3D=3Dnull||typeof a=3D=3D"undefined"||a.length=3D=3Dnull||typeof =
a.length=3D=3D"undefined")throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",d=
).replace("%2","array"));for(var =
c=3D0;c=3Da.BottomRightLatLong.Longitu=
de)throw new =
VEException(b,"err_invalidargument",L_invalidargument_text.replace("%1",c=
).replace("%2","VELatLongRectangle"))};VEValidator.GetCaller=3Dfunction()=
{return ""};Msn.VE.Core.MapServiceLayerManager=3Dfunction(){var =
a=3D[],v=3D200,b=3Dnull;MapOverlayNode=3Dfunction(b,a){this.item=3Db;this=
.layers=3Da};function f(d){if(!d.IsOverlay())return -1;var =
e=3Da.length;for(var c=3D0;c=3D0;a--){var =
d=3Dc.layers[a];if(d=3D=3Dnull)continue;b.push(d.ID)}if(map.IsModeEnabled=
(Msn.VE.MapActionMode.Mode3D))r(b);var e=3Db.length;for(var =
a=3D0;a=3D0;b--){var =
d=3Da[b];a.splice(b,1);c(d)}}function =
o(a,d,b){if(!a.IsOverlay())return;var c=3Dg(a);return i(c,d,b)}function =
i(c,h,i){if(c=3D=3Dnull||c.layers=3D=3Dnull||c.layers.length=3D=3D0)retur=
n;var a=3D[],m=3Dc.layers.length;for(var g=3D0;gw)i=3D1;var =
d=3Dl["maxzoom"];d=3Dd=3D=3Dnull||typeof =
d=3D=3D"undefined"||d=3D=3D""?w:parseInt(d);if(d<1||d>w||d100)k=3D.6;if(k>1=
)k/=3D100;var =
j=3Dg(e),J=3D"{VE_MapServiceLayer:"+e.mapserviceType+":"+e.iid+"}",T=3Dv.=
length;for(var A=3D0;A0){var =
j,o,A,F=3Dl.length;for(j=3D0;j1){g=3Dc[1];f=3Dc[0];=
if(a=3D=3D"georss:line")k=3DVEShapeType.Polyline;else =
if(a=3D=3D"georss:polygon")k=3DVEShapeType.Polygon}}}else =
if(a=3D=3D"gml:name")if(b.firstChild)r=3Db.firstChild.nodeValue;else =
r=3D"";else =
if(a=3D=3D"gml:description")if(b.firstChild)p=3Db.firstChild.nodeValue;el=
se p=3D"";else =
if(a=3D=3D"gml:Point"||a=3D=3D"gml:point"||a=3D=3D"georss:where"&&b.first=
Child.nodeName=3D=3D"gml:Point"){var =
i=3Dnull;if(a=3D=3D"gml:Point"||a=3D=3D"gml:point")i=3Db.childNodes;else =
i=3Db.firstChild.childNodes;for(d=3D0;d1){g=3Dc[1];f=3Dc[0]}}}}else =
if(a=3D=3D"gml:pos"||a=3D=3D"gml:posList"){if(l[j].childNodes[o].firstChi=
ld){var =
n=3Dl[j].childNodes[o].firstChild.nodeValue;c=3Dthis.ExtractLatLonPairFro=
mXMLList(n);if(c&&c.length>1){g=3Dc[1];f=3Dc[0];if(a=3D=3D"gml:posList")k=
=3DVEShapeType.Polyline}}}else =
if(a=3D=3D"gml:LineString"||a=3D=3D"georss:where"&&b.firstChild.nodeName=3D=
=3D"gml:LineString"){var =
i=3Dnull;if(a=3D=3D"gml:LineString")i=3Db.childNodes;else =
i=3Db.firstChild.childNodes;k=3DVEShapeType.Polyline;var =
x=3Di.length;for(d=3D0;d1){g=3Dc[1];f=3Dc[0]}}}}else =
if(a=3D=3D"gml:Polygon"||a=3D=3D"georss:where"&&b.firstChild.nodeName=3D=3D=
"gml:Polygon"){var =
i=3Dnull;if(a=3D=3D"gml:Polygon")i=3Db.childNodes;else =
i=3Db.firstChild.childNodes;k=3DVEShapeType.Polygon;var =
x=3Di.length;for(d=3D0;d1){g=3Dc[1];f=3Dc[0]}}}}}}}if(g=3D=3Dnull||g=3D=3D"undefine=
d"||g.length<=3D0||f=3D=3Dnull||f=3D=3D"undefined"||f.length<=3D0)continu=
e;if(q.Spec.IconUrl!=3Dnull&&q.Spec.IconUrl!=3D"undefined")m=3Dq.Spec.Ico=
nUrl;if(m=3D=3Dnull||m=3D=3D"undefined"||m.length<=3D0)m=3DMsn.VE.API.Con=
stants.iconurl;var D=3Dp;try{var =
s=3Dnull;if(k=3D=3DVEShapeType.Pushpin)if(g!=3Dnull&&f!=3Dnull)s=3Dnew =
Msn.Drawing.Point(f,g);else continue;else =
if(k=3D=3DVEShapeType.Polyline){if(c.length<4)continue;s=3Dnew =
Msn.Drawing.PolyLine(c)}else =
if(k=3D=3DVEShapeType.Polygon){if(c.length<8)continue;s=3Dnew =
Msn.Drawing.Polygon(c)}var h;if(Msn.VE.API!=3Dnull){var =
w=3Ds.points,x=3Dw.length,B=3D[];for(var d=3D0;d0)C=3Dtrue;return =
C};Msn.Drawing.MapGeoRssReader.prototype.ExtractLatLonPairFromXMLList=3Df=
unction(a){a=3Da.replace(/^\s+/g,"");a=3Da.replace(/\s+$/g,"");var =
b=3D[];if(a.indexOf(",")>0)b=3Da.split(",");else{a=3Da.replace(/\s+/g," =
");b=3Da.split(" ")}var d=3Db.length;if(d/2!=3DMath.round(d/2))return =
null;for(var c=3D0;c0)VE_MapOverlays.E=
xtractEntityOverlay(g,j.childNodes[0],e,c);break}}return}var =
h;if(g=3D=3DMC_ACTION_CREATE_COLLECTION||g=3D=3DMC_ACTION_IMPORT_ENTITY||=
g=3D=3DMC_ACTION_IMPORT_COLLECTION)h=3Do.GetAnnotationByMsnId(c,m,r);else=
h=3Do.GetAnnotationByMsnId(c,m);var =
a=3Dh[1];if(h[0])return;if(l&&l!=3D"")a.SetType(l);if(k&&k!=3D"")a.Title=3D=
k;if(s&&s!=3D"")a.SetVisibility(false);var =
b=3Dnull,v=3Dnull,u=3Dd.childNodes.length;for(var =
n=3D0;n/gi,"\n");break;case MC_CML_ENTITY_PRIMITIVES:var =
q=3DVE_MapCmlReader.ExtractPrimitives(b);if(q){a.ClearAllPrimitives();a.S=
etPrimitives(q)}break;case =
MC_CML_VIEWPORT:a.ViewPort=3DVE_MapCmlReader.ExtractViewPort(b);break;cas=
e MC_CML_TOUR:a.Tour=3DVE_MapCmlReader.ExtractTour(b);break;case =
MC_CML_MODELREP:a.ModelRep=3DVE_MapCmlReader.ExtractModelRep(b);break;cas=
e =
MC_CML_PHOTOS:a.Photos=3DVE_MapCmlReader.ExtractPhotos(b)}}}if(a.GetPrimi=
tiveCount()=3D=3D0)VE_MapManager.GetLayerManager().DeleteAnnotationFromCo=
llection(c,a);else if(!h[0])if(Msn.VE.API!=3Dnull)c.AddShape(a);else =
c.AddEntityAnnotation(a);else c.UpdateEntityAnnotation(a);return =
c};VE_MapCmlReader.ExtractViewPort=3Dfunction(g){var a=3Dnew =
VE_3DViewPort,f=3Dtrue,h=3Dg.childNodes.length;for(var =
e=3D0;e0){for(var j=3D0;j0&&c.indexOf("http")<=
0))a.SetIconUrl(c);break;case =
MC_CML_PROPERTY_KEYWORDS:a.Keywords=3Dunescape(b);break;case =
MC_CML_PROPERTY_PHOTOURL:var =
f=3Dnull;f=3Dunescape(b);if(f)a.PhotoUrl=3Df;break;case =
MC_CML_PROPERTY_USERDATE:a.UserDate=3Db;break;case =
MC_CML_PROPERTY_DISPLAYORDER:a.DisplayOrder=3Db;break;case =
MC_CML_PROPERTY_BUSINESSLISTINGID:a.SetBusinessListingId(b);break;case =
MC_CML_LASTMODIFIED:a.LastModified=3Db;break;case =
MC_CML_DISPLAYORDER:a.SetDisplayOrder(b);break;case =
MC_CML_ZOOMLEVEL:a.SetZoomLevel(b);break;case =
MC_CML_ONSCRATCHPAD:a.SetOnScratchpad(b);break;case =
MC_CML_PROPERTY_SOURCEURL:a.SourceUrl=3Dunescape(b);break;case =
MC_CML_PROPERTY_SOURCETYPE:a.SourceType=3Db;break;case =
MC_CML_TILEID:a.TileId=3Db;break;case =
MC_CML_PROPERTY_MAPSERVICETYPE:a.mapserviceType=3Db;break;case =
MC_CML_PROPERTY_MAPSERVICESOURCE:a.mapserviceSource=3Dunescape(b);break;c=
ase MC_CML_PROPERTY_MAPSERVICEOPACITY:a.mapserviceOpacity=3Db;break;case =
MC_CML_PROPERTY_MAPSERVICEMETADATA:a.mapserviceMetadata=3Dunescape(b);bre=
ak;case MC_CML_PROPERTY_MAPSERVICESTATUS:a.mapserviceStatus=3Db}}}return =
a};VE_MapCmlReader.ExtractPhotos=3Dfunction(l){var =
n=3D[],j=3Dl.childNodes.length;if(j=3D=3D0)return null;for(var =
g=3D0;g1){var =
h=3Di[1];if(h){a.labelPosX=3Dh.longitude;a.labelPosY=3Dh.latitude}}}}if(a=
!=3Dnull){if(Msn.VE.API){if(!c)c=3DVE_GetDefaultAPISymbol(a.type);a.symbo=
l=3Dc}else =
if(a.type!=3DVEShapeType.Pushpin)a.symbol=3Dc;g.push(a)}}}if(g.length<1)r=
eturn null;return g};VE_MapCmlReader.ExtractPolygon=3Dfunction(c){var =
a=3Dc.selectSingleNode(MC_CML_OUTLS).selectSingleNode(MC_CML_LINEARSTRING=
),b=3Da.selectSingleNode(MC_CML_COORDS);return =
VE_MapCmlReader.BuildShape(VEShapeType.Polygon,GetXMLText(b),a)};VE_MapCm=
lReader.ExtractPolyLine=3Dfunction(a){var =
b=3Da.selectSingleNode(MC_CML_COORDS);return =
VE_MapCmlReader.BuildShape(VEShapeType.Polyline,GetXMLText(b),a)};VE_MapC=
mlReader.BuildShape=3Dfunction(c,i,d){var =
h=3Dnull,g=3Dd.selectSingleNode(MC_CML_ALTITUDE);if(g!=3Dnull)h=3DGetXMLT=
ext(g);var =
b=3DVE_GetLatLongPairsFromString(i,h);if(b=3D=3Dnull||b.LonLats=3D=3Dnull=
)return null;var a=3Dnull;if(VEShapeType.Polyline=3D=3Dc){a=3Dnew =
Msn.Drawing.PolyLine(b.LonLats);a.iid=3DMsn.Drawing.GetGeoUID(VEShapeType=
.Polyline)}else if(VEShapeType.Polygon=3D=3Dc){a=3Dnew =
Msn.Drawing.Polygon(b.LonLats);a.iid=3DMsn.Drawing.GetGeoUID(VEShapeType.=
Polygon)}else if(VEShapeType.Pushpin=3D=3Dc){a=3Dnew =
Msn.Drawing.Point(b.LonLats[0],b.LonLats[1]);a.iid=3DMsn.Drawing.GetGeoUI=
D(VEShapeType.Pushpin)}if(b.Altitudes){var =
e=3Dd.selectSingleNode(MC_CML_ALTITUDEMODE);if(e!=3Dnull)a.altitudeMode=3D=
GetXMLText(e);if(VEShapeType.Pushpin=3D=3Dc){a.altitudes=3Db.Altitudes;re=
turn a}else{a.altitudes=3Db.Altitudes;var =
f=3Dd.selectSingleNode(MC_CML_EXTRUDE);if(f!=3Dnull)if(GetXMLText(f).toLo=
werCase()=3D=3D"true")a.extruded=3Dtrue;a.minZ=3Db.minZ;a.maxZ=3Db.maxZ;a=
.labelPosZ=3Da.maxZ}}if(VEShapeType.Pushpin!=3Dc){a.minX=3Db.minX;a.minY=3D=
b.minY;a.maxX=3Db.maxX;a.maxY=3Db.maxY}return =
a};VE_MapCmlReader.ExtractPoint=3Dfunction(a){var =
b=3Da.selectSingleNode(MC_CML_COORDS);return =
VE_MapCmlReader.BuildShape(VEShapeType.Pushpin,GetXMLText(b),a)};VE_MapCm=
lReader.ExtractStyle=3Dfunction(i,n){var =
e=3D[],a;if(Msn.VE.API)a=3DVE_GetDefaultAPISymbol(n);else =
a=3DVE_MapDispatch_SymbolLib.GetCurrentDefaultSymbol();a=3Da.Clone();var =
k=3Di.childNodes.length,d=3Dnull;for(var f=3D0;f0){for(var =
d=3D0;d0?true:false};Msn.Drawing.GetShpElementUI=
DByLabelUID=3Dfunction(c){var =
b=3D"",a=3Dc.split(MC_IID_CON_TOKEN);if(!a||a[0]!=3DMC_IID_NAMESPACE)retu=
rn =
null;b=3Db.concat(a[0],MC_IID_CON_TOKEN,a[1],MC_IID_CON_TOKEN,a[2],MC_IID=
_CON_TOKEN,a[3]);return =
b};Msn.Drawing.GetEntityUIDByPrimitiveUID=3Dfunction(c){var =
b=3D"",a=3Dc.split(MC_IID_CON_TOKEN);if(!a||a[0]!=3DMC_IID_NAMESPACE)retu=
rn =
null;b=3Db.concat(a[0],MC_IID_CON_TOKEN,a[1],MC_IID_CON_TOKEN,a[2]);retur=
n b};Msn.Drawing.CreatePointPushpin=3Dfunction(p,a,r,y,g,m,l,x,h){var =
d=3Dnull,i=3Dr;Msn.Drawing.CalculateLabelPosition(a,false);var =
u=3Da.labelPosX?a.labelPosX:a.points[0],t=3Da.labelPosY?a.labelPosY:a.poi=
nts[1],s=3Dm?m:22,q=3Dl?l:17,f=3Da.iid,b=3Dg,n=3Dg&&g.indexOf("VE_Pushpin=
_Overlay")!=3D-1;if(a.type=3D=3DVEShapeType.Pushpin){if(typeof =
b=3D=3D"undefined"||!b)b=3Dn?VE_MapStruct.PushpinType.Overlay:VE_MapStruc=
t.PushpinType.PushpinAn}else{f=3DMsn.Drawing.GetLabelUID(a.iid);if(typeof=
b=3D=3D"undefined"||!b)b=3DVE_MapStruct.PushpinType.Polyline}var =
o=3Dn?Msn.VE.PushPinTypes.Overlay:Msn.VE.PushPinTypes.Annotation,k=3Di+""=
;if(h){b=3D"VEAPI_Pushpin";k=3D_VE_GetCustomIcon(f+"_img",h,i,false)}d=3D=
p.AddPushpin(f,t,u,s,q,b,k,MC_STYLE_PINZIndex,o,true);if(h){var =
c=3D$ID(f+"_img");if(c!=3Dnull){var =
w=3Dc.style.height,v=3Dc.style.width;if(isNaN(parseInt(w))||isNaN(parseIn=
t(v))){c.style.height=3D"25px";c.style.width=3D"30px"}if(d!=3Dnull){var =
e=3DparseInt(d.style.top),j=3DparseInt(c.style.height);if(isNaN(e))e=3Dj;=
else e+=3Dj;d.style.top=3De+"px"}}}return d};function =
_VE_GetCustomIcon(i,h,e,f){var g=3D" ")}function _VE_OnCustonIconError(a,e){var =
f=3Dtypeof Msn.VE.API!=3D"undefined"&&Msn.VE.API!=3Dnull;if(!f&&typeof =
a!=3D"undefined"){var =
b=3DVE_MapManager.GetAnnotationById(a.id);if(b){b.IconUrl=3Dnull;var =
d=3DVE_MapStruct.PushpinType,c=3Dd.PushpinViewer;if(b.IsOverlay())c=3Dd.O=
verlayViewer;else =
if(b.GetType()!=3DVEShapeType.Pushpin)c=3Dd.PolylineViewer;if(a.parentEle=
ment){a.parentElement.className=3D"bullet =
"+c;a.parentElement.innerText=3De;a.parentElement.removeChild(a)}}}}funct=
ion _VE_ResizeImage(a,c,b){var =
e=3Dc,d=3Db;if(a.width>c)d=3DparseInt(a.height*c/a.width);else =
if(a.height>b)e=3DparseInt(a.width*b/a.height);else{e=3Da.width;d=3Da.hei=
ght}a.style.height=3Dd+"px";a.style.width=3De+"px";if(a.style.visibility=3D=
=3D"hidden")a.style.visibility=3D"visible";return a}function =
IsPointInPolygon(a,b,e,f,c,d){if(a>c||ad||b0){=
a=3Da.parentElement;--b}return a}function =
VE_ChangeOpacity(b,a){if(typeof Web!=3D"undefined"&&typeof =
Web.Browser!=3D"undefined"&&typeof =
Web.Browser.isMozilla=3D=3D"function"&&Web.Browser.isMozilla())b.style.op=
acity=3Da/100;else b.style.filter=3D"alpha(opacity=3D"+a+")"}function =
VE_SanitizeHTML(b){if(typeof b=3D=3D"undefined"||!b)return b;var =
a=3Ddocument.createElement("div");a.innerHTML=3Db+" =
__hack";VE_WalkNode(a,VE_RemoveHarmfulHTML);var =
c=3Da.innerHTML;a=3Dnull;return c.substring(0,c.length-7)}function =
VE_RemoveHarmfulHTML(c){if(c=3D=3Dnull)return;var =
e=3D"",a=3Dnull,f=3D[];for(var =
d=3D0;c.hasChildNodes()&&d-1?b:0;a.labelPosX=3D(a.p=
oints[2*b]+a.points[2*b+2])/2;a.labelPosY=3D(a.points[2*b+1]+a.points[2*b=
+3])/2;if(a.altitudes)a.labelPosZ=3DMath.max(a.altitudes[b],a.altitudes[b=
+1])}else if(a.type=3D=3DVEShapeType.Polygon){var =
c=3Da.points.length,d=3D0,e=3D0,f=3Dnull;if(a.altitudes)f=3Da.altitudes[0=
];if(c>=3D4&&a.points[0]=3D=3Da.points[c-2]&&a.points[1]=3D=3Da.points[c-=
1])c-=3D2;for(var =
b=3D0;bMC_MAX_LOADED_COLS){var =
c=3DloadedColIds.shift();c=3DGetCollectionIndexByMsnId(c);if(c>0){var =
b=3DGetCollectionByIndex(c);if(b&&b.GetType()=3D=3DMC_COL_TYPE_COLLECTION=
){mvcViewFacade.OnCollectionLayerClear(b);EmptyCollection(b)}}}}};this.Ad=
dListener=3Dfunction(b,a){register.AddListener(b,a)};this.RemoveListener=3D=
function(b,a){register.RemoveListener(b,a)};this.Fire=3Dfunction(b,a){reg=
ister.Fire(b,a)};function =
AddCollection(b,a){if(b=3D=3D0)cols.unshift(a);else cols.push(a);return =
a}function IsCollectionExist(c){if(cols.length>0)for(var =
a=3D0;a0)for(var =
a=3D0;a0)for(var b=3D0;b0)for(var =
a=3D0;a0)for(var =
a=3D0;a0)for(var =
b=3D0;b1){a=3Dcols.pop();EmptyCollection(a)}if(cols.l=
ength=3D=3D1)EmptyCollection(cols[0])}function =
RemoveCollection(a){EmptyCollection(a);DeleteCollection(a)}function =
EmptyCollection(a){VE_MapOverlays.DeactivateCollectionOverlays(a);var =
c=3Dnull;if(a.Annotations.length>0)for(var =
b=3D0;b0)for(var =
c=3D0;cb;--a){cols[c].Annotations[a]=3Dcols[c].Annotations[a-1];d=3Dcols=
[c].Annotations[a];d.SetDisplayOrder(a+1);d.SetIndex(a);d.SetChangeState(=
MC_CHANGE_STATE_UPDATE)}cols[c].Annotations[b]=3Dj;d=3Dcols[c].Annotation=
s[b];d.SetDisplayOrder(b+1);d.SetIndex(b);d.SetChangeState(MC_CHANGE_STAT=
E_UPDATE);if(e0){var =
e=3Dnull,f=3Dnull;for(var =
d=3D0;d0){var =
c=3Da.GetPrimitiveCount();if(c<1)return null;for(var =
b=3D0;b0)for(var b=3D0;b=3D0&&b0&&b){var =
a=3D0;while(a0){for(va=
r a=3D0;ab.x2&&a.y2>b.y2;c.Update(true,this.iid);if(a)i=
f(d){a.x1=3DMath.min(b.x1,a.x1);a.y1=3DMath.min(b.y1,a.y1);a.x2=3DMath.ma=
x(b.x2,a.x2);a.y2=3DMath.max(b.y2,a.y2)}else =
a=3Dthis.UpdateBoundingBox();else a=3Dnew =
Msn.VE.Bounds(0,0,b.x1,b.y1,b.x2,b.y2);this.SetBoundingBox(0,0,a.x1,a.y1,=
a.x2,a.y2);this._SetTileId();a=3Dnull;return =
c};VEShapeLayer.prototype.UpdateBoundingBox=3Dfunction(){var =
h=3Dthis.Annotations.length,g=3Dnull,a=3Dnull,b=3DInfinity,d=3DInfinity,c=
=3D-Infinity,e=3D-Infinity;for(var =
f=3D0;f0&&aMsn.VE.API.Globals.veshapemaxzoom||aMsn.VE.API=
.Globals.veshapemaxzoom)throw new =
VEException("VEShapeLayer.SetMinZoomLevel","err_incorrectzoomlevel",L_Shp=
_IncorrectZoomLevel_Text);else if(a>this.MaxScale)throw new =
VEException("VEShapeLayer.SetMinZoomLevel","err_incorrectzoomlevel",L_Shp=
_IncorrectZoomLevel2_Text);this.MinScale=3Da;if(this.GetVisibility())this=
.Show()};VEShapeLayer.prototype.GetMinZoomLevel=3Dfunction(){return =
this.MinScale};VEShapeLayer.prototype.IsVisible=3Dfunction(){return =
this.GetVisibility()};VEShapeLayer.prototype.SetClusteringConfiguration=3D=
function(b,a){if(!this._isClusterLayer){if(a!=3Dnull){VEValidator.Validat=
eObject(a,"clusteringOptions",VEClusteringOptions,"VEClusteringOptions");=
if(a.Icon!=3Dnull)VEValidator.ValidateObject(a.Icon,"clusteringOptions.Ic=
on",VECustomIconSpecification,"VECustomIconSpecification");if(a.Callback!=
=3Dnull)VEValidator.ValidateFunction(a.Callback,"clusteringOptions.Callba=
ck")}if(typeof =
b=3D=3D"number"){VEValidator.ValidateClusteringType(b,"type");if(b=3D=3DV=
EClusteringType.Grid)this._clusteringAlgorithm=3DGridCluster;else =
this._clusteringAlgorithm=3Dnull}else if(typeof =
b=3D=3D"function")this._clusteringAlgorithm=3Db;else throw new =
VEException("VEShapeLayer:SetClusteringConfiguration","err_invalidargumen=
t",L_invalidargument_text.replace("%1","type").replace("%2","VEClustering=
Type"));this._clusteringOptions=3Da;if(this._clusteringAlgorithm=3D=3Dnul=
l)this.DeleteClusterLayer();else this.CreateClusterLayer();var =
c=3DGetVEMapInstance(this._mapGuid);if(c!=3Dnull&&c.m_vegraphicsmanager!=3D=
null)if(this._clusterLayer!=3Dnull)this.Cluster();else =
c.m_vegraphicsmanager.DrawLayer(this)}else throw new =
VEException("VEShapeLayer:SetClusteringConfiguration","err_invalidlayerty=
pe",L_InvalidClusterLayer_Text)};VEShapeLayer.prototype.Cluster=3Dfunctio=
n(){if(!this._isClusterLayer&&this._clusterLayer){this._clusterLayer._clu=
sterZoomLevel=3Dnull;var =
a=3DGetVEMapInstance(this._mapGuid);if(a!=3Dnull&&a.m_vegraphicsmanager!=3D=
null)a.m_vegraphicsmanager.DrawLayer(this)}};VEShapeLayer.prototype.GetCl=
usteredShapes=3Dfunction(b){var =
a=3D[];VEValidator.ValidateClusteringType(b,"type");switch(b){case =
VEClusteringType.Grid:a=3DGridCluster(this)}return =
a};VEShapeLayer.prototype.CreateClusterLayer=3Dfunction(){if(!this._isClu=
sterLayer&&!this._clusterLayer){var =
a=3DGetVEMapInstance(this._mapGuid);if(a!=3Dnull){this._clusterLayer=3Dne=
w =
VEShapeLayer;this._clusterLayer._isClusterLayer=3Dtrue;a.AddShapeLayer(th=
is._clusterLayer)}}};VEShapeLayer.prototype.DeleteClusterLayer=3Dfunction=
(){if(this._clusterLayer){var =
a=3DGetVEMapInstance(this._mapGuid);if(a!=3Dnull){a.DeleteShapeLayer(this=
._clusterLayer);this._clusterLayer=3Dnull}}};VEShapeLayer.prototype.Clear=
ClusterLayer=3Dfunction(){if(this._clusterLayer){this._clusterLayer._clus=
terZoomLevel=3Dnull;this._clusterLayer.DeleteAllShapes()}};function =
GridCluster(m){var =
q=3D[],g=3DGetVEMapInstance(m._mapGuid);if(g!=3Dnull){var =
b=3D{},d=3Dg.GetZoomLevel(),p=3D2,r=3D0;if(g.vemapcontrol.IsMapViewObliqu=
e())d+=3D18;var u=3Dm.Annotations.length;for(var n=3D0;n1){var h=3Dnew =
VEClusterSpecification;h.Shapes=3De;var k=3D0,l=3D0,i=3Dfalse;for(var =
f=3D0;f0&&a[0]!=3Dnull){this.Keywords=3Da;this.Keywords[0]=3Dt=
his.Keywords[0].replace(/%0D%0A/g,"\r\n").replace(/%0A/g,"\n")}else =
this.Keywords=3Da;this.Url=3Do;this.PhotoUrl=3Dj;this.UserDate=3Dk;this.B=
usinessListingId=3Dc;this.IconId=3Dl;this.LastModified=3Di;this.mapservic=
eType=3Dh;this.mapserviceSource=3Df;this.mapserviceOpacity=3Dd};VEShape.p=
rototype.symbolUrl=3D"samplesymbol";VEShape.prototype.GetMsnId=3Dfunction=
(){return =
this.Id};VEShape.prototype.SetMsnId=3Dfunction(a){this.Id=3Da};VEShape.pr=
ototype.SetBoundingBox=3Dfunction(f,e,c,d,a,b){if(typeof =
this.Boundingbox=3D=3D"undefined"||this.Boundingbox=3D=3Dnull){if(c=3D=3D=
null||d=3D=3Dnull||a=3D=3Dnull||b=3D=3Dnull)return =
null;this.Boundingbox=3Dnew =
Msn.VE.Bounds(f,e,c,d,a,b)}else{this.Boundingbox.x1=3Dc;this.Boundingbox.=
y1=3Dd;this.Boundingbox.z1=3Df;this.Boundingbox.x2=3Da;this.Boundingbox.y=
2=3Db;this.Boundingbox.z2=3De}if(typeof =
VE_ShapeIndexManager!=3D"undefined")this.TileId=3DVE_ShapeIndexManager.Ge=
tTileId(this.Boundingbox);return =
this.Boundingbox};VEShape.prototype.GetBoundingBox=3Dfunction(){if(typeof=
=
this.Boundingbox=3D=3D"undefined"||!this.Boundingbox)this.Boundingbox=3Dn=
ew Msn.VE.Bounds(0,0,Infinity,Infinity,-Infinity,-Infinity);return =
this.Boundingbox};VEShape.prototype.GetCenterPoint=3Dfunction(){if(!this.=
GetBoundingBox())return;var a=3Dnew =
Array(2);a[0]=3D(this.GetBoundingBox().x1+this.GetBoundingBox().x2)/2;a[1=
]=3D(this.GetBoundingBox().y1+this.GetBoundingBox().y2)/2;return =
a};VEShape.prototype.SetId=3Dfunction(a){this.iid=3Da};VEShape.prototype.=
GetId=3Dfunction(){if(typeof =
this.iid=3D=3D"undefined"||this.iid=3D=3D0||this.iid=3D=3Dnull)this.iid=3D=
Msn.Drawing.GetGeoUID(MC_GEO_TYPE_ENTITY);return =
this.iid};VEShape.prototype.SetVisibility=3Dfunction(a){this.Visibility=3D=
a};VEShape.prototype.GetVisibility=3Dfunction(){if(typeof =
this.Visibility=3D=3D"undefined"||typeof =
this.Visibility=3D=3D"null")this.Visibility=3Dtrue;return =
this.Visibility};VEShape.prototype.SetBusinessListingId=3Dfunction(a){if(=
typeof a=3D=3D"undefined"||a=3D=3D"null")this.BusinessListingId=3D0;else =
this.BusinessListingId=3Da};VEShape.prototype.GetBusinessListingId=3Dfunc=
tion(){if(typeof =
this.BusinessListingId=3D=3D"undefined"||this.BusinessListingId=3D=3Dnull=
||this.BusinessListingId=3D=3D"null")this.BusinessListingId=3D0;return =
this.BusinessListingId};VEShape.prototype.SetType=3Dfunction(a){this.Type=
=3Da};VEShape.prototype.GetType=3Dfunction(){if(typeof =
this.Type=3D=3D"undefined")this.Type=3D"aN";return =
this.Type};VEShape.prototype.SetSaveStatus=3Dfunction(a){this.SaveStatus=3D=
a};VEShape.prototype.IsSaved=3Dfunction(){if(typeof =
this.SaveStatus=3D=3D"undefined")this.SaveStatus=3Dtrue;return =
this.SaveStatus};VEShape.prototype.SetOnScratchpad=3Dfunction(a){this.OnS=
cratchpad=3Da};VEShape.prototype.IsOnScratchpad=3Dfunction(){if(typeof =
this.OnScratchpad=3D=3D"undefined")this.OnScratchpad=3Dtrue;return =
this.OnScratchpad};VEShape.prototype.SetZoomLevel=3Dfunction(a){this.Zoom=
Level=3Da};VEShape.prototype.GetZoomLevel=3Dfunction(){if(typeof =
this.ZoomLevel=3D=3D"undefined")this.ZoomLevel=3D12;return =
this.ZoomLevel};VEShape.prototype.SetChangeState=3Dfunction(a){this.Chang=
eState=3Da};VEShape.prototype.GetChangeState=3Dfunction(){if(typeof =
this.ChangeState=3D=3D"undefined")this.ChangeState=3DMC_CHANGE_STATE_DEFA=
ULT;return =
this.ChangeState};VEShape.prototype.SetChangeType=3Dfunction(a){this.Chan=
geType=3Da};VEShape.prototype.GetChangeType=3Dfunction(){if(typeof =
this.ChangeType=3D=3D"undefined")this.ChangeType=3DMC_CHANGE_TYPE_ALL;ret=
urn this.ChangeType};VEShape.prototype.HasAltitude=3Dfunction(){var =
a=3Dthis.Primitives;if(typeof a=3D=3D"undefined"||a=3D=3Dnull)return =
false;if(a[0].altitudes=3D=3Dnull)return false;else return =
true};VEShape.prototype.GetPrimitiveCount=3Dfunction(){if(typeof =
this.Primitives=3D=3D"undefined"||this.Primitives=3D=3Dnull){this.Primiti=
ves=3D[];return 0}return =
this.Primitives.length};VEShape.prototype.SetPrimitives=3Dfunction(a){thi=
s.Primitives=3Da;this.SetType(a[0].type)};VEShape.prototype.GetPrimitives=
=3Dfunction(){if(typeof =
this.Primitives=3D=3D"undefined"||this.Primitives=3D=3Dnull)this.Primitiv=
es=3D[];return =
this.Primitives};VEShape.prototype.GetPrimitive=3Dfunction(a){if(typeof =
this.Primitives=3D=3D"undefined"||this.Primitives=3D=3Dnull||this.Primiti=
ves.length=3D=3D0){this.Primitives=3D[];return =
null}if(a",f=3Dthis.Primitives.length,d=3Dnull;for(var =
e=3D0;e",d.points.join(","),"")}var =
b=3D"",c=3D" ";a=3Da.concat("");a=3Da.concat(b,this.GetBusiness=
ListingId(),c,b,this.Url,c,b,this.PhotoUrl,c,b,this.Title,c,b,this.Type,c=
);a=3Da.concat(" ");a=3Da.concat(" ");return a};function =
VE_3DViewPort(){this.Latitude=3D0;this.Longitude=3D0;this.Altitude=3D0;th=
is.Altitudemode=3D"Datum";this.Pitch=3D0;this.Heading=3D0;this.Mapstyle=3D=
"r";this.SceneId=3D0;this.Properties=3Dnull}function =
VE_3DModelRep(){this.Transform=3Dnull;this.ModelRefId=3Dnull;this.MinBoun=
ds=3Dnull;this.MaxBounds=3Dnull;this.Properties=3Dnull;this.R2eoffset=3Dn=
ull}function =
VE_3DModelData(){this.Properties=3Dnull;this.Callback=3Dnull}function =
VE_3DTour(){this.Actions=3Dnull}function =
VE_Photo(){this.Id=3Dnull;this.Url=3Dnull;this.Properties=3Dnull}VEShape.=
prototype.SetPhotos=3Dfunction(a){this.Photos=3Da};function =
_VE_EntityDrawingState(){this.zIndexIcon=3Dnull;this.zIndexPolyShape=3Dnu=
ll;this.minZoomLevel=3Dnull;this.maxZoomLevel=3Dnull;this.isShared=3Dnull=
;this.parentEl=3Dnull;this.text=3Dnull}function =
_VE_CreateServiceInstance(a){switch(a){case =
_VE_ServiceType.MapCruncher:return new =
VETileSourceSpecification;default:return null}return =
null}_VE_ServiceType=3D{MapCruncher:"t",NetworkLink:"n"};VEShape.Decoder=3D=
new _xy1;VEShape.LatLongFactory=3Dnew VELatLongFactory(new =
VELatLongFactoryAlwaysEncodeSpec);VEShape.prototype._Construct=3Dfunction=
(j,g,e){var a=3D[],d=3D[],k=3Dfalse,f=3Dnull;if(typeof =
g!=3D"undefined"){if(g=3D=3DMC_VESHAPE_EMPTY&&j){this.maxZoomLevel=3DMsn.=
VE.API.Globals.veshapemaxzoom;this.minZoomLevel=3DMsn.VE.API.Globals.vesh=
apeminzoom;this._eroContent=3Dnull;this._shplayer=3Dnull;return}}else =
throw new =
VEException("VEShape","err_invalidargument",L_invalidargument_text.replac=
e("%1","type").replace("%2","VEShapeType"));if(typeof =
e=3D=3D"object")if(typeof e.length=3D=3D"number"){var =
l=3De.length;for(var h=3D0;hthis.maxZoomLevel)throw new =
VEException("VEShape.SetMaxZoomLevel","err_incorrectzoomlevel",L_Shp_Inco=
rrectZoomLevel_Text);else if(athis.maxZoomLevel)throw new =
VEException("VEShape.SetMinZoomLevel","err_incorrectzoomlevel",L_invalidm=
inmaxzoom_text);this.minZoomLevel=3Da;if(this.GetVisibility())this.Show()=
};VEShape.prototype.GetMinZoomLevel=3Dfunction(){return =
this.minZoomLevel};VEShape.prototype.GetCustomIcon=3Dfunction(){var =
a=3Dnull,b=3Dthis.Primitives[0].symbol;if(typeof =
b=3D=3D"object"&&b.isOn=3D=3Dtrue){a=3Dnew =
VECustomIconSpecification;a.Image=3Db.imagedata_src;a.TextBold=3Db.textbo=
x_bold;a.TextItalics=3Db.textbox_italic;a.TextUnderline=3Db.textbox_under=
score;a.TextFont=3Db.textbox_font;a.TextSize=3Db.textbox_size;a.TextOffse=
t=3Dnew VEPixel(b.textbox_OffsetX,b.textbox_OffsetY);a.ImageOffset=3Dnew =
VEPixel(b.img_offsetX,b.img_offsetY);a.CustomHTML=3Dthis._customIcon;a.Te=
xtContent=3Dthis.Primitives[0].name;a.ImageWidth=3Db.img_width;a.ImageHei=
ght=3Db.img_height;var e=3Dnew =
VEHexStringToColor,d=3Db.textbox_color;if(d.indexOf("#")=3D=3D0)d=3Dd.sub=
string(1);a.ForeColor=3De.Convert(d);a.ForeColor.A=3Db.textbox_color_opac=
ity;var =
c=3Db.textbox_backcolor;if(c.indexOf("#")=3D=3D0)c=3Dc.substring(1);a.Bac=
kColor=3De.Convert(c);a.BackColor.A=3Db.textbox_backcolor_opacity}else =
a=3Dthis._customIcon;return =
a};VEShape.prototype.SetCustomIcon=3Dfunction(b){if(typeof =
b=3D=3D"undefined"||b=3D=3Dnull)return null;if(typeof =
b=3D=3D"object"){VEValidator.ValidateObject(b,"_content_",VECustomIconSpe=
cification,"VECustomIconSpecification");if(typeof =
b.TextContent=3D=3D"string"&&b.TextContent!=3Dnull)this.Primitives[0].nam=
e=3Db.TextContent;var =
a=3Dthis.Primitives[0].symbol;if(a.id=3D=3DMC_PROPERTY_PARK||a.id=3D=3DMC=
_PROPERTY_PUSHPIN)a=3Da.Clone();if(typeof =
b.Image=3D=3D"string"&&b.Image!=3Dnull)a.imagedata_src=3DGetImageFullUrl(=
b.Image);else a.imagedata_src=3DMsn.VE.API.Constants.iconurl;var =
e=3Db.ForeColor;if(typeof =
e=3D=3D"object"&&e!=3Dnull){VEValidator.ValidateObject(e,"fC",VEColor,"VE=
Color");a.textbox_color=3De.ToHexString();a.textbox_color_opacity=3De.A}v=
ar d=3Db.BackColor;if(typeof =
d=3D=3D"object"&&d!=3Dnull){VEValidator.ValidateObject(d,"bC",VEColor,"VE=
Color");a.textbox_backcolor=3Dd.ToHexString();a.textbox_backcolor_opacity=
=3Dd.A}var g=3Db.TextOffset;if(typeof =
g=3D=3D"object"&&g!=3Dnull){VEValidator.ValidateObject(g,"tO",VEPixel,"VE=
Pixel");a.textbox_OffsetX=3Db.TextOffset.x;a.textbox_OffsetY=3Db.TextOffs=
et.y}var f=3Db.ImageOffset;if(typeof =
f=3D=3D"object"&&f!=3Dnull){VEValidator.ValidateObject(f,"iO",VEPixel,"VE=
Pixel");a.img_offsetX=3Df.x;a.img_offsetY=3Df.y}if(b.TextBold)a.textbox_b=
old=3Dtrue;if(b.TextItalics)a.textbox_italic=3Dtrue;if(b.TextUnderline)a.=
textbox_underscore=3Dtrue;var =
l=3DparseInt(b.ImageWidth);if(!isNaN(l))a.img_width=3Dl;var =
k=3DparseInt(b.ImageHeight);if(!isNaN(k))a.img_height=3Dk;a.textbox_font=3D=
b.TextFont;a.imagedata_on=3Dtrue;var =
i=3DparseInt(b.TextSize);if(!isNaN(i))a.textbox_size=3Di;a.isOn=3Dtrue;th=
is.Primitives[0].symbol=3Da;if(b.CustomHTML!=3Dnull)this._customIcon=3Db.=
CustomHTML;else if(this.Primitives[0].name){var c=3D[];c.push("");c.push("
");=
c.push(this.Primitives[0].name);c.push("
");c.push("
');else =
c.push("/>");c.push("
");this._customIcon=3Dc.join("")}else =
this._customIcon=3Da.imagedata_src}else if(typeof =
b=3D=3D"string"){this._customIcon=3Db;if(b.indexOf("<")<0){var =
a=3Dthis.Primitives[0].symbol;if(a.id=3D=3DMC_PROPERTY_PARK||a.id=3D=3DMC=
_PROPERTY_PUSHPIN)a=3Da.Clone();a.imagedata_src=3DGetImageFullUrl(b);a.is=
On=3Dtrue;this.Primitives[0].symbol=3Da}}this._IconContent=3Dnull;this.Re=
draw(false,false,false,true)};VEShape.prototype.GetIconAnchor=3Dfunction(=
){if(this.Altitude)return new =
VELatLong(this.Latitude,this.Longitude,this.Altitude,this.Primitives[0].a=
ltitudeMode);else return new =
VELatLong(this.Latitude,this.Longitude)};VEShape.prototype.SetIconAnchor=3D=
function(a){if(this.IsModel())return =
false;if(a!=3Dnull&&a!=3D"undefined"){VEValidator.ValidateObject(a,"veLat=
long",VELatLong,"VELatLong");if(a.HasAltitude()&&a.AltitudeMode!=3Dthis.P=
rimitives[0].altitudeMode)throw new =
VEException("VEShape","err_altitudemodemismatch",L_altitudemodemismatch_T=
ext);var =
b=3Dthis.Primitives[0];if(b.type!=3DVEShapeType.Pushpin){this.Latitude=3D=
a.Latitude;this.Longitude=3Da.Longitude;b.labelPosX=3Dthis.Longitude;b.la=
belPosY=3Dthis.Latitude;if(a.HasAltitude()){this.Altitude=3Da.Altitude;b.=
labelPosZ=3Da.Altitude}else{this.Altitude=3Dnull;b.labelPosZ=3Dnull}}else=
=
this.SetPoints(a)}this.Redraw(false,true)};VEShape.prototype.GetCustomInf=
oBox=3Dfunction(){return =
this._eroContent};VEShape.prototype.SetCustomInfoBox=3Dfunction(a){if(typ=
eof =
a!=3D"undefined"&&a!=3Dnull)this._eroContent=3Da.replace(/%0D%0A/g,"\r\n"=
).replace(/%0A/g,"\n")};VEShape.prototype.SetZIndex=3Dfunction(c,b){if(c!=
=3Dnull)VEValidator.ValidateInt(c,"icon");if(b!=3Dnull)VEValidator.Valida=
teInt(b,"polyshape");if(c=3D=3Dnull&&b=3D=3Dnull)throw new =
VEException("VEShape.SetZIndex","L_invalidzindex_text",L_invalidzindex_te=
xt);var =
a=3Dthis.Primitives[0].symbol;if(a.id=3D=3DMC_PROPERTY_PARK||a.id=3D=3DMC=
_PROPERTY_PUSHPIN)a=3Da.Clone();if(c!=3Dnull)a.style_zIndex=3DparseInt(c)=
;if(b!=3Dnull)a.style_zIndex_polyshape=3DparseInt(b);this.Primitives[0].s=
ymbol=3Da;this.Redraw(false,false,true,true)};VEShape.prototype.GetZIndex=
=3Dfunction(){if(this.Primitives[0].symbol!=3Dnull&&this.Primitives[0].sy=
mbol.style_zIndex!=3Dnull)return =
this.Primitives[0].symbol.style_zIndex;else return =
Msn.VE.API.Globals.veshapeiconzindex};VEShape.prototype.GetZIndexPolyShap=
e=3Dfunction(){if(this.Primitives[0].symbol!=3Dnull&&this.Primitives[0].s=
ymbol.style_zIndex_polyshape!=3Dnull)return =
this.Primitives[0].symbol.style_zIndex_polyshape;else return =
Msn.VE.API.Globals.veshapepolyshapezindex};VEShape.prototype.SetLineColor=
=3Dfunction(b){if(this.Primitives[0].type=3D=3DVEShapeType.Pushpin)return=
false;if(typeof =
b=3D=3D"object"&&b!=3Dnull){VEValidator.ValidateObject(b,"_color",VEColor=
,"VEColor");var =
a=3Dthis.Primitives[0].symbol;if(a.id=3D=3DMC_PROPERTY_PARK||a.id=3D=3DMC=
_PROPERTY_PUSHPIN)a=3Da.Clone();a.stroke_color=3Db.ToHexString();a.stroke=
_opacity=3Db.A;this.Primitives[0].symbol=3Da;this.Redraw(false,false,true=
,false)}else if(typeof b!=3D"undefined")throw new =
VEException("SetLineColor","err_invalidargument",L_invalidargument_text.r=
eplace("%1","color").replace("%2","VEColor"))};VEShape.prototype.GetLineC=
olor=3Dfunction(){if(this.Primitives[0].type=3D=3DVEShapeType.Pushpin)ret=
urn null;var c=3Dthis.Primitives[0].symbol,e=3Dnew =
VEHexStringToColor,a=3Dc.stroke_color;if(a.indexOf("#")=3D=3D0)a=3Da.subs=
tring(1);var =
b=3De.Convert(a),d=3Dc.stroke_opacity.toString();if(d.indexOf("%")>0)b.A=3D=
parseInt(d)/100;else b.A=3Dc.stroke_opacity;return =
b};VEShape.prototype.SetFillColor=3Dfunction(b){if(this.Primitives[0].typ=
e=3D=3DVEShapeType.Pushpin)return false;if(typeof =
b=3D=3D"object"&&b!=3Dnull){VEValidator.ValidateObject(b,"_color",VEColor=
,"VEColor");var =
a=3Dthis.Primitives[0].symbol;if(a.id=3D=3DMC_PROPERTY_PARK||a.id=3D=3DMC=
_PROPERTY_PUSHPIN)a=3Da.Clone();a.fill_color=3Db.ToHexString();a.fill_opa=
city=3Db.A;this.Primitives[0].symbol=3Da;this.Redraw(false,false,true,fal=
se)}else if(typeof b!=3D"undefined")throw new =
VEException("SetFillColor","err_invalidargument",L_invalidargument_text.r=
eplace("%1","color").replace("%2","VEColor"))};VEShape.prototype.GetFillC=
olor=3Dfunction(){if(this.Primitives[0].type=3D=3DVEShapeType.Pushpin)ret=
urn null;var c=3Dthis.Primitives[0].symbol,e=3Dnew =
VEHexStringToColor,a=3Dc.fill_color;if(a.indexOf("#")=3D=3D0)a=3Da.substr=
ing(1);var =
b=3De.Convert(a),d=3Dc.fill_opacity.toString();if(d.indexOf("%")>0)b.A=3D=
parseInt(d)/100;else b.A=3Dc.fill_opacity;return =
b};VEShape.prototype.SetLineWidth=3Dfunction(c){if(this.Primitives[0].typ=
e=3D=3DVEShapeType.Pushpin)throw new =
VEException("VEShape.SetLineWidth","err_invalidlinewidth",L_Shp_Incorrect=
LineWidth_Text);var b=3DparseInt(c);if(isNaN(b)||b<1)throw new =
VEException("VEShape.SetLineWidth","err_invalidlinewidth",L_Shp_Incorrect=
LineWidth_Text);var =
a=3Dthis.Primitives[0].symbol;if(a.id=3D=3DMC_PROPERTY_PARK||a.id=3D=3DMC=
_PROPERTY_PUSHPIN)a=3Da.Clone();a.stroke_weight=3Db;this.Primitives[0].sy=
mbol=3Da;this.Redraw(false,false,true,false)};VEShape.prototype.GetLineWi=
dth=3Dfunction(){if(this.Primitives[0].type=3D=3DVEShapeType.Pushpin)retu=
rn null;var =
a=3DparseInt(this.Primitives[0].symbol.stroke_weight);if(isNaN(a))return =
0;else return =
a};VEShape.prototype.SetPhotoURL=3Dfunction(a){this._eroContent=3Dnull;th=
is.PhotoUrl=3Da};VEShape.prototype.GetPhotoURL=3Dfunction(){return =
this.PhotoUrl};VEShape.prototype.SetMoreInfoURL=3Dfunction(a){this._eroCo=
ntent=3Dnull;this.Url=3Da};VEShape.prototype.GetMoreInfoURL=3Dfunction(){=
return =
this.Url};VEShapeLayer.prototype.GetBoundingRectangle=3Dfunction(){var =
a=3Dthis.GetBoundingBox();return new VELatLongRectangle(new =
VELatLong(a.y2,a.x1),new =
VELatLong(a.y1,a.x2))};VEShape.prototype._OffsetScene=3Dnull;VEShape.prot=
otype._OffsetLatLong=3Dnull;VEShape.prototype._OffsetPoints=3Dnull;VEShap=
e.prototype._OriginalPoints=3Dnull;VEShape.prototype._UsingOffset=3Dfalse=
;VEShape.prototype.SetUseOffset=3Dfunction(b){if(this._UsingOffset!=3Db){=
this._UsingOffset=3Db;if(b){if(this._OffsetPoints!=3Dnull){var =
a=3D[];for(var c=3D0;c');a.push(VECreateVEShapeERO(this,this._shplayer._mapGuid));a.push("=
")}return =
a.join("")};VEShape.prototype._isDrawn=3Dfalse;VEShape.prototype._isHidde=
nForZoom=3Dfalse;VEShape.prototype.GetShapeElement=3Dfunction(){var =
a=3Dthis.Primitives[0];if(this._isDrawn&&a&&a.type!=3DVEShapeType.Pushpin=
){if(a._shapeElement=3D=3Dnull)a._shapeElement=3D$ID(a.iid);return =
a._shapeElement}return =
null};VEShape.prototype.GetIconElement=3Dfunction(){var =
a=3Dthis.Primitives[0];if(this._isDrawn&&a){if(a._iconElement=3D=3Dnull)i=
f(a.type=3D=3DVEShapeType.Pushpin)a._iconElement=3D$ID(a.iid);else =
a._iconElement=3D$ID(Msn.Drawing.GetLabelUID(a.iid));return =
a._iconElement}return =
null};VEShape.prototype.ClearDomElements=3Dfunction(){var =
a=3Dthis.Primitives[0];if(a){a._shapeElement=3Dnull;a._iconElement=3Dnull=
}};VEShape.prototype.DisposeEx=3Dfunction(){this.ClearDomElements();this.=
Dispose()};VEShape.prototype.Draggable=3Dfalse;VEShape.prototype.onstartd=
rag=3Dnull;VEShape.prototype.ondrag=3Dnull;VEShape.prototype.onenddrag=3D=
null;function =
ShapeDragEventArgs(b,a){this.Shape=3Db;this.LatLong=3Da}function =
VECustomIconSpecification(){this.Image=3Dnull;this.TextContent=3Dnull;thi=
s.CustomHTML=3Dnull;this.textFont=3D"Arial";this.TextBold=3Dfalse;this.Te=
xtItalics=3Dfalse;this.TextUnderline=3Dfalse;this.TextSize=3D7;this.Image=
Offset=3Dnull;this.TextOffset=3Dnull;this.ForeColor=3Dnull;this.BackColor=
=3Dnull;this.ImageWidth=3D-1;this.ImageHeight=3D-1}function =
VEClusteringOptions(){this.Icon=3Dnull;this.Callback=3Dnull}VEClusteringT=
ype=3Dnew function(){this.None=3D0;this.Grid=3D1};function =
VEClusterSpecification(){this._clusterShape=3Dnull;this.Shapes=3D[];this.=
LatLong=3Dnull;VEClusterSpecification.prototype.GetClusterShape=3Dfunctio=
n(){return =
this._clusterShape}}VE_SetModuleStatus(VE_ModuleName.APILAYERS,"loaded");=
VEMap.prototype.InitMapDrawing=3Dfunction(){cssCursors=3DMsn.VE.Css.Curso=
rs;if(VE_MapDispatch_SymbolLib=3D=3Dnull){VE_MapDispatch_SymbolLib=3Dnew =
VEShapeStyleLibrary;VEShapeStyle.prototype.imagedata_src=3DMsn.VE.API.Con=
stants.iconurl}if(this.m_velayermanager=3D=3Dnull){this.m_velayermanager=3D=
new =
VELayerManager(this);this._lm=3Dthis.m_velayermanager}};VEMap.prototype.I=
nitTiles=3Dfunction(){if(!this.m_vetilesourcemanager)this.m_vetilesourcem=
anager=3Dnew =
VETileSourceManager(this)};VEMap.prototype.AddTileLayer=3Dfunction(a,b,c)=
{VEValidator.ValidateObject(a,"tileSourceSpec",VETileSourceSpecification,=
"VETileSourceSpecification");this.m_vetilesourcemanager.AddTileSource(a,c=
,b)};VEMap.prototype.ShowTileLayer=3Dfunction(a){this.m_vetilesourcemanag=
er.ShowTileLayer(a)};VEMap.prototype.ShowAllTileLayers=3Dfunction(){this.=
m_vetilesourcemanager.ShowAllTileLayers()};VEMap.prototype.HideTileLayer=3D=
function(a){this.m_vetilesourcemanager.HideTileLayer(a)};VEMap.prototype.=
ShowBaseTileLayer=3Dfunction(){this.m_vetilesourcemanager.ShowBaseTileLay=
er()};VEMap.prototype.HideBaseTileLayer=3Dfunction(){this.m_vetilesourcem=
anager.HideBaseTileLayer()};VEMap.prototype.HideAllTileLayers=3Dfunction(=
){this.m_vetilesourcemanager.HideAllTileLayers()};VEMap.prototype.DeleteT=
ileLayer=3Dfunction(a){this.m_vetilesourcemanager.DeleteSourceById(a)};VE=
Map.prototype.DeleteAllTileLayers=3Dfunction(){this.m_vetilesourcemanager=
.DeleteAllSources()};VEMap.prototype.GetTileLayerCount=3Dfunction(){retur=
n =
this.m_vetilesourcemanager.GetSourceCount()};VEMap.prototype.GetTileLayer=
ByID=3Dfunction(a){return =
this.m_vetilesourcemanager.GetSourceById(a)};VEMap.prototype.GetTileLayer=
ByIndex=3Dfunction(a){return =
this.m_vetilesourcemanager.GetSourceByIndex(a)};function =
VETileSourceSpecification(h,i,d,g,f,e,c,a,b){this.ID=3Dnull;this.TileSour=
ce=3Dnull;this.NumServers=3D1;this.Bounds=3Dnull;this.MinZoomLevel=3D0;th=
is.MaxZoomLevel=3D1;this.GetTilePath=3Dnull;this.Opacity=3Dnull;this.ZInd=
ex=3Dnull;this.SetsBestMapView=3Dtrue;this.FnCallback=3Dnull;this.IsVisib=
le=3Dtrue;this.LoadTiles=3Dtrue;if(typeof =
h=3D=3D"string")this.ID=3Dh;else throw new =
VEException("VETileSourceSpecification","err_invalidargument",L_invalidar=
gument_text.replace("%1","ID").replace("%2","string"));if(typeof =
i=3D=3D"string")this.TileSource=3Di.replace(/%20/g," ");else throw new =
VEException("VETileSourceSpecification","err_invalidargument",L_invalidar=
gument_text.replace("%1","tileSource").replace("%2","string"));if(d!=3D"u=
ndefined"&&d!=3Dnull)this.NumServers=3Dd;if(g!=3D"undefined"&&g!=3Dnull)t=
his.Bounds=3Dg;if(f!=3D"undefined"&&f!=3Dnull)this.MinZoomLevel=3Df;if(e!=
=3D"undefined"&&e!=3Dnull)this.MaxZoomLevel=3De;if(c!=3D"undefined"&&c!=3D=
null)this.GetTilePath=3Dc;if(a!=3D"undefined"&&a!=3Dnull){VEValidator.Val=
idateFloat(a,"Opacity");if(a<0||a>1)throw new =
VEException("VEMap:AddTileLayer","err_invalidOpacity",L_invalidopacity_te=
xt);this.Opacity=3Da}if(b!=3D"undefined"&&b!=3Dnull){VEValidator.Validate=
Int(b,"ZIndex");this.ZIndex=3Db}else =
this.ZIndex=3DMsn.VE.API.Globals.vetilelayerdefaultzindex}function =
VETileSourceManager(a){var =
b=3Dthis;VEValidator.ValidateNonNull(a,"vemap");this.m_vemap=3Da;this.m_v=
emapcontrol=3Dthis.m_vemap.vemapcontrol;this.m_vetilesources=3D[];this.Ad=
dTileSource=3Dfunction(a,d,c){VEValidator.ValidateObject(a,"tileSourceSpe=
c",VETileSourceSpecification,"VETileSourceSpecification");VEValidator.Val=
idateNonNull(a.ID,"tileSourceSpec.ID");if(a.MinZoomLevel!=3Dnull)VEValida=
tor.ValidateNonNegativeInt(a.MinZoomLevel,"tileSourceSpec.MinZoomLevel");=
if(a.MaxZoomLevel!=3Dnull){VEValidator.ValidateNonNegativeInt(a.MaxZoomLe=
vel,"tileSourceSpec.MaxZoomLevel");VEValidator.ValidateMaxZoom(a.MaxZoomL=
evel,"tileSourceSpec.MaxZoomLevel")}if(a.MinZoomLevel!=3Dnull&&a.MaxZoomL=
evel!=3Dnull)if(a.MinZoomLevel>a.MaxZoomLevel)throw new =
VEException("VETileSourceManager:AddVETileSource","err_invalidsourceid",L=
_invalidminmaxzoom_text);if(a.Bounds){var e=3Da.Bounds.length;for(var =
b=3D0;b"+L_what_text+" "+' '+""+""+L_where_text+" "+' "+"
"+""+''+L_find_text+" "+"
";this.mapelement.appendChild(el=
);addIFrameShim(el);if(el.shimElement)el.shimElement.className=3D"VE_Find=
Control_Iframe";return =
el};VEMap.prototype.ShowFindControl=3Dfunction(c,b){if(typeof =
c!=3D"undefined"||typeof =
b!=3D"undefined"){VEValidator.ValidateInt(c,"top");VEValidator.ValidateIn=
t(b,"left")}var d=3Dthis.ID+"_vefindcontrolinput",a=3D$ID(d);if(typeof =
a=3D=3D"undefined"||a=3D=3Dnull)a=3Dthis.CreateFindControl(d);if(isNaN(c)=
)a.style.top=3D"35px";else =
a.style.top=3Dc+"px";if(isNaN(b))a.style.left=3D"195px";else =
a.style.left=3Db+"px";a.style.display=3D"block";ShowShim(a)};VEMap.protot=
ype.HideFindControl=3Dfunction(){var =
a=3D$ID(this.ID+"_vefindcontrolinput");if(a!=3Dnull&&a!=3D"undefined"){a.=
style.display=3D"none";HideShim(a)}};VEMap.prototype.SetFindResultsPanel=3D=
function(a){if(a=3D=3Dnull||a=3D=3D"undefined")throw new =
VEException("VEMap:SetFindResultsPanel","err_invalidelement",L_invalidele=
ment_text);var b=3D$ID(a);if(b=3D=3Dnull||b=3D=3D"undefined")throw new =
VEException("VEMap:SetFindResultsPanel","err_invalidelement",L_invalidele=
ment_text);this.searchelement=3Da};function =
VEMatchCode(){}VEMatchCode.None=3D0;VEMatchCode.Good=3D1;VEMatchCode.Ambi=
guous=3D2;VEMatchCode.UpHierarchy=3D4;VEMatchCode.Modified=3D8;function =
VEMatchConfidence(){}VEMatchConfidence.High=3D0;VEMatchConfidence.Medium=3D=
1;VEMatchConfidence.Low=3D2;function =
VELocationPrecision(){}VELocationPrecision.Interpolated=3D0;VELocationPre=
cision.Rooftop=3D1;function =
VEGeocodeLocation(b,a){this.LatLong=3Db;this.Precision=3Da}function =
VEPlace(e,d,a,b,c,g,f){VEValidator.ValidateNonNull(e,"name");VEValidator.=
ValidateNonNull(d,"velatLong");this.Name=3De;this.LatLong=3Dd;if(typeof =
a!=3D"undefined"&&a!=3Dnull)this.LatLongRect=3Da;else =
this.LatLongRect=3Dnull;this.MatchConfidence=3Dtypeof =
b!=3D"undefined"?b:null;this.MatchCode=3Dtypeof =
c!=3D"undefined"?c:null;this.Precision=3Dg;this.Locations=3Df}function =
VEGeocodeOptions(b,a){this.SetBestMapView=3Db;this.UseDefaultDisambiguati=
on=3Da}function =
VESearchOptions(d,e,f,i,g,h,c,b,a){this.SetBestMapView=3Dd;this.CreateRes=
ults=3De;this.ShowResults=3Df;this.FindType=3Di;this.ShapeLayer=3Dg;this.=
StartIndex=3Dh;this.NumberOfResults=3Dc;this.BoundingRectangle=3Db;this.U=
seDefaultDisambiguation=3Da}function =
VEFindSpec(l,a,j,g,h,b,f,e,c,d,i,k){this.DisambuigationCancelled=3Dfalse;=
this.WhatString=3D"";this.WhatResults=3Dnull;this.WhatHasMore=3Dnull;if(l=
!=3Dnull){if(typeof l!=3D"string")throw new =
VEException("VEMap.Find","err_invalidargument",L_invalidargument_text.rep=
lace("%1","what").replace("%2","string"));this.WhatString=3DIOSec.EncodeU=
rl(l)}this.WhereString=3D"";this.WhereRect=3Dnull;this.WhereLatLong=3Dnul=
l;this.WhereResults=3Dnull;if(a!=3Dnull)if(a instanceof =
VELatLongRectangle)this.WhereRect=3Da;else if(a instanceof =
VEPlace){this.WhereRect=3Da.LatLongRect;this.WhereLatLong=3Da.LatLong;thi=
s.WhereResults=3Da}else if(a instanceof =
VELatLong)this.WhereLatLong=3Da;else if(typeof =
a=3D=3D"string"){if(Msn.VE.API.Globals.locale.toLowerCase()=3D=3D"zh-cn"&=
&a.replace(/(^\s*)/g,"").toLowerCase().indexOf("map of ")!=3D0)a=3D"map =
of "+a;this.WhereString=3DIOSec.EncodeUrl(a)}else throw new =
VEException("VEMap.Find","err_invalidargument",L_invalidwhere_text);if(th=
is.WhatString=3D=3D""&&this.WhereString=3D=3D""&&this.QueryString=3D=3D""=
)throw new =
VEException("VEMap.Find","err_invalidwhatwhere",L_invalidwhatwhere_text);=
this.FindType=3DVEFindType.Businesses;if(j!=3Dnull)if(j=3D=3DVEFindType.B=
usinesses)this.FindType=3Dj;else throw new =
VEException("VEMap.Find","err_invalidargument",L_invalidargument_text.rep=
lace("%1","findType").replace("%2","VEFindType"));this.ShapeLayer=3Dnull;=
if(g!=3Dnull){VEValidator.ValidateObject(g,"shapeLayer",VEShapeLayer,"VES=
hapeLayer");this.ShapeLayer=3Dg}this.StartIndex=3D0;if(h!=3Dnull){VEValid=
ator.ValidateNonNegativeInt(h,"startIndex");this.StartIndex=3DparseInt(h)=
}this.NumberOfResults=3DMsn.VE.API.Globals.vefindnumresultsdefault;if(b!=3D=
null){VEValidator.ValidateInt(b);b=3DparseInt(b);VEValidator.ValidateBetw=
een(b,"numberOfResults",Msn.VE.API.Globals.vefindnumresultsmin,Msn.VE.API=
.Globals.vefindnumresultsmax);this.NumberOfResults=3Db}this.ShowResults=3D=
true;if(f!=3Dnull){VEValidator.ValidateBoolean(f,"showResults");this.Show=
Results=3Df}this.CreateResults=3Dtrue;if(e!=3Dnull){VEValidator.ValidateB=
oolean(e,"createResults");this.CreateResults=3De}this.UseDefaultDisambigu=
ation=3Dtrue;if(c!=3Dnull){VEValidator.ValidateBoolean(c,"useDefaultDisam=
biguation");this.UseDefaultDisambiguation=3Dc}this.SetBestMapView=3Dtrue;=
if(d!=3Dnull){VEValidator.ValidateBoolean(d,"setBestMapView");this.SetBes=
tMapView=3Dd}this.Callback=3Dnull;if(i!=3Dnull)if(typeof =
i=3D=3D"function")this.Callback=3Di;else throw new =
VEException("VEMap.Find","err_invalidargument",L_invalidargument_text.rep=
lace("%1","callback").replace("%2","function"));this.QueryString=3D"";if(=
typeof =
k!=3D"undefined"&&k!=3Dnull)this.QueryString=3DIOSec.EncodeUrl(k);this.Er=
rorMessage=3Dnull}function =
VEFindResults(a,c,b){this.ShapeLayer=3Da;this.Results=3Dc;this.HasMore=3D=
b}function =
VEFindResult(a,d,e,b,f,c,g){VEValidator.ValidateNonNull(a,"findType");VEV=
alidator.ValidateNonNull(e,"name");VEValidator.ValidateNonNull(b,"descrip=
tion");VEValidator.ValidateNonNull(c,"isSponsored");this.findType=3Da;thi=
s.FindType=3Da;this.shape=3Dd;this.Shape=3Dd;this.Name=3De;this.Descripti=
on=3Db;this.LatLong=3Df;this.IsSponsored=3Dc;this.Phone=3Dg}VEFindType=3D=
new function(){this.Businesses=3D"Business"};function =
VE_SearchManager(c){VEValidator.ValidateObject(c,"vemap",VEMap,"VEMap");t=
his.m_vemap=3Dc;var a=3Dthis,b=3Dnew VELatLongFactory(new =
VELatLongFactorySpecFromMap(this.m_vemap));this.m_showDisambigousDialog=3D=
true;this._DisambiguateCallback=3D"VEMap._GetMapFromGUID("+c.GUID+")._sm.=
FindAmbiguousListCallBack";var g=3Dnew =
_xy1,e=3Dnull;this.Initialize=3Dfunction(){};this.Find=3Dfunction(b){if(b=
.QueryString.length>0)h(b);else if(b.WhereString.length>0)i(b);else =
if(b.WhatString.length>0)j(b);else{if(b.SetBestMapView&&b.DisambuigationC=
ancelled=3D=3Dfalse)if(b.WhereRect!=3Dnull)a.m_vemap.SetMapView(b.WhereRe=
ct);else if(b.WhereLatLong!=3Dnull&&b.WhatResults!=3Dnull){var =
d=3D[b.WhereLatLong];for(var =
c=3D0;c0){var =
n=3Df.Results[0].MatchConfidence,o=3Df.Results.length,h=3D[];for(var =
k=3D0;k1){if(d.SetBestMapView)a.m=
_vemap.SetViewport(g[0][1],g[0][2],g[0][3],g[0][4]);e=3Dd;if(d.UseDefault=
Disambiguation)a.m_vemap.m_veambiguouslist.Show(g,a._DisambiguateCallback=
,true);else if(typeof =
a.m_vemap.DisambiguationCallback!=3D"undefined"&&a.m_vemap.Disambiguation=
Callback!=3Dnull&&typeof =
a.m_vemap.DisambiguationCallback=3D=3D"function")a.m_vemap.Disambiguation=
Callback(d.WhereResults);else a.Find(d)}else =
a.Find(d)};this.SearchQueryResponseHandler=3Dfunction(c,f){a.m_vemap.vema=
pcontrol.Fire("onendrequest");a.m_vemap.__HandleAuthentication(c);var =
p=3Dnull,m=3D[],i=3D[];if(c.SearchRegion!=3Dnull&&c.SearchRegion.Source=3D=
=3D"Query"&&c.SearchRegion.GeocodeLocations!=3Dnull&&c.SearchRegion.Geoco=
deLocations.length>0){var =
s=3Dc.SearchRegion.GeocodeLocations.length,l=3D[];for(var =
h=3D0;h0)for(var =
h=3D0;h0){if(p=3D=3Dnull)p=3Dd.MatchConfi=
dence;var l=3D[],s=3Dd.GeocodeLocations.length;for(var =
t=3D0;t0)f.Wher=
eResults=3Dm;f.WhereString=3D"";var =
r=3D[],w=3D[],x=3Df.ShapeLayer;if(c.SearchResults!=3Dnull&&c.SearchResult=
s.length>0){var =
s=3DMath.min(c.SearchResults.length,f.NumberOfResults);for(var =
h=3D0;h0?g.Addres=
s+", ":"";j+=3Dg.City!=3Dnull&&g.City.length>0?g.City+", =
":"";j+=3Dg.State!=3Dnull&&g.State.length>0?g.State:"";j=3Dj.replace(/(, =
)+$/,"");if(f.CreateResults){k=3Dnew =
VEShape(VEShapeType.Pushpin,u);k.SetTitle(g.Name);k.SetDescription(g.Phon=
e!=3Dnull?j+" "+g.Phone:j);if(!f.ShowResults)k.SetVisibility(false);x=
.AddShape(k);w.push(k)}var v=3Dnew =
VEFindResult(f.FindType,k,g.Name,j,u,false,g.Phone);r.push(v)}}f.WhatStri=
ng=3D"";f.QueryString=3D"";if(r.length>0){f.WhatResults=3Dr;f.WhatHasMore=
=3Dc.SearchResults.length>f.NumberOfResults}var =
q=3Dfalse;if(i.length>1){if(f.SetBestMapView)a.m_vemap.SetViewport(i[0][1=
],i[0][2],i[0][3],i[0][4]);e=3Df;if(f.UseDefaultDisambiguation){if(c.Pars=
eResults!=3Dnull&&c.ParseResults.length>0&&c.ParseResults[0].Keyword!=3Dn=
ull&&c.ParseResults[0].Keyword!=3D"")f.WhatString=3DIOSec.EncodeUrl(c.Par=
seResults[0].Keyword);a.m_vemap.m_veambiguouslist.Show(i,a._DisambiguateC=
allback,true);q=3Dtrue}else if(typeof =
a.m_vemap.DisambiguationCallback!=3D"undefined"&&a.m_vemap.Disambiguation=
Callback!=3Dnull&&typeof =
a.m_vemap.DisambiguationCallback=3D=3D"function"){a.m_vemap.Disambiguatio=
nCallback(f.WhereResults);q=3Dtrue}}if((f.WhereResults=3D=3Dnull||f.Where=
Results.length=3D=3D0)&&(f.WhatResults=3D=3Dnull||f.WhatResults.length=3D=
=3D0))f.ErrorMessage=3Da.m_vemap.IsValidCredentialsInResponse(c)?L_invali=
dsearchresult_Text:L_CredentialsInvalid_Text;if(!q)a.Find(f)};this.Search=
ResponseHandler=3Dfunction(g,d){a.m_vemap.vemapcontrol.Fire("onendrequest=
");a.m_vemap.__HandleAuthentication(g);var =
h=3D[],l=3D[],m=3Dd.ShapeLayer;if(g.SearchResults!=3Dnull&&g.SearchResult=
s.length>0){var =
n=3DMath.min(g.SearchResults.length,d.NumberOfResults);for(var =
i=3D0;i0?c.Addres=
s+", ":"";e+=3Dc.City!=3Dnull&&c.City.length>0?c.City+", =
":"";e+=3Dc.State!=3Dnull&&c.State.length>0?c.State:"";e=3De.replace(/(, =
)+$/,"");if(d.CreateResults){f=3Dnew =
VEShape(VEShapeType.Pushpin,j);f.SetTitle(c.Name);f.SetDescription(c.Phon=
e!=3Dnull?e+" "+c.Phone:e);if(!d.ShowResults)f.SetVisibility(false);m=
.AddShape(f);l.push(f)}var k=3Dnew =
VEFindResult(d.FindType,f,c.Name,e,j,false,c.Phone);h.push(k)}}d.WhatStri=
ng=3D"";if(h.length>0){d.WhatResults=3Dh;d.WhatHasMore=3Dg.SearchResults.=
length>d.NumberOfResults}else =
d.ErrorMessage=3Da.m_vemap.IsValidCredentialsInResponse(g)?L_invalidsearc=
hresult_Text:L_CredentialsInvalid_Text;a.Find(d)};this.FindAmbiguousListC=
allBack=3Dfunction(f,h,j,i,k){var c=3De;e=3Dnull;if(f!=3Dnull){var =
d=3D$ID(this.m_vemap.ID+"_vewhereinput");if(d)d.value=3Dunescape(f);var =
b=3Dc.WhereResults,g=3D-1;if(b)for(var =
a=3D0;a0){e=3D[];var =
l=3Dd.Results.length;for(var g=3D0;g0};this.Destroy=3Dfunction(){this.id=3Dnull;thi=
s.name=3Dnull}}Msn.VE.Search=3D{};Msn.VE.Search.strLastWhere=3D"";functio=
n =
VE_SearchResult(w,u,l,t,s,v,p,n,r,d,o,k,h,g,q,f,a,j,i,c,b,m){this.id=3Dw;=
this.name=3Du;this.description=3Dl;this.phone=3Dt;this.rating=3Ds;this.ty=
pe=3Dv;this.latitude=3Dp;this.longitude=3Dn;this.pushPin=3Dnull;this.pinI=
d=3Dnull;this.keywords=3Do;this.infoUrl=3Dr;this.photoUrl=3Dtypeof =
d!=3D"undefined"?d:"";this.mapserviceType=3Dk;this.mapserviceSource=3Dh;t=
his.mapserviceOpacity=3Dg;this.website=3Db!=3Dnull&&typeof =
b!=3D"undefined"&&b.constructor=3D=3DString?b:"";this.country=3Dq;var =
e=3Dnull;this.SetGeoRef=3Dfunction(a){e=3Da};this.GetGeoRef=3Dfunction(){=
return e};this.insideBoundingBox=3Df;var =
a=3Da;this.GetDistanceFromCenter=3Dfunction(b,c){if(typeof =
a=3D=3D"number"&&Msn.VE.DistanceUnit.IsValidType(b))if(b=3D=3D"mi"){if(a.=
toFixed)return c?a.toFixed(2)+L_DirectionsMi_Text:a.toFixed(2)}else =
if(b=3D=3D"km")if(a.toFixed)return =
c?(a*1.60934).toFixed(2)+L_DirectionsKm_Text:(a*1.60934).toFixed(2)};this=
.roofTopLatitude=3Dj;this.roofTopLongitude=3Di;if(typeof =
c=3D=3D=3D"boolean")this.isLocationPrecise=3Dc;else =
this.isLocationPrecise=3Dtrue;this.brandInfo=3Dm;this.adInfo=3Dnull;this.=
whitePageInfo=3Dnull}function VE_WebSearchResult(h,g,i,j,k){var =
c=3Da(h),d=3Da(g),e=3Da(i),b=3Da(j),f=3Da(k);this.GetCaptionUrl=3Dfunctio=
n(){return =
c};this.SetCaptionUrl=3Dfunction(b){c=3Da(b)};this.GetDescription=3Dfunct=
ion(){return =
d};this.SetDescription=3Dfunction(b){d=3Da(b)};this.GetDisplayUrl=3Dfunct=
ion(){return =
e};this.SetDisplayUrl=3Dfunction(b){e=3Da(b)};this.GetTitle=3Dfunction(){=
return =
b};this.SetTitle=3Dfunction(c){b=3Da(c)};this.GetUrl=3Dfunction(){return =
f};this.SetUrl=3Dfunction(b){f=3Da(b)};function a(a){if(typeof =
a=3D=3D"string"&&a.length>=3D0)return a;return =
null}}VE_SearchResult.prototype.Equals=3Dfunction(a){if(a=3D=3Dnull||a=3D=
=3D"undefined")return false;try{var =
b=3Dthis.name=3D=3Da.name&&this.description=3D=3Da.description&&this.phon=
e=3D=3Da.phone&&this.rating=3D=3Da.rating&&this.type=3D=3Da.type&&this.la=
titude=3D=3Da.latitude&&this.longitude=3D=3Da.longitude;return =
b}catch(c){return =
false}};VE_WebSearchResult.prototype.Equals=3Dfunction(a){if(a =
instanceof VE_WebSearchResult){var =
b=3Dthis.GetCaptionUrl()=3D=3Da.GetCaptionUrl()&&this.GetDescription()=3D=
=3Da.GetDescription()&&this.GetTitle()=3D=3Da.GetTitle()&&this.GetDisplay=
Url()=3D=3Da.GetDisplayUrl()&&this.GetUrl()=3D=3Da.GetUrl();return =
b}return false};function =
VE_ColInfo(e,d,b,a,c){this.id=3De;this.name=3Dd;this.businessId=3Db;this.=
entityCount=3Da;this.colType=3Dc}VE_SetModuleStatus(VE_ModuleName.APIFIND=
,"loaded");VEMap.prototype.InitRouting=3Dfunction(){if(!this.m_vedirectio=
nsmanager){this.m_vedirectionsmanager=3Dnew =
VEDirectionsManager(this);this.m_vedirectionsmanager.Initialize();this._d=
m=3Dthis.m_vedirectionsmanager}if(!this.m_routemanager)this.m_routemanage=
r=3Dnew =
VERouteManager(this)};VEMap.prototype.GetRoute=3Dfunction(d,e,b,c,a){this=
.InitRouting();this.m_vedirectionsmanager.GetDrivingDirections(d,e,b,c,a)=
};VEMap.prototype.DeleteRoute=3Dfunction(){this.InitRouting();this.m_rout=
emanager.ClearRoute()};function =
VERouteDistanceUnit(){}VERouteDistanceUnit.Mile=3D"Mile";VERouteDistanceU=
nit.Kilometer=3D"Kilometer";VERouteDistanceUnit.Default=3DVERouteDistance=
Unit.Mile;function =
VERouteOptimize(){}VERouteOptimize.MinimizeTime=3D"MinimizeTime";VERouteO=
ptimize.MinimizeDistance=3D"MinimizeDistance";VERouteOptimize.Default=3D"=
Default";function =
VERouteMode(){}VERouteMode.Driving=3D"Driving";VERouteMode.Walking=3D"Wal=
king";VERouteMode.Default=3DVERouteMode.Driving;function =
VERouteWarningSeverity(){}VERouteWarningSeverity.None=3D0;VERouteWarningS=
everity.LowImpact=3D1;VERouteWarningSeverity.Minor=3D2;VERouteWarningSeve=
rity.Moderate=3D3;VERouteWarningSeverity.Serious=3D4;function =
VERouteHintType(){}VERouteHintType.PreviousIntersection=3D1;VERouteHintTy=
pe.NextIntersection=3D2;VERouteHintType.Landmark=3D3;function =
VEServiceRequest(d,b,c,a){this.ID=3Dd;this.Service=3Db;this.Params=3Dc;th=
is.Callback=3Da}function =
VE_Location(c,b,a){this.name=3Dc;this.latitude=3Db;this.longitude=3Da}fun=
ction =
VERouteOptions(){this.DistanceUnit=3DVERouteDistanceUnit.Default;this.Rou=
teOptimize=3DVERouteOptimize.Default;this.RouteMode=3DVERouteMode.Default=
;this.RouteCallback=3Dnull;this.DrawRoute=3Dtrue;this.RouteWeight=3D6;thi=
s.RouteColor=3Dnew =
VEColor(0,169,235,.7);this.RouteZIndex=3D4;this.SetBestMapView=3Dtrue;thi=
s.ShowDisambiguation=3Dtrue;this.ShowErrorMessages=3Dtrue;this.UseTraffic=
=3Dfalse;this.UseMWS=3Dfalse}function =
VERoute(){this.RouteLegs=3D[];this.Distance=3D0;this.Time=3D0;this.ShapeP=
oints=3Dnull}function VERouteItinerary(){this.Items=3D[]}function =
VERouteItineraryItem(f,c,a,e,g,b,d){this.Text=3Df;this.LatLong=3Dc;this.D=
istance=3Da;this.Shape=3De;this.Time=3Dg;this.Warnings=3Db;this.Hints=3Dd=
}function =
VERouteLeg(a,b,d,c,e){this.StartLocation=3Da;this.EndLocation=3Db;this.Di=
stance=3Dd;this.Itinerary=3Dc;this.Time=3De}function =
VERouteHint(b,a){this.Type=3Db;this.Text=3Da}function =
VERouteWarning(b,a){this.Text=3Db;this.Severity=3Da}VEMap.prototype.GetDi=
rections=3Dfunction(b,a){this.m_routemanager.GetRoute(b,a)};function =
VERouteManager(vemap){var =
self=3Dthis,m_vemap=3Dvemap,m_routeShapeLayer=3Dnull,m_routeHighlight=3Dn=
ull,m_encoder=3Dnew _xz1,m_veLatLongDecoder=3Dnew =
_xy1,m_veLatLongFactory=3Dnew VELatLongFactory(new =
VELatLongFactorySpecFromMap(m_vemap)),m_routeDecoder=3Dnew =
Msn.VE.DirectionsDecoder,m_routeOptions=3Dnull,m_locations=3D[],m_current=
LocationIndex=3D0,m_requestQueue=3D[],m_route=3Dnull,m_requestID=3Dnull;t=
his.GetRoute=3Dfunction(e,a){m_requestID=3DVENetwork.GetExecutionID();m_v=
emap.DeleteRoute();if(!e||!e.length||e.length<2)throw new =
VEException("","err_invalidargument",L_invaliddirections_text);if(a){VEVa=
lidator.ValidateObject(a,"routeOptions",VERouteOptions,"VERouteOptions");=
if(a.DistanceUnit!=3DVERouteDistanceUnit.Mile&&a.DistanceUnit!=3DVERouteD=
istanceUnit.Kilometer)throw new =
VEException("","err_invalidargument",L_invalidargument_text.replace("%1",=
"routeOptions.DistanceUnit").replace("%2","VERouteDistanceUnit"));if(a.Ro=
uteOptimize!=3DVERouteOptimize.Default&&a.RouteOptimize!=3DVERouteOptimiz=
e.MinimizeTime&&a.RouteOptimize!=3DVERouteOptimize.MinimizeDistance)throw=
new =
VEException("","err_invalidargument",L_invalidargument_text.replace("%1",=
"routeOptions.RouteOptimize").replace("%2","VERouteOptimize"));if(a.Route=
Mode!=3DVERouteMode.Driving&&a.RouteMode!=3DVERouteMode.Walking)throw =
new =
VEException("","err_invalidargument",L_invalidargument_text.replace("%1",=
"routeOptions.RouteMode").replace("%2","VERouteMode"));if(a.RouteMode=3D=3D=
VERouteMode.Driving&&!$MVEM.IsEnabled(MapControl.Features.RouteOptions.Ro=
uteMode.Driving)||a.RouteMode=3D=3DVERouteMode.Walking&&!$MVEM.IsEnabled(=
MapControl.Features.RouteOptions.RouteMode.Walking))throw new =
VEException("","err_notSupportProperty",L_UnsupportProperty_Text.replace(=
"%1","VERouteOptions").replace("%2","RouteMode").replace("%3",a.RouteMode=
.toString()));VEValidator.ValidateBoolean(a.DrawRoute,"routeOptions.DrawR=
oute");if(a.RouteCallback)VEValidator.ValidateFunction(a.RouteCallback,"r=
outeOptions.RouteCallback");VEValidator.ValidateFloat(a.RouteWeight,"rout=
eOptions.RouteWeight");VEValidator.ValidateObject(a.RouteColor,"routeOpti=
ons.RouteColor",VEColor,"VEColor");VEValidator.ValidateInt(a.RouteZIndex,=
"routeOptions.RouteZIndex");VEValidator.ValidateBoolean(a.SetBestMapView,=
"routeOptions.SetBestMapView");VEValidator.ValidateBoolean(a.ShowDisambig=
uation,"routeOptions.ShowDisambiguation");VEValidator.ValidateBoolean(a.S=
howErrorMessages,"routeOptions.ShowErrorMessages");VEValidator.ValidateBo=
olean(a.UseMWS,"routeOptions.UseMWS");VEValidator.ValidateBoolean(a.UseTr=
affic,"routeOptions.UseTraffic");if(!$MVEM.IsEnabled(MapControl.Features.=
RouteOptions.UseMWS)&&a.UseMWS)throw new =
VEException("","err_notSupportProperty",L_UnsupportProperty_Text.replace(=
"%1","VERouteOptions").replace("%2","UseMWS").replace("%3","true"));if(!$=
MVEM.IsEnabled(MapControl.Features.RouteOptions.UseTraffic)&&a.UseTraffic=
)throw new =
VEException("","err_notSupportProperty",L_UnsupportProperty_Text.replace(=
"%1","VERouteOptions").replace("%2","UseTraffic").replace("%3","true"));m=
_routeOptions=3Da}else m_routeOptions=3Dnew =
VERouteOptions;m_locations=3D[];m_currentLocationIndex=3D0;m_requestQueue=
=3D[];var i=3De.length;for(var d=3D0;d0){var b=3Dm_requestID;function =
c(c){if(m_requestID=3D=3Db)a.Callback(c,a.ID)}var =
a=3Dm_requestQueue.shift();m_vemap.vemapcontrol.Fire("onstartrequest");VE=
APIRequestInvoke(a.Service,a.Params,c,m_vemap)}else =
self.ExecuteRouteRequest()};this.ExecuteRouteRequest=3Dfunction(){var =
d=3Dm_requestID;function =
e(a){if(m_requestID=3D=3Dd)self.RouteResponseHandler(a)}var =
a=3D[],c=3D"",f=3Dm_locations.length;for(var =
b=3D0;b0)if(a.Result=
s.length=3D=3D1||!m_routeOptions.ShowDisambiguation||a.Results[0].MatchCo=
nfidence!=3Da.Results[1].MatchConfidence){var =
b=3DGetRouteLocation(a.Results[0]);if(b!=3Dnull)m_locations[e]=3Dnew =
VELatLong(b.Coordinates.Latitude,b.Coordinates.Longitude);self.ExecuteNex=
tRequest()}else{var g=3Da.Results[0].MatchConfidence,f=3D[];for(var =
d=3D0;d0){if(m_routeOptions.DrawRoute){var =
shapes=3D[],stepIndex=3D0;for(var =
routeLegIndex=3D0;routeLegIndex0){var c=3Da.length;for(var =
b=3D0;b0){VE_TrafficManager.incidentsAvailable=3Dtrue;for(=
var a=3D0;a0){var e=3Da.length;for(var =
c=3D0;cb.TopLeftLatLong.Latitude||a.BottomRightL=
atLong.Longitudeb.BottomRightLatL=
ong.Longitude)};VE_TrafficManager.GetTrafficInfo=3Dfunction(){if(!VE_Traf=
ficManager.turnedOn)return;try{if(VE_TrafficManager.m_vemap.vemapcontrol.=
IsModeEnabled(Msn.VE.MapActionMode.Mode3D))if(VE_TrafficManager.showTraff=
icFlow)VE_TrafficManager.m_vemap.vemapcontrol.Show3DTraffic(false);else =
VE_TrafficManager.m_vemap.vemapcontrol.Remove3DTraffic();var =
a=3DVE_TrafficManager.m_vemap.GetZoomLevel();if(VE_TrafficManager.m_vemap=
.vemapcontrol.IsMapViewOblique())return;VE_TrafficManager.prevZoomLevel=3D=
a;VE_TrafficManager.prevMapStyle=3DVE_TrafficManager.m_vemap.GetMapStyle(=
);VE_TrafficManager.incidentsAvailable=3Dfalse;VE_TrafficManager.flowAvai=
lable=3Dfalse;VE_TrafficManager._ClearPins();VE_TrafficManager.m_vemap.ve=
mapcontrol.ClearTileLayer("Traffic");if(a>VE_TrafficManager.displayAtZoom=
levelMin){VE_TrafficManager._GetIncidents(VE_TrafficManager.showIncidents=
);if(VE_TrafficManager.showTrafficFlow&&VE_TrafficManager.flowAvailable&&=
a0){v=
ar d=3DVE_TrafficManager.showingMarkets.length;for(var =
b=3D0;b0&&$MVEM.IsEnabled(MapCon=
trol.Features.Traffic.ShowIncidents)){VE_TrafficManager._RemoveDuplicates=
(a);VE_TrafficManager._RenderTrafficInfo(a)}}if(this.LastUpdateTimestamp!=
=3Dnull&&typeof =
this.LastUpdateTimestamp!=3D"undefined")VE_TrafficManager.SetTrafficLegen=
dText(this.LastUpdateTimestamp);VE_TrafficManager.ShowTrafficLegend();if(=
VE_TrafficManager.m_vemap){var =
c=3DVE_TrafficManager.m_vemap.GetDashboardSize();if(c=3D=3DVEDashboardSiz=
e.Small||c=3D=3DVEDashboardSize.Tiny)VE_TrafficManager.ShowTrafficLegend(=
41,37)}}};VE_TrafficManager._RenderTrafficInfo=3Dfunction(c){if(c)VE_Traf=
ficManager._ClearPins(c);else VE_TrafficManager._ClearPins();var =
e=3DVE_TrafficManager.m_vemap.GetZoomLevel();if(e>VE_TrafficManager.displ=
ayAtZoomlevelMin){if(c=3D=3Dnull)return;if(VE_TrafficManager.incidents[c]=
!=3Dnull){var =
b=3DVE_TrafficManager.incidents[c],f=3DVE_TrafficManager.incidents[c].len=
gth;for(var =
a=3D0;a0&&d>VE_TrafficManager.displayAtZoomlevelMin){for(var =
b=3D0;b