// JavaScript Document var trigger = ''; function initSIFR() { if(typeof sIFR == "function"){ // header orange sIFR.replaceElement(named( { sSelector:"h1", sFlashSrc:"flash/h1.swf", sColor:"#f56820", sWmode:"transparent", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); sIFR.replaceElement(named( { sSelector:"h2", sFlashSrc:"flash/h1.swf", sColor:"#ffffff", sWmode:"transparent", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); sIFR.replaceElement(named( { sSelector:"h3", sFlashSrc:"flash/h1.swf", sColor:"#000000", sWmode:"transparent", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); sIFR.replaceElement(named( { sSelector:"h4", sFlashSrc:"flash/h1.swf", sColor:"#000000", sWmode:"transparent", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); sIFR.replaceElement(named( { sSelector:"h5", sFlashSrc:"flash/h1.swf", sColor:"#ffffff", sWmode:"transparent", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left&offsetTop=0" } )); } } function MouseOver(id,on){ var obj = document.getElementById(id) if(!on){ obj.src = obj.src.replace('_o.gif','.gif') obj.src = obj.src.replace('_oz.gif','.gif') }else{ if(obj.src.indexOf('_o.gif')==-1){ obj.src = obj.src.replace('.gif','_o.gif') } } } function openSubMenu(id,notid){ //reset trigger om menu te sluiten clearTrigger() for(var i=1;i<10;i++){ if(i!=notid){ if(document.getElementById('menu'+i)) CloseSubMenu('menu'+i) if(document.getElementById('hoofditem'+i)) MouseOver('hoofditem'+i,0) } } if(document.getElementById(id)){ var obj = document.getElementById(id) obj.style.display = 'block' var objLine = document.getElementById('line'+id) objLine.style.backgroundColor = '#f56820' } } function CloseSubMenu(id){ var obj = document.getElementById(id) obj.style.display = 'none' var objLine = document.getElementById('line'+id) objLine.style.backgroundColor = '' } function changeImage(id,img){ document.getElementById(id).src=""+img+""; } function triggerToClose(notid) { if(!trigger) trigger = setTimeout("openSubMenu('',"+notid+")",100) } function clearTrigger() { if(trigger) clearTimeout(trigger); trigger = null } function popupboxin(id){ var obj = document.getElementById(id) obj.style.display = 'block' } function popupboxout(id){ var obj = document.getElementById(id) obj.style.display = 'none' } function uitklappen(zap) { if (document.getElementById) { var hideitem = document.getElementById(zap).style; if (hideitem.display == "block") { hideitem.display = "none"; } else { hideitem.display= "block"; } return false; } else { return true; } } //alleen gebruikt voor uitzetten met oranje achtergrond function MouseOverOz(id){ var obj = document.getElementById(id) if(obj.src.indexOf('_o.gif')>-1){ obj.src = obj.src.replace('_o.gif','_oz.gif') } } function MouseOverOz2(id,img){ document.getElementById(id).src="img/nav/"+img+"_o.gif"; } function MouseOutOz2(id,img){ document.getElementById(id).src="img/nav/"+img+"_oz.gif"; } function MouseOverTop2(id,img){ document.getElementById(id).src="img/nav/"+img+"_o.gif"; }