    //<!--
    
    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.    
      function createMarker(point,html) {
        var marker = new GMarker(point);
        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.setCenter(new GLatLng(50.749504,-1.324754),10);
      map.addControl(new GLargeMapControl());
      map.addControl(new GMapTypeControl()); 
      var point = new GLatLng(50.749504,-1.324754);
      var marker = createMarker(point,'<div style="width:240px">Gurnard Pines<br /><a target="_blank" href="http://maps.google.co.uk/maps?f=q&hl=en&q=Gurnard+Pines,+Cockleton+Ln,+Gurnard,+Cowes,+Isle+Of+Wight+PO31,+United+Kingdom&sll=53.800651,-4.064941&sspn=14.514955,33.925781&ie=UTF8&cd=1&geocode=FdBeBgMd9Mjr_w&ll=50.760785,-1.452942&spn=0.242364,0.791016&z=11&iwloc=addr">get directions &gt;&gt;</a></div>');
      map.addOverlay(marker);
      marker.openInfoWindowHtml('<div style="width:240px">Gurnard Pines<br /><a target="_blank" href="http://maps.google.co.uk/maps?f=q&hl=en&q=Gurnard+Pines,+Cockleton+Ln,+Gurnard,+Cowes,+Isle+Of+Wight+PO31,+United+Kingdom&sll=53.800651,-4.064941&sspn=14.514955,33.925781&ie=UTF8&cd=1&geocode=FdBeBgMd9Mjr_w&ll=50.760785,-1.452942&spn=0.242364,0.791016&z=11&iwloc=addr">get directions &gt;&gt;</a></div>'); }
 
    
    // display a warning if the browser was not compatible
    else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
    }

  
