     if (GBrowserIsCompatible()) { 


      var gmarkers = [];
      var htmls = [];
      var i = 0;
      // arrays to hold variants of the info window html with get direction forms open
      var to_htmls = [];
      var from_htmls = [];


      function createMarker(point,html) {
        var marker = new GMarker(point);


        // The info window version with the "to here" form open (The Directions Form part.)
        to_htmls[i] = html + '<br \/>Itinéraire : <strong>Vers ce lieu<\/strong> - <a href="javascript:fromhere(' + i + ')">Depuis ce lieu<\/a>' +
           '<br \/>Addresse : <form action="http://maps.google.com/maps" method="get" target="_new">' +
           '<input type="text" size=20 maxlength=100 name="saddr" id="saddr" value="" \/>' +
		   '<input type="hidden" name="hl" value="fr" >' +
           '<input value="GO !" type="submit">' +		  
           '<input type="hidden" name="daddr" value="' + point.lat() + ',' + point.lng() +            
           '"/>';
		   
        // The info window version with the "to here" form open
        from_htmls[i] = html + '<br \/>Itinéraire : <a href="javascript:tohere(' + i + ')">Vers ce lieu<\/a> - <strong>Depuis ce lieu<\/strong>' +
           '<br \/>Addresse : <form action="http://maps.google.com/maps" method="get"" target="_new">' +
           '<input type="text" size=20 maxlenght=100 name="daddr" id="daddr" value="" \/>' +
		   '<input type="hidden" name="hl" value="fr" >' +
           '<input value="GO !" type="submit">' +
           '<input type="hidden" name="saddr" value="' + point.lat() + ',' + point.lng() +              
           '"/>';
		   
        // The inactive version of the direction info
        html = html + '<br \/>Itinéraire : <a href="javascript:tohere('+i+')">Vers ce lieu<\/a> - <a href="javascript:fromhere('+i+')">Depuis ce lieu<\/a>';

        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);         
        });
		
		gmarkers[i] = marker;
        htmls[i] = html;
		i++;
        return marker;
      }
      
   // functions that open the directions forms
      function tohere(i) {
        gmarkers[i].openInfoWindowHtml(to_htmls[i]);
      }
      function fromhere(i) {
        gmarkers[i].openInfoWindowHtml(from_htmls[i]);
      }	  
	  



      var map = new GMap2(document.getElementById("map"));
      map.addControl(new GLargeMapControl());
      map.setCenter(new GLatLng(45.77877795608451,3.1788253784179687),12);
	  
    
      var pointramacles  = new GLatLng(45.749311104890296, 3.112703561782837);
      var marker = createMarker(pointramacles,"<b><i><a href='laverieramacles.html'>Laverie des Ramacles</a></i></b><br>Rue Chambon<br>63170 Aubière<br>")
      map.addOverlay(marker);

      var pointleonblum  = new GLatLng(45.76279279224497, 3.1000757217407226);
      map.addOverlay(createMarker(pointleonblum,"<b><i><a href='laverieleonblum.html'>Laverie Léon Blum</a></i></b><br>Avenue Léon Blum</a><br>63000 Clermont-Ferrand"));
            
      var pointpontduchateau  = new GLatLng(45.79881280782001,3.24870228767395);
      map.addOverlay(createMarker(pointpontduchateau,"<b><i><a href='laveriepontduchateau.html'>Laverie de la Place</a></i></b><br>4 place de la Liberté</a><br>63430 Pont du Château"));		

      

      //  ======== Add a map overview ==========
      map.addControl(new GOverviewMapControl(new GSize(100,100)));



    }
    
    // display a warning if the browser was not compatible
    else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
    }
