<!--
/*
pressMenu.js
*/

//this is the initial item when the page is loaded to make td colour = mouse over
// it is initial by onload = cellOff(item_1)

function first_run()
{
//load highest number page
document.getElementById('pressFrame').src = num_of_items + ".html";
}


function page_loaded(which_page)
{
// first set to normal

	for(hloop = 1; hloop <= num_of_items; hloop++)
	{
	document.getElementById("cell" + hloop).innerHTML =	"<img id = \""+ hloop + "\" src=\"../images/navigation/arrowS.gif\" alt=\"\" width=\"43\" height=\"20\" onmouseover=\"overarrow("+ hloop + ")\"  onmouseout = \"offarrow("+ hloop + ")\" onclick = \"clickarrow("+ hloop + ")\"/>";
	}
	// now set specific cell
	document.getElementById("cell" + which_page).innerHTML = "<img id = \"" + which_page + "\" src=\"../images/navigation/arrowA.gif\" alt=\"\" width=\"43\" />";
}
function overarrow(which_arrow)
{
	temp = document.getElementById(which_arrow);
	temp.src = "../images/navigation/arrowH.gif";

}

function offarrow(which_arrow)
{
	temp = document.getElementById(which_arrow);
	temp.src = "../images/navigation/arrowS.gif";

}

function clickarrow(which_locator)
{
	/*
	first grab inner html for eaech td
	*/
	document.getElementById('pressFrame').src = which_locator + ".html";
}

// -->
