//<![CDATA[ 

function initialize() { 
// Check to see if this browser can run the Google API
    if (GBrowserIsCompatible()) {

      var gmarkers = [];
      var htmls = [];
      var to_htmls = [];
      var from_htmls = [];
      var i=0;

      // A function to create the marker and set up the event window
      function createMarker(point,name,html) {
        var marker = new GMarker(point);

        // The inactive version of the direction info
        html = html + '<form action="http://maps.google.com/maps" method="get" target="_blank" style="display: inline;">' +
           '<br />' +
		   '<input type="text" SIZE=20 MAXLENGTH=50 name="saddr" id="saddr" value="" />' +
		   '<INPUT value="GO" TYPE="SUBMIT"><br />' +
		    '<span style="color: Gray;"><small>Start: (Strasse Nr, PLZ Ort)</small></span>' +
           '<input type="hidden" name="daddr" value="' + point.lat() + ',' + point.lng() + 
                  // "(" + name + ")" + 
           '"/>';

        GEvent.addListener(marker, "click", 
		function() {
          marker.openInfoWindowHtml(html);
		  
        });
        gmarkers[i] = marker;
        htmls[i] = html;
        i++;
        return marker;
      }

      // functions that open the directions forms
      function tohere(i) {
        gmarkers[i].openInfoWindowHtml(to_htmls[i]);
      }
      function fromhere(i) {
        gmarkers[i].openInfoWindowHtml(from_htmls[i]);
      }

      // Display the map, with some controls and set the initial location 
      var map = new GMap2(document.getElementById("map"));
      map.addControl(new GSmallMapControl());
      map.addControl(new GMapTypeControl());
      map.setCenter(new GLatLng(51.2371485,6.7783033), 8);
	  map.addControl(new GOverviewMapControl());
//<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.de/maps?f=q&amp;hl=de&amp;geocode=&amp;q=Sandkamp+3+%C2%B7+26842+Ostrhauderfehn&amp;sll=51.151786,10.415039&amp;sspn=9.058835,17.731934&amp;ie=UTF8&amp;ll=53.141622,7.605371&amp;spn=0.033831,0.069265&amp;z=14&amp;iwloc=cent&amp;output=embed&amp;s=AARTsJov7F1To-GHkDXWwzk8rZe8Fy4dUw"></iframe><br /><small><a href="http://maps.google.de/maps?f=q&amp;hl=de&amp;geocode=&amp;q=Sandkamp+3+%C2%B7+26842+Ostrhauderfehn&amp;sll=51.151786,10.415039&amp;sspn=9.058835,17.731934&amp;ie=UTF8&amp;ll=53.141622,7.605371&amp;spn=0.033831,0.069265&amp;z=14&amp;iwloc=cent&amp;source=embed" style="color:#0000FF;text-align:left">Größere Kartenansicht</a></small>
     var point = new GLatLng(51.2371485,6.7783033);
     var marker = createMarker(point,'Hotel Imperial','<span style="color: black; font-size: 12px; font-weight : bold;">Hotel Imperial D&uuml;sseldorf</span>')
     map.addOverlay(marker);

    }
	
	
    
    // display a warning if the browser was not compatible
    else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
    }

    // This Javascript is based on code provided by the
    // Blackpool Community Church Javascript Team
    // http://www.commchurch.freeserve.co.uk/   
    // http://www.econym.demon.co.uk/googlemaps/
	}
google.setOnLoadCallback(initialize);
//]]> 
