function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}

MM_reloadPage(true);

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
function dynamiccontentNS6(elementid,content){
	if (document.getElementById && !document.all){
		rng = document.createRange();
		el = document.getElementById(elementid);
		rng.setStartBefore(el);
		htmlFrag = rng.createContextualFragment(content);
	while (el.hasChildNodes())
	el.removeChild(el.lastChild);
	el.appendChild(htmlFrag);
	}
}
var offsetX = 10;
var offsetY = 10;
var toolTipSTYLE="";
function initToolTips()
{
  if(NS4||NS6||IE4)
  {
    if(NS4) toolTipSTYLE = document.beschrijving;
    else if(NS6)
	{
		toolTipSTYLE = document.getElementById("beschrijving").style;
	}
    else if(IE4) toolTipSTYLE = document.all.beschrijving.style;
		if(NS4) document.captureEvents(Event.MOUSEMOVE);
    else
    {
      toolTipSTYLE.visibility = "visible";
      toolTipSTYLE.display = "none";
    }
    document.onmousemove = moveToMouseLoc; // niet gebruiken vaste positie
  }
}
function toolTip(msg, fg, bg)
{
  if(toolTip.arguments.length < 1) // hide
  {
    if(NS4) toolTipSTYLE.visibility = "hidden";
    else toolTipSTYLE.display = "none";
  }
  else // show
  {
    if(!fg) fg = "#777777";
    if(!bg) bg = "#FFFFFF";
    var content =
    '<table class="descript" border="0" cellspacing="0" cellpadding="1" bgcolor="' + fg + '"><td>' +
    '<table border="0" cellspacing="0" cellpadding="1" bgcolor="' + bg + 
    '"><td align="center" ><font color="' + fg + '" >&nbsp\;' + msg +
    '&nbsp\;</font></td></table></td></table>';
    if(NS4)
    {
      toolTipSTYLE.document.write(content);
      toolTipSTYLE.document.close();
      toolTipSTYLE.visibility = "visible";
    }
    if(NS6)
    {
      document.getElementById("beschrijving").innerHTML = content;
      toolTipSTYLE.display='block'
    }
    if(IE4)
    {
    	if (document.all("beschrijving") != null)
				document.all("beschrijving").innerHTML=content;
      toolTipSTYLE.display='block'
    }
  }
}
function moveToMouseLoc(elem)
{
 if(NS4||NS6)
  {
    x = elem.pageX;
    y = elem.pageY;
  }
  else
  {
			x = event.clientX + 
					(document.documentElement.scrollLeft || document.body.scrollLeft); 
			//x= event.clientX + document.body.scrollLeft;
	   	y = event.clientY + 
					(document.documentElement.scrollTop || document.body.scrollTop); 
			y=event.clientY + document.body.scrollTop;
  }
  toolTipSTYLE.left = x + offsetX;
  toolTipSTYLE.top = y + offsetY;
  return true;
}

