function showLayerById(id) {
	this.id = id;
	showObj = document.getElementById(id);
	showObj.style.visibility = "visible";
}

function hideLayerById(id) {
	this.id = id;
	if (id != navOn) {
		showObj = document.getElementById(id);
		showObj.style.visibility = "hidden";
	}
}

function setClassById(id) {
	this.id = id;
	showObj = document.getElementById(id);
	showObj.className = "subNavLinkOn";
}

function init() {
	if (navOn) {
		showLayerById(navOn);
	}
	if (subnavOn && subnavOn != "show") {
		setClassById(subnavOn);
	}
}
