// Google Maps function

    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(49.8513, 8.35771), 13);
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());

		// Fahne als Logo einbinden
			var icon = new GIcon();
			icon.image = "img/gmaps/gmaps_fahne.gif";
			icon.shadow = "img/gmaps/gmaps_shadow.png";
			icon.iconSize = new GSize(71, 100);
			icon.shadowSize = new GSize(71, 100);
			icon.iconAnchor = new GPoint(6, 100);
			icon.infoWindowAnchor = new GPoint(5, 10);

		// Marker erstellen mit Fahne und Info-Box
			function createMarker(point) {
				var marker = new GMarker(point, icon);
				GEvent.addListener(marker, "click", function() {
                marker.openInfoWindowHtml("<img src='img/gmaps/gmaps_objekt.jpg' style='float:left; margin: 4px 4px 4px 0;' /><strong>Hotel ZWO</strong><br /><br />Friedrich Ebert Stra&szlig;e 84<br />55276 Oppenheim<br /><br/><form name='search_route' method='get' action='http://maps.google.de/' target='_blank'><input name='saddr' type='text' id='saddr' value='Ihre Adresse' onblur='if(this.value=='') this.value='Ihre Adresse';' onfocus='if(this.value=='Ihre Adresse') this.value='';' ><input name='daddr' type='hidden' id='daddr' value='Hotel Zwo,Friedrich-Ebert-Strasse 84, 55276 Oppenheim'><input type='submit' name='Submit' value='Route berechnen'></form>")});
			  return marker;
			}
			map.addOverlay(createMarker(map.getCenter()));
		}
 }
