//<scr ipt src="global.js" type="text/javascript" language="JavaScript"></scr ipt>
// scriptfunctions (c)2008 E. Toering www.knoop.nl
n=navigator;na=n.appVersion;nu=n.userAgent.toLowerCase();no=n.userAgent.indexOf('Opera');d=document;
mac   =(na.indexOf("Mac")!=-1)                  ?1:0;
ns4up =(d.layers)                               ?1:0;
ns6up =(d.getElementById&&!document.all)        ?1:0;
op5up =(no>0&&!ns6up)                           ?1:0;
op7up =(op5up&&eval(nu.substring(no+6,no+7))>6) ?1:0;
ie4up =(d.all && !op5up)                        ?1:0;
ie5up =(d.all && !op5up &&  d.getElementById)   ?1:0;
ie55up=(parseFloat(na.split("MSIE")[1])>=5.5)   ?1:0;
ie8up =(parseFloat(na.split("MSIE")[1])>=8)     ?1:0;

if     (ns4up)              {doc="document[";               sty="]";      htm="].document";xpos="e.pageX";ypos="e.pageY"}
else if(ns6up||ie55up)      {doc="document.getElementById(";sty=").style";htm=")";         xpos="event.x";ypos="event.y"}
else if(ie4up||ie5up||op5up){doc="document.all[";           sty="].style";htm="].document";xpos="event.x";ypos="event.y"}
if ( ie4up&&!op5up ){breedte=d.body.clientWidth;hoogte=d.body.clientHeight}
else                {breedte=window.innerWidth; hoogte=window.innerHeight}
if (ie8up&&!breedte){breedte=d.documentElement.clientWidth;hoogte=d.documentElement.clientHeight}

resizeteller=0; resizetester=0; reloading=0;
function Herladen() { if(!reloading) {window.location.reload();reloading=1 } }
function resizetesterFunction(wat) {
	if (ie4up&&!op5up){breedte=d.body.clientWidth;hoogte=d.body.clientHeight}
	else              {breedte=window.innerWidth; hoogte=innerHeight}
  resizetesterNIEUW = breedte/hoogte;
	if ( wat == 'b' ) { resizetesterNIEUW *= hoogte }
  if (resizetester != resizetesterNIEUW && resizetester > 0) {resizeteller++ }
  if (resizeteller > 0 ) { Herladen() }
//	window.status= reloadtester+'|'+reloadtesterNIEUW;
  resizetester = resizetesterNIEUW;
  setTimeout("resizetesterFunction(\'"+wat+"\')",1000);
}
function testresize(wat) {
	if(typeof(wat)== 'undefined') {wat=''}
	if(!ie4up|| wat.length > 0 ) {setTimeout("resizetesterFunction('"+wat+"')",1000);}
	else {window.onresize = new Function("Herladen()");}
}

aapje='@'; // <scr ipt type="text/javascript">d.write(aapje)</scr ipt>
function knoopmail(n,o,i) { // naam,onderwerp,inhoud  // antispammailer by www.knoop.nl (c)2003 Knooppunt
  var pos=location.host.substring(0,location.host.lastIndexOf('.')).lastIndexOf('.')+1;
  var d=location.host.substring(pos,location.host.length);
  if(!o){o='Reactie op site ('+location.host;if(n=='webmaster'){o+=location.pathname};o+=')'}if(!i){i=''}
  var mail_link="mailto:";mail_link+=n;mail_link+="@";mail_link+=d;mail_link+="?subject=";mail_link+=o;mail_link+="&body=";mail_link+=i;
  window.location.href = mail_link;
}

/*
<scr ipt type="text/javascript" language="JavaScript"><!--
plaats_div('naam',hpos,vpos,br,h,laag,'visible');
// --></scr ipt>
*/
function plaats_div(naam,DIVhpos,DIVvpos,DIVbreed,DIVhoog,DIVlaag,DIVhidvis,DIVextra) {
	if(typeof(DIVextra)!='undefined'){
		if(DIVextra.indexOf('relative')>=0){DIVpos='relative';DIVextra=DIVextra.replace(/relative/g,'')}
		else                               {DIVpos='absolute' }
	} else {
		DIVextra='';
		DIVpos  ='absolute';
	}
	d.write('<div ID="'+naam+'" STYLE="position: '+DIVpos+'; left:'+DIVhpos+'px; top:'+DIVvpos+'px; width:'+DIVbreed+'px; height:'+DIVhoog+'px; z-index:'+DIVlaag+'; visibility:'+DIVhidvis+'" '+DIVextra+'>\n');
}

function setDIVcontent(naam,str) {
	if (ie4up) {
		document.all[naam].innerHTML = str;
	} else if (ns4up) {
		document.layers[naam].document.open();
		document.layers[naam].document.write(str);
		document.layers[naam].document.close();
	} else if (ns6up) {
		document.getElementById(naam).innerHTML = str;
	}
}

function getDIVcontent(naam) {
	str = '';
	if (ie4up) {
		str = document.all[naam].innerHTML;
	} else if (ns4up) {
		str = document.layers[naam].document.text;
	} else if (ns6up) {
		str = document.getElementById(naam).innerHTML;
	}
	return str;
}