// A short script for "highlighting" the correct image in the nav header
// Change as needed

var idPrefix = "nav_top_"; // What all the image ids are prefixed with
var imgOnSuffix = "-on";   // What the image name for the "on" state is suffixed as

function indicate(thisId)
{
	var currentImageName = document.getElementById(idPrefix + thisId).src;
	var fileExt = currentImageName.substring(currentImageName.lastIndexOf("."), currentImageName.length);
	var fileName = currentImageName.substring(0, currentImageName.lastIndexOf("."));
	var newFileName = fileName+imgOnSuffix+fileExt;
	document.getElementById(idPrefix + thisId).src = newFileName;
}