//+ '<b>Country code:</b> ' +  place.AddressDetails.Country.CountryNameCode '<br>' +
// showLocation() is called when you click on the Search button
// in the form.  It geocodes the address entered into the form
// and adds a marker to the map at that location.
    function showLocation() {
      var address = document.forms[0].q.value;
      geocoder.getLocations(address, addAddressToMap);
    }

   // findLocation() is used to enter the sample addresses into the form.
    function findLocation(address) {
      document.forms[0].q.value = address;
      showLocation();
    }

////La fonction démarrage
    var GRAUmap;
    var geocoder;

    function demarrage() {
      GRAUmap = new GMap2(document.getElementById("map_canvas"));
      GRAUmap.setCenter(new GLatLng(43.599656,1.440719), 15);
      GRAUmap.setMapType(G_HYBRID_MAP);
      geocoder = new GClientGeocoder();

//positionnement de la zone de boutons
// tout en haut a gauche a l'extérieur de la carte
//variable pour repositionner les controles ? ? ? 
        var hautdroit = new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(-160,10));
//controle position GRAUmap, controle type Type
//      GRAUmap.addControl(new GSmallMapControl(), hautdroit);
//      GRAUmap.addControl(new GMapTypeControl(),  basdroit);
//controle zoom Map, du deuxième type
        GRAUmap.addControl(new TextualZoomControl(), hautdroit);    

//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]);
                       }  
     }

// Affichage des marqueurs

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