<!--

function gE(e,f){if(l){f=(f)?f:self;var V=f.document.layers;if(V[e])return V[e];for(var W=0;W<V.length;)t=gE(e,V[W++]);return t;}if(d.all)return d.all[e];return d.getElementById(e);}
function sE(e){l?e.visibility='show':e.style.visibility='visible';}
function hE(e){l?e.visibility='hide':e.style.visibility='hidden';}
function displayElement(e){l?e.display='block':e.style.display='block';}
function hideElement(e){l?e.display='none':e.style.display='none';}
function sZ(e,z){l?e.zIndex=z:e.style.zIndex=z;}
function sX(e,x){l?e.left=x:op?e.style.pixelLeft=x:e.style.left=x+px;}
function sY(e,y){l?e.top=y:op?e.style.pixelTop=y:e.style.top=y+px;}
function sW(e,w){l?e.clip.width=w:op?e.style.pixelWidth=w:e.style.width=w+px;}
function sH(e,h){l?e.clip.height=h:op?e.style.pixelHeight=h:e.style.height=h+px;}
function sC(e,t,r,b,x){l?(X=e.clip,X.top=t,X.right=r,X.bottom=b,X.left=x):e.style.clip='rect('+t+px+' '+r+px+' '+b+px+' '+x+px+')';}
function rH(e){h='-';if(l){Y=e.document;Y.open();h=Y.read();Y.close()}if(e.innerHTML)h=e.innerHTML;return h}
function wH(e,h){if(l){Y=e.document;Y.open();Y.write(h);Y.close()}if(e.innerHTML)e.innerHTML=h}
function gX(e){l?x=e.left:op?x=e.style.pixelLeft:x=e.style.left;if(isNaN(x))x=Number(x.substr(0,x.length-2));return x}
function gY(e){l?y=e.top:op?y=e.style.pixelTop:y=e.style.top;if(isNaN(y))y=Number(y.substr(0,y.length-2));return y}
function gW(e){l?w=e.clip.width:w=e.offsetWidth;return w}
function gH(e){l?h=e.clip.height:h=e.offsetHeight;return h}
function gWH(){self.innerHeight?h=self.innerHeight:h=d.body.clientHeight;return h}
function gWW(){self.innerWidth?w=self.innerWidth:w=d.body.clientWidth;return w}
function gSH(e){l?h=e.height:h=e.scrollHeight;return h}
function gSX(e){is_mac?x=d.body.scrollLeft:l?x=e.scrollWidth:x=e.scrollLeft;return x}
function gSY(e){is_mac?y=d.body.scrollTop:l?y=e.scrollHeight:y=e.scrollTop;return y}
function gIX(i){if(l)x=i.x;x=i.offsetLeft;tmp=i.offsetParent;while(tmp!=null){x+=tmp.offsetLeft;tmp=tmp.offsetParent}return x}
function gIY(i){if(l)y=i.y;y=i.offsetTop;tmp=i.offsetParent;while(tmp!=null){y+=tmp.offsetTop;tmp=tmp.offsetParent}return y}
function sBGImage(e,x){l?e.background=x:e.style.background=x}

function setWidth(){ww=gWW();if (is_ie5){sW(gE('id_header'),ww);sW(gE('id_content'),ww)}}
function toggleRechterKolom(){if(sRechterKolom=='specials')sRechterKolom='logo';else sRechterKolom='specials';placeRechterKolom()}
function reloadPage(){history.go(0)}
function clearTimer(){clearTimeout(timerID)}
function ClosePopUpWin(){
	if(bPopupWinOpen)
	if(!PopUpWin.closed){
			PopUpWin.close();
//	window.location = 'index2.php';
	}
}


