//default sjabloon voor javascript. Onder een andere naam opslaan



function start()
{

	for (var i=0; i<document.links.length; i++)
	{
		document.links[i].onmouseover = function(){
			this.parentNode.style.backgroundColor = "rgb(50,50,210)";
		};
		document.links[i].onmouseout = function(){
			this.parentNode.style.backgroundColor = "rgb(75,120,210)";
		};
	}

	if (document.all)
	{
		document.all["foto"].style.cursor = "hand";
		document.all["personalia"].style.visibility = "hidden";
		document.all["foto"].onmouseover = function(){
			document.all["foto"].src = "./afbeeldingen/jan2.jpg";
		};
		document.all["foto"].onmouseout = function(){
			document.all["foto"].src = "./afbeeldingen/jan1.jpg";
		};
		document.all["personalia"].onclick = function(){
			document.all["personalia"].style.visibility = "hidden";
		};
		document.all["foto"].onclick = function(){
			if (document.all["personalia"].style.visibility == "hidden")
			{
				document.all["personalia"].style.visibility = "visible";
			}
			else
			{
				document.all["personalia"].style.visibility = "hidden";
			}
		};
	}
	else
	{
		document.getElementById("foto").style.cursor = "pointer";
		document.getElementById("personalia").style.visibility = "hidden";
		document.getElementById("foto").onmouseover = function(){
			document.getElementById("foto").src = "./afbeeldingen/jan2.jpg";
		};
		document.getElementById("foto").onmouseout = function(){
			document.getElementById("foto").src = "./afbeeldingen/jan1.jpg";
		};
		document.getElementById("personalia").onclick = function(){
			document.getElementById("personalia").style.visibility = "hidden";
		};
		document.getElementById("foto").onclick = function(){
			if (document.getElementById("personalia").style.visibility == "hidden")
			{
				document.getElementById("personalia").style.visibility = "visible";
			}
			else
			{
				document.getElementById("personalia").style.visibility = "hidden";
			}
		};
	}
}


function test()
{
	alert("apekop");
}

