
    //<![CDATA[
    function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());
        map.setCenter(new GLatLng(51.036966,-0.24967428), 13);
		var locationicon = new GIcon();
		locationicon.image = "mapmarker.png";
		locationicon.iconSize = new GSize(157, 69);
		locationicon.iconAnchor = new GPoint(107, 0);
		locationicon.infoWindowAnchor = new GPoint(107, 0);

		var bandb = new GMarker(new GLatLng(51.036966,-0.24967428),locationicon);
		GEvent.addListener(bandb, "click", function() {
			bandb.openInfoWindowHtml("<div style=\"width: 290px; background: #ffffff;\"><h2>Get Directions!<\/h2><p>Simply enter your postcode...<\/p><form style=\"margin: 0 0 20px 0;padding: 0;\" method=\"POST\" target=\"_blank\" onsubmit=\"this.action = 'http://maps.google.com/maps?f=d&hl=en&saddr=' + this.postcode.value + '&daddr=RH13+6NX,+UK&om=1';return true;\"><input type=\"text\" name=\"postcode\"> <input type=\"submit\" value=\"Get Directions.\"><\/form><\/div>");
		});
		GEvent.addListener(bandb, "infowindowclose", function(){
		  map.panTo(new GLatLng(51.036966,-0.24967428));
		})
		map.addOverlay(bandb);
		
      }
    }
    //]]>
   

