$(document).ready(function() {
  var lightbox_options = {fitToScreen: true,
		fileLoadingImage : '/wp-content/themes/huffpuff/images/lightbox/loading.gif',
		fileBottomNavCloseImage : '/wp-content/themes/huffpuff/images/lightbox/closelabel.gif'};
  $(".entry a[href$='.jpg'], .wp-caption a[href$='.jpg'], .entry a[href$='.gif'], .wp-caption a[href$='.gif']").lightbox(lightbox_options);
});

window.onload = function(){
  // $('#right-bar').height($('#footer').offset().top - $('#menu').offset().top + $('#menu').height());
  var pad = $('#footer-left').height() + 10;
  $('#left-column').css('padding-bottom', pad);
  $('#left-column').height($('#container').height() - $('#footer').height() - pad);
  // $('#left-column').height($('#container').height() - $('#footer').height())
  //$('#right-bar').height()
  $('#right-bar').height($('#left-column').height());
  
  
  // var containers = $(".make-equal");
  $(".make-equal").each(function(){
    var max_height = 0;
    $(".hp-post", this).each(function(){
      if ($(this).height() > max_height) max_height = $(this).height();
    }).each(function(){
      $(this).height(max_height);
    });
  });
};

