window.status="Content Loading"
var IE5up = document.getElementById&&document.all;
var NS6up = document.getElementById&&!document.all;
var NS4 = document.layers;
var IE4 = document.all&&!window.print;
var AllReady = "false"; //gets set to true once the page has loaded, keeps errors from occuring if the menus are called before they load
var w; //holds the value for the active menus width
var loc; //holds the value for the active menus left position
var nloc = 0 //holds the value for the new location of the active menu position
var nwidth; //the nWidth is used to keep the menus from going past the right edge of the page
var totalwidth//the total available width of the page
var pagewidth = 800; //width in pixels of your page contents
var pagecenter = true; //set to true if your page contents are centered

//reloads netscape 4.x browsers if they are resized
if(document.layers) { 
var xX = innerWidth;
var yY = innerHeight; 
	onresize= function(){ 
		if(xX!= innerWidth || yY!= innerHeight) history.go(0); 
	}
}

// markwidth used when page is centered to keep menu items centered as well
function markwidth(){
	//alert(totalwidth);
	nloc=parseInt( (totalwidth-pagewidth)/2 )
	if(document.layers){
	nloc=nloc-8; //because netscape is stupid
	}
	if(nloc<0){
		nloc=0;
	}
		if(NS4){
			document.layers[id].left=document.layers[id].left+nloc;
		}
		if(IE4){
			document.all[id].style.left=document.all[id].style.left+nloc;
		}
		if(IE5up||NS6up){
			document.getElementById("content").style.left=(parseInt(0))+nloc;
		}
}


function ClearStatus(){
setTimeout("window.status=''",2000);
}

function popUp(x,w,h,name,URL){
var settings = 'width='+w+',height='+h+',scrollbars=yes,toolbars=no';
mywin = "win"+x;
		mywin = window.open(URL,name,settings);
}
