 
   
//<![CDATA[
     function initialize() {
    if (GBrowserIsCompatible()) { 
 
      // A function to create the marker and set up the event window
      // Dont try to unroll this function. It has to be here for the function closure
      // Each instance of the function preserves the contends of a different instance
      // of the "marker" and "html" variables which will be needed later when the event triggers.    
   


	function createMarker(point,html,iconToUse) { 
   var marker = new GMarker(point,{icon:iconToUse}); 
   GEvent.addListener(marker, "click", function() { 
   marker.openInfoWindowHtml(html); 
   }); 
   return marker; 
 } 
 

var markerIcon = new GIcon();
      markerIcon.image = "http://gmaps-samples.googlecode.com/svn/trunk/markers/blue/blank.png";
      markerIcon.iconSize = new GSize(20, 43);
      markerIcon.iconAnchor = new GPoint(23, 56);
      markerIcon.infoWindowAnchor = new GPoint(20, 43);
      markerIcon.transparent = "http://gmaps-samples.googlecode.com/svn/trunk/markers/blue/blank.png";
      markerIcon.printImage = "/utilities/shadowbox/images/mymarkerie.gif";
      markerIcon.mozPrintImage = "/utilities/shadowbox/images/mymarkerie.gif";
      markerIcon.printShadow = "/utilities/shadowbox/images/myshadow.gif";
	  

      // Display the map, with some controls and set the initial location 
var map = new GMap2(document.getElementById("map_canvas"));
        //Kleines Steuerungsinterface anzeigen
		//map.addControl(new GSmallMapControl());
		 map.setUIToDefault();
		//Grosses Steuerungsinterface anzeigen
		//map.addControl(new GLargeMapControl());
		//Interface um Kartentyp umzuschalten (Karte,Satellit,Hybrid)
		map.addControl(new GMapTypeControl());
		//Übersichtskarte anzeigen
		map.addControl(new GOverviewMapControl());
		//Bestimmter Kartentyp beim Laden verwenden
		//map.setMapType(G_PHYSICAL_MAP);
		//Mausrad zum zoomen zulassen
		map.enableScrollWheelZoom();
		//Karte zentrieren an diesen Koordinaten, hinter dem Komma die Zoomstufe (kleiner = weiter weg)
		 map.setCenter(new GLatLng(46.596471,9.598103), 15);
    
      // Set up markers with info windows 
      var point = new GLatLng(46.5970,9.596999);<!--46.5974,9.596701-->
      var marker = createMarker(point,'<strong>Hotel Danilo ***</strong><br>Stradung 20<br />CH - 7460 Savognin',          markerIcon)
      map.addOverlay(marker);
	  var info = '<strong>Hotel Danilo ***</strong><br>Stradung 20<br />CH - 7460 Savognin';
      marker.openInfoWindowHtml(info);

    }

    // 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
    // Community Church Javascript Team
    // http://www.bisphamchurch.org.uk/   
    // http://econym.org.uk/gmap/
 
    //]]>
	 }


    