 //<![CDATA[

	function load() 
	{
      if (GBrowserIsCompatible()) 
	  {
        var map = new GMap2(document.getElementById("map"));
        map.setCenter(new GLatLng(52.688493,1.191995), 15);
      }
    }

		   
	function onLoad()
	{	
		// Create the map pin icon
		var icon = new GIcon();
		icon.image = "images/pin.png";
		icon.shadow = "images/ps.png";
		icon.iconSize = new GSize(10, 20);
		icon.shadowSize = new GSize(22, 20);
		icon.iconAnchor = new GPoint(6, 20);
		icon.infoWindowAnchor = new GPoint(5, 1);
		
		// Create the map
		var map = new GMap(document.getElementById("map"));
		map.addControl(new GSmallMapControl());
		
		// Locate Pristine Pets
		var point = new GPoint(1.192231, 52.689104);
		map.centerAndZoom(point, 3);
		
		// Add the map pin
		var marker = new GMarker(point, icon);
		map.addOverlay(marker);
		
		// Add the bubble
		var bubble = "<div id=\"mapdetails\"><b><a href='http://www.amsmusictuition.co.uk'>AMS Music Tuition</a></b><br/>Broadgate<br/>Taverham<br/> Norwich<br/>NR8 6GH<br/></div>";
		marker.openInfoWindowHtml(bubble);
		
		// Add a click handler
		GEvent.addListener(map, 'click', function(overlay,point) {
			if (overlay) {
				marker.openInfoWindowHtml(bubble);
			} 
		});	
	}
	
	//]]>
