var map = null;
var geocoder = null;

function initialize() {
	if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("map_canvas"));
		map.setCenter(new GLatLng(37.4419, -122.1419), 13);
		geocoder = new GClientGeocoder();
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());
	}
}

function showAddress(address) {
	if (geocoder) {
		geocoder.getLatLng(
		address,
		function(point) {
			if (!point) {
				alert(address + " not found");
			} else {
				map.setCenter(point, 12);
				var marker = new GMarker(point);
				map.addOverlay(marker);
				marker.openInfoWindowHtml(address);
			}
		}
		);
	myEl = document.getElementById("map_canvas");
	myEl.style.display = '';
	}
	
}
function ShowPopup() {
	hp = document.getElementById("map_cont");
	sh = document.getElementById("shad");
	// Set popup to visible
	hp.style.visibility = "Visible";
	sh.style.visibility = "Visible";
}
function HidePopup() {
	hp = document.getElementById("map_cont");
	sh = document.getElementById("shad");
	hp.style.visibility = "Hidden";
	sh.style.visibility = "Hidden";
}

