  var map = null;
  var geocoder = null;

  var geocodierung = "";
  var address_display = "";
  var lat = -1;
  var lng = -1;
  var azoom = 13;
  var showicon = 1;
  var standardicon = 0;
  var textblaseanzeigen = 0;

  var defaultLat = 50.8339;
  var defaultLng = 12.927;
  var defaultZoom = 9;

  window.onunload = GUnload;

  function initializeMap() {
    if (!map && GBrowserIsCompatible()) {
      var m = document.getElementById("map-emb");
      if (m.style.height == "0px")   m.style.height = "370px";
      if (m.style.width == "0px")    m.style.width = "640px";
      map = new GMap2(m);
      map.setUIToDefault();

      if ((lat > 0) && (lng > 0)) {
         latlng = new GLatLng(lat, lng);
         displayMap(latlng, azoom);
      } else {
          if (geocodierung != '') {
            geocoder = new GClientGeocoder();
            if (geocoder) {
              geocoder.getLatLng(geocodierung, function(point) {
                    if (!point) {
                      point = new GLatLng(defaultLat, defaultLng);
                      displayMap(point, defaultZoom);
                    } else {
                      displayMap(point, azoom);
                    }
              });
            }
          }
      }
   }
}

  function displayMap(point, zoom) {
    map.setCenter(point, zoom);
    map.addControl(new GOverviewMapControl(new GSize(140,140)));
    var icon = null;
    if (showicon && !standardicon) {
        var baseIcon = null;
        baseIcon = new GIcon();
        baseIcon.iconSize=new GSize(32,32);
        baseIcon.shadowSize=new GSize(56,32);
        baseIcon.iconAnchor=new GPoint(16,16);
        baseIcon.infoWindowAnchor=new GPoint(16,16);
        icon = new GIcon(baseIcon, "http://maps.google.com/mapfiles/kml/pal3/icon56.png", null, "http://maps.google.com/mapfiles/kml/pal3/icon56s.png");
    }
    if (showicon) {
      var marker = new GMarker(point, icon);
      map.addOverlay(marker);
      if (textblaseanzeigen)
        marker.openInfoWindowHtml(address_display);
    }
  }

