// JavaScript Document

$(document).ready(function() {
$(".linklist li").addClass("c");  //add close class to all li's in .linklist

/*
This menu script requires the jQuery library.  It will turn a standard html list (using ul/li tags) into a basic accordion menu. It has been altered to work with the above script which target the link to the active page.  This will open the menu to the link to the current page, in addition to adding a class to it.

To use:
1. Add the id "nav" to the containing ul tag of the entire menu.
2. add the following style to a linked stylesheet.
.c ul {display: none}
*/


$(".linklist a").click(function() {
/* */

if ($(this).parent().is("li.c") ){	
	$(this).parent("li.c").removeClass("c");			
}
/* */	
else {
	$(this).parent().addClass("c");
	}

if ($(this).parent().children().is("ul")) {
return false;
}
	  
	});

// JavaScript Document

//$('.linklist a[@href$="' + location.pathname.substring(1) + '"]').addClass("activeLink").parents().removeClass("c");
//This is for the code to choose a section to highlight in the main nav, if the page is not in the navigation.

//if ($(".linklist").children().is("a")) {
//$(".linklist a[@href=" + $("#contentleft a").attr("href") + "]").addClass("activeLink").parents().removeClass("c");
//}

																														});

