




var myAirports = {"location": [{"lat": "48.3531", "long": "11.7828", "title": "Munich International Airport", "description": ""}]};












var myPointsOfInterest = {"location": [{"lat": "48.2188", "long": "11.624723", "title": "Allianz-Arena (Bayern Munich Stadium)", "description": ""},{"lat": "48.1375", "long": "11.579722", "title": "Hofbrauhaus (Beer Hall)", "description": ""},{"lat": "48.149367", "long": "11.580276", "title": "Marien Platz", "description": ""},{"lat": "48.149481", "long": "11.542768", "title": "Schloss Nymphenburg", "description": ""},{"lat": "48.1333", "long": "11.55", "title": "Theresienwiese (Home of the Oktoberfest)", "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 = 11;if (!((altzoom == "") || (altzoom == undefined) || (altzoom == null))) {var newZoom = altzoom;}











var newLat = 48.1576896;var newLon = 11.5754978;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();

});
