// Auto select navigation using jquery.  Boooyaaaaaa! 

	$(document).ready(function() { 
			var path = location.href.substring(location.href.lastIndexOf('/')+1);
			var folderpath = location.pathname.substring(0);
			var subhome = './'
			
			//this gets the top and adds it's very own special style
			if (path)
			$('#nav ul a[href$="' + path + '"]').addClass('active');
			
					
	//need to use exact url paths for folders.  Sorry.  

			//(left side)
			if (folderpath)
			$('#nav ul a[href$="' + folderpath + '"]').addClass('active');

	//love for the sub folder homepage with less than exact paths 	
			if (subhome && path == "")
			$('#nav ul a[href$="' + subhome + '"]').addClass('active');
			
					
	//additional active selector is on sub page template to make sure sub sections have the right high level section highlighted at all times.  
						
}); 
