<!--
  var map;
 	var point;
	var	marker;
  function mapInitilize() {
    if (GBrowserIsCompatible()) {      
      map = new GMap2(document.getElementById("map_canvas"));
      gdirections = new GDirections(map, document.getElementById("directions"));
			map.addControl(new GLargeMapControl());
			map.addControl(new GMapTypeControl());
      GEvent.addListener(gdirections, "load", onGDirectionsLoad);
      GEvent.addListener(gdirections, "error", handleGErrors);
      document.getElementById("directions").style.display = 'none';
			document.getElementById("map_canvas").style.width = '600px';
		  point = new GLatLng(34.1946058, -118.4626150);
			marker = new GMarker(point);
			map.addOverlay(marker);
			marker.openInfoWindowHtml('<div class="mapInfo"><strong>Valley Presbyterian Hospital</strong><br \/>15107 Vanowen Street<br />Van Nuys, CA 91405<\/div>');
			map.setCenter(new GLatLng(34.1846058, -118.4626150),12);
    }
  }
  function setDirections(fromAddress, toAddress, locale) {
		document.getElementById("errorStatus").innerHTML = '';
		map.closeInfoWindow();
		marker.hide();
		document.getElementById("map_canvas").style.width = '350px';
    document.getElementById("directions").style.display = 'block';
		map.checkResize();
    gdirections.load("from: " + fromAddress + " to: " + toAddress, { "locale": locale });		
  }

  function handleGErrors() {
		var errStatus = '';
		switch (gdirections.getStatus().code) 
		{
			case G_GEO_UNKNOWN_ADDRESS:
				errStatus = "No corresponding geographic location could be found for one of the specified addresses. \nError code: " + gdirections.getStatus().code;
				break;
			case G_GEO_SERVER_ERROR: 
				errStatus = "A geocoding or directions request could not be successfully processed, reason is not known.\n Error code: " + gdirections.getStatus().code; 
				break;	   
			case G_GEO_MISSING_QUERY:
				errStatus = "An empty address was specified as input. \n Error code: " + gdirections.getStatus().code;
				break;
	    case G_GEO_BAD_KEY:
		   	errStatus = "The given key is either invalid or does not match the domain for which it was given. \n Error code: " + gdirections.getStatus().code;
				break;
			case G_GEO_BAD_REQUEST:
		   	errStatus = "A directions request could not be successfully parsed.\n Error code: " + gdirections.getStatus().code;
				break;	    
			default:
		   	errStatus = "An unknown error occurred.";
				break;
		}	   
		document.getElementById("errorStatus").innerHTML = errStatus;
	}

	function onGDirectionsLoad(){ 
//  gdirections.getMarker(0).openInfoWindowHtml('<div class="mapInfo"><strong>Valley Presbyterian Hospital</strong><br \/>15107 Vanowen Street<br />Van Nuys, CA 91405<\/div>'); 
	}
$( function () {
mapInitilize();
});

-->