jQuery(function($) {
	
	//$('#nav ul').hide(); this is done in slideMenu.js
	
	//var path = location.pathname.substring(1);
	var currentURL = window.location.toString().split("/");
	var path = currentURL[currentURL.length-1];
	if(path.length !== 0){ //eliminates bug where if url is directory it selects all
	$('#nav a[@href$="' + path + '"]').addClass('active');
	$('#nav a[@href$="' + path + '"]').parents("ul").show();
	}
	
});