	// ***********************************************************************************************
	// *                           crossbrowser dhtml by Bronson ID, copyright 2003                  *
	// *                      this code may only be used with the missuniversum.nu site             *	
	// ***********************************************************************************************

	var documentLoaded = false;
	
	BrowserInfo = function() {
		browserString = 'unknown';
		versionString = 'unknown';
		if (navigator.appName.indexOf('Netscape')>-1) browserString = 'NS';
		if (navigator.appName.indexOf('Microsoft')>-1) browserString = 'IE';
		if (browserString == 'IE') versionString = navigator.appVersion.match(/MSIE\s(\d{1,2}\.\d{1,5})/)[1] + "";
		if (browserString == 'NS') versionString = navigator.appVersion.match(/\d{1,2}\.\d{1,5}/) + "";
		this.name = browserString;
		this.mainVersion = versionString.toString().match(/\d{1,2}/);
		this.version = versionString.replace(/\./, '').valueOf();
		this.info = this.name + this.version;
		this.mainInfo = this.name + this.mainVersion;
		this.platform = (navigator.platform.indexOf('Win32')>-1) ? 'WIN' : 'MAC';
		this.visibleString = ((this.name == "IE") || (this.mainInfo == "NS5"))? 'visible' : 'show';
	}
	
	var browser = new BrowserInfo();

	LayerObject = function(name) { this.name = name; }
	
	LayerObject.prototype.ref1 = function() {
		if (browser.name == 'IE') return document.all[this.name].style;
		if (browser.mainInfo == 'NS4') return document.layers[this.name];
		if (browser.mainInfo == 'NS5') return document.getElementById(this.name).style;
	}
	
	LayerObject.prototype.ref2 = function() {
		if (browser.name == 'IE') return document.all[this.name];
		if (browser.mainInfo == 'NS4') return document.layers[this.name].document;
		if (browser.mainInfo == 'NS5') return document.getElementById(this.name);
	}
	
	LayerObject.prototype.visible = function() { return ((this.ref1().visibility == browser.visibleString) || (this.ref1().visibility == "") || (this.ref1().visibility == "inherit")) }
	LayerObject.prototype.show = function() { this.ref1().visibility = browser.visibleString }	
	LayerObject.prototype.hide = function() { this.ref1().visibility = 'hidden'; }	

	
	LayerObject.prototype.setClipBottom = function(clipBottomTemp) { 
		if (browser.mainInfo == 'NS4') this.ref1().clip.bottom = clipBottomTemp;
		if ((browser.name == 'IE') && (browser.platform == 'MAC') && (browser.version == '45')) this.ref1().clip = ""; 
		if ((browser.name == 'IE') || (browser.mainInfo == 'NS5')) this.ref1().clip = "rect(0, 400, " + clipBottomTemp + ", 0)"; 
	}
	
	LayerObject.prototype.changeImage = function(imgName, newImage) {
		var tempImageRef;
		if (browser.mainInfo == 'NS4') tempImageRef = this.ref2();
		else tempImageRef = document;
		tempImageRef[imgName].src = newImage.src;				
	}
	
	changeImage = function(imgName, newImage) {
		var tempImageRef;
		if (browser.mainInfo == 'NS4') tempImageRef = this.ref2();
		else tempImageRef = document;
		tempImageRef[imgName].src = newImage.src;				
	}
	
	openWindow = function(url, name, width, height) {
		window.open(url, name, 'width=' + width + ',height=' + height + ',resizable=no,scrollbars=yes,menubar=no');
	}