$(document).ready(function(){
	
	// Hides every definition list "employee_set" then shows the first project set and sets its class to "active_employee_set"
	$(".employee_set").css({ display: "none" });
	$(".employee_set").eq(0).css({ display: "block" });
	$(".employee_set").eq(0).toggleClass("active_employee_set");
	// Set the first employee item link to have the current_section class
	$("#employee_thumbs a").eq(0).toggleClass("current_employee");
	
	// Sets up the click function for every sub navigation link
	$("#employee_thumbs a").each(function(int){
		$(this).click( function(){ 
			// Find the "active_employee_set" then hide it
			$(".active_employee_set").hide();
			// Turn off the existing "active_employee_set", then turn it on for the clicked set
			$(".active_employee_set").toggleClass("active_employee_set");
			$(".employee_set").eq(int).toggleClass("active_employee_set");
			// Remove the current_employee class from any existing link, then add it to the clicked link
			if ($(".current_employee")) {
				$(".current_employee").toggleClass("current_employee");
			}
			$(this).toggleClass("current_employee");
			// Show the clicked set
			$(".active_employee_set").fadeIn("medium");
			
			return false;
		});
	});
	
	// Call the widow-cancelling function
	$('p').widont();
	
});



