/* Cached */
function CYMJSAPI(){}CYMJSAPI.prototype.OpenPopUp=function(A,D,B,C){if(Map.FunctionTableOpenPopUpByCid[A]){if(D){Map.DisableNextSearchOnRectChange=true;
Map.FunctionTableOpenPopUpByCid[A].Poi.CenterMap(B,C,function(){setTimeout(function(){Map.FunctionTableOpenPopUpByCid[A].Open()
},100)})}else{Map.FunctionTableOpenPopUpByCid[A].Open()}}};CYMJSAPI.prototype.ClosePopUp=function(A){if(Map.FunctionTableOpenPopUpByCid[A]){Map.FunctionTableOpenPopUpByCid[A].Hide()
}};CYMJSAPI.prototype.CloseAllPopUps=function(){Map.HidePoiPopUp()};CYMJSAPI.prototype.SetMapStyle=function(A){var B=null;
switch(A.toString().toLowerCase()){case"a":B=VEMapStyle.Aerial;break;case"r":B=VEMapStyle.Road;break;case"h":B=VEMapStyle.Hybrid;
break;case"b":B=VEMapStyle.Birdseye;break;case"bh":B=VEMapStyle.BirdseyeHybrid;break}Map.GetMap().SetMapStyle(B)};CYMJSAPI.prototype.GetMapStyle=function(){return Map.GetMap().GetMapStyle()
};CYMJSAPI.prototype.SetMapCenter=function(B,A){Map.GetMap().SetCenter(new VELatLong(parseFloat(B),parseFloat(A)))};CYMJSAPI.prototype.GetMapCenter=function(){return Map.GetMap().GetCenter()
};CYMJSAPI.prototype.SetMapCenterMercator=function(A,B){Map.SetCenter(A,B,null)};CYMJSAPI.prototype.GetMapCenterMercator=function(){return Map.GetCenter()
};CYMJSAPI.prototype.SetZoomLevel=function(A){Map.GetMap().SetZoomLevel(A)};CYMJSAPI.prototype.GetZoomLevel=function(){return Map.GetMap().GetZoomLevel()
};CYMJSAPI.prototype.ZoomIn=function(){Map.GetMap().ZoomIn()};CYMJSAPI.prototype.ZoomOut=function(){Map.GetMap().ZoomOut()
};CYMJSAPI.prototype.SetCenterAndZoom=function(B,A,C){Map.GetMap().SetCenterAndZoom(new VELatLong(parseFloat(B),parseFloat(A)),C)
};CYMJSAPI.prototype.Resize=function(B,A){if(typeof Map!="undefined"&&Map!=null&&typeof Map.GetMap=="function"&&Map.GetMap()!=null){Map.GetMap().Resize(B,A)
}else{setTimeout(function(){YMJSAPI.Resize(B,A)},100)}};CYMJSAPI.prototype.LoadMapCruncherUrl=function(E,C){var B=new VE.MapCruncher.CrunchedLayerManager(Map.GetMap());
var A=document.createElement("a");A.href=E;A.id="MapCrucnherLoadFileUrl";document.body.appendChild(A);B.ImportLayersFromAnchorHRef("MapCrucnherLoadFileUrl");
var D=B.layerList.find(C);D.Activate(Map.GetMap())};YMJSAPI=new CYMJSAPI();