//function initialize() loads the Gmap
		function initialize() {
		if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map_canvas"));
		//var StJosLatLng = new GLatLng(53.7995661638434, -1.65805598952147);// LatLng from st jo's post code
		var StJosLatLng = new GLatLng(53.7999, -1.6587);//bang on st jo's ;-)
		//var dummyLatLng = new GLatLng(53.7995661638434, -1.66);// -1.66 is too far west
		//var dummyLatLng = new GLatLng(53.7996, -1.6590);
		// fixing map centre on st jo's
		map.setCenter(StJosLatLng, 15); //sets centre of map, & scale (smaller number increases area shown on map, ie like the 'zoom out' control, '-')

		//................................................

		//function msgMarker(point) attaches a message to the marker at 'point'. It's positioned here, before the line that calls it, map.addOverlay(msgMarker(StJosLatLng));

			function msgMarker(point) {
			
			var marker = new GMarker(point);
			GEvent.addListener(marker, "click", function() {
			var myHtml = "<p>St Joseph's R C Church<br />The Lanes,<br /> off Mount Pleasant Road<br />  Leeds LS28</p>";
			map.openInfoWindowHtml(point, myHtml);
			});
			return marker;
			}

	//................................................

		// putting marker at dummmy
		//map.addOverlay(new GMarker(dummyLatLng));
		//putting marker at AandB, & attaching a message to the marker
		map.addOverlay(msgMarker(StJosLatLng));
		//map controls:

		map.addControl(new GSmallMapControl());		//	zoom
		map.addControl(new GMapTypeControl());		//	map/satellite/hybrid view
		map.addControl(new GOverviewMapControl());	//	minimap in bottom rh corner
		map.addControl(new GScaleControl());		//	scale



		} //end of if (GBrowserIsCompatible()) {
	}//end of  function initialize() {
			
