// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

$(document).ready(function(){
  $(".sub_menu ul li:first").addClass("heading");
  $('.menu .items ul li').hover(function(){
    $(this).addClass("hover");
  },
  function(){
    $(this).removeClass("hover");
  });
});

$(window).load(function(){
  // These 2 lines set the height of the two columns on the Home page, so that
  // they're equal, and the borders reach to the bottom. - B.I.
  if($('#leftMajor').length != 0) {
    tallestCol = Math.max($('#leftMajor').height(),$('#rightMinor').height());
    $('.equalHeightColumns').height(tallestCol);
  } else if ($('#leftMinor').length != 0) {
    console.log($('#rightMajor').height());
    tallestCol = Math.max($('#leftMinor').height(),$('#rightMajor').height());
    $('.equalHeightColumns').height(tallestCol);
  }
});