//<![CDATA[
function loadGoogleMap( intLat, intLong, strMapDiv ) {
  if ( GBrowserIsCompatible( ) ){
	  
	var map = new GMap2( document.getElementById( strMapDiv ) );
	map.setCenter( new GLatLng( intLat, intLong ), 5 );
	map.addControl( new GMapTypeControl( ) );
	map.setMapType( G_HYBRID_TYPE );
	map.addControl( new GSmallMapControl( ) );
	map.addControl( new GScaleControl( ) );
	
	var marker = new GMarker( new GLatLng( intLat, intLong ) );
	map.addOverlay( marker );
	
  }
}

function getGoogleDirections( intAirportLat, intAirportLong, intLocationLat, intLocationLon )
{

		if (GBrowserIsCompatible())
		{
				//Create Google Map Object
				var map = new GMap2(document.getElementById("directions_map"));

				//Create Google Directions Object and specify Google Map Object and Div
				var directions = new GDirections(map, document.getElementById("airport_directions"));

				//Create our two GLatLng objects to house location information
				var airport = new GLatLng( intAirportLat, intAirportLong );
				var location = new GLatLng( intLocationLat, intLocationLon );

				//Create an array to house the two GLatLng Objects
				var arrLocation = new Array(2);
				arrLocation[0] = location;
				arrLocation[1] = airport;

				//Clear the mapa nd directions of any old information
				directions.clear();

				//Load the map and directions from the specified waypoints
				directions.loadFromWaypoints(arrLocation);

		}
}
//]]>