var directionsPanel;
var directions;
var map;
function initialize(address) 
{
map = new GMap(document.getElementById("map_canvas"));	
map.setCenter(new GLatLng(38.559072, -90.374129), 14);
map.addControl(new GLargeMapControl3D());	
map.addControl(new GMapTypeControl());
var geocoder = new GClientGeocoder();
	geocoder.getLatLng(address,
		function(point)
		{ 
		if (!point) 
		{
			alert(address + " not found.");
		}
			else 
			{
				var marker = new GMarker(point);
				map.addOverlay(marker);
			}
		}
		);
		
}

function getDirections(to,from){
directionsPanel = document.getElementById("dirPanel");	
directions = new GDirections(map,directionsPanel);
directions.load("from:" + from + " to: " + to);
}
