 google.load("maps", "2");
var map;
var geocoder;
 
 function initialize() {
	    if (GBrowserIsCompatible()) {
	     map = new GMap2(document.getElementById("map"));
	     map.addControl(new GSmallMapControl());
	     map.addControl(new GMapTypeControl());
	     geocoder = new GClientGeocoder();
	      map.setCenter(new GLatLng(47.5, 9.77), 16);
	    }
	  }
 
 function showAddress(address) {
	  geocoder.getLatLng(
	    address,
	    function(point) {
	      if (!point) {
	        alert(address + " not found");
	      } else {
	        map.setCenter(point, 16);
	        var houseIcon;
	        houseIcon = new GIcon(G_DEFAULT_ICON,"/images/detail/flag.png");
	        houseIcon.iconSize = new GSize(32, 32); 
	        houseIcon.shadow  = "";
	        var marker = new GMarker(point,houseIcon);
	        map.addOverlay(marker);
	        GEvent.addListener(marker, "click", function() {
	        	marker.openInfoWindowHtml(Infotext+address);
	        });
	        marker.openInfoWindowHtml(Infotext+address);
	      }
	    }
	  );
	}
