function load() {
if (GBrowserIsCompatible()) {       
// A function to create the marker and set up the event window      
// Dont try to unroll this function. It has to be here for the function closure
// Each instance of the function preserves the contends of a different instance
// of the "marker" and "html" variables which will be needed later when the event triggers.    
      
var baseIcon = new GIcon();
baseIcon.iconSize=new GSize(32,32);
baseIcon.shadowSize=new GSize(56,32);
baseIcon.iconAnchor=new GPoint(16,32);
baseIcon.infoWindowAnchor=new GPoint(16,0);
          
var camping = new GIcon(baseIcon, "http://maps.google.com/mapfiles/kml/pal3/icon23.png", null, "http://maps.google.com/mapfiles/kml/pal3/icon23s.png");


function createMarker(point,html,icon) {        
var marker = new GMarker(point,icon);        
GEvent.addListener(marker, "click", function() {          
marker.openInfoWindowHtml(html);        
});        
return marker;      
}      

// Display the map, with some controls and set the initial location       

var map = new GMap2(document.getElementById("map"));
map.addControl(new GLargeMapControl());      
map.addControl(new GMapTypeControl());      
map.setCenter(new GLatLng(43.42612821988646,0.5781126022338867), 10);
    
      

// Set up three markers with info windows           

var point1 = new GLatLng(43.42471, 0.62445);      
var marker = createMarker(point1,"<h5>Camping Aux Mêmes à Bellegarde</h5><p>Curzons Janet & Peter<br />32140 Bellegarde<br />Tél/Fax : 05 62 66 91 45 - Port : 06 83 63 02 22<br/><a href=http://www.auxmemes.com>www.auxmemes.com</a></p>", camping)
map.addOverlay(marker);         

var point3 = new GLatLng(43.43061166479312, 0.5848395824432373); 
var marker = createMarker(point3,"<h5>Camping Les Berges du Gers</h5><p>32240 Masseube<br />Tél/Fax : 05 62 66 01 75<br/><a href=www.berges-du-gers.fr>www.berges-du-gers.fr</a></p>", camping)
map.addOverlay(marker);

var point4 = new GLatLng(43.49541663736973, 0.5776619911193848); 
var marker = createMarker(point4,"<h5>Domaine Lacs de Gascogne</h5><p>32260 Seissan<br />Tél : 05 62 66 27 94</p>", camping)
map.addOverlay(marker);
    
}        

// display a warning if the browser was not compatible   
 else {      
alert("Sorry, the Google Maps API is not compatible with this browser");    
}
}




window.onload=load;
window.onunload=GUnload;
