function load() {
 if (GBrowserIsCompatible()) { var map = new GMap2(document.getElementById("map")); addGMapOverlays(map); } } 
 
 function addGMapOverlays(map) {
 var mark = new Array(); 
 var gtext = new Array();

map.setCenter( new GLatLng(51.15, -4.2047), 12);

map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());

 mark [0]= new GLatLng (51.1722, -4.2047);
 mark [1]= new GLatLng (51.1682, -4.2110);
 mark [2]= new GLatLng (51.1765, -4.2145);
 mark [3]= new GLatLng (51.1480, -4.2200);
 mark [4]= new GLatLng (51.1165, -4.2249);
 mark [5]= new GLatLng (51.1300, -4.2425);

 gtext [0]='<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><img src="images/street-longboarders.jpg" alt="Bay Surf Shop Skate Team" border="0"></td><td class="spots"><b>Bay Surf Shop</b><br>Barton Road - Woolacombe - EX34 7BA<br>Tel: 01271 870961</td></tr></table>';
 gtext [1]='<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.eyeball-surfcheck.co.uk" target="_blank"><img src="http://www.eyeball-surfcheck.co.uk/digital_pictures/woolacombe.jpg" alt="Woolacombe Digital Pic" width="100" height="75" border="0"></a></td><td class="spots"><b>Main Beach</b><br>The best beach break in the area, catering for wide range of abilities!</td></tr></table>';
 gtext [2]='<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.eyeball-surfcheck.co.uk" target="_blank"><img src="http://www.eyeball-surfcheck.co.uk/digital_pictures/combesgate.jpg" alt="Combesgate Digital Pic" width="100" height="75" border="0"></a></td><td class="spots"><b>Combesgate</b><br>Steep, often hollow wave. Great for those who are after something a bit special!</td></tr></table>';
 gtext [3]='<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.eyeball-surfcheck.co.uk" target="_blank"><img src="http://www.eyeball-surfcheck.co.uk/digital_pictures/putsborough.jpg" alt="Putsborough Digital Pic" width="100" height="75" border="0"></a></td><td class="spots"><b>Putsborough</b><br>Great beginner wave, nice and gentle most of the time. On exceptional offshore windy days this break get very crowded due to<br>a sheltered aspect.</td></tr></table>';
 gtext [4]='<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.eyeball-surfcheck.co.uk" target="_blank"><img src="http://www.eyeball-surfcheck.co.uk/digital_pictures/saunton.jpg" alt="Saunton Digital Pic" width="100" height="75" border="0"></a></td><td class="spots"><b>Saunton</b><br>Serious longboarders wave. Nice, fat, slow and gentle most of the time. Always popular, never fails to deliver.</td></tr></table>';
 gtext [5]='<table width="300" border="0" cellspacing="0" cellpadding="0"><tr><td><a href="http://www.eyeball-surfcheck.co.uk" target="_blank"><img src="http://www.eyeball-surfcheck.co.uk/digital_pictures/croyde.jpg" alt="Croyde Digital Pic" width="100" height="75" border="0"></a></td><td class="spots"><b>Croyde</b><br>The miles of golden sands saw this beach voted in the top ten favourites worldwide. A myriad of peaks along it\'s entire length allow surfers to get waves galore even at the busiest times. Devoid of pretentious wannabes and childish localism....OOOPS - sorry, wrong caption.....</td></tr></table>';
	// Generate Overlays
       for (i=0; i<mark.length; i++){
            var marker = createMarker(mark[i],gtext[i]);
            map.addOverlay (marker);
            // Add Routes
       }

  }
  
 function createMarker(point, html) {
        var marker = new GMarker(point);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
      
        return marker;
 }