	var appN = navigator.appName; var appV = navigator.appVersion.substring(0,1);
	var ie = (appN=="Microsoft Internet Explorer" && appV >= 4) ? true : false;
	var ns = (appN=="Netscape" && (appV >= 4 && appV < 5)) ? true : false;
	var nsix = (appN=="Netscape" && appV >= 5) ? true : false;
	var curMnuId = "";
	
	function divOn(i, num) {
		try { divOffAfterPause(curMnuId) }
		catch (ex) { }
		if(i.toString() == mnuExtr.toString()) {
			try {
				document.getElementById('selProvincies').style.visibility = 'hidden';
				document.getElementById('selPlaatsen').style.visibility = 'hidden';
			}
			catch (ex) { }
		}

	   try { clearTimeout(bdyTimer); }
	   catch (ex) { }
		curMnuId = i;
	 	if (document.getElementById('mnu' + i) != null)
		{
			document.getElementById('mnu' + i).style.left = document.getElementById(Ide) + 205 + (num-1)*100;
	   		document.getElementById('mnu' + i).style.top = 75;
	   		document.getElementById('mnu' + i).style.display = "block";
		}
	}
	
	function divOffAfterPause(i) {
		try {
			//alert('test')
			document.getElementById('selProvincies').style.visibility = 'visible';
			document.getElementById('selPlaatsen').style.visibility = 'visible';
		}
		catch (ex) { }
	 	if (document.getElementById('mnu' + i) != null)
		{
	   		document.getElementById('mnu' + i).style.display = "none";
		}
	}
	
	function divOff(i) {
		bdyTimer = setTimeout("divOffAfterPause('"+i+"')", 500);
	}
	
	function getOffsetLeft(el)
	{ 
		var eltemp = el;
		var ol = el.offsetLeft; 
		while((eltemp = eltemp.offsetParent) != null) 
		ol += eltemp.offsetLeft;
		return ol;
	}

	function fillCitys(oFrm)
	{
		oFrm.selPlaatsen.options.length = 0;
		var ProvID = oFrm.selProvincies[oFrm.selProvincies.selectedIndex].value
		var counter = 1;
		if(ProvID != "0") {
			oFrm.selPlaatsen.options[0] = new Option('- Selecteer plaatsnaam -','0');
			for(i = 0; i < (aCities.length - 1); i++) {
				if(ProvID == aProvinces[i]) {
					oFrm.selPlaatsen.options[counter] = new Option(aCities[i],aCities[i]);
					if(selCity == aCities[i]) {
						oFrm.selPlaatsen.selectedIndex = counter;
					}
					counter++;
				}
			}
			oFrm.selPlaatsen.disabled = false;
 		}
	}

	function encodeToHtml(Input) {
		encodedHtml = escape(Input);
		encodedHtml = encodedHtml.replace(/\//g,"%2F");
		encodedHtml = encodedHtml.replace(/\?/g,"%3F");
		encodedHtml = encodedHtml.replace(/=/g,"%3D");
		encodedHtml = encodedHtml.replace(/&/g,"%26");
		encodedHtml = encodedHtml.replace(/@/g,"%40");
		return [encodedHtml];
	}

	function changeCitys(oFrm)
	{
		var ProvID = oFrm.selProvincies[oFrm.selProvincies.selectedIndex].value
		if(oFrm.selPlaatsen[oFrm.selPlaatsen.selectedIndex].value != "0") {
 			document.location.href="xt_changeMenu.asp?prov=" + ProvID + "&city=" + encodeToHtml(oFrm.selPlaatsen.value);
		}
	}
	
	function popUpFoto( URL )
	{
		var	W = 500;
		var H = 400;
		var L = (screen.width - W) / 2;
		var T = (screen.height - H) / 2;
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+W+',height='+H+',left ='+L+',top ='+T+'');");
	};
	