//browser detection
var ns = (navigator.appName == "Netscape");//Netscape browser
var ns6 = false;
var ua = navigator.userAgent;
if (document.getElementById) ns6 = true; //Netscape 6 or above

//get content height
var contH = "100%";
var headerH = 80;
var footerH = 12;
function GetContentH(){
	if (ns) contH = window.innerHeight - headerH - footerH;
	else if (ua.toLowerCase().indexOf("windows")<0) contH = document.body.clientHeight - headerH - footerH;
}

// START: fixing the page content on resize >>>
FixNSWindow();
function FixNSWindow() {
	if (ns6 || ns && (parseInt(navigator.appVersion) == 4)) {
		if (typeof document.NS == 'undefined') document.NS = new Object;
		if (typeof document.NS.NS_scaleFont == 'undefined') {
			document.NS.FixCssInNS = new Object;
			document.NS.FixCssInNS.initWindowWidth = window.innerWidth;
			document.NS.FixCssInNS.initWindowHeight = window.innerHeight;
		}
		window.onresize = FixCssInNS;
	}
}
function FixCssInNS() {
	if (document.NS.FixCssInNS.initWindowWidth != window.innerWidth || document.NS.FixCssInNS.initWindowHeight != window.innerHeight) document.location = document.location;
}
// <<< END: fixing the page content on resize

function reloadLocation(){
	window.location.reload();
}

if (!ns) window.onresize = reloadLocation;