$(document).ready(function(){
  $("a.fake").click(function(event){
    event.preventDefault();
  });

  $("div.expandable-content h3").click(function(event){
    var this_parent = $(this).parent();
    var the_p = $(this_parent).children().filter("p");
    if ($(the_p).is(":visible")){
      $(the_p).hide();
      $(this_parent).children().filter("ol").hide();
    }  
    else {
      $(the_p).show();
      $(this_parent).children().filter("ol").show();
    }  
  });
  
  $("div.expandable-content h3").hover(function(event){
    $(this).css({"color":"#f09823"});
  }, function(event){
    $(this).css({"color":"#59595b"});
  });

  $("a.archive-year").click(function(event){
    event.preventDefault();
  });
  
  $("a.archive-year-past").click(function(event){
    event.preventDefault();
  });

  $("#search-button").click(function(event){
    $("#search-form").submit();
    event.preventDefault();
  });

});


