
// Functions for left navigation actions

// JavaScript Document

var activeMenu;

function setNav () {
	
	if (currTopNav != "") {
		turnOn(currTopNav)
	}
	if (currLeftNav != "") {
		turnOn(currLeftNav)
	}
}
	

function rollOn(id)
{
	if (id != currTopNav && id != currLeftNav) {
		turnOn(id)
	}
}

function rollOff(id)
{
	if (id != currTopNav && id != currLeftNav) {
		identity=document.getElementById(id);
		identity.className="button_off";
	}
}

function turnOn(id) {
	identity=document.getElementById(id);
	identity.className="button_on";
	x = ns6? identity.parentNode : identity.parentElement;     							// backup to <a> tag
	x.className="menu_on";
}


