function levelElements(theList) {
	var theHeight = 0;
	if (theList) {
		theList.each(function(el) {
			el.offsetHeight > theHeight ? theHeight = el.offsetHeight : false
		});
		theList.each(function(el) {
			el.style.height = theHeight + "px";
		});
	}
}

function Gload(element, location, zoom, mini) {
	if (GBrowserIsCompatible()) {
		element.enableContinuousZoom();
		if (!mini) {
			element.addControl(new GLargeMapControl());
			element.addControl(new GOverviewMapControl());
			element.addControl(new GMapTypeControl());
		}
		getLocation(element, location, zoom);
	}
}

function addMarker(element, location) {
	var gMarker = new GMarker(location)
	element.addOverlay(gMarker);
}

function getLocation(element, location, zoom) {
	gGeo = new GClientGeocoder();
	gGeo.getLatLng(location, function(point) {
		if (!point) {
			alert(location + " not found");
		} else {
			element.setCenter(point, zoom);	
			addMarker(element, point);
		}
	});
}