// Functie voor het aanroepen van een volgende pagina via een formulier.
    function GoToPage(language,id_topmenu,id_mainmenu,llink,xxpar1,xxpar2,xxpar3,xxpar4) {
      document.GoToForm.le.value=language;
      document.GoToForm.ptm.value=id_topmenu;
      document.GoToForm.pmm.value=id_mainmenu;
      document.GoToForm.link.value=llink;
      document.GoToForm.xpar1.value=xxpar1;
      document.GoToForm.xpar2.value=xxpar2;
      document.GoToForm.xpar3.value=xxpar3;
      document.GoToForm.xpar4.value=xxpar4;
      document.GoToForm.screenwxh.value=screen.width+"x"+screen.height;
      document.GoToForm.submit();
    }

// Functie voor het aanroepen van een flash-animatie zonder initiële click.
    function showflash(fl_file,fl_bgcolor,fl_width,fl_height) {
      // document.write("<div style='position: relative;'>\n");
      document.write("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ");
        document.write("codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' ");
        document.write("WIDTH='"+fl_width+"' HEIGHT='"+fl_height+"' VSPACE='0' HSPACE='0' id='"+fl_file+"'>\n");
      document.write("<PARAM NAME='movie' VALUE='"+fl_file+".swf'>\n");
      document.write("<PARAM NAME='quality' VALUE=high>\n");
      document.write("<PARAM NAME='bgcolor' VALUE="+fl_bgcolor+">\n");
      document.write("<EMBED src='"+fl_file+".swf' quality=high bgcolor="+fl_bgcolor+" WIDTH='"+fl_width+"' HEIGHT='"+fl_height+"'  NAME='"+fl_file+"' ");
      document.write("TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED>\n");
      document.write("</OBJECT>\n");
    }

function resizeContainers(containerObject,innercontainerObject,initWidth,initHeight,bottombar) {
	var myWidth = 0, myHeight = 0;
	if (typeof(window.innerWidth) == 'number') { //Non-IE
		myWidth = window.innerWidth; myHeight = window.innerHeight;
	} else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) { //IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { //IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	} 
	var shiftl = 0;
	if ((myWidth>initWidth) && (myWidth<=(initWidth+20))) { shiftl = myWidth-initWidth; }
	if (myWidth>(initWidth+0)) { shiftl = 0+((myWidth-initWidth-0)/2); }
	document.getElementById(containerObject).style.left=shiftl;
	if (myHeight<550) { myHeight=550; }
	if (myHeight>850) { myHeight=850; }
	if (initHeight==0) { document.getElementById(innercontainerObject).style.height=myHeight-bottombar; } // Laat ruimte voor onderbalk
}

function resizeContentcontainers(contentcontainerObject,textcontainerObject,heightComp,initCHeight) {
  var myWidth=0, myHeight=0;
  if (typeof(window.innerWidth) == 'number') { //Non-IE
    myWidth=window.innerWidth; myHeight=window.innerHeight;
  } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {  //IE 6+ in 'standards compliant mode'
    myWidth=document.documentElement.clientWidth;
    myHeight=document.documentElement.clientHeight;
  } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { //IE 4 compatible
    myWidth=document.body.clientWidth;
    myHeight=document.body.clientHeight;
  }
  if (myHeight<550) { myHeight=550; }
  if (myHeight>850) { myHeight=850; }
  if (initCHeight==0) {
    document.getElementById(contentcontainerObject).style.height=myHeight-heightComp;
    document.getElementById(textcontainerObject).style.height=myHeight-heightComp;
  }
}
function resizeContainer(containerObject,heightComp,actOnZero) {
  var myWidth=0, myHeight=0;
  if (typeof(window.innerWidth) == 'number') { //Non-IE
    myWidth=window.innerWidth; myHeight=window.innerHeight;
  } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {  //IE 6+ in 'standards compliant mode'
    myWidth=document.documentElement.clientWidth;
    myHeight=document.documentElement.clientHeight;
  } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) { //IE 4 compatible
    myWidth=document.body.clientWidth;
    myHeight=document.body.clientHeight;
  }
  if (myHeight<550) { myHeight=550; }
  if (myHeight>850) { myHeight=850; }
  if (actOnZero==0) { document.getElementById(containerObject).style.height=myHeight-heightComp; }
}

