function imageOn(itemID) {
	if (document.images) {
		document.images[itemID].src = toc_item[itemID].toc_img_on.src;
		self.status = toc_item[itemID].msg;
	}
}

function imageOff(itemID) {
	if (document.images) {
		document.images[itemID].src = toc_item[itemID].toc_img_off.src;
		self.status = "";
	}
}

function toc_item (sourceOn,sourceOff,msg) {
	this.sourceOn = sourceOn;
	this.sourceOff = sourceOff;
	this.msg = msg

	if (document.images) {
		this.toc_img_on = new Image();
		this.toc_img_off = new Image();
		this.toc_img_on.src = "/images/" + this.sourceOn;
		this.toc_img_off.src = "/images/" + this.sourceOff;
	}
}

function onColor(object, onColor) {
object = object + "Nav";

	if (document.all) {
		document.all[object].style.backgroundColor = "#" + onColor;
				
	}
	else if (document.getElementById) {
		var nodeObj = document.getElementById(object);
		nodeObj.style.backgroundColor = "#" + onColor;
		
	}
}

function offColor(object, offColor) {
	object = object + "Nav";

	if (document.all) {
		document.all[object].style.backgroundColor = "#" + offColor;
	}
	else if (document.getElementById) {
	
		var nodeObj = document.getElementById(object)
		nodeObj.style.backgroundColor = "#" + offColor;
	}
}
