// $(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-right').offset().top - $('#menu').offset().top - $('#menu').height());
//   $('#left-column').height($('#container').height() - $('#footer').height())
//   var containers = $(".make-equal");
//   containers.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);
//     });
//   });
// };
jQuery(function($) {

$(document).ready(function() {
  $("ul.lead-image").cycle({
    timeout: 8000
  });
  $(".document-order").hover(function(){$(this).addClass('document-order-hover')}, 
                             function(){$(this).removeClass('document-order-hover')}   );
});

$(window).bind('load', function() {
  var height_sb = $('#sidebar').height();
  var height_main = $('#col-main').height();
  if (height_sb < height_main) {
    $('#sidebar').append('<li id="end-widget"></li>');
    $('#end-widget').height(height_main - height_sb - 6); 
  } else {
    $('#col-main .body-level').height($('#col-main .body-level').height() + (height_sb - height_main));
  }
});
});
