function Mapload(){
					/*var map = new GMap(document.getElementById("map"));
					
					var point = new GLatLng(54.684823,-5.9658685);
					var marker = new GMarker(point);
					map.addControl(new GLargeMapControl());
					map.addControl(new GMapTypeControl());
					map.centerAndZoom(point, 9);
			
					map.addOverlay(marker); 
					GEvent.addListener(marker, "click", function() {
					marker.openInfoWindowHtml("southside");
					});*/

					
					var map = new GMap(document.getElementById("map"));
    	  			map.setUIToDefault();
					map.setCenter(new GLatLng(51.455396,-0.193662), 14);
					var point = new GLatLng(51.455396,-0.193662);
					var marker = new GMarker(point);
					map.addOverlay(marker); 
					GEvent.addListener(marker, "click", function() {
					marker.openInfoWindowHtml("<table><tr><td style='text-align:left'>Southside Shopping Centre<br/> Wandsworth<br/> London<br/> SW18 4TF</td><td valign='bottom'><img src='../images/logo2.png' style='float:left'></td></tr></table>");
					});

			
			
				}
				
			
				
var map;
	 
    var directionsPanel;
    var directions;
	var searchNo = 1;
	
    function initialize(Directions) {
	
					
			
	
		var DirectionsFromMap = Directions;
		// Create new geocoding object
      	geocoderFind = new GClientGeocoder();
      	// Retrieve location information, pass it to addToMap()
      	geocoderFind.getLocations(DirectionsFromMap, DisplayDirections);
	  
    }
	
	function GetDirections(){
		if (document.contactForm3.Directions.value == '')
		{alert('Please enter where you would like to receive directions from.');
			
		}
		else
		{
			
			initialize(document.contactForm3.Directions.value+',UK'); 
		 }
	}


   function DisplayDirections(response)
   {	var pointsFound;
   		var Googlelats;
		var	Googlelong;
		
		
		
	  	// Retrieve the object
		

		try
  		{
			//Run some code here
			place = response.Placemark[0];
			Googlelats = place.Point.coordinates[1];
			Googlelong = place.Point.coordinates[0];
			pointsFound = true;
  		}
		catch(err)
  		{
			alert("We were not able to locate:" +document.contactForm3.Directions.value +",UK");
			//Display orignal Map
  			document.getElementById('Results').style.display = 'none';
			for (i = 1; i <= 10; i++)
				{
					document.getElementById('route'+i).style.display = 'None';
				}
  			pointsFound = false
			
			document.getElementById('route0').style.display = 'block';
			
   			
  			//Handle errors here
  		}
		
		
		
		if (pointsFound == true)
		{
			document.getElementById('Results').style.display = 'block';
		  	map = new GMap2(document.getElementById("map_canvas"));
			map.setUIToDefault();
    	  	map.setCenter(new GLatLng(51.455396,-0.193662), 14);
			
			
			var point = new GLatLng(51.455396,-0.193662);
			var marker = new GMarker(point);
			map.addOverlay(marker); 
			GEvent.addListener(marker, "click", function() {
				marker.openInfoWindowHtml("<table><tr><td style='text-align:left'>Southside Shopping Centre<br/> Wandsworth<br/> London<br/> SW18 4TF</td><td valign='bottom'><img src='../images/logo2.png' style='float:left'></td></tr></table>");
					});

			
			
			
      		directionsPanel = document.getElementById("route"+searchNo);
	      	directions = new GDirections(map, directionsPanel);
			GEvent.addListener(directions, "error", handleErrors);
			
			
		  	//directions.load("from:"+document.contactForm3.Directions.value+",UK@"+Googlelats+"," +Googlelong+" to:Southside Shopping Centre@51.455396,-0.193662");
			directions.load("from:"+document.contactForm3.Directions.value+",UK@"+Googlelats+"," +Googlelong+" to:Southside Shopping Centre@51.455396,-0.193662");
			
			
					
			for (i = 0; i <= 10; i++)
			{
				if (searchNo == i)
				{document.getElementById('route'+i).style.display = 'block';}
				else
				{document.getElementById('route'+i).style.display = 'None';}
			}
		  	document.getElementById('Results').style.display = 'block';
		
				  	
	 		searchNo = searchNo +1;
		 }
	 } 
	 
	  	
	 function handleErrors(){
	   if (directions.getStatus().code == G_GEO_UNKNOWN_ADDRESS)
	     alert("No corresponding geographic location could be found for one of the specified addresses. This may be due to the fact that the address is relatively new, or it may be incorrect.\nError code: " + gdir.getStatus().code);
	   else if (directions.getStatus().code == G_GEO_SERVER_ERROR)
	     alert("A geocoding or directions request could not be successfully processed, yet the exact reason for the failure is not known.\n Error code: " + gdir.getStatus().code);
	   
	   else if (directions.getStatus().code == G_GEO_MISSING_QUERY)
	     alert("The HTTP q parameter was either missing or had no value. For geocoder requests, this means that an empty address was specified as input. For directions requests, this means that no query was specified in the input.\n Error code: " + gdir.getStatus().code);

	//   else if (gdir.getStatus().code == G_UNAVAILABLE_ADDRESS)  <--- Doc bug... this is either not defined, or Doc is wrong
	//     alert("The geocode for the given address or the route for the given directions query cannot be returned due to legal or contractual reasons.\n Error code: " + gdir.getStatus().code);
	     
	   else if (directions.getStatus().code == G_GEO_BAD_KEY)
	     alert("The given key is either invalid or does not match the domain for which it was given. \n Error code: " + gdir.getStatus().code);

	   else if (directions.getStatus().code == G_GEO_BAD_REQUEST)
	     alert("A directions request could not be successfully parsed.\n Error code: " + gdir.getStatus().code);
	    
	   else {
	   			
	   alert("No corresponding geographic location could be found for one of the specified addresses. This may be due to the fact that the address is relatively new, or it may be incorrect.");}
	   
	} 				
