/* ******************* */
/*  google map - home  */
/* ******************* */

function LoadMap () {
    
	if (GBrowserIsCompatible ()) {
		
		// display the map, with some controls and set the start location
		var map = new GMap (document.getElementById ("map"));
		var longitude = -123.1340436;
		var latitude = 44.0325207;
		var point = new GPoint (longitude, latitude);
		map.addControl (new GSmallMapControl ());
		map.centerAndZoom (point, 2);			
			
		var point = new GPoint(longitude, latitude);
		var title_main = 'Augusta House';
		var address_main = '2585 Bowmont Drive';
		var city_main = 'Eugene';
		var state_main = 'Oregon';
		var zip_main = '97405';
		
		// use for js-controlled new window
		//var html = 	"<div><h2>" + title_main + "</h2><p>" + address_main + "<br \/>" + city_main + ", " + state_main + " " + zip_main + "<\/p><a href=\"javascript:void(0)\" onclick=\"openWin('http://maps.google.com/maps?f=q&hl=en&q=" + address_main + "+" + zip_main + "')\">Get Directions<\/a><\/div>";
		
		// use for target="_blank" new window
		var html = 	"<div><h2>" + title_main + "</h2><p>" + address_main + "<br \/>" + city_main + ", " + state_main + " " + zip_main + "<\/p><a href=\"http://maps.google.com/maps?f=q&hl=en&q=" + address_main + "+" + zip_main + "\" target=\"_blank\">Get Directions<\/a><\/div>";
		
		aLocations.push (createMarkerWithMsg (point, html, 'custom'));
		map.addOverlay (aLocations[aLocations.length - 1]);
			
		openWindowHTML(0);
		
	}
	
}
