var aantal = '7';
var zichtbaar = '1';
var vertraginga;
var vertragingb;
function showSubnav(tmpa){
	tmp2a = tmpa;
	clearTimeout(vertraginga);
	vertraginga = setTimeout('ChangeNow(tmp2a,\'1\')',100);
}
function hideSubnav(tmpb){
	zichtbaar = '0';
	tmpb2 = tmpb;
	clearTimeout(vertraginga);
	clearTimeout(vertragingb);
	vertragingb = setTimeout('ChangeNow(tmpb2,\'0\')',1000);
}
function ChangeNow(welke,zien){
	if(document.getElementById){
		if(zien == '0' && zichtbaar != '1'){
			for(var i=1;i<=aantal;i++){
				document.getElementById('sub'+i).style.visibility = 'hidden';
				document.getElementById('sub'+i).style.display = 'none';
			}
		}else{
			for(var i=1;i<=aantal;i++){
				document.getElementById('sub'+i).style.visibility = 'hidden';
				document.getElementById('sub'+i).style.display = 'none';
			}
			document.getElementById('sub'+welke).style.visibility = 'visible';
			document.getElementById('sub'+welke).style.display = 'block';
			zichtbaar = '1';
			clearTimeout(vertragingb);
		}
	}
}
/*tbv login persoonlijke pagina*/
function toPassword(oInput) {
	var newEl = document.createElement('input');
	newEl.setAttribute('type', 'password');
	newEl.setAttribute('name', 'wachtwoord');
	oInput.parentNode.replaceChild(newEl,oInput);
	toPassword.el = newEl;
	setTimeout('toPassword.el.focus()',100);
	return true;
}
