// Set which tab is highlighted
$("#tabs").ready(function(){
	
	// Get the url of the page
	var pathname = window.location.pathname;
	
	//For each link in the tabs
	$("#tabs a").each(function(){
		
		// If the url of the link and the url of th page match
		// Add the class to make it selected.
		if($(this).attr("href") == pathname)
			$(this).find(".tab").addClass("dark");

	})
	
})
