function loadMap() {
      if (GBrowserIsCompatible()) 
			{
				//This creates a new map object, provided the browser is compatible
        var map = new GMap2(document.getElementById('map'));
				//This creates a variable which stores the location
				var point = new GLatLng(55.945712999999998, -3.1810070000000001);
				//This adds the controls to the map to resize or move around, or view the map as a satellite image
				map.addControl(new GSmallMapControl());
				map.addControl(new GMapTypeControl());
				//This centres the map on the location and sets the zoom scale to 15
        map.setCenter(point, 15);
				//This creates a marker which, when moused over, displays the address
  			var marker = new GMarker(point);
				map.addOverlay(marker);
  			GEvent.addListener(marker, 'mouseover', function() {
    					marker.openInfoWindowHtml('Kirk O\'Field Church<br />Brown Street<br />Edinburgh');
  						});
      }
			else 
			{
			return false;
			}
    }

addLoadEvent(loadMap);