// 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='wmode' VALUE='transparent'>\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");
    }

// Functie voor het doorklikken naar een website afhankelijk van de verschuiving van het plaatje.

var cursorleft;

function Init() {
  if (window.Event) { document.captureEvents(Event.MOUSEMOVE); }
  document.onmousemove = getX;
}

function getX(e) {
  cursorleft = (window.Event) ? e.pageX : event.clientX;
} 

function findPosX(obj) {
  var curleft = 0;
  if(obj.offsetParent) {
    while(1) {
      curleft += obj.offsetLeft;
      if(!obj.offsetParent) break;
      obj = obj.offsetParent;
    }
  } else {
    if(obj.x) { curleft += obj.x; }
  }
  return curleft;
} 

function Redirect(psn,iiww,left1,right1,link1,left2,right2,link2,left3,right3,link3,left4,right4,link4,left5,right5,link5) {
  eval("posn=pos"+psn+";");
  eval("objn=document.getElementById('container"+psn+"');");
  offset1=findPosX(objn);
  pointern=(-posn+cursorleft-offset1)%iiww;
  if (pointern>=left1 && pointern<right1) { eval("window.open('"+link1+"');"); }
  if (pointern>=left2 && pointern<right2) { eval("window.open('"+link2+"');"); }
  if (pointern>=left3 && pointern<right3) { eval("window.open('"+link3+"');"); }
}

