$(document).ready(function() {
  init();
}).ajaxComplete(function () {
  init();
});

//truncates panel text with ellipsis to two lines
function panelEllipsis() {
  if ( typeof $().ellipsis != 'undefined') { 
   $(".panel > a span, .panel .run span").ellipsis(); 
  }
}

//Binds hover events to panels. Use for IE8 hover support during ajax
function IE8Hovers() {
  $('.panel').bind({ 
   mouseenter: function(e) { $(this).addClass('hover') }, 
   mouseleave: function(e) { $(this).removeClass('hover') }
  });
}

function init() {
  panelEllipsis();
}

