var fullscreenon = 0;

function hideLayer(whichLayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(whichLayer).style.visibility = "hidden";
}
else if (document.all) {
// this is the way old msie versions work
document.all[whichlayer].style.visibility = "hidden";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[whichLayer].visibility = "hidden";
}

}

function showLayer(whichLayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(whichLayer).style.visibility = "visible";
}
else if (document.all) {
// this is the way old msie versions work
document.all[whichlayer].style.visibility = "visible";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[whichLayer].visibility = "visible";
}

}

function ShowLayers()
{
	showLayer("content");
	showLayer("menu");
}





function toggleFullscreen()
{
	if (fullscreenon == 1) 
	{
		document.getElementById("fullscreen-container").style.visibility = "hidden";
		document.getElementById("iframe").src = "";
		
		//hideLayer("fullscreen-container");	
		fullscreenon = 0;
	}
	else
	{
		document.getElementById("fullscreen-container").style.visibility = "visible";
		//showLayer("fullscreen-container");	
		fullscreenon = 1;
	}
}

function setFrameinhoud(url,tag, typ)
{
if (document.getElementById) {
// this is the way the standards work
document.getElementById('iframe').src = "picture.php?url="+url+"&tag="+tag+"&typ="+typ;
}
else if (document.all) {
// this is the way old msie versions work
document.all['iframe'].src = "picture.php?url="+url+"&tag="+tag+"&typ="+typ;
}
else if (document.layers) {
// this is the way nn4 works
document.layers['iframe'].src = "picture.php?url="+url+"&tag="+tag+"&typ="+typ;
}

}

