function muisklik(onderdeel,pad)
{
	if (onderdeel.parentNode.nextSibling.style.display=="")
	{
		onderdeel.parentNode.nextSibling.style.display="none";
		onderdeel.background = pad + "images/pijlR.jpg";
	}
	else
	{
		var i;
		for (i=0; i<document.getElementsByTagName("tr").length; i++)
		{
			if (document.getElementById("submenu" + i))
			{
				document.getElementById("submenu" + i).style.display="none";
				document.getElementById("submenu" + i).previousSibling.lastChild.background = pad + "images/pijlR.jpg";
			}
		}
		onderdeel.parentNode.nextSibling.style.display="";
		onderdeel.background = pad + "images/pijlO.jpg";
	}
}		

function Fotoboek(boek,nummer)
{
	if (typeof newWindow != "undefined")
	{
		if (!newWindow.closed)
		{
			newWindow.close();
		}
	}
	var windowFeatures = "width=650,height=550,top=25,left=25";
	newWindow = window.open("Fotos/Fotoboek.asp?boek=" + boek + "&nummer=" + nummer,"Fotoboek",windowFeatures);
	newWindow.document.bgColor = "#FFFFFF";
	newWindow.focus();
}

function Fotoboek1(boek,nummer)
{
	if (typeof newWindow != "undefined")
	{
		if (!newWindow.closed)
		{
			newWindow.close();
		}
	}
	var windowFeatures = "width=650,height=550,top=25,left=25";
	newWindow = window.open("../../Actueel/Fotos/Fotoboek.asp?boek=" + boek + "&nummer=" + nummer,"Fotoboek",windowFeatures);
	newWindow.document.bgColor = "#FFFFFF";
	newWindow.focus();
}

function showGroteFotoENKEL(foto)
{
	if (typeof newWindow != "undefined")
	{
		if (!newWindow.closed)
		{
			newWindow.close();
		}
	}
	var windowFeatures = "width=650,height=550,top=25,left=25";
	newWindow = window.open("","GroteFoto",windowFeatures);
	newWindow.document.bgColor = "#FFFFFF";
	newWindow.document.write("<html><body><table border='0' width='100%' height='100%'><tr><td valign='center' align='center'><img border='2' src='" + foto + "'></td></tr></table></body></html>")
	newWindow.focus();
}

function showPlattegrond(plattegrond)
{
	if (typeof newWindow != "undefined")
	{
		if (!newWindow.closed)
		{
			newWindow.close();
		}
	}
	var windowFeatures = "width=775,height=585,top=5,left=5";
	newWindow = window.open("","Plattegrond",windowFeatures);
	newWindow.document.bgColor = "#FFFFFF";
	newWindow.document.write("<html><body><table border='0' width='100%' height='100%'><tr><td valign='top' align='left'><img border='1' src='" + plattegrond + "'></td></tr><tr><td style='font-family: Arial; font-size: 10pt;'>1 = Locatie Berg en Dalseweg&nbsp;&nbsp;&nbsp;&nbsp;2 = Locatie De Goffert&nbsp;&nbsp;&nbsp;&nbsp;3 = Locatie Akkerlaan</td></tr></table></body></html>")
	newWindow.focus();
}

function window_onunload()
{
	if (typeof newWindow != "undefined")
	{
		if (newWindow.closed == false)
		{
			newWindow.close();
		}
	}
}

function leesDitEerst()
{
	if (typeof newWindow != "undefined")
	{
		if (!newWindow.closed)
		{
			newWindow.close();
		}
	}
	var windowFeatures = "width=353,height=180,top=80,left=500";
	newWindow = window.open("","leesDitEerst",windowFeatures);
	newWindow.document.bgColor = "#FFFFFF";
	newWindow.document.write("<html><title>Lees dit eerst</title><body style='font-family: Verdana;font-size: 11px;background-color: #E8E6F1;'><p><b>Voorbehoud agenda</b></p><p>De grote lijnen van het schooljaar staan in deze agenda.<br />Bepaalde ingeplande activiteiten kunnen komen te vervallen of kunnen naar een nader moment verschoven worden.<br />In principe worden de meeste activiteiten schriftelijk bevestigd door middel van een brief die de leerlingen mee naar huis krijgen.</p><p align='right'><a style='text-decoration: underline;	color:#000000;' href='#' onclick='window.close()'>sluiten</a></p></body></html>")
	newWindow.focus();
}

function zichtbaarheidOudSchooljaar(jaar)
{
	if (jaar.style.display=="")
	{
		jaar.style.display="none";
		
	}
	else
	{
		jaar.style.display="";
	}
}	

