function load() {
 if (GBrowserIsCompatible()) {
  var map = new GMap2(document.getElementById("map"));
  map.addControl(new GSmallMapControl());
  map.addControl(new GMapTypeControl());
  map.setCenter(new GLatLng(53.488065,-1.303742), 14);

  var iconRed = new GIcon();
  iconRed.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
  iconRed.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
  iconRed.iconSize = new GSize(12, 20);
  iconRed.shadowSize = new GSize(22, 20);
  iconRed.iconAnchor = new GPoint(6, 20);
  iconRed.infoWindowAnchor = new GPoint(5, 1);

  function createMarker(point,loc,icon) {
   var marker = new GMarker(point,icon);
   GEvent.addListener(marker, "mouseover", function() {
   marker.openInfoWindowHtml(createHTML(loc));
   });
   return marker;
  }

  function createHTML(loc) {
   var thehtml = '';

   if (loc == 'Brearley') {
    thehtml = '<DIV CLASS="PlaceTitle">Brearley &amp; Co Accountants Ltd</DIV>';
    thehtml+= '<DIV CLASS="PlaceText">39-43 Bridge Street, Swinton</DIV>';
    thehtml+= '<DIV CLASS="PlaceText">Mexborough, South Yorks, S64 8AP</DIV>';
   }

   return thehtml;
  }

  // Add markers
  var point = new GLatLng(53.488370,-1.302442);
  map.addOverlay(createMarker(point,'Brearley',iconRed));
 }
}
