var text = '';
var strDeText = '';
function trim(str) {
  while (str.charAt(str.length - 1)==" ")
    str = str.substring(0, str.length - 1);
  return str;
}



function changePath(strAangeroepenDoor, strTekst){
	var arrDirectory 	= strAangeroepenDoor.split("/");
	var arrPad 			= strTekst.split("/");	
	text = '';
	
	for (i=0; i < arrPad.length; i++){	
		text = text + '/<a href="frame_builder.htm?'+arrDirectory[i]+'" class="pad" target="_top">'+trim(arrPad[i])+'</a>' ;
	}
	text = strTekst;
	updateText();
}

function monitor(){	


	if (parent.length != 0){
		if (parent.strText){
			var arrDirectory 	= parent.location.pathname.split("/");
			var arrPad 			= parent.strText.split("/");
			var strDirectoryCum = '/';
			text = '';
			Discussiebord = false;
			for (i=0; i < arrDirectory.length; i++){
				if (arrDirectory[i] == 'discussiebord') Discussiebord = true;
			}			
			for (i=0; i < arrPad.length; i++){	
				if (i!=0) text = text +' &gt; '
				if (i<arrPad.length-1){
					strDirectoryCum = strDirectoryCum + arrDirectory[i+1] + '/';
					text = text + '<a href="frame_builder.htm?'+strDirectoryCum+'" class="pad" target="_top">'+trim(arrPad[i])+'</a>' ;
				}
				else {
				if ((Discussiebord == false) && (parent.main.length != 0) && (parent.main.document.getElementById('sub2en3') != null)) {
					if (parent.main.sub2en3.length != 0) {
					text = text + '<a href="frame_builder.htm?'+parent.main.left.location.pathname+'" class="pad" target="_top">'+trim(arrPad[i])+'</a>' ;
						}
					else {		
					text = text +arrPad[i] ;
				    		 }
					}
				else {		
				text = text +arrPad[i] ;
				     }
				}
			}
		}
		if ((Discussiebord == false) && (parent.main.length != 0) && (parent.main.document.getElementById('sub2en3') != null)){
				if (parent.main.sub2en3.length != 0) {
					if (parent.main.sub2en3.n3.strText) text = text + ' &gt; <a href="frame_builder.htm?'+parent.main.sub2en3.n3.location.pathname+'" class="pad" target="_top">' + parent.main.sub2en3.n3.strText+'</a>';		
					if (parent.main.sub2en3.n4.strText) text = text + ' &gt; <a href="frame_builder.htm?'+parent.main.sub2en3.n4.location.pathname+'" class="pad" target="_top">' + parent.main.sub2en3.n4.strText+'</a>';		
				}
			}
		}
	
	if (text != strDeText){
		updateText();
		strDeText = text;
	}
	setTimeout('monitor()',1000);	
}

function monitor_pend(){	


	if (parent.length != 0){
		if (parent.strText){
			var arrDirectory 	= parent.location.pathname.split("/");
			var arrPad 			= parent.strText.split("/");
			var strDirectoryCum = '/';
			text = '';
						
			for (i=0; i < arrPad.length; i++){	
				if (i!=0) text = text +' &gt; '
				if (i<arrPad.length-1){
					strDirectoryCum = strDirectoryCum + arrDirectory[i+1] + '/';
					text = text + '<a href="'+strDirectoryCum+'menu_fr.htm" class="pad" target="_top">'+trim(arrPad[i])+'</a>' ;
				}
				else {
				if (parent.main.length != 0) {
					if (parent.main.sub2en3.length != 0) {
					text = text + '<a href="'+parent.main.left.location.pathname+'menu_fr.htm" class="pad" target="_top">'+trim(arrPad[i])+'</a>' ;
						}
					else {		
					text = text +arrPad[i] ;
				    		 }
					}
				else {		
				text = text +arrPad[i] ;
				     }
				}
			}
		}
		if (parent.main.length != 0){
					
				if (parent.main.sub2en3.length != 0) {
					if (parent.main.sub2en3.n3.strText) text = text + ' &gt; <a href="frame_builder.htm?'+parent.main.sub2en3.n3.location.pathname+'" class="pad" target="_top">' + parent.main.sub2en3.n3.strText+'</a>';		
					if (parent.main.sub2en3.n4.strText) text = text + ' &gt; <a href="frame_builder.htm?'+parent.main.sub2en3.n4.location.pathname+'" class="pad" target="_top">' + parent.main.sub2en3.n4.strText+'</a>';		
				}
			}
		}
	
	if (text != strDeText){
		updateText();
		strDeText = text;
	}
	setTimeout('monitor_pend()',1000);	
}


function updateText(){
	var timerId; 
	var strTempText;
	
  if (document.all)
        document.all('KopDiv').innerHTML = '<img border="0" src="../images/transparent.gif" width="1" height="18" align="absmiddle" alt=" "><a href="/index.htm" class="pad" target="_top">Home</a> &gt; '+text;
   else if (document.layers) {
	    document.layers['KopLayer'].document.open();
	    document.layers['KopLayer'].document.write(text);
	    document.layers['KopLayer'].document.close();
	}	
	else if (navigator.appName + navigator.appVersion.substring (0, 1) == "Netscape5")
		document.getElementById('KopDiv').innerHTML = '<img border="0" src="../images/transparent.gif" width="14" height="18" align="absmiddle" alt=" "><a href="/index.htm" class="pad" target="_top">Home</a> &gt; '+text;;
		
}

function stopError() {
	self.location.reload();
	return true;
}
//window.onerror = stopError;

function testseldg(selsite)
{
if (selsite.selectedIndex == 1) {
    parent.location = "/vve/menu_fr.htm"}    ;
 if (selsite.selectedIndex == 2) {
    parent.location = "/po/menu_fr.htm"}    ;
 if (selsite.selectedIndex == 3) {
    parent.location = "/vo/menu_fr.htm"} ;
if (selsite.selectedIndex == 4) {
    parent.location = "/bve/menu_fr.htm"} ;
if (selsite.selectedIndex == 5) {
    parent.location = "/ho/menu_fr.htm"} ;
if (selsite.selectedIndex == 6) {
    parent.location = "/beno/menu_fr.htm"}   ;
if (selsite.selectedIndex == 7) {
    parent.location = "/partic/menu_fr.htm"}   ;
}

