 $(function(){
// "You are here" sidenav effect
   var path = location.pathname.substring(1);
   if ( path )
     $('#sidenav a[href$="' + path + '"]').attr('class', 'selected');
//  Table zebra striping
	$("table tr").mouseover(function(){$(this).addClass("hover");}).mouseout(function(){$(this).removeClass("hover");});
	$("table tr:nth-child(odd)").not(".description").addClass("odd");
// Adds appropriate class and rel depending on filetype.
	$("a[href$=doc]").addClass("document").attr("rel", "document");
	$("a[href$=pdf]").addClass("document").attr("rel", "document");
	$("a[href^=http]").addClass("external").attr("rel", "external");
 });