function getDirection()
{

	window.open('about:blank','map','scrollbars=yes,resizable=yes,width=650,height=500')
		form1.submit();

}

function initialize() {

	if (GBrowserIsCompatible()) {

		// Display the map, with some controls and set the initial location 

		var map = new GMap2(document.getElementById("map_canvas"));
		map.enableDoubleClickZoom();
		map.setCenter(new GLatLng(-33.724036,150.293891),14);
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());

		// A function to create the marker and set up the event window
		// Dont try to unroll this function. It has to be here for the function closure
		// Each instance of the function preserves the contends of a different instance
		// of the "marker" and "html" variables which will be needed later when the event triggers.    
		function createMarker(point,html) {
			var marker = new GMarker(point);
			GEvent.addListener(marker, "click", function() {
					marker.openInfoWindowHtml(html);
					});
			return marker;
		}

		// Set up three markers with info windows 

		var point = new GLatLng(-33.724036,150.293891);

		// Create our "tiny" marker icon
		var blueIcon = new GIcon(G_DEFAULT_ICON);
		blueIcon.image = "/images/find_us/kgc_icon.png";
		blueIcon.iconSize = new GSize(74, 62);
		blueIcon.iconAnchor = new GPoint(10, 30);
		// Set up our GMarkerOptions object
		markerOptions = { icon:blueIcon };
		map.addOverlay(new GMarker(point, markerOptions));


	}

	// display a warning if the browser was not compatible
	else {
		alert("Sorry, the Google Maps API is not compatible with this browser");
	}
}

window.onload = initialize;
