// JavaScript Document
/*--------------------------------------------------|
| Navigatie                                       / |
|---------------------------------------------------|
| Copyright (c) 2008 Herman Wilbrink                |
|                                                   |
| Updated: 13.09.2008                               |
|--------------------------------------------------*/
//algemeen
function verberg(id)
{
	if (document.getElementById(id)!=null) document.getElementById(id).style.display='none';	
}

function laatzien(id)
{
	if (document.getElementById(id)!=null) document.getElementById(id).style.display='inline';	
}

function wissel(id)
{
	if (document.getElementById(id)!=null) 
	{
		if (document.getElementById(id).style.display=="none") 
		{
			document.getElementById(id).style.display='inline';	
			//document.getElementById(id).style.visibility='visible';	
		}
		else 
		{
			document.getElementById(id).style.display='none';	
			//document.getElementById(id).style.visibility='hidden';	
		}
	}
}

function gaBestand(bestand)
{
	window.location.href = bestand;
}

function pakDatum()
{
	datum = new Date();
	return datum.getFullYear() + '-' + (datum.getMonth()+1) + '-' + datum.getDate();
}

function zoomImage(url, w, h)
{
	var newWin = window.open(url, 'newWin', 'directory=no,toolbars=no,scrolling=auto,marginwidth=0,marginheight=0,scrollbars,top='+(400-h/2)+',left='+(512-w/2)+',width=' + w + ',height=' + h);
	newWin.focus();
}

function tileImage(url)
{
	leftpos = (screen.width) ? (screen.width/2)-(500/2) : 0;
	toppos = (screen.height) ? (screen.height/2)-(400/2) : 0;
	var tileWin = window.open(url, 'tileWin', 'directory=no,toolbars=no,scrolling=no,marginwidth=0,marginheight=0,scrollbars=no,width=500,height=400,top=' + toppos + ',left=' + leftpos);
	tileWin.focus();
}

function fotoover(id)
{
	wissel(id);	
		
}

