
    var map = null;
    var geocoder = null;
	
    function initialize(address) 
	{
      	if (GBrowserIsCompatible()) 
		{
        	map = new GMap2(document.getElementById("map"));
			geocoder = new GClientGeocoder();
        
			if (geocoder) 
			{
        		geocoder.getLatLng(address,
          		function(point) 
				{
            		if (!point) 
					{
              			alert("Die Adresse " + address + " wurde nicht gefunden");
            		} 
					else 
					{
              			map.setCenter(point, 13);
              			var marker = new GMarker(point);
              			map.addOverlay(marker);
				
				marker.openInfoWindowHtml(address);
              			
                        GEvent.addDomListener(marker, "click", function() {
                            marker.openInfoWindowHtml(address);
                        });
            		}
          		}
        		);
      		}
		
			map.addControl(new GLargeMapControl());
			map.addControl(new GMapTypeControl());
      }
    }

    function showAddress(address) 
	{
      	if (geocoder) 
	  	{
        	geocoder.getLatLng(address,
          	function(point) 
			{
            	if (!point) 
				{
              		alert("Die Adresse " + address + " wurde nicht gefunden");
            	}
				else
				{
              		map.setCenter(point, 13);
              		var marker = new GMarker(point);
              		map.addOverlay(marker);
              		marker.openInfoWindowHtml(address);
                    
                    GEvent.addDomListener(marker, "click", function() {
                        marker.openInfoWindowHtml(address);
                    });
            	}
          	}
        	);
      	}
    }