
/*<script type="text/javascript">*/	


		    //<![CDATA[


		function load()
		{
		  if (GBrowserIsCompatible())
		  {
						var map = new GMap2(document.getElementById("vtt"));
                     /* Fonction qui permet de faire un zoom directement avec la molette de la souris */ 
                       map.enableScrollWheelZoom();
/* GMapTypeControl()" qui permet d'afficher trois possibilités d'affichage de la carte (Normal, Sattelite ou mixte) */
                        map.addControl(new GMapTypeControl());
                      /* Fonction pour mettre des curseurs sur une carte */
						map.addControl(new GLargeMapControl());
                     /* Point de centrage de la carte (Latitude, Longitude) et la valeur d'agrandissement */
						map.setCenter(new GLatLng(45.40113, 2.4954), 12);

						var point = new GLatLng(45.40113, 2.4954);
						/* Création du marqueur attaché au point */
						var bort = new GMarker(point);
						map.addOverlay(bort);

             
						var point = new GLatLng(45.395233, 2.561638);				
						/* Création du marqueur attaché au point */
						var champs = new GMarker(point);						
						map.addOverlay(champs);
						
						
						var point = new GLatLng(45.379055, 2.458330);				
						/* Création du marqueur attaché au point */
						var madic = new GMarker(point);						
						map.addOverlay(madic);						

            /* Pour afficher une mini-map en bas de la carte */ 
               map.addControl(new GOverviewMapControl()); 
 
        /* Tableau de GInfoWindowTab qui va contenir les onglets de l'info-bulle */
        var infoTabs_champs = [
          new GInfoWindowTab("Départ", "<b> <font color=#FF0000 size=4 face=Arial> Champs sur Tarentaine  </font> </b> <br>Rassemblement et Départ de la<br>randonnée VTT du 11 Mai 2008<br>organisée par les Cyclos de Madic  <br> Altitude 495m."),
          new GInfoWindowTab("Arrivée", "<b> <font color=#000000 size=4 face=Arial> Champs sur Tarentaine </font> </b> <br>Rassemblement et Arrivée de la<br>randonnée VTT du 11 Mai 2008<br>organisée par les Cyclos de Madic  <br> Altitude 495m.")
];

        var infoTabs_bort = [
          new GInfoWindowTab("Bort", "<b> <font color=#FF0000 size=4 face=Arial> Bort les orgues </font> </b> <br><a href=http://www.cyclos-madic.com>Cyclos de Madic</a>"),
          new GInfoWindowTab("Onglet 2", "<b> <font color=#000000 size=4 face=Arial> Bort les Orgues </font> </b> <br>7 Kms de Champs<br> Altitude 430m.")
];

        var infoTabs_madic = [
          new GInfoWindowTab("Madic", "<b> <font color=#FF0000 size=4 face=Arial> Madic </font> </b> <br><img border=0 src=madiclogo.gif>"),
          new GInfoWindowTab("Onglet 2", "<b> <font color=#000000 size=4 face=Arial> Madic </font> </b> <br><img border=0 src=ffct.gif>")
];



 /*  Début Section 1 */ 
        /* Enregistrer un listener lors d'un clic sur le marqueur */
       GEvent.addListener(bort, "click", function(){       
        /*   GEvent.addListener(marker1, "mouseover", function() {  */ 
   // quoi faire quand on survole le marker

          /* Lors d'un clic, afficher les onglets */
          bort.openInfoWindowTabsHtml(infoTabs_bort);         
        });
        /* Afficher le marqueur et l'info-bulle */
         bort.openInfoWindowTabsHtml(infoTabs_bort);        

 /* Début Section 2 */ 
         /* Enregistrer un listener lors d'un clic sur le marqueur */
       GEvent.addListener(madic, "click", function(){       
        /*   GEvent.addListener(marker1, "mouseover", function() {  */ 
   // quoi faire quand on survole le marker

          /* Lors d'un clic, afficher les onglets */
          madic.openInfoWindowTabsHtml(infoTabs_madic);         
        });
        /* Afficher le marqueur et l'info-bulle */
        madic.openInfoWindowTabsHtml(infoTabs_madic);
 
 /*  Début Section 3  La bulle s'affiche sur la derniére section */
        /* Enregistrer un listener lors d'un clic sur le marqueur */
       GEvent.addListener(champs, "click", function(){       
        /*   GEvent.addListener(marker1, "mouseover", function() {  */ 
   // quoi faire quand on survole le marker

          /* Lors d'un clic, afficher les onglets */
          champs.openInfoWindowTabsHtml(infoTabs_champs);         
        });
        /* Afficher le marqueur et l'info-bulle */
        champs.openInfoWindowTabsHtml(infoTabs_champs);
               

 
               
      }
    }
 
    //]]>


/*</script>*/