




var myAirports = {"location": [{"lat": "39.1781", "long": "-76.6688", "title": "Baltimore International Airport", "description": ""}]};






var myPointsOfInterest = {"location": [{"lat": "39.29761", "long": "-76.6158", "title": "Mount Vernon", "description": ""},{"lat": "39.28507", "long": "-76.60825", "title": "The National Aquarium", "description": ""}]};
function loadMap(aptsfile, apts, poifile, poi, altzoom, altcentre, altlat, altlon){
prev = 3;
next = 2;
currentDiv = 1;
shapeCount = 0;
count = 0;
divCount = 0;
liCount = 0;
LEGEND = 9;

map = new VEMap('msMap');
var sFullLegend = "";
var newZoom = 14;if (!((altzoom == "") || (altzoom == undefined) || (altzoom == null))) {var newZoom = altzoom;}





var newLat = 39.29134;var newLon = -76.612025;if (!((altlat == "") || (altlat == undefined) || (altlat == null))) {var newLat = altlat;} if (!((altlon == "") || (altlon == undefined) || (altlon == null))) {var newLon = altlon;} map.LoadMap(new VELatLong(newLat, newLon), newZoom ,'h' ,false);

switch(apts){
case "append":
CreateLayer(myAirports, "/cms/global/assets/images/icons/flight_blank.gif");CreateLayer(aptsfile, "/cms/global/assets/images/icons/flight_blank.gif");
break;
case "replace":
CreateLayer(aptsfile, "/cms/global/assets/images/icons/flight_blank.gif");
break;
default:
CreateLayer(myAirports, "/cms/global/assets/images/icons/flight_blank.gif");
}
switch(poi){
case "append":
CreateLayer(myPointsOfInterest, "/cms/global/assets/images/icons/sightseeing_blank.gif");CreateLayer(poifile, "/cms/global/assets/images/icons/sightseeing_blank.gif");
break;
case "replace":
CreateLayer(poifile, "/cms/global/assets/images/icons/sightseeing_blank.gif");
break;
default:
CreateLayer(myPointsOfInterest, "/cms/global/assets/images/icons/sightseeing_blank.gif");
}
sFullLegend = genLegend();
showLegend(sFullLegend);
truncLegend(1);
}

$(function() {
showMapTab();

});
