var NS = IE = false;
if(navigator.appVersion.substr(0,3) >= 4) {
	if(navigator.appName == 'Netscape') {
		NS = true;
	} else {
		IE = true;
	}
}

// Definition of Content layer if the site uses multiple layers.
// In the case of VraagBaak it uses the second layer as content layer
function getDocument(){
	if (NS){return document.layers[1].document;} else {return document}
}

// browser en os detecteren

	function Platform() {
		this.browser = "default";
		this.version = 0;
		this.os = "default";
		
		this.getBrowser = getBrowser;
		this.getOS = getOS;
		this.getVersion = getVersion;
	}
	function getBrowser() {
		if(navigator.userAgent.indexOf("MSIE") != -1) {
					this.browser = "ie"
		}else if(navigator.userAgent.indexOf("Mozilla") != -1) {
					this.browser = "ns";
		}
	}
	function getOS() {
		if(navigator.userAgent.indexOf("Windows") != -1) {
				this.os = "win";
		}else if(navigator.userAgent.indexOf("Macintosh") != -1) {
				this.os = "mac";
		}else if(navigator.userAgent.indexOf("Mac_PowerPC") != -1) {
				this.os = "mac";
		}
	}
	function getVersion() {
		this.version = parseInt(navigator.appVersion);
	}
	
	platform = new Platform();
	platform.getBrowser();
	platform.getVersion();
	platform.getOS();
	
// opnieuw tekenen bij resizen van de pagina in netscape of explorer voor mac

    function handleResize() {
    //	location.reload();
    	return false
    }
    if(platform.browser == "ns") {
		window.captureEvents(Event.RESIZE);
		window.onresize = handleResize;
    }
    if(platform.browser == "ie" && platform.os == "mac") {
		window.onresize = handleResize;
    }

