// JavaScript Document

    function load() 
	{
      if (GBrowserIsCompatible()) 
	  {
        var map = new GMap2(document.getElementById("map"));
		
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
		map.enableContinuousZoom();
		map.enableDoubleClickZoom();
		
		var companyLatLng = new GLatLng(51.9475166875, 0.0214283376622);  
		
		
		
		map.setCenter(companyLatLng, 10);
	  	var marker = new GMarker(companyLatLng);
		GEvent.addListener(marker, 'click', function() {marker.openInfoWindowHtml(html);});
		map.addOverlay(marker);
		var html = "<div class=\"bubble\"><p><strong>MJ Warner.<br>Hare Street,<br>Buntingford,<br>Hertfordshire.<br>SG9 0EA</p>";
	  }
	  else
	  {
	  	alert("Sorry, Google Maps is not compatible with this browser");
	  }
		
		gdir  = new GDirections(map, document.getElementById("panel"));  
		toAddress = companyLatLng;
		
		

    }
	
	function overlayDirections()
	{
		fromAddress = document.getElementById("postcode").value;	
		gdir.load("from: " + fromAddress + " to: " + toAddress);  
	}
