var map = null;
var geocoder = null;
	
    function load() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map"));
        //map.removeMapType(G_SATELLITE_MAP);
		map.setMapType(G_HYBRID_MAP);
		
        //map.setCenter(new GLatLng(37.4419, -122.1419), 13);
		geocoder = new GClientGeocoder();
		
		//map.addControl(new GSmallMapControl());
        map.addControl(new GLargeMapControl());
 
        var mapControl = new GMapTypeControl();
        map.addControl(mapControl);
		
		

			
      }
    }
	
	 function showAddress(address) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert("Impossible de localiser l'adresse :\n\n" + address);
            } else {
              map.setCenter(point, 8);
              
            }
          }
        );
      }
    }

