// addAddressToMap() is called when the geocoder returns an
// answer.  It adds a marker to the map with an open info window
// showing the nicely formatted version of the address and the country code.
    function addAddressToMap(response) {
      GRAUmap.clearOverlays();
      if (!response || response.Status.code != 200) {
        alert("Sorry, we were unable to geocode that address");
      } else {
        place = response.Placemark[0];
        centrage = new GLatLng(place.Point.coordinates[1],
                               place.Point.coordinates[0]);
       GRAUmap.panTo(centrage)
//tentative
//essai de marker en boucle
// Constitution du tableau de marqueurs
    var marker = new Array()
    k=0
    for (i in point)
     {  
        if      (couleur[i] == 0)    {
                             couleur[i]=couleur[i];
                                     }
        else if (couleur[i] == 1)    { 
                        marker[i] = createMarker1(point[i],adresse[i]);
                       }
        else if (couleur[i] == 11)    { 
                        marker[i] = createMarker11(point[i],adresse[i]);
                       }
        else if (couleur[i] == 2) {
                        marker[i] = createMarker2(point[i],adresse[i]);
                       }
        else if (couleur[i] == 22) {
                        marker[i] = createMarker22(point[i],adresse[i]);
                       }
        else if (couleur[i] == 3) {
                        marker[i] = createMarker3(point[i],adresse[i]);
                       }
        else if (couleur[i] == 33) {
                        marker[i] = createMarker33(point[i],adresse[i]);
                       }
        else if (couleur[i] == 4) {
                        marker[i] = createMarker4(point[i],adresse[i]);
                       }
        else if (couleur[i] == 44) {
                        marker[i] = createMarker44(point[i],adresse[i]);
                       }
        else if (couleur[i] == 5) {
                        marker[i] = createMarker5(point[i],adresse[i]);
                       }
        else if (couleur[i] == 55) {
                        marker[i] = createMarker55(point[i],adresse[i]);
                       }
        else if (couleur[i] == 6) {
                        marker[i] = createMarker6(point[i],adresse[i]);
                       }
        else if (couleur[i] == 66) {
                        marker[i] = createMarker66(point[i],adresse[i]);
                       }
         else if (couleur[i] == 8) {
                        marker[i] = createMarker8(point[i],adresse[i]);
                       } 
         else if (couleur[i] == 9) {
                        marker[i] = createMarker9(point[i],adresse[i]);
                       }
         else if (couleur[i] == 99) {
                        marker[i] = createMarker99(point[i],adresse[i]);
                       } 
     }

 for (j in point)
    {
    GRAUmap.addOverlay(marker[j]);
    }
//Tentative


      }
    }