
function load()
{
if (GBrowserIsCompatible())
   {
   var map = new GMap2(document.getElementById("map"),{draggableCursor: 'crosshair'});
   map.addControl(new GMapTypeControl(true));
   map.addControl(new GSmallMapControl());
   map.setCenter(new GLatLng(48.133135,11.554822), 19, G_HYBRID_MAP);

   GEvent.addListener(map, "mousemove",
                     function(point)
                      { var latLngStr6 = point.y.toFixed(6) + ', ' + point.x.toFixed(6);
                        var intro = 'Current Mouse Position - Lat / Lng : ';
                        document.getElementById( "mymouseposition" ).innerHTML = intro+latLngStr6;
                      }
                     );

   var icon = new GIcon();
   icon.image = "url";
   icon.shadow = "url";
   icon.iconSize = new GSize(10, 10);
   icon.shadowSize = new GSize(10, 10);
   icon.iconAnchor = new GPoint(0, 0);
   icon.infoWindowAnchor = new GPoint(5, 1);

   //var point = new GLatLng(36.6815, 24.3756);
   //map.addOverlay(new GMarker(point));

   var infoTabs = [
   new GInfoWindowTab("Adresse", "<span class='rot'>BestPraxis GmbH</span><br />Michael Kreuzer<br />R&uuml;ckertstra&szlig;e 4<br />80336 M&uuml;nchen<br /><br /><form action='http://maps.google.com/maps' target='_blank' method='get' class='gmaplinkform'>Ihre Adresse: <input type='text' name='saddr' value='' class='mapstext' /><input type='hidden' name='daddr' value='48.133135,11.554822' /><input type='hidden' name='dir' value='to' /><br />Ihr Weg zu mir: <input type='submit' name='sub' value='Route berechnen' class='mapsbutton' /></form>"),
   new GInfoWindowTab("U-Bahn", "U4/U5 Haltestelle Theresienwiese<br />oder<br />U3/U6 Haltestelle Goetheplatz")
   //new GInfoWindowTab("Parken", "Ausreichende Parkm&ouml;glichkeiten finden<br /> Sie in den umliegenden Parkh&auml;usern.")
                  ];
   var point = new GLatLng(48.133135,11.554822);
   var marker = new GMarker(point); //var marker = new GMarker(point, icon);
   GEvent.addListener(marker, "click",
                      function()
                      { marker.openInfoWindowTabsHtml(infoTabs); }
                     );
   map.addOverlay(marker);
   marker.openInfoWindowTabsHtml(infoTabs);

   }
}

