function mouseoverinit() {
	if (!document.getElementById) return;
	preloads=new Array();
	imgs=document.getElementsByTagName('img');
	for (i=0;i<imgs.length;i++) {
		tt = imgs[i].attributes[imgs[i].attributes.length-1].name.toUpperCase();
		if (tt == "SWAP") {
			soff = imgs[i].getAttribute('src'); son = soff.replace("_off","_on");
			preloads[i] = new Image(); preloads[i].src = son;
			imgs[i].onmouseover = new Function("imgs["+i+"].src='"+son+"'");
			imgs[i].onmouseout = new Function("imgs["+i+"].src='"+soff+"'");
		}
	}
	putfooter();
}

function startkader(w,t) {
	document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH='+w+'>');
	document.write('<TR>');
	document.write('	<TD WIDTH='+(w-7)+' STYLE="padding-left:6;color:white" BGCOLOR="#161E64"><B>'+t+'</B></TD>');
	document.write('	<TD><IMG SRC="/img/kader1.gif" WIDTH=7 HEIGHT=15></TD>');
	document.write('</TR>');
	document.write('</TABLE>');
	document.write('<DIV STYLE="width:'+(w)+'px;border-left:1px solid #161E64;border-right:1px solid #161E64;background:#5E6EB2;padding:1 5 0 5">');
}
function stopkader(w) {
	document.write('</DIV>');
	document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH='+w+'>');
	document.write('<TR>');
	document.write('	<TD><IMG SRC="/img/kader2.gif" WIDTH=6 HEIGHT=6></TD>');
	document.write('	<TD WIDTH='+(w-13)+' BACKGROUND="/img/kader3.gif"><IMG SRC="/img/dummy.gif" WIDTH=1 HEIGHT=6></TD>');
	document.write('	<TD><IMG SRC="/img/kader4.gif" WIDTH=7 HEIGHT=6></TD>');
	document.write('</TR>');
	document.write('</TABLE>');
}

function putfooter() {
	h=document.body.scrollHeight;
	h2=document.body.clientHeight;
	w=document.body.scrollWidth;
	if (h2>h) h=h2;
	document.getElementById("footer").style.top=h-20;
	document.getElementById("footer").style.left=w/2-document.getElementById("footer").offsetWidth/2;
	document.getElementById("footer").style.visibility="visible";
}

onload=mouseoverinit;

function popprivacy() {
	sx=screen.width/2-300;
	sy=screen.height/2-200;
	window.open("/privacy.php","privacy","width=600,height=400,scrollbars=yes,left="+sx+",top="+sy);
}
function popgebruik() {
	sx=screen.width/2-390;
	sy=screen.height/2-290;
	window.open("/gebruik.php","privacy","width=780,height=580,scrollbars=yes,left="+sx+",top="+sy);
}