
function showSCoptions(){var iSCoptionsDiv=document.getElementById("samenwerkendecatalogi");var iUseSC=document.getElementById("samcat");if(iUseSC.checked){iSCoptionsDiv.style.display='block';}else{iSCoptionsDiv.style.display='none';}}
function showSearchResultBlock(pBlockName){var iBlock=document.getElementById("b-zoekresultaat-blok-body-"+pBlockName);if(iBlock===null){return false;}else{var iDisplay=iBlock.style.display;if((iDisplay==='none')||(iDisplay==='')){iBlock.style.display='block';}else{iBlock.style.display='none';}
return true;}}
var currTab="";function showPaginaTab(pTabNr){if(currTab===""){currTab="1";}
var iNewTabIndexTab=document.getElementById("b-pagina-tabindex-tab"+pTabNr);var iCurrTabIndexTab=document.getElementById("b-pagina-tabindex-tab"+currTab);var iNewTab=document.getElementById("b-pagina-tab"+pTabNr);var iCurrTab=document.getElementById("b-pagina-tab"+currTab);if((iNewTab===null)||(iCurrTab===null)){return false;}else{iNewTab.style.display="block";iNewTabIndexTab.className="b-pagina-tab-actief";iCurrTab.style.display="none";iCurrTabIndexTab.className="";currTab=pTabNr;return true;}}
function resizeText(pFactor){if(document.body.style.fontSize===""){document.body.style.fontSize="100%";}
if(pFactor=="0"){document.body.style.fontSize="100%";}else{document.body.style.fontSize=parseFloat(document.body.style.fontSize)+(pFactor*10)+"%";}
var iFactor;var iTextsizeCookie=readCookie("textsize"+this.location.hostname);if((pFactor.toString()=="1")||(pFactor.toString()=="-1")){var iCurTextsize=parseInt(iTextsizeCookie,10);if(!isNaN(iCurTextsize)){pFactor=Number(pFactor);iFactor=(pFactor)+(iCurTextsize);}else{iFactor=pFactor;}}else{iFactor=pFactor;}
createCookie("textsize"+this.location.hostname,iFactor,1);}
function loadTextsize(){var textsizeCookie=null;textsizeCookie=readCookie("textsize"+this.location.hostname);if(textsizeCookie){if(document.body.style.fontSize===""){document.body.style.fontSize="100%";}
document.body.style.fontSize=parseFloat(document.body.style.fontSize)+(textsizeCookie*10)+"%";}}
function createCookie(name,value,days){var expires;if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));expires="; expires="+date.toGMTString();}else{expires="";}
document.cookie=name+"="+value+expires+"; path=/";}
function readCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)===' '){c=c.substring(1,c.length);}
if(c.indexOf(nameEQ)===0){return c.substring(nameEQ.length,c.length);}}
return null;}
function fillSearch(action){var search=document.getElementById('zoekveld');if(search){switch(action){case'click':if(search.value=='vul een zoekwoord in'){search.value='';}
break;case'blur':if(search.value.length<1){search.value='vul een zoekwoord in';}
break;default:search.value='vul een zoekwoord in';break;}}}
if(!setPause){var setPause=5;}
var fotoAantal=0;function carrousel_readImageNumber(){if(document.getElementById('carrousel')){fotoAantal=document.getElementById('carrousel').getElementsByTagName('img').length;}}
var pause=setPause*1000;var func;function carrousel_waitulator(func){var t=window.setTimeout(func,pause);}
var doorloop=2;function carrousel(){if(doorloop==fotoAantal+1){doorloop=1;}
carrousel_waitulator('carrousel_showNhide()');}
var doorloopOud=0;function carrousel_showNhide(){var j;if(fotoAantal<=1){return;}
for(j=1;j<=fotoAantal;j++){if(j!=doorloop){document.getElementById('carrousel-afbeelding-'+j).style.zIndex="1";document.getElementById('carrousel-titel-'+j).style.zIndex="1";document.getElementById('carrousel-item-'+j).style.display="none";}
if(doorloopOud!==0){if(j!=doorloopOud){document.getElementById('carrousel-item-'+j).style.display="none";}}}
iActieveImage=document.getElementById('carrousel-afbeelding-'+doorloop);iActieveImage.style.zIndex="2";iActieveImage.style.opacity="0";carrousel_fadeIn('carrousel-afbeelding-'+doorloop);iTitelDiv=document.getElementById('carrousel-titel-'+doorloop);iTitelDiv.style.zIndex="3";iTitelDiv.style.opacity="0";carrousel_fadeIn('carrousel-titel-'+doorloop);iActiefItem=document.getElementById('carrousel-item-'+doorloop);iActiefItem.style.display="block";doorloopOud=doorloop;doorloop++;carrousel();}
var opacity;function carrousel_fadeIn(objId,opacity){if(!opacity){opacity=0;}
if(document.getElementById){var obj=document.getElementById(objId);if(opacity<=60){obj.style.filter="alpha(opacity:"+opacity+")";obj.style.KHTMLOpacity=opacity/100;obj.style.MozOpacity=opacity/100;obj.style.opacity=opacity/100;opacity+=1;window.setTimeout("carrousel_fadeIn('"+objId+"',"+opacity+")",1);}
if(opacity>60&&opacity<=100){obj.style.filter="alpha(opacity:"+opacity+")";obj.style.KHTMLOpacity=opacity/100;obj.style.MozOpacity=opacity/100;obj.style.opacity=opacity/100;opacity+=2;window.setTimeout("carrousel_fadeIn('"+objId+"',"+opacity+")",2);}}}
