$(document).ready(function () {

    
	
	//---Highlight Nav Items---//
	var pathArray = window.location.pathname.split( '/' ); //create an array based upon the pathname(/example/page would become pathArray[example,page])
	var firstPathArray = "/"+pathArray[1];//get just the first item in the path array (The parent page if you will)
	var mainNav = $("#nav li a");
	
	//cycle through each link on the main nav. If the href equals the first part of the pathname add the class current
	for (var i=0; i<mainNav.length; i++){
		var href = $(mainNav[i]).attr("href");
		if(href == firstPathArray){
			$(mainNav[i]).parent().addClass("selected");	
		}
	}	
	
	//Add Class to Even TR Elements
	$("table.alt tr:odd").children().addClass("odd");

});
