function Is() 
{
    var agent	= navigator.userAgent.toLowerCase();
    this.major	= parseInt(navigator.appVersion);
    this.minor	= parseFloat(navigator.appVersion);
    this.mac	= ((navigator.appVersion.indexOf("Mac") != -1) || (navigator.appVersion.indexOf("PowerPC") != -1));
	this.pc		= (navigator.appVersion.indexOf("Win") != -1 );
	this.ns		= ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
    this.ns4	= (this.ns && (this.major >= 4));
    this.ns5	= (this.ns && (this.major >= 5));
    this.ie		= (agent.indexOf("msie") != -1);
    this.ie4	= (this.ie && (this.major >= 4));
    this.ie5	= (this.ie && (this.major >= 4));
}

var is = new Is();

if (is.ns & !is.ns5) { //style-sheet for Netscape Navigator
   document.write('<link href="../css/nav.css" rel="styleSheet" type="text/css">');
} else { // default style-sheet
   document.write('<link href="../css/global.css" rel="styleSheet" type="text/css">');
}

function WM_netscapeCssFix() {
	if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth || document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight) {
		location.href = location.href;
	}
}

function WM_netscapeCssFixCheckIn() {
	if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
		if (typeof document.WM == 'undefined') {
			document.WM = new Object;
		}
		if (typeof document.WM.WM_scaleFont == 'undefined') {
			document.WM.WM_netscapeCssFix = new Object;
			document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth;
			document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight;
		}
		window.onresize = WM_netscapeCssFix;
	}
}

WM_netscapeCssFixCheckIn()
