// JavaScript Document
// Justin's script
$(function() {
	//dynamic menu highlight
	//grab the URL in the window's location bar
	var href = window.location.pathname;
	//split into an array of nested directories
	href = href.split("/");
	//for each link in your #nav, compare its href attribute to the stored location hash
	jQuery("#menu a").each(function(){
		var thisHrefComplete = jQuery(this).attr("href");
		thisHref = thisHrefComplete.split("/");
		//if there is a match at the first location, add a class of current to the link
		if (href[1]==thisHref[1] || (href[1]=="about" && thisHrefComplete=="/") ) { jQuery(this).addClass("current"); }
	});
});
