$.fn.equalizeHeights = function() {
  var max = 0;
  
  $(this).each(function() {
    var height = $(this).height()
    if (height > max) max = height;
  });
  
  $(this).height(max);
};

$(function() {
  $('.item').filter(function() {
    return $(this).find('a').get(0);
  }).hover(
    function() { $(this).addClass('hover'); },
    function() { $(this).removeClass('hover'); }
  ).find('a').click(function() { document.location.href = $(this).attr('href'); return false; }).end()
  .click(function(e) {
    $(this).find('a:first').click();
  });
  
  $('.zoomable a').lightBox();
  
  $('p.description').equalizeHeights();
  $('.item').equalizeHeights();
});

