//<![CDATA[
function load() {
	if (GBrowserIsCompatible()) {
		var latlng = new GLatLng(51.00136, -3.117027); // Map lat/long
		var map = new GMap2(document.getElementById("map")); // Create new map object
		map.setCenter(latlng, 13); // Set center of map
		map.addControl(new GSmallMapControl()); // Add direction & zoom control
		map.addControl(new GMapTypeControl()); // Add map type control
		var baseIcon = new GIcon(); // Create base icon object
		var _icon = new GIcon(); // create 
		_icon.iconSize = new GSize(131, 102); // set icon dimensions
		_icon.iconAnchor = new GPoint(0, 102); // set icon anchor point
		_icon.infoWindowAnchor = new GPoint(0, 102); // set anchor point of info window
		_icon.image = "/images/maplogo.png"; // set icon source
		var markerOptions = { icon:_icon }; // add icon to marker options
		var marker = new GMarker(latlng, markerOptions); // create new marker object using marker options
		GEvent.addListener(marker, "click", function() { // add event listener to marker to detect clicking
			map.openInfoWindowHtml(new GLatLng(51.00136, -3.117027), document.getElementById('mapinfo').innerHTML); // open info window using innerhtml of div
			map.setCenter(new GLatLng(51.00600, -3.110027), 13); // Set center of map
		});
		map.addOverlay(marker); // Add marker to map
	}
}
//]]>