var main = ""; base=''; if(document.getElementById){n=0;ie=1;n6=1; }else if(document.all){n=0;ie=1;n6=0; }else if(document.layers){n=1;ie=0;n6=0; } if(n){ timeouttime=3000; }else{ timeouttime=250; } if (document.layers) { currWidth = innerWidth currHeight = innerHeight window.captureEvents(Event.RESIZE) window.onresize = handleResize } function handleResize() { if ((innerWidth != currWidth) || (innerHeight != currHeight)) { location.reload() currWidth = innerWidth currHeight = innerHeight return false } } function getObj(name){ if(body.document.getElementById){ return body.document.getElementById(name).style; }else if(body.document.all){ return body.document.all[name].style; }else if(body.document.layers){ return body.document.layers[name]; } } menuitemArray=new Array(32);menuitemIndex=0; submenuitemArray=new Array(64);submenuitemIndex=0;submenuitemOrder=1; subsubmenuitemArray=new Array(128);subsubmenuitemIndex=0;subsubmenuitemOrder=1; activeSubmenu=0; activeSubsubmenu=0; activeMenuitem=0; activeSubmenuitem=0; activeSubsubmenuitem=0; var timer; function menu(normalcolor, activecolor, image, link, t,titel) { this.normalcolor = normalcolor; this.activecolor = activecolor; this.image = image; this.link = (link.substr(0,7)=='http://')?link:base+link; this.top = 52+(menuitemIndex-1)*menuitemHeight; this.target=t; this.titel=titel; } //function makeMenu(c1,c2,i,l){ // makeMenuT(c1,c2,i,l,'body'); //} function makeMenu(c1,c2,i,l,t,titel){ if(t==null)t='body'; menuitemArray[++menuitemIndex]=new menu(c1,c2,i,l,t,titel); submenuitemOrder=1; } function submenu(caption, link,t){ this.parent=menuitemIndex; this.caption = caption; this.link = (link.substr(0,7)=='http://')?link:base+link; this.order = submenuitemOrder++; this.top = 0+(this.parent-2)*menuitemHeight+(this.order)*menuitemHeight; this.target=t; } // -2 weggehaald //function makeSubmenu(c,l){ // makeSubmenuT(c,l,'body'); //} function makeSubmenu(c,l,t){ if(t==null)t='body'; submenuitemArray[++submenuitemIndex]=new submenu(c,l,t); subsubmenuitemOrder=1; } function subsubmenu(caption, link, t) { this.parent=submenuitemIndex; this.caption = caption; this.link = (link.substr(0,7)=='http://')?link:base+link; this.order=subsubmenuitemOrder++; this.top = submenuitemArray[this.parent].top+(this.order-1)*menuitemHeight; this.target=t; } //function makeSubsubmenu(c,l){ // makeSubsubmenuT(c,l,'body'); //} function makeSubsubmenu(c,l,t){ if(t==null)t='body'; subsubmenuitemArray[++subsubmenuitemIndex]=new subsubmenu(c,l,t); } function loadsubmenu(){ // body.document.write(''); // body.document.write('
'); } function loadmenu(){ for(i=1;i<=menuitemIndex;i++){menuutje.document.write('');} } function showSubmenu(n){ if(ie){ for(i=1;i<=submenuitemIndex;i++){ if(submenuitemArray[i].parent==n)getObj('submenuitem'+i).pixelTop=body.document.body.scrollTop+submenuitemArray[i].top; if(submenuitemArray[i].parent==n)getObj('submenuitem'+i).visibility='visible'; } }else{ getObj('submenu'+n).top=body.window.pageYOffset+menuitemArray[n].top; getObj('submenu'+n).visibility='show'; } activeSubmenu=n; } function hideSubmenu(n){ for(i=1;i<=submenuitemIndex;i++){ if(submenuitemArray[i].parent==n){ if(ie){getObj('submenuitem'+i).visibility='hidden';} hideSubsubmenu(i); } } if(!ie){getObj('submenu'+n).visibility='hide';} activeSubmenu=0; } function showSubsubmenu(n){ if(ie){ for(i=1;i<=subsubmenuitemIndex;i++){ if(subsubmenuitemArray[i].parent==n)getObj('subsubmenuitem'+i).pixelTop=body.document.body.scrollTop+subsubmenuitemArray[i].top; if(subsubmenuitemArray[i].parent==n)getObj('subsubmenuitem'+i).visibility='visible'; } }else{ getObj('subsubmenu'+n).top=body.window.pageYOffset+submenuitemArray[n].top; getObj('subsubmenu'+n).visibility='show'; } activeSubsubmenu=n; } function hideSubsubmenu(n){ for(j=1;j<=subsubmenuitemIndex;j++){ if(subsubmenuitemArray[j].parent==n){ if(ie)getObj('subsubmenuitem'+j).visibility='hidden'; } } if(!ie)getObj('subsubmenu'+n).visibility='hide'; activeSubsubmenu=0; } function menuitemmouseover(n){ if(activeMenuitem!=n){ if(activeSubmenu!=0)hideSubmenu(activeSubmenu); activeMenuitem=n; activeSubmenuitem=0; activeSubsubmenuitem=0; clearTimeout(timer); showSubmenu(n); } } function menuitemmouseout(n){ if(activeMenuitem==n){ timer=setTimeout('hideSubmenu('+n+');',timeouttime); activeMenuitem=0; } } function submenuitemmouseover(n){ if(activeSubmenuitem!=n){ if(activeSubsubmenu!=0)hideSubsubmenu(activeSubsubmenu); activeMenuitem=0; activeSubmenuitem=n; activeSubsubmenuitem=0; if(ie){ getObj('submenuitem'+n).backgroundColor=menuitemArray[submenuitemArray[n].parent].activecolor; }else{ getObj('submenu'+submenuitemArray[n].parent).document.ids.submenuitem1.bgColor="#000000"; // getObj('submenu'+submenuArray[n].parent).document.submenuitem1.bgColor=menuArray[submenuArray[n].parent].activecolor; } clearTimeout(timer); showSubsubmenu(n); } } function submenuitemmouseout(n){ if(activeSubmenuitem==n){ timer=setTimeout('hideSubmenu('+activeSubmenu+');',timeouttime); activeSubmenuitem=0; } if(ie){getObj('submenuitem'+n).backgroundColor=menuitemArray[submenuitemArray[n].parent].normalcolor;} } function subsubmenuitemmouseover(n){ if(activeSubsubmenuitem!=n){ activeMenuitem=0; activeSubmenuitem=0; activeSubsubmenuitem=n; if(ie){getObj('subsubmenuitem'+n).backgroundColor=menuitemArray[submenuitemArray[subsubmenuitemArray[n].parent].parent].activecolor;} clearTimeout(timer); } } function subsubmenuitemmouseout(n){ if(activeSubsubmenuitem==n){ timer=setTimeout('hideSubmenu('+activeSubmenu+');',timeouttime); activeSubsubmenuitem=0; } if(ie){getObj('subsubmenuitem'+n).backgroundColor=menuitemArray[submenuitemArray[subsubmenuitemArray[n].parent].parent].normalcolor;} } menuitemHeight=21; menuitemWidth=150; menuitemFont='font-family:Verdana;font-size:8pt;padding-top:3pt;padding-left:3pt;';