// When the page is ready
$(document).ready(function()
{
  // Things to do on page load and, more importantly, reload
  // 1 - Hide all details
  $(".event .detailed_info").hide();
  // END things to do on page load/reload
  
  // Things to do while the form is being used
  // 1 - Clicking on "Details" reveals or hides the details
  $(".event .reveal_the_details").click(function(event)
  {
    $(this).closest(".event").find(".detailed_info").toggle();
    
    // Stop the link click from doing its normal thing
    event.preventDefault();
  });
  // END things to do while the form is in use
});
