  // Check to see if this browser can run the Google API
  if (GBrowserIsCompatible()) {

    var to_html = '';
    var from_html = '';
	var point = new GLatLng(47.726493167687835,12.47246503829956);
	var marker = new GMarker(point);

    // Create Parking icon
    var icon = new GIcon();
    icon.image = "http://www.gruettenhill-festival.de/images/parking.png";
    icon.iconSize = new GSize(21, 21);
    icon.iconAnchor = new GPoint(6, 20);
    icon.infoWindowAnchor = new GPoint(5, 1);

    // functions that open the directions forms
    function tohere() {
    marker.openInfoWindowHtml(to_html);
    }
    function fromhere(i) {
    marker.openInfoWindowHtml(from_html);
    }

    // Display the map, with some controls and set the initial location 
    var map = new GMap2(document.getElementById("map"));
    map.addControl(new GLargeMapControl());
	map.addControl(new GMapTypeControl());
    map.setCenter(point, 15);
  
    // Set up office location marker with info window 
	var address = 'W&ouml;ssener See, Unterw&ouml;ssen';
	var html = '<p>Gr&uuml;tten Hill Festivalgel&auml;nde</p>';

    // The info window version with the "to here" form open
    to_html = html + 'Start Adresse:<form action="http://maps.google.com/maps" method="get">' +
       '<input type="text" size="40" maxlength="40" name="saddr" id="saddr" value="" /><br />' +
       '<input class="btn" value="Route berechen" type="submit" /><br />' +
       '<input type="hidden" name="daddr" value="' + address + 
       '" />';

    // The info window version with the "from here" form open
    from_html = html + '<strong>Route:</strong> <a href="javascript:tohere()">To here</a> - <strong>From here</strong>' +
       '<br />End address:<form action="http://maps.google.com/maps" method="get">' +
       '<input type="text" size="40" maxlength="40" name="daddr" id="daddr" value="" /><br />' +
       '<input value="Route berechnen" type="submit" />' +
       '<input type="hidden" name="saddr" value="' + address + 
       '" />';

	   // The inactive version of the direction info
    html = html + '<a href="javascript:tohere()">Routenplaner</a>';

    GEvent.addListener(marker, "click", function() {
      map.setCenter(point, 15)
      marker.openInfoWindowHtml(html);
    });
    map.addOverlay(marker);

	// Mark the parking lot
	var park = new GLatLng(47.72476106587601,12.467036247253418);
	var parking = new GMarker(park, icon);
    GEvent.addListener(parking, 'click', function() {
      map.setCenter(point, 15)
      parking.openInfoWindowHtml("Hier kann man parken<br />Bitte die Anweisungen der Parkeinweiser beachten!<br />Infos zu weiteren Parkm&ouml;glichkeiten demn&auml;chst...");
    });
    map.addOverlay(parking);
  }