    var map;

    function createMarker(point,html) {
      var marker = new GMarker(point);
      GEvent.addListener(marker, "click", function() {
        marker.openInfoWindowHtml(html);
      });
      return marker;
    }

    function geocode(address) {
      geocoder.getLatLng( address, function(point) {
	if (!point) {
	  alert(address + " not found");
	}
	else {
	  //alert(point);
	  var marker = createMarker(point, address);
	  map.addOverlay(marker); marker.openInfoWindowHtml(address);
	}
      });
    return false;
    }

    function load() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"),{mapTypes: [G_NORMAL_MAP,G_HYBRID_MAP]});
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl(G_NORMAL_MAP));
	//map.enableContinuousZoom();
	map.setCenter(new GLatLng(47.29,5.02), 13);
	geocoder = new GClientGeocoder();
	} else {
        alert("Desole, l'API Google Maps n'est pas compatible avec votre navigateur.");
      }
    }