var more_than_one = false;	
	function email_property(address, purl) {
		location.href = 'mailto:?subject='+address+' Gold Country Homes MLS Property Listing&body=Here is a property I\'d like you to see: ' + purl;
	}
	
	function print_property() {
		if (window.print) {
			window.print();
		} else {
			alert("Click the 'Print' button at the top of your browser.");
		}
	}
	
function doGMap(dataObj) {
	if (GBrowserIsCompatible()) {
		var geocoder = new GClientGeocoder();
		for (var i = 0; i < dataObj.addresses.length; i++) {
			geocoder.getLocations(dataObj.addresses[i].address, function(response) {
				if (!response || response.Status.code != 200) {
					//alert("Sorry, we were unable to geocode that address");
				} else {
					var place = response.Placemark[0];
					var point = new GLatLng(place.Point.coordinates[1], place.Point.coordinates[0]);
					//var marker = new GMarker(point, icon);
					var marker = new GMarker(point);
					map = new GMap2(document.getElementById('mls_map'));
					map.addControl(new GSmallMapControl());
					map.addControl(new GMapTypeControl());
					map.setCenter(new GLatLng(37.4419, -122.1419), 13);
					//map.setMapType(G_HYBRID_MAP);
					map.addOverlay(marker);
					map.setCenter(new GLatLng(place.Point.coordinates[1], place.Point.coordinates[0]), 16);
				}
			});
		}
	}
}

function makeGMap() {
	doGMap(addressesObj);
}
