var map;

function load() {
	if (GBrowserIsCompatible()) {
		if(typeof loadAllAddresses == 'function') { 
			loadAllAddresses();
		}
	}
}
function showAddress(latitude, longitude, object, info, title) {
	object.setCenter(new GLatLng(52.37000, 4.90128), 14);
	var point = new GLatLng(latitude, longitude); 
	
	if(point){
		var marker = new GMarker(point);
		object.addOverlay(marker);
		
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml(info);
		  });
		  
		  GEvent.addListener(marker, "mouseover", function() {
			document.getElementById('infoBox').innerHTML = title;
		  });
		  
		  GEvent.addListener(marker, "mouseout", function() {
			document.getElementById('infoBox').innerHTML = '&nbsp;';
		  });
	} else {
		alert(address + " niet gevonden");
	}	
}
