   
    var mapMunich;
    var mapUlm;
    var mapReutte;

    var toggleStateMunich = 1;
    var toggleStateUlm = 1;
    var toggleStateReutte = 1;

	var blueIcon = new GIcon(G_DEFAULT_ICON);
	blueIcon.image = "http://www.ballonteam-auerberg.de/images/anfahrt/auerberg-ziel.gif";	
	blueIcon.iconSize = new GSize(32, 32);
	blueIcon.iconAnchor = new GPoint(16, 32);

    var point = new GLatLng(47.754197222222224,  10.735608333333333);
	markerOptions = { icon:blueIcon };

	var geoXmlMunich = new GGeoXml("http://ballonteam-auerberg.de/scripts/from_munich.kml");
	var geoXmlUlm = new GGeoXml("http://ballonteam-auerberg.de/scripts/from_ulm.kml");
  	var geoXmlReutte = new GGeoXml("http://ballonteam-auerberg.de/scripts/from_reutte.kml");

    function initializeFromMunich() {
		if (GBrowserIsCompatible()) {
			mapMunich = new GMap2(document.getElementById("munich")); 
			mapMunich.setCenter(new GLatLng(48.03913055555555,11.080211111111112), 9); 
			mapMunich.addControl(new GLargeMapControl());
			mapMunich.addOverlay(geoXmlMunich);
			mapMunich.addControl(new GMapTypeControl());
			mapMunich.addOverlay(new GMarker(point, markerOptions));
		}
    } 

    function initializeFromUlm() {
		if (GBrowserIsCompatible()) {
			mapUlm = new GMap2(document.getElementById("ulm")); 
			mapUlm.setCenter(new GLatLng(47.99918333333333, 10.160330555555555), 9); 
			mapUlm.addControl(new GLargeMapControl());
			mapUlm.addControl(new GMapTypeControl());
			mapUlm.addOverlay(new GMarker(point, markerOptions));
			mapUlm.addOverlay(geoXmlUlm);
		}
    } 
	
   function initializeFromReutte() {
      if (GBrowserIsCompatible()) {
        mapReutte = new GMap2(document.getElementById("reutte")); 
        mapReutte.setCenter(new GLatLng(47.583280555555554, 10.707361111111112), 10); 
        mapReutte.addControl(new GLargeMapControl());
        mapReutte.addControl(new GMapTypeControl());
	    mapReutte.addOverlay(new GMarker(point, markerOptions));
        mapReutte.addOverlay(geoXmlReutte);
      }
    } 

	function initializeGMaps() {
		initializeFromMunich();
		initializeFromUlm();
		initializeFromReutte();
	}


    function toggleFromMunich() {
  	  if (toggleStateMunich == 1) { mapMunich.removeOverlay(geoXmlMunich); toggleStateMunich = 0; } else { mapMunich.addOverlay(geoXmlMunich); toggleStateMunich = 1; }
    }
	
    function toggleFromUlm() {
  	  if (toggleStateUlm == 1) { mapUlm.removeOverlay(geoXmlUlm); toggleStateUlm = 0; } else { mapUlm.addOverlay(geoXmlUlm); toggleStateUlm = 1; }
    }

    function toggleFromReutte() {
  	  if (toggleStateReutte == 1) { mapReutte.removeOverlay(geoXmlReutte); toggleStateReutte = 0; } else { mapReutte.addOverlay(geoXmlReutte); toggleStateReutte = 1; }
    }
