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 charmance = new GIcon(baseIcon, "http://www.valdegerstourisme.fr/images/charmance.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>Chambres d'hôtes 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 point2 = new GLatLng(43.423002663193415, 0.6224441528320312);
var marker = createMarker(point2,"<h5>Chambres d'hôtes 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>", charmance)
map.addOverlay(marker);      

var point3 = new GLatLng(43.54406783840815, 0.5664825439453125); 
var marker = createMarker(point3,"<h5>Chambres d'hôtes Les Linottes</h5><p>Gateau-Brochard Laurence&Patrick<br />32260 Durban<br />Tél : 05 62 61 04 79 - Port : 06 80 33 79 31<br/><a href=http://www.leslinottes.com>www.leslinottes.com</a></p>", charmance)
map.addOverlay(marker);

var point4 = new GLatLng(43.49541663736973, 0.5776619911193848); 
var marker = createMarker(point4,"<h5>Chambres d'hôtes Domaine Lacs de Gascogne</h5><p>32260 Seissan<br />Tél : 05 62 66 27 94</p>", camping)
map.addOverlay(marker);

var point5 = new GLatLng(43.50584, 0.692815);
var marker = createMarker(point5,"<h5>Domaine Naturisme du Moulin de Faget</h5><p>32450 Faget-Abbatial<br />Tél : 05 62 65 49 09 - Fax : 05 62 66 29 21<br/><a href=http://www.moulin-faget.com>www.moulin-faget.com</a></p>", camping)
map.addOverlay(marker);

var point6 = new GLatLng(43.668135, 0.392815);
var marker = createMarker(point6,"<h5>Chambres d'hôtes  A Sansonnet </h5><p>32350 Le Brouilh Monbert<br />Tél : 05 62 64 61 12</p>", clevacances)
map.addOverlay(marker);

var point7 = new GLatLng(43.41358982308434, 0.5887126922607422);
var marker = createMarker(point7,"<h5>Chambres d'hôtes 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>", charmance)
map.addOverlay(marker);

var point8 = new GLatLng(43.4576541092803, 0.66192626953125);
var marker = createMarker(point8,"<h5>Chambres d'hôtes  Aou Cassou </h5><p>32260 Moncorneil-Grazan<br />Tél : 05 62 65 48 41<br /><a href=http://www.aou-cassou.fr>www.aou-cassou.fr</a></p>", clevacances)
map.addOverlay(marker);

var point9 = new GLatLng(43.491973334096514, 0.6379365921020508);
var marker = createMarker(point9,"<h5>Chambres d'hôtes Mouras</h5><p>32260 Monferran-Plavés<br />Tél : 05 62 59 26 21 / Port : 06 19 96 27 61  / Port : 06 86 28 24 731</p>", charmance)
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;
