// allscript.js
// this script is included on all pages

// define browser DOM
var isDOM = (document.getElementById)?true:false;  	// for IE5 and NS6
var isIE4 = ((document.all)&&(!isDOM))?true:false; 	// for IE4
var isNS4 = (document.layers)?true:false;	   	// for NS4 layers
var isIE = (document.all)?true:false;			// for all IE browsers (mainly used for VBScript)
var isNS6 = ((isDOM)&&(!isIE))?true:false;		// for NS6


// Netscape 4.x CSS bug fix
if (document.layers) {
	origWidth = innerWidth;
	origHeight = innerHeight;
	}

function reloadPage() {
	if (innerWidth != origWidth || innerHeight != origHeight) 
	location.reload();
	}

if (document.layers) onresize = reloadPage;


// footer to align at bottom of browser
//IE and NS4
function pageHeight() {
	if (window.innerHeight != null)
		return window.innerHeight;
	if (document.body.clientHeight != null)
		return document.body.clientHeight;
	return (null);
}

function moveIt() {
	if (document.all) {
	document.all.footer.style.pixelTop= pageHeight()-34
	setTimeout ("moveIt()", 10)
	}
	else 
	if (document.layers) {
	document.footer.top= pageHeight()-34
	setTimeout ("moveIt()",10)
	}
}

// finds scrolling position
function findScrollTop() {
	if (window.pageYOffset != null)
		return window.pageYOffset;
	if (document.body.scrollWidth != null)
		return document.body.scrollTop;
	return (null);
}