
function setUpLayers()
{
if(document.layers)
 for(document.all=document.layers,x=0;x<document.all.length;x++)
  document.all[x].style=document.all[x]
if(!document.all)
 if(document.getElementsByTagName)
  document.all=document.getElementsByTagName("div")
}

// functie die alle lagen die in de var LayerIndex staan, uit te zetten en
// de laag die als parameter is meegegeven aan te zetten
function changeLayer(layerid)	{
	// het voorbereidende werk
	var arLayer;
	var strLayer;
	strLayer = layerid;

	if (strLayer!=null)	{
		arLayer = strLayer.split(',');
	
		// zet alle lagen uit
		for(x=0;x<layerIndex.length;x++)	{
			document.all[layerIndex[x]].style.display = "none";
		}
		// zet de juiste lagen aan
		for (var i=0; i < arLayer.length; i++) {
			if(document.all[arLayer[i]])	{
				document.all[arLayer[i]].style.display = "";
			}
		}
	}
 }
 
 var helpWin;
function OpenWindow(strLink) {
	if (helpWin==null || helpWin.closed) 
		{helpWin=window.open(strLink,'','width=650,height=400,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=yes')} 
	else 
		{helpWin.location.href=strLink;}
	helpWin.focus();
}


 var helpWin;
function OpenFotoWindow(strLink) {
	if (helpWin==null || helpWin.closed) 
		{helpWin=window.open(strLink,'','width=750,height=500,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=yes')} 
	else 
		{helpWin.location.href=strLink;}
	helpWin.focus();
}
 
 
 function alternate(id,rollover){ 
	if(document.getElementsByTagName){  
		var table = document.getElementById(id);   
		var rows = table.getElementsByTagName("tr");
		
		for(i = 0; i < rows.length; i++){           
		//manipulate only rows with no <th>
			var headers = rows[i].getElementsByTagName("th");
			if(headers.length == 0)
			{
				if(i % 2 == 0)
				{ 
					rows[i].className = "even";
					if (rollover)
					{
						rows[i].style.cursor ='pointer';
						rows[i].onmouseover=function(){this.className='ruled';return false}
						rows[i].onmouseout=function(){this.className='even';return false}
					}
				}
				else
				{ 
					rows[i].className = "oneven"; 
					if (rollover)
					{
						rows[i].style.cursor ='pointer';
						rows[i].onmouseover=function(){this.className='ruled';return false}
						rows[i].onmouseout=function(){this.className='oneven';return false}
					}
				}
			}
		}
	}
}


