
// This function uses the jQuery javascript library.
// This function is called when the document has loaded.
// Initially, it hides all summary sections.
// Then, on click of the anchor within an element with the
// class "showlink", it will hide that element, and show the
// next one.
jQuery(document).ready(function(){
	// document is ready
	
	// Set the "Project Summary" onclick function
	$(".showlink a").click(function() {
		// "Project Summary" link clicked.
		
		// hide all summaries first
		$(".showlink a").parent().show().next().hide();
		
		// Hide parent element and show the one after the parent element.
		$(this).parent().hide().next().show();
		return false;
	}).parent().next().hide(); // hide all summaries on load
	
	// Set the "Close Summary" onclick function
	$(".closelink a").click(function() {
		// hide all summaries
		$(".showlink a").parent().show().next().hide();
		return false;
	});
	
});