// JavaScript Document

   var map;
    var directionsPanel;
    var directions;
	var localSearch ;
	
    function initialize()
	{
		localSearch = new GlocalSearch();
		localSearch.setCenterPoint(new google.maps.LatLng(53, -1.5))
	
		map = new GMap2(document.getElementById("map_canvas"));
//      	directionsPanel = document.getElementById("route");
    	directions = new GDirections(map, directionsPanel); 
//    	directions = new GDirections();

		//Event fires when Google Maps has successfully loaded directions. Function then grabs the distance calcualted and converts to miles
		GEvent.addListener(directions, "load", function()
		{
			g_directionsLoaded();
			
			
			
			
		
		
		});	
	}