 //<![CDATA[
    function loadMyMap() {
         if (GBrowserIsCompatible()) {
			var map = new GMap2(document.getElementById("map_calebasses"), {draggableCursor:"crosshair", mapTypes:[G_SATELLITE_MAP]}) 
     		var point = new GLatLng(16.31970, -61.77879);

			map.setCenter(point,18);
			// map.enableScrollWheelZoom();
// Affichage du marker
			marker = new GMarker(point);   	map.addOverlay(marker); 
			// var point2 = new GLatLng(16.3073, -61.7940); // le bourg
			// marker2 = new GMarker(point2);  map.addOverlay(marker2); 		
// Texte pour le popup
    		var textePopUp =
    "<div style='color:blue; font-size: 14px;font-weight:bold;width:150px'>"+"<span style='color:green; font-size: 18px; font-weight:bold; font-family:comic sans ms,Verdana,Tahoma,sans-serif;'>Les Calebasses</span><br/>Impasse de la Rivi&egrave;re<br/>97126 Deshaies"+"</div>";
			 if (textePopUp.length) { 
		    GEvent.addListener(point, "click", function() {});
// On affiche le popup tout de suite sans attendre un clic
            marker.openInfoWindowHtml(textePopUp);	
 // Affichage de l'echelle en haut a droite
 //_mPreferMetric = true;		//inverse les 2 echelles     
			var controlPosition = new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(0,-12));
			var scale = map.addControl(new GScaleControl(), controlPosition);	
// il parait que ca marche pour supprimer l'echelle en miles ???
//scale.fpsLbl.style.visibility="hidden"; 
//scale.fpsBar.style.visibility="hidden";
 
   									}
//***********************AFFICHAGE DES COORDONNEES DE LA SOURIS************************************************************				
var lastPoint;
GEvent.addListener(map, "mousemove", function(point){
var latLngStr = 'Lat.: ' + point.lat().toFixed(5) + ', longit.: ' + point.lng().toFixed(5);
document.getElementById("survol").options[0].text = latLngStr; 
lastPoint = point;
});
// Grande barre de zoom en bas a gauche
			var controlPosition = new GControlPosition(G_ANCHOR_BOTTOM_LEFT, new GSize(0,0));
			var scale = map.addControl(new GLargeMapControl(), controlPosition);	
        }
        else alert('Votre navigateur ne permet pas l\'affichage de carte Google Maps');
    }
    window.onload=loadMyMap;
    window.onunload=GUnload;
//]]>    
