/* 	NS: only innerWidth 
	IE: only document.body && document.body.offsetWidth
	else 0
*/
function Windowwidth(){
 	if (window.innerWidth) return window.innerWidth;
 	else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
 	else return 0;
	}

/* 	NS: only innerHeight
	IE: only document.body && document.body.offsetHeight
	else 0
*/
function Windowheight(){
 	if (window.innerHeight) return window.innerHeight;
	else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
 	else return 0;
	}

function reBuild() {
	if (Width != Windowwidth() || Height != Windowheight())
	window.history.go(0);
	}

/*	
	Initialize NS watchdog
	necessary because of footer bug in NS 4.78 on W2k (credits to Manny)
*/
if(!window.Width && window.innerWidth) {
   window.onresize = reBuild;
   Width = Windowwidth();
   Height = Windowheight();
}

/* header that is displayed on all pages */
function header() {
	document.writeln("<p align=\"left\" class=\"footer\"><img src=\"images/firetide.jpg\"><\/p>");
}

/* footer that is displayed on all pages */
function footer() {
	document.writeln("<hr noshade size=\"1\" color=\"#FF0000\">");
	document.writeln("<p align=\"center\" class=\"footer\">Copyright &copy; 2003 Firetide, Inc. All Rights Reserved.<br>Produced by <span class=\"aSmall\"><a href=\"http://www.sixd.com\" target=\"_blank\">Six D Studios<\/a><\/span><\/p>");
	document.writeln("<hr noshade size=\"1\" color=\"#FF0000\">");
}
