// 
// 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() {
  var lightbox_options = {fitToScreen: true,
   fileLoadingImage : '/wp-content/themes/gardens/images/lightbox/loading.gif',
   fileBottomNavCloseImage : '/wp-content/themes/gardens/images/lightbox/closelabel.gif'};
  $(".body a[href$='.jpg'], .wp-caption a[href$='.jpg'], .body a[href$='.gif'], .wp-caption a[href$='.gif']").lightbox(lightbox_options);
});

$(document).ready(function() {
  $("ul.lead-image").cycle({
    timeout: 8000
  });
});

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