		function set_location(location_address, map_set){
	 
	 	var icon = new GIcon();
				icon.image = "/img/html/mn_marker.png";
				icon.shadow = "/img/html/mn_marker_shadow.png";
				icon.iconSize = new GSize(89, 103);
				icon.shadowSize = new GSize(120, 104);
				icon.iconAnchor = new GPoint(45, 103);
				
	 	var geocoder = new GClientGeocoder();
		 geocoder.getLatLng(location_address, function(point) {
		      if (!point) {
		        alert(location_address + " not found");
		      } else {
		        map_set.setCenter(point, 15);
		        var marker = new GMarker(point, icon);
		       	map_set.addOverlay(marker);
		       
		      }
		    }
		  );
		}
		
	function get_directions(map_d, directions_d, from, to){
		directions_d.innerHTML = ""
		var dir = new GDirections(map_d, directions_d);
		dir.load(from + ' to ' + to);
		GEvent.addListener(dir, "error", handleErrors);
	}
		
	function handleErrors(){
			alert("Directions could not be found. Please try again.");
	}	
		
	function show_map() {
	
		      if (GBrowserIsCompatible()) {
		      	
		      	document.getElementById("find-directions").innerHTML = "";
		        var map = new GMap2(document.getElementById("find-map"));
		        var address = '101 Princess Street, Manchester, M1, UK';
				set_location(address, map);
        		map.setUIToDefault(); 
				load_default_directions();
		
      }
    }
	
	function goDirections(){
		var map=new GMap2(document.getElementById("find-map"));
		var directions = document.getElementById("find-directions");
		var address = '101 Princess Street, Manchester, M1, UK';
		var travel_from = document.getElementById("from_here").value;
		get_directions(map, directions, travel_from, address);
		map.setUIToDefault(); 
		add_back_to_map();
		back_to_map();
		

	}
	
	function static_directions(from_location){
		var map=new GMap2(document.getElementById("find-map"));
		var directions = document.getElementById("find-directions");
		var address = '101 Princess Street, Manchester, M1, UK';
		var travel_from = from_location;
		get_directions(map, directions, travel_from, address);
		map.setUIToDefault(); 
	}
