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");
var clevacances = new GIcon(baseIcon, "http://www.valdegerstourisme.fr/images/clevacances.png", null, "http://maps.google.com/mapfiles/kml/pal3/icon23s.png");
var gdf = new GIcon(baseIcon, "http://www.valdegerstourisme.fr/images/gites-de-france.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.53809604282301,0.5733489990234375), 10);
    
      

// Set up three markers with info windows           

var point1 = new GLatLng(43.42767840621172, 0.6117582321166992);    
var marker = createMarker(point1,"<h5>Aux Mêmes</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);      

// LISTE DES HEBERGEMENTS GITES DE FRANCE

var point2 = new GLatLng(43.423002663193415, 0.6224441528320312);
var marker = createMarker(point2,"<h5>La Garenne</h5><p>Courouble Mireille & Olivier<br />32140 Bellegarde<br />Tél/Fax : 05 62 66 03 61 - Port : 06 88 71 84 49<br/><a href=http://monsite.orange.fr/balconvertpyrenees>http://monsite.orange.fr/balconvertpyrenees</a></p>", gdf)
map.addOverlay(marker);      

var point3 = new GLatLng(43.41358982308434, 0.5887126922607422);
var marker = createMarker(point3,"<h5>Le Vallon de Rabanéou</h5><p>32140 Masseube<br />Tél : 06 61 43 48 27<br /><a href=http://www.legitederabaneou.fr>www.legitederabaneou.fr</a></p>", gdf)
map.addOverlay(marker);

var point4 = new GLatLng(43.591767, 0.539277);
var marker = createMarker(point4,"<h5>Embiadère</h5><p>32550 Lasséran<br />Tél SLA : 05 62 61 79 00</p>", gdf)
map.addOverlay(marker);

var point5 = new GLatLng(43.592203217066874, 0.5354547500610352);
var marker = createMarker(point5,"<h5>La Haille</h5><p>32550 Lasséran<br />Tél SLA : 05 62 61 79 00</p>", gdf)
map.addOverlay(marker);

var point6 = new GLatLng(43.575422, 0.596416);
var marker = createMarker(point6,"<h5>Le Conté</h5><p>32550 Lasseube-Propre<br />Tél SLA : 05 62 61 79 00</p>", gdf)
map.addOverlay(marker);

var point7 = new GLatLng(43.42991, 0.578975);
var marker = createMarker(point7,"<h5>Peyrusse</h5><p>32140 Masseube<br />Tél SLA : 05 62 61 79 00</p>", gdf)
map.addOverlay(marker);

var point8 = new GLatLng(43.43677899190015, 0.5628776550292969);
var marker = createMarker(point8,"<h5>Quartier de la Ribère</h5><p>32140 Masseube<br />Tél SLA : 05 62 61 79 00</p>", gdf)
map.addOverlay(marker);

var point9 = new GLatLng(43.492035, 0.63908);
var marker = createMarker(point9,"<h5>Au Bergan</h5><p>32260 Monferran-Plavès<br />Tél SLA : 05 62 61 79 00</p>", gdf)
map.addOverlay(marker);

var point10 = new GLatLng(43.35069440852385, 0.4833555221557617);
var marker = createMarker(point10,"<h5>M et Mme Campistron</h5><p>32140 Ponsan-Soubiran<br />Tél SLA : 05 62 61 79 00</p>", gdf)
map.addOverlay(marker);

var point11 = new GLatLng(43.351071, 0.482729);
var marker = createMarker(point11,"<h5>Au Village</h5><p>32140 Ponsan-Soubiran<br />Tél SLA : 05 62 61 79 00</p>", gdf)
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;
