
    //<![CDATA[
    function loadGoogle() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());
		map.setCenter(new GLatLng(centerX, centerY), 12);
		//var point = new GLatLng(51.879054123897585, 0.5514957486469612); map.addOverlay(new GMarker(point));
		//map.addOverlay( marker);		
		
     	//var	marker=createHomeMarker(point, pointtext)
     	//map.addOverlay(new GMarker(point, icon));
     	//map.addOverlay( marker);
		var x
		var markerArray = new Array()
		for(x in pointArray)
     	{
     		markerArray[x]=createHomeMarker(pointArray[x], pointtextArray[x], pointlinkArray[x])
     		map.addOverlay(markerArray[x]);
     	}
	  }
    }
	
	function createMarker(point, number) {
	  var marker = new GMarker(point);
	  GEvent.addListener(marker, "click", function() {
	    marker.openInfoWindowHtml("" + number + "");
	  });
	  
	  return marker;
	}
	function createHomeMarker(point, number, link) {
		// Create our "tiny" marker icon
		var icon = new GIcon();
		icon.image = "/_images/home.gif";
		icon.shadow = "/_images/home_shadow.gif";
		icon.iconSize = new GSize(38, 28);
		icon.shadowSize = new GSize(42, 28);
		icon.iconAnchor = new GPoint(16, 29);
		icon.infoWindowAnchor = new GPoint(18, 9);
		var marker = new GMarker(point, icon);
		GEvent.addListener(marker, "click", function() {
		    //marker.openInfoWindowHtml("" + number + "");
		    window.location=link;

		});
	  
		return marker;
	}

    //]]>