function initialize() {
	if (GBrowserIsCompatible()) {
		var zoomLevel = 6;
		var geocoder = new GClientGeocoder();
		var mapSideBar = new GMap2(document.getElementById("map_canvasSideBar"));
  
    	var icon = new GIcon();
		icon.image = "http://www.eurojuris.nl/images/googleLocationIcon.png";
		icon.iconSize = new GSize(26, 18);
		icon.iconAnchor = new GPoint(13, 18);
		icon.infoWindowAnchor = new GPoint(0, 0);	
  
		geocoder.getLatLng(
		"Netherlands",
		function(point) {
			if (point) {
				mapSideBar.setCenter(point, zoomLevel);
			}
		});

		function inSidebarShowAddress(address, organisation, internalUrl) {
			geocoder.getLatLng(
			address,
			function(point) {
				if (point) {
					var marker = new GMarker(point, icon);
					mapSideBar.addOverlay(marker);
			
					GEvent.addListener(marker,"click", function() {
						var myHtml = "<div class=\"gmOrganisationTitle\">" + organisation + "<\/div>" + "<div class=\"gmOrganisationInternalUrl\"><a href=\"" + internalUrl + "\">Klik hier voor meer informatie<\/a><\/div>";
						mapSideBar.setCenter(point, zoomLevel);
						mapSideBar.openInfoWindowHtml(point, myHtml);
					});
				}
			});
		}

	}

	if (window.offices)
	{
		offices.each(function (office)
		{
			inSidebarShowAddress(office.address, office.name, office.link);
		});
	}
}
