
	var map; 
	var loc1; 
	var loc2;
	var boolloc = false;

	var adr2 = "<div class='GInfoWindowHtml'><P><STRONG>Hotel Old Dutch<BR></STRONG>Haven 142<BR>1131 EW Edam-Volendam</P><TABLE><TR><TD>Telefoon:</TD><TD>0299 - 39 98 88</TD></TR><TR><TD>Fax:</TD><TD>0299 - 39 98 99</TD></TR></TABLE></div>"; 
	
	function LoadGMap() {
		if (GBrowserIsCompatible()) {
			map = new GMap2(document.getElementById("GMapDiv"));
			map.setCenter(new GLatLng(52.493252751943174, 5.075350999832153), 11);
			map.addControl(new GMapTypeControl(true), new GControlPosition(G_ANCHOR_TOP_RIGHT,new GSize(5,5)) );
			map.addControl(new GSmallMapControl(), new GControlPosition(G_ANCHOR_TOP_LEFT,new GSize(5,5)) );

			loc1 =  new GMarker(new GLatLng(52.493252751943174, 5.075350999832153));  
			map.addOverlay(loc1); 
			loc1.openInfoWindowHtml(adr2); 
			GEvent.addListener(loc1, "click", function() { 
				loc1.openInfoWindowHtml(adr2);
				boolloc = true;
			}); 
			
		}
	}
	function GRouteInput(oInput, bFocused, sInitialValue) { 
		if (bFocused) { 
			oInput.style.color = '#000000'; 
			oInput.value = (oInput.value == sInitialValue ? '' : oInput.value); 
		} else { 
			oInput.style.color = (oInput.value == '') ? '#999999' : '#000000'; 
			oInput.value = (oInput.value == '' ? sInitialValue : oInput.value); 
		} 
	}
	function GRoute(sDefaultAddress, sDefaultZipcode, sDefaultPlace) { 
		var address = '';
		var oAddress = document.getElementById('routeAddress'); 
		var oZipcode = document.getElementById('routeZipcode'); 
		var oPlace = document.getElementById('routePlace'); 
		if (oAddress.value.length > 0 && oAddress.value != sDefaultAddress) { 
			address+=oAddress.value;
		}
		if (oZipcode.value.length > 0 && oZipcode.value != sDefaultZipcode) { 
			address+= ' ' + oZipcode.value;
		}
		if (oPlace.value.length > 0 && oPlace.value != sDefaultPlace) { 
			address+= ' ' + oPlace.value;
		}
		address = trim(address); 
		if (address.length > 0) { 
			window.open('http://maps.google.nl/?daddr=Haven 142, 1131 Edam-Volendam, The Netherlands&saddr=' + trim(address),'_blank','width=' + (screen.width-100) + ',height=700,left=50,top=50,resizable=yes')
		}
	}
	function trim(value) { value = value.replace(/^\s+/,'');  value = value.replace(/\s+$/,''); return value; }
