var supported = (document.getElementById || document.all);
var crrnt ='';
if (supported)
{
	document.write("<STYLE TYPE='text/css'>");
	document.write(".para {display: none}");
	document.write("</STYLE>");

	var max = 8;
	var shown = new Array();
	for (var i=1;i<=max;i++)
	{
		shown[i+1] = false;
	}

}

function blocking(i)
{
	if (!supported)
	{
		alert('This link does not work in your browser.');
		return;
	}
	if (i != crrnt) {
	   blocking2(crrnt);
	   crrnt = i;
	}
	else crrnt = ''
	shown[i] = (shown[i]) ? false : true;
	current = (shown[i]) ? 'block' : 'none';
	if (document.getElementById)
	{
		document.getElementById('menu-'+i).style.display = current;
	}
	else if (document.all)
	{
		document.all['menu-'+i].style.display = current;
	}
}

function blocking2(i)
{
	if (!supported)
	{
		alert('This link does not work in your browser.');
		return;
	}
	//alert (i);
	if (i!='') {
	shown[i] = (shown[i]) ? false : true;
	current = (shown[i]) ? 'block' : 'none';
	if (document.getElementById)
	{
		document.getElementById('menu-'+i).style.display = current;
	}
	else if (document.all)
	{
		document.all['menu-'+i].style.display = current;
	}
	}
}



function newScreenFotos() {
  schermFotos = window.open("","newScreenFotos","width=520,height=520,history=yes,resizable=no,status=no,scrollbars=no,menubar=no,toolbar=no,location=no,directories=no,screenX=50,screenY=50,top=50,left=50");
  schermFotos.focus();
  return false;
}

function WindowOpen(URL, name, PopUpWidth, PopUpHeight, resizePopUp) {
	Top = Math.round((screen.height / 2) - (PopUpHeight / 2));
	Left = Math.round((screen.width / 2) - (PopUpWidth / 2));
	schermPop = window.open(URL, name,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=' + resizePopUp + ',copyhistory=no,dependent=no,screenX=0,screenY=0,width=' + PopUpWidth + ',height=' + PopUpHeight + ',top=' + Top + ',left=' + Left);
	schermPop.focus();
}

function newLetter() {
  schermLetter = window.open("","newLetter","width=700,height=400,history=yes,resizable=no,status=no,scrollbars=yes,menubar=no,toolbar=no,location=no,directories=no,screenX=50,screenY=155,top=155,left=50");
  schermLetter.focus();
  return false;
}

function printScreen() {
  scherm = window.open("","printScreen","width=650,height=450,history=yes,resizable=no,status=no,scrollbars=yes,menubar=yes,toolbar=no,location=no,directories=no");
  scherm.focus();
  return false;
}


/*
defSize = 11;
curSize = '';
function changefontSize(id, plusmin) {
//  alert(document.getElementById(id).style.fontSize);
  if (curSize == '') {
    newSize = defSize + plusmin;
  }
  else {
    newSize = curSize + plusmin;
  }
  curSize = newSize;
  newSize = newSize+"px"
  document.getElementById(id).style.fontSize = newSize;
}
*/