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;

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

resizeteller=0; resizetester=0; reloading=0;
function Herladen() {
	if (bg2_laag == 'leeg') { bg2_laag = eval(doc + '"bg2_laag"' + sty) }
	if (ie4up&&!op5up){breedte=d.body.clientWidth;hoogte=d.body.clientHeight}
	else              {breedte=window.innerWidth; hoogte=innerHeight}
	if ( breedte < 773 ) { breedte =  773 }
	if ( hoogte  < 500 ) { hoogte  = 1000 }
	main_laag.left = Math.floor((breedte-508)/2);
	parent.document.title = typeof(bg2_laag)+'|'+bg2_laag.left;
	bg2_laag.left = Math.floor((breedte-508)/2)+390;
	parent.document.title = parent.document.title +'=>'+bg2_laag.left;
	//	if(!reloading) {window.location.reload();reloading=1 }
}
function resizetesterFunction() {
  resizetesterNIEUW = parent.innerWidth/parent.innerHeight;
  if (resizetester != resizetesterNIEUW && resizetester > 0) {resizeteller++ }
  if (resizeteller > 0 ) { Herladen() }
//	window.status= reloadtester+'|'+reloadtesterNIEUW;
  resizetester = resizetesterNIEUW;
  setTimeout("resizetesterFunction()",1500);
}
function testresize() {
	if(!ie4up)   {setTimeout("resizetesterFunction()",500);}
	else         {window.onresize = new Function("Herladen()");}
}

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

/*
<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');
}

