var DHTML = (document.getElementById || document.all); //geen Netscape 4
var screensize = 0; //geeft drie schermformaten weer: 800, 1024 en 1280

//var popupheightdifference = 64;
var popupheightdifference = 2;
var popupwidthdifference = 20;
var popupheight = screen.height-popupheightdifference;
var popupwidth = screen.width-popupwidthdifference;
var popuptop = 5;
var popupleft = 5;
var popupactive = "false";
var url ="";
var popupspecs = "width="+popupwidth + ",height=" + popupheight+"'";
var ontheweb = "false";
var teststring = "jaja";

//vullen menutext

//functions

function show(name)
{
	if (!DHTML) return;
	{
		var x = getObj(name);
		x.visibility = 'visible';
	}
}

function hide(name)
{
	if (!DHTML) return;
	{
		var x = getObj(name);
		x.visibility = 'hidden';
	}
}

function getObj(name)
{
  if (document.getElementById)
  {
    return document.getElementById(name).style;
  }
  else if (document.all)
  {
    return document.all[name].style;
  }
  else return false;
}

function ispopupactive() {
if (document.body.clientWidth==popupwidth&&document.body.clientHeight==popupheight) {
popupactive = "true";
}
else {
popupactive = "false";
}
}


function popup(DeUrl) {
url = DeUrl;
ispopupactive();
if (popupactive=="true") {
window.location=url;
}
else {
popupspecs = "menubar=yes,toolbar=yes,width="+popupwidth + ",height=" + popupheight+"'";
window.open(url,'testje','top=5, left=5,'+popupspecs);
}
}


function resizescreen() {
//scherm vergroten als het te klein is
if (document.body.clientWidth<(popupwidth-10)||document.body.clientHeight<(popupheight-10)) {
window.moveTo(0,0); 
if (document.all) { 
top.window.resizeTo(screen.availWidth,screen.availHeight); 
} 
else if (document.layers||document.getElementById) { 
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){ 
top.window.outerHeight = screen.availHeight; 
top.window.outerWidth = screen.availWidth; 
}}
}
}

function detectsize() {
if (screen.width<1024){screensize=800;}
if (screen.width>=1024 && screen.width<1280){screensize=1024;}
if (screen.width>=1280 && screen.height<1024){screensize=1024;}
if (screen.width>=1280 && screen.height>=1024){screensize=1280;}
}




