    function loadGoogleMap()
    {
	    if (GBrowserIsCompatible()) { 
	
	      var map = new GMap2(document.getElementById("map"));
	      map.addControl(new GLargeMapControl());
	      map.addControl(new GMapTypeControl());
	
	      bubble = new EBubble(map, "/images/ow/bubble.png",new GSize(250,71), new GSize(200,40), new GPoint(20,20), new GPoint(0,0));      
	      
	      function createMarker(point,html) {
			var icon = new GIcon(G_DEFAULT_ICON);
			icon.image = "/images/ow/marker_parking.png";
			icon.shadow = "/images/ow/marker_shadow.png";
			icon.iconSize = new GSize(28.0, 28.0);
			icon.shadowSize = new GSize(43.0, 28.0);
			icon.iconAnchor = new GPoint(14.0, 14.0);
			icon.infoWindowAnchor = new GPoint(14.0, 14.0);
			
	        var marker = new GMarker(point,icon);
	        GEvent.addListener(marker, "click", function() {
	          bubble.openOnMarker(marker,html);
	        });
	        return marker;
	      }

		  function createGoldMarker(point,html) {

			var icon = new GIcon(G_DEFAULT_ICON);
			icon.image = "/images/ow/marker_church.png";
			icon.shadow = "/images/ow/marker_shadow.png";
			icon.iconSize = new GSize(25.0, 25.0);
			icon.shadowSize = new GSize(0, 0);
			icon.iconAnchor = new GPoint(14.0, 14.0);
			icon.infoWindowAnchor = new GPoint(14.0, 14.0);

			var marker = new GMarker(point,icon);
			GEvent.addListener(marker, "click", function() {
			  bubble.openOnMarker(marker,html);
			});
			bubble.openOnMarker(marker,html);
			return marker;
		  }
		  
		  function createReceptionMarker(point,html) {

			var icon = new GIcon(G_DEFAULT_ICON);
			icon.image = "/images/ow/marker_reception.png";
			icon.shadow = "images/ow/marker_shadow.png";
			icon.iconSize = new GSize(25.0, 25.0);
			icon.shadowSize = new GSize(0, 0);
			icon.iconAnchor = new GPoint(14.0, 14.0);
			icon.infoWindowAnchor = new GPoint(14.0, 14.0);

			var marker = new GMarker(point,icon);
			GEvent.addListener(marker, "click", function() {
			  bubble.openOnMarker(marker,html);
			});
			bubble.openOnMarker(marker,html);
			return marker;
		  }
	    
	      GEvent.addListener(map, "click", function(marker,point) {
	        if (point) {
	          bubble.hide();
	        }
	      });
	
	    }
	    
	    // display a warning if the browser was not compatible
	    else {
	      alert("Sorry, the Google Maps API is not compatible with this browser");
	    }

		if ( document.title.indexOf('Church') != "-1" )
		{
	        map.setCenter(new GLatLng(51.457000,-0.969488),15);
			var marker = createGoldMarker(new GLatLng(51.456650,-0.965488),'<center><font size="-1">Wedding Service<br>St James\' Roman Catholic Church</font></center>');
			map.addOverlay(marker);
			var marker = createMarker(new GLatLng(51.457800,-0.964088),'<center><font size="-1">Forbury Retail Park, RG1 3JD<br>(restricted parking)</font></center>');
			map.addOverlay(marker);
			var marker = createMarker(new GLatLng(51.459696,-0.969000),'<center><font size="-1">Reading Station, RG1 8BT<br>(1600 spaces)</font></center>');
			map.addOverlay(marker);
			var marker = createMarker(new GLatLng(51.453896,-0.965488),'<center><font size="-1">Queens Road, RG1 4AR<br>(700 spaces)</font></center>');
			map.addOverlay(marker);
			var marker = createMarker(new GLatLng(51.453696,-0.972700),'<center><font size="-1">Oracle Holybrook, RG1 2AG<br>(615 spaces)</font></center>');
			map.addOverlay(marker);
			var marker = createMarker(new GLatLng(51.453196,-0.969988),'<center><font size="-1">Oracle Riverside, RG1 2AG<br>(1645 spaces)</font></center>');
			map.addOverlay(marker);
			var marker = createMarker(new GLatLng(51.458300,-0.973000),'<center><font size="-1">Garrard Street, RG1 1NR<br>(940 spaces)</font></center>');
			map.addOverlay(marker);
		}
		else if ( document.title.indexOf('Reception') != "-1" )
		{
			map.setCenter(new GLatLng(51.503641,-0.90377),11);
			var marker = createGoldMarker(new GLatLng(51.456650,-0.965488),'<center><font size="-1">Wedding Service<br>St James\' Roman Catholic Church</font></center>');
			map.addOverlay(marker);
			var marker = createReceptionMarker(new GLatLng(51.545641,-0.80977),'<center><font size="-1">Wedding Reception<br>Ye Olde Bell, Hurley, SL6 5LX</font></center>');
			map.addOverlay(marker);
		}
	}
