/* --- aanroep voor clientcheck functie --- */
/*-------------------------------------------------------------------------*/
	var is = new getClient();
/*-------------------------------------------------------------------------*/


/* voor als er een 'not compatible' page is. */
/*-------------------------------------------------------------------------*/
	//if (!is.comp) window.location="notcompatible.cfm";
/*-------------------------------------------------------------------------*/


/*alle nodige stylesheet varianten voor verschillende browsers*/
/* voor de stylesheet versies die je niet nodig hebt kun je de waarden van 
   de bijhorende flags op 0 zetten*/
/*-------------------------------------------------------------------------*/
	var browserStyles = new Object();
  browserStyles.Ns = 0;  //alleen voor Netscape4
  browserStyles.Gko = 1;  //alle gecko browsers: mozilla, ns6, ns7,  en afgeleiden
  browserStyles.IeM = 0;  //Internet explorer mac
  browserStyles.NsM = 0;  //Netscape mac
/*-------------------------------------------------------------------------*/

/* initialisatie functie*/
/* hier alle zaken die verricht moeten worden als het document geladen is*/
/*-------------------------------------------------------------------------*/
	function init(){
		if (is.ns4) makeDocAll();
	}
/*-------------------------------------------------------------------------*/


/* aanroep van de domtransform scripts voor ns4 of ie4 browsers */
/* deze scripts maken deze browsers -enigzins- dom2 compatible */
/*-------------------------------------------------------------------------*/
	if (is.ns4){
		include("NsDomTransform.js");
	}else if ("isObj(document.all" && !document.getElementById){
		include("IeDomTransform.js");
	}
/*-------------------------------------------------------------------------*/


/* --- ERRORS AFVANGEN --- */
//self.onerror = function(){return true}
/* --- /ERRORS AFVANGEN --- */

/* --- CLIENTCHECK --- */
/* */

function getClient() {
    // convert all characters to lowercase to simplify testing
    var agt=navigator.userAgent.toLowerCase()
    var apv=navigator.appVersion.toLowerCase()
    this.major = parseInt(navigator.appVersion)
    this.minor = parseFloat(navigator.appVersion)
    // browserversion
    this.ns  = ((agt.indexOf('mozilla')!=-1) && ((agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1)))
    this.ns4 = (this.ns && (this.minor >= 4.03) && (this.major < 5))
	this.ns6 = (this.ns && (this.major == 5))
	this.gecko = (this.ns && (this.major >= 5))
    this.ie   = (agt.indexOf("msie") != -1)
    this.ie4  = (this.ie && (this.major == 3))
	this.ie45 = (agt.indexOf('msie 4.5') != -1);
    this.ie5  = (this.ie && (this.major == 4))
    // platform
	this.mac = (apv.indexOf("macintosh")>0);
	this.win = (apv.indexOf("win")>0);	
  // mac browsers
  this.iemac = (this.mac && this.ie);
  this.nsmac = (this.mac && this.ns4);
    // compatible browsers
	this.ie4comp = ((this.ie4 && !this.mac) || this.ie45 || this.ie5)
	this.ns4comp = (this.ns4);
	this.ns6comp = (this.gecko || this.ns6);
	this.comp = (this.ie4comp || this.ns4comp || this.ns6comp);
  
  // DS: added this due to the fact that the original header.js was ripped apart
  agent = "";
  if ( this.ns6comp ) {
    agent = "Gko";
  } else if ( this.ns4comp ) {
    agent = "Ns";
  }
	//return (this)
}
