jQuery(document).ready(function(){
  // General interaction and js
  jQuery(".prevMonthSmall a, .nextMonthSmall a").live("click", function(e){
    e.preventDefault();
    var theUrl = $(this).attr("href") + ";ajax=true;";
    jQuery("#rightColumn #calendarWrap").load(theUrl);
  });
  // Add class for styles that need JS to be activated
  jQuery("body").addClass("jsloaded");
  // Searchform label is placed above searchfield, and need to be removed on field focus
  // EVENTHANDLER
  //cache
  var $searchField = jQuery("input.query")
  $searchField.focus(function(){
    jQuery(this).parent().find("label").hide();
  });
  // CHECK IF EMPTY AFTER LLOAD
  if($searchField.val() !== "") {
    $searchField.focus();
  }
});