function OpenPopUpWin(sUrl,w,h,yesNo){winl=(screen.width-w)/2;wint=(screen.height-h)/2;winprops ='height='+h+',width='+w+',left='+winl+',top='+wint+',scrollbars=1,resizable=';winprops+=(l)?1:yesNo;winprops+=',toolbar='+yesNo+',location='+yesNo+',directories='+yesNo+',status='+yesNo+',menubar='+yesNo+',fullscreen=0';if(bPopupWinOpen)if(PopUpWin.closed)PopUpWin=window.open(sUrl,'PopUpWin',winprops);else{PopUpWin.location.href=sUrl;PopUpWin.focus()}else{PopUpWin=window.open(sUrl,'PopUpWin',winprops);bPopupWinOpen=true}}
function OpenImageViewer(){winl=(screen.width-750)/2;wint=(screen.height-550)/2;winprops ='height='+550+',width='+750+',left='+winl+',top='+wint+',scrollbars=0,resizable=1,toolbar=0,location=0,directories=0,status=0,menubar=0,fullscreen=0';if(bPopupWinOpen)if(PopUpWin.closed)PopUpWin=window.open('/system/image_viewer/index.php','PopUpWin',winprops);else{PopUpWin.location.href='/system/image_viewer/index.php';PopUpWin.focus()}else{PopUpWin=window.open('/system/image_viewer/index.php','PopUpWin',winprops);bPopupWinOpen=true}}
function swapImg(i,t){e='';if(arguments.length>2)e=arguments[2];eval('d["'+i+e+'"].src='+i+t+'.src')}
function swapMenuImg(i,t){eval('d["'+i+'"].src=menu'+t+'.src')}
function swapTxt(e,n,t){
 clearTimeout(timerID);
 if(n==0)
  timerID=setTimeout("wH(gE('"+e+"'),aTxt[0]);sE(gE('id_wissel_2'))",t);
 else{
  if(window.aTxt[n])wH(gE(e),aTxt[n]);
	else wH(gE(e),'&nbsp;');hE(gE('id_wissel_2'))
 }
}
function swapKaart(et,t,sTxt){wH(gE('id_kaartTekst'),sTxt);e=gE(et);if(t==1){if(et==sKaart)clearTimer(timerID);sKaart=et;sX(e,gIX(d['kaart']));sY(e,gIY(d['kaart']));sE(e)}else timerID=setTimeout("hE(gE('"+et+"'))",10)}
function swapLogo(i,t){d["i_logo"].src=eval(i+t+'.src')}

function swapBGTab(el,im) {
 elemObj = 'id_tab_'+el; 
 sBGImage(gE(elemObj),'url(/images/sib/tab_'+im+'.gif)');
}

d=document;
l=d.layers;
op=navigator.userAgent.indexOf('Opera')!=-1;
px='px';

function openBibliotheek(id) {
	opener.document.location='/bibliotheek/index.php?id='+id;
	opener.focus();
} // openBibliotheek


bPopupWinOpen = false;
timerID = null;
sKaart='';
sRechterKolom='';
tmpHtml='';
csh = 0;
agt=navigator.userAgent.toLowerCase();
is_ie5 = ( (agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1) && (agt.indexOf("mac") == -1) && (parseInt(navigator.appVersion) == 4) && (agt.indexOf("msie 5")!=-1) );
is_ie50 = ( (agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1) && (agt.indexOf("mac") == -1) && (parseInt(navigator.appVersion) == 4) && (agt.indexOf("msie 5.0")!=-1) );
is_mac = (agt.indexOf("mac") != -1);

email0=new Image(20,19);email0.src="/images/email_0.gif";
email1=new Image(20,19);email1.src="/images/email_1.gif";
print0=new Image(20,19);print0.src="/images/sib/print_0.gif";
print1=new Image(20,19);print1.src="/images/sib/print_1.gif";
contact0=new Image(20,19); contact0.src="/images/contact_0.gif";
contact1=new Image(20,19); contact1.src="/images/contact_1.gif";
login0 = new Image(40,21); login0.src = '/images/sib/login_0.gif';
login1 = new Image(40,21); login1.src = '/images/sib/login_1.gif';
var pijl0=new Image(22,22);pijl0.src="/images/pijl_0.gif";
var pijl1=new Image(22,22);pijl1.src="/images/pijl_1.gif";
var pijl2=new Image(22,22);pijl2.src="/images/pijl_2.gif";
var sluiten0=new Image(88,25);sluiten0.src="/images/sluiten_0.gif";
var sluiten1=new Image(88,25);sluiten1.src="/images/sluiten_1.gif";

//window.onload = init;
//window.onresize = reloadPage;
window.onunload = ClosePopUpWin;
//-->
