	var map = null;
	//<![CDATA[
	function load(p_zipcode, p_huisnr) 
	{
		document.getElementById('showOnMap').className = 'showOnMap';
		var zipcode = "";
		var huisnr = "";
		p_zipcode = "" + p_zipcode;
		p_zipcode = p_zipcode.substring(0,4);
		if(p_zipcode != 0)
		{
			zipcode = "" + p_zipcode;
		}
		huisnr = p_huisnr;
		
		if (GBrowserIsCompatible()) {
			// Create the map
			// Make sure this element has the same ID as your div
			map = new GMap2(document.getElementById("googlehome"));
			// Set the starting position and zoom level when the map loads
			map.setCenter(new GLatLng(52.042049, 4.321654), 12);

			// Read the data from XML
			var request = GXmlHttp.create();
			geocoder = new GClientGeocoder();

			var huis = "&amp;huisnr=" + huisnr;
			// Open the XML file
			request.open("GET", "http://"+window.location.hostname+"/"+$('bkmcontextpath').innerHTML+"gmapsxmlgetstatus.jsp?searchzip=" + zipcode + huis, true);
			request.onreadystatechange = function() {
			if (request.readyState == 4) {
				var xmlDoc = request.responseXML;
				// Obtain the array of markers and loop through it
				var markers = xmlDoc.documentElement.getElementsByTagName("marker");
				count = 1;
				for (var i = 0; i < markers.length; i++) {
					SetMarker(i,map,markers,markers.length,count++);
				}
			}
		}
		request.send(null);
		}
		// Javascript alert for older browsers where Google Maps isn't supported
		else {
		  alert("Sorry, the Google Maps API is not compatible with this browser");
		}
	}

	function itMustbeHidden(){
		bubble.hide();
	}
	
	function SetMarker(i,map, markers, markerslength, counter){
		// Obtain the attribues of each marker
		var point;
		var lat;
		var lng;
		var marker;
		var name = new Array();
		var name = markers[i].getAttribute("name");
		var phone = markers[i].getAttribute("phone");
		var notfound = markers[i].getAttribute("notfound");
		xmlmarker = markers[i].getAttribute("xmlmarker");
		var address = markers[i].getAttribute("address");
		var huisnummer = markers[i].getAttribute("huisnummer");
		var city = markers[i].getAttribute("city");
		var state = markers[i].getAttribute("state");
		var zip = markers[i].getAttribute("zip");
		var url = markers[i].getAttribute("url");
		var showposition = markers[i].getAttribute("showposition");
		markerscountedall = markerslength;

		if(showposition == 'true'){
			searchaddress = zip + " " +city;
		}else{
			searchaddress = address + " " + huisnummer + " " + city;
		}
		
		var markerhtml = "";
		if(notfound != "not"){
			if (name != "") markerhtml += '<p class="bkmfont">' + '<b>' + name + '</b><br></p>';
			markerhtml += '<p class="bkmfont">' + address + ' ' + huisnummer + '<br>' + zip + ' ' + city + '<br></p>';
			if (phone != "") markerhtml += '<p class="bkmfont">' + phone + '<br></p>';
			if (url != "") markerhtml += '<p class="bkmfont">' + "<a href=\"" + url + "\">Bekijk deze bekendmaking</a></p>";
												
			//IE6 fix voor issue nr: 027317					
			var versionIE = navigator.appVersion;
			var ie6 = "MSIE 6.";
			if(versionIE.match(ie6)){
				markerhtml += '</div><div class="bkmbaloon"><img class="curhand" src="/layout/viv/images/icon_close.gif" onclick="bubble.hide();">';
			}else{
				if(showposition == 'true'){
					markerhtml += '</div><div class="bkmbaloon"><img class="curhand" src="/layout/viv/images/icon_close.gif" onclick="bubble.hide();">';
				}else{
					markerhtml += '</div><div class="bkmbaloon"><img class="curhand" src="/layout/viv/images/icon_close.gif" onclick="bubble.hide();">';
				}
			}
		}else{
			if (name != "") markerhtml += '<p class="bkmfont">' + '<b>' + name + '</b></p>';
			//IE6 fix voor issue nr: 027317					
			var versionIE = navigator.appVersion;
			var ie6 = "MSIE 6.";
			if(versionIE.match(ie6)){						
				markerhtml += '</div><div class="bkmbaloon"><img class="curhand" src="/layout/viv/images/icon_close.gif" onclick="bubble.hide();">';
			}else{
				markerhtml += '</div><div class="bkmbaloon"><img class="curhand" src="/layout/viv/images/icon_close.gif" onclick="bubble.hide();">';
			}
		}				
		var getpos = geocoder.getLatLng(searchaddress,
			function(point){
				if (!point) {        
					//alert(address + " not found");      
				} else {
				
					// Center the map on the pin
					if(showposition == 'true'){
						map.setCenter(point, 12);
					}
					// Create a base icon for all of our markers that specifies the
					// shadow, icon dimensions, etc.
					var baseIcon = new GIcon();
					baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
					baseIcon.iconSize = new GSize(33, 34);
					baseIcon.shadowSize = new GSize(37, 34);
					baseIcon.iconAnchor = new GPoint(9, 34);
					baseIcon.infoWindowAnchor = new GPoint(9, 2);
					baseIcon.infoShadowAnchor = new GPoint(18, 25);
	
					// Create a lettered icon for this point using our icon class
					var letteredIcon = new GIcon(baseIcon);
					if(showposition == 'true'){
						letteredIcon.image = "http://maps.google.com/mapfiles/ms/micons/grn-pushpin.png";
					}else{
						letteredIcon.image = "http://www.google.com/mapfiles/arrow.png";
					}
	
					var versionIE = navigator.appVersion;
					var ie6 = "MSIE 6.";
					if(versionIE.match(ie6)){
						var extension = "gif";
					}else{
						var extension = "png";
					}

					if(name.length <= 45){
						bubble = new EBubble(map, true, "bkmhome");
					}else if(name.length >= 45 && name.length < 90){
						bubble = new EBubble(map, true, "bkmhome");
					}else if(name.length >= 90 &&name.length < 135){
						bubble = new EBubble(map, true, "bkmhome");
					}else if(name.length >= 135 && name.length < 180){
						bubble = new EBubble(map, true, "bkmhome");
					}else{
						bubble = new EBubble(map, true, "bkmhome");
					}
	
					// createMarker functionthat uses the bubble
					function createMarker(point,html,markerarrow) {
						var marker = new GMarker(point, markerarrow);
						var baloonnr;
						var size;
						var insize;
						var inset;
						var sizeanchor;
						// === Open the EBubble instead of an Info Window ===
						GEvent.addListener(marker, "click", function() {

						var versionIE = navigator.appVersion;
						var ie6 = "MSIE 6.";
						var extension = "png";
						if(versionIE.match(ie6)){
							var extension = "gif";
						}
						
						inset = new GPoint(12,5);
						
						if(name.length <= 45){
							baloonnr = "";
							size = new GSize(266,119);
							insize = new GSize(245,110);
							if(versionIE.match(ie6)){
								insize = new GSize(246,110);
							}
							sizeanchor = new GPoint(45,107);
						}else if(name.length >= 45 && name.length < 90){
							baloonnr = "10";
							size = new GSize(266,137);
							insize = new GSize(245,128);
							if(versionIE.match(ie6)){
								insize = new GSize(246,128);
							}
							sizeanchor = new GPoint(45,128);
						}else if(name.length >= 90 &&name.length < 135){
							baloonnr = "20";
							size = new GSize(266,160);
							insize = new GSize(245,151);
							if(versionIE.match(ie6)){
								insize = new GSize(246,151);
							}
							sizeanchor = new GPoint(45,149);
						}else if(name.length >= 135 && name.length < 180){
							baloonnr = "30";
							size = new GSize(266,185);
							insize = new GSize(245,176);
							if(versionIE.match(ie6)){
								insize = new GSize(246,176);
							}
							sizeanchor = new GPoint(45,171);
						}else{
							baloonnr = "30";
							size = new GSize(266,185);
							insize = new GSize(245,176);
							if(versionIE.match(ie6)){
								insize = new GSize(246,176);
							}
							sizeanchor = new GPoint(45,171);
						}
						
							bubble.openOnMarker(marker, html, "/layout/"+$('bkmlayout').innerHTML+"/images/gmapcloud"+baloonnr+"."+extension,size, insize, inset, sizeanchor);
						});
						return marker;
					}
								
					// Set up our GMarkerOptions object
					markerOptions = { icon:letteredIcon };
					if(counter == markerscountedall){
						letteredIcon.image = "http://www.visual-case.it/vc/pics/casetta_red.png";
						markerOptions = { icon:letteredIcon };
						var marker = createMarker(point,markerhtml,markerOptions);
					}else{
						if(showposition == 'true'){
							var marker = createMarker(point,markerhtml,markerOptions);
						}else{
							var marker = createMarker(point,markerhtml);
						}
					}
					
					//marker = new GMarker(point,markerOptions);
					map.addOverlay(marker);
	
					GEvent.addListener(map, "click", function(overlay,point) {
						if (!overlay) {
							setTimeout('itMustbeHidden()',100);
						}
					});
	
					if (i > -1) {
						//marker.bindInfoWindowHtml(markerhtml);
					}  //(i > -1)
				}  //(!point)  
			} //function(point)
		);
		if(counter == markerslength){
			hideWarningDiv();
		}
	}
	//]]>