
// Global vars

//	classSelect is the class used to set against items in the sidebar for highlighting
var classSelect = 'navselected';

/* 	setSelectedNavLink function
	this function sets the class name of the <a> tag in document
	whose text (innerHTML) is equal to the title of the page.
	Automatically allows you to highlight the entry in the navigation list
	in the sidebar indicating to the user which page they're on.
	The class set is determined by the global car classSelect. */
function setSelectedNavLink()
  {
  var link_array=document.getElementsByTagName("a");
  for (var n = 0; n < link_array.length; n++)
  	if (link_array[n].innerHTML.toLowerCase() == document.title.toLowerCase())
		link_array[n].className=classSelect;
  }