﻿// JavaScript File

function toggleSubs(obj) {
	// Focus is on the A tag, so get the tag before that which is the LI tag.
	objMenu = obj.parentNode;
	
	// check if focused class is already set on the LI, if not set it
	if (objMenu.className != "focused"){
		
		// Don't wipe out the existing classnames, 
		// but if already focused, don't focus again
		if (objMenu.className.search("focused") <= 0){
		objMenu.className = objMenu.className + " focused";
		}
	} else {
		// Don't wipe out the existing classnames, just take off the last few chars
		objMenu.className = objMenu.className.substring(0, (objMenu.className.length - 8));
	}
}