//Fix-Script for Netscape 4-Resize-Bug
//JavaScript1.2 - All rights reserved - Copyright by mediaLINK 1999-2004 - V2.1/28.09.2004


//for mac.version
function CSFixFct() {
	var d = document; var w = window;
	if ((d.cs.csFix.w != w.innerWidth) || (d.cs.csFix.h != w.innerHeight)) {
		d.location = d.location;
	}
}


//for win-version
var vB4;
var vH4;
function doreload(){
	if ((innerWidth != vB4) || (innerHeight != vH4)){
		location.reload();
	}
}


function CSNSFix() {
	//only for Netscape 4.x
	if (document.layers){
		//adapted for Mac/Win-options
		if (navigator.appVersion.indexOf("Mac") > -1){
			var d = document; var w = window;
			if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
				if (typeof d.cs == 'undefined'){
				d.cs = new Object;
				d.cs.csFix = new Object;
				d.cs.csFix.w = w.innerWidth;
				d.cs.csFix.h = w.innerHeight;
				}
				CSFixFct();
			}
		}else{
			vB4 = innerWidth;
			vH4 = innerHeight;
			onresize = doreload;
		}
	}
}

//-----end of script
