// $Id$
/**
 * Defines behaviors for unims theme.
 * @file
 */

/**
 * Remove border-bottom of last visible block in each sidebar.
 */
Drupal.behaviors.removeBorder = function (context) {
  //make sure that all blocks have their border except of the last one (left sidebar)
  $('#sidebar-left-inner .block-inner:not(:last)').css('border-bottom', '1px solid #8C294A');
  
  //make sure that all blocks have their border except of the last one (right sidebar)
  $('#sidebar-right-inner .block-inner:not(:last)').css('border-bottom', '1px solid #8C294A');

  //remove last border on the left
  $('#sidebar-left-inner .block-inner:last').css('border-bottom', 'none');
  
  //remove last border on the right
  $('#sidebar-right-inner .block-inner:last').css('border-bottom', 'none');  
};

/**
 * Make the research result item longer.
 */
Drupal.behaviors.lengthenResearchResultItem = function (context) {
  $('.menu li:nth-child(2)').addClass('longTitle');  
};
