
// Script modified from http://www.quirksmode.org/js/fixedmenu.html
// Create The Variables for the script
// menu is the object that we will be dealing with
// theTop is how far from the top the menu should appear
// old is set to the top, and will be modified in the script to see if the
// position has changed
var menu;
var theTop = 95;
var old = theTop;
// initialize the scrolling menu. Set the variable menu to contain the layer
// do this now because the layer is available only after loading)
// Then start the movemenu function so that it starts the timeout to watch for changes
function init() {
	menu = new getObj('menu');
	movemenu();
}
// This is the function that actually does the work.
function movemenu() {
	// This first if is to just find the position of the screen the alert at the end
	// is for you to see what the new value of pos is.  The various else if's are to
	// make sure it works in each browser.
	if (window.innerHeight) {
		pos = window.pageYOffset
	} else if (document.documentElement && document.documentElement.scrollTop) {
		pos = document.documentElement.scrollTop
	} else if (document.body) {
		pos = document.body.scrollTop
	}
	// alert("pos = " + pos);
	if (pos < theTop) {
		pos = theTop;
	} else {
		pos += 1;
	}
	if (pos == old) {
		menu.style.top = pos;
	}
	old = pos;
	temp = setTimeout('movemenu()', 1000);
}
function getObj(name) {
	if (document.getElementById) {
		this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
	} else if (document.all) {
		this.obj = document.all[name];
		this.style = document.all[name].style;
	} else if (document.layers) {
		this.obj = document.layers[name];
		this.style = document.layers[name];
	}
}