// JavaScript Document

    function load() {
      if (GBrowserIsCompatible()) {
        function createInfoMarker(point, address) {
          var marker = new GMarker(point, bsIcon);
          GEvent.addListener(marker, "click",
            function() {
              marker.openInfoWindowHtml(address);
            }
          );
          return marker;
        }

        var bsIcon = new GIcon();
        bsIcon.image = "http://www.bikeshedwales.com/images/gmap/bikeshed.png";
        bsIcon.shadow = "http://www.bikeshedwales.com/images/gmap/bikeshedshadow.png";
        bsIcon.iconSize = new GSize(20, 34);
        bsIcon.shadowSize = new GSize(36, 34);
        bsIcon.iconAnchor = new GPoint(5, 34);
        bsIcon.infoWindowAnchor = new GPoint(10, 34);
        bsIcon.infoShadowAnchor = new GPoint(14, 25);
        bsIcon.transparent = "http://www.bikeshedwales.com/images/gmap/bikeshedtran.png";
        bsIcon.printImage = "http://www.bikeshedwales.com/images/gmap/bikeshedie.gif";
        bsIcon.mozPrintImage = "http://www.bikeshedwales.com/images/gmap/bikeshedff.gif";

        var map = new GMap2(document.getElementById("map"));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl()); 
        map.setCenter(new GLatLng(51.488975, -3.201950), 15); // The Bike Shed's Latitude & Longitude
        var point = new GPoint(-3.201950, 51.488975); 
								address = "<div class=\"gmapHtml\"><span class=\"gmapHtmlHighlight\">The Bike Shed</span><br />243 - 245 Cathedral Road<br />Pontcanna<br />Cardiff<br />CF11 9PP<br /><a href=\"mailto:shop@bikeshedwales.com\" title\"email us @ shop@bikeshedwales.com\">shop@bikeshedwales.com</a><br /><br />Tel: 029 2066 8772</div>";
        var marker = createInfoMarker(point, address);
        map.addOverlay(marker);
        marker.openInfoWindowHtml(address)
      }
				}
