/*  replaceClass, version 0.4
 *  (c) 2006 Ben Edwards <ben@alttext.com>
 *
 *	This replaces the class on the LI's that make up the sliding nav in the
 *	middle column of the site.
 *
 *  This is pretty crappy and I need to fix the calling by name on an LI 
 *  and combine this into one function but it works for now and my 
 *  JavaScripting skills are really bad. Thanks to Jesse O'Neill-Oine for 
 *  his help on this.
 *
/*--------------------------------------------------------------------------*/

function replaceClass(el) {
	var elements = document.getElementsByName('explorerNav');
	for(i=0; i<elements.length; i++)
	{
		elements[i].className = "normal";
	}
	el.className = (el.className == "normal") ? "current" : "normal";
}

function replaceClass2(el) {
	var elements = document.getElementsByName('mediaNav');
	for(i=0; i<elements.length; i++)
	{
		elements[i].className = "normal";
	}
	el.className = (el.className == "normal") ? "current" : "normal";
}

function replaceClass3(el) {
	var elements = document.getElementsByName('elsewhereNav');
	for(i=0; i<elements.length; i++)
	{
		elements[i].className = "normal";
	}
	el.className = (el.className == "normal") ? "current" : "normal";
}