/*

This script displays the arrows to the right of each navigational item.
NOTE:	In the function navOff(), the for loop needs to only go through the maximum number of 
		navigational items.
NOTE:	This list below is there to identify which item should be highlighted for this page.
		Since this is a static site, this is done manually on a per-page item.

var whichIDisOn = 1;	//home
var whichIDisOn = 2;	//new work
var whichIDisOn = 3;	//about hal
var whichIDisOn = 4;	//newsletter
var whichIDisOn = 5;	//events
var whichIDisOn = 6;	//ordering
var whichIDisOn = 7;	//contact us

THE FOLLOWING LINE MUST GO ON EACH PAGE
var whichIDisOn = 1;	//home

*/

function navOff_USE_IF_ONE_ITEM_MUST_BE_ON() {
	for (var i=1; i<8; i++) {
		if (i != whichIDisOn) {
			navOffLoop(i)
		}
	}
}

function navOff() {
	for (var i=1; i<8; i++) {
		navOffLoop(i)
	}
}


function navOffLoop(ID) {
	var parentID = "navBox" + ID
	var boxID = "navBox" + ID

	if (document.layers) {
		var boxLayer;
		if(parentID){
			boxLayer = eval('document.' + parentID + '.document.' + boxID + '.document');
		}	else	{
			boxLayer = document.layers[boxID].document;
		}
		boxLayer.style.backgroundColor = "#DEDEC0"
		
	}	else if (parseInt(navigator.appVersion)>=5&&navigator.appName=="Netscape") {
		document.getElementById(boxID).style.backgroundColor = "#FFFFFF"
	}	else if (document.all) {
		document.all[boxID].style.backgroundColor = "#FFFFFF"
	}
}

function navOn(ID) {
	var parentID = "navBox" + ID
	var boxID = "navBox" + ID

	if (document.layers) {
		var boxLayer;
		if(parentID){
			boxLayer = eval('document.' + parentID + '.document.' + boxID + '.document');
		}	else	{
			boxLayer = document.layers[boxID].document;
		}
		boxLayer.style.backgroundColor = "#9A0505"
		
	}	else if (parseInt(navigator.appVersion)>=5&&navigator.appName=="Netscape") {
		document.getElementById(boxID).style.backgroundColor = "#9A0505"
	}	else if (document.all) 
		document.all[boxID].style.backgroundColor = "#9A0505"
}

function linkWindow(theURL) {
	var win = window.open(theURL,"popup","height=500,height=400,scrollbars=yes,menubar=yes,location=yes,status=yes,resizable=yes,toolbar=yes")	
}

// this function is specific to stories only... but it's on several pages
function storyWindow(whichPage) {
	var win = window.open(whichPage,"story","width=700,height=500,location=no,directories=no,status=yes,scrollbars=yes,menubar=no,toolbar=no,resizable=yes")
	win.focus()
}
