function initialize2() {
  if (GBrowserIsCompatible()) {
	var map = new GMap2(document.getElementById("plattegrond"));
	map.setCenter(new GLatLng(52.512794,6.091539), 13);
	map.setUIToDefault();
	
	// Create our "tiny" marker icon
	var blueIcon 				= new GIcon(G_DEFAULT_ICON);
	blueIcon.image 				= "/_img/tmpl/marker.gif";
	blueIcon.iconAnchor 		= new GPoint(16, 16);
	blueIcon.infoWindowAnchor 	= new GPoint(16, 0);
	blueIcon.iconSize 			= new GSize(32, 32);
	blueIcon.shadow 			= "";
	blueIcon.shadowSize 		= new GSize(46, 32);

	
	// Set up our GMarkerOptions object
	markerOptions = { icon:blueIcon };

	// Add 10 markers to the map at random locations
	var bounds = map.getBounds();
	var southWest = bounds.getSouthWest();
	var northEast = bounds.getNorthEast();
	var lngSpan = northEast.lng() - southWest.lng();
	var latSpan = northEast.lat() - southWest.lat();
	
	// All positions to view
	/*
	var latlng = new GLatLng(52.371228,6.019902);
	map.addOverlay(new GMarker(latlng, markerOptions));
	var latlng = new GLatLng(52.522693,6.115998);
	map.addOverlay(new GMarker(latlng, markerOptions));
	var latlng = new GLatLng(52.495471,6.117405);
	map.addOverlay(new GMarker(latlng, markerOptions));
	*/ 
	var latlng = new GLatLng(52.512489,6.092564);
	map.addOverlay(new GMarker(latlng, markerOptions));
	 
  }
}

function showAddress(address) {
	if (geocoder) {
		geocoder.getLatLng(
			address,
			function(point) {
				if (!point) {
					alert(address + " not found");
				} else {
				
					// Create our custom marker icon
					var customIcon 					= new GIcon(G_DEFAULT_ICON);
					customIcon.image 				= "/_img/tmpl/marker.gif";
					customIcon.iconAnchor 			= new GPoint(16, 16);
					customIcon.infoWindowAnchor 	= new GPoint(16, 0);
					customIcon.iconSize 			= new GSize(32, 32);
					customIcon.shadow 				= "";
					customIcon.shadowSize 			= new GSize(46, 32);
					
					// Set up our GMarkerOptions object
					markerOptions = { icon:customIcon };

					map.setCenter(point, 13);
					var marker = new GMarker(point, markerOptions);
					map.addOverlay(marker);
					
					// MAAK EIGEN TEKST IN BALLON.
					//var text = 'Dit is een test tekst';
					//marker.openInfoWindowHtml(text);
					
				}
			}
		);
	}
}

function initialize(address) {
	if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("plattegrond"));
		//map.setCenter(new GLatLng(52.512794,6.091539), 13);
		map.setUIToDefault();

		geocoder = new GClientGeocoder();
		
		showAddress(address);
	}
}

// 52.490919,6.142979
