$(document).ready(function(){
	// Add the click functionality to each tab in the slideshow
	$("span.tab").click(function(e){
		// Cancel all link functionality
		e.preventDefault();
		
		// Get the id of the tab that was clicked
		id = this.id;
		
		// Hide all of the content divs first
		$("div.tab").attr("style", "display:none");
		
		// Show the div corresponding to the button clicked
		$("#_" + id).attr("style", "display:block");
		
		// Remove the active class from all buttons that may currently have it
		$("span.tab").attr("class", "tab");
		
		// Add the "active" class to the button that was clicked
		buttonClass = $("#" + id).attr("class") + " active";
		$("#" + this.id).attr("class", buttonClass);	
 	});
});
