$(document).ready(function () {
	// Fix the width of the table cell (so that the table cells do not horizontally shift)
	// when the toggle container div is hidden.
	var td = $('.toggle').parent().parent();
	$(td).width($(td).width());

	// Show the toggle switch.
	$('.toggle').show();
	// Hide all paragraphs in the containing div.
	$('.toggle').parent().find('p').hide();
	// Set the switch event handler.
	$('.toggle').click(unhide_menu);
});

// Toggle switch event handler.
function unhide_menu() {
	// Unhide all paragraphs in the containing div.
	$(this).parent().find('p').slideDown();
	// Hide the switch.
	$(this).hide();
	// Cancel the page refresh.
	return false;
}
