$('#content_left').affix({
  offset: {
    top: 310,
    bottom: function() {
      return (this.bottom = $('footer').outerHeight(true))
    }
  }
});	

$('#admin_left').affix({
  offset: {
    top: 0,
    bottom: function() {
      return (this.bottom = $('footer').outerHeight(true))
    }
  }
});	

function set_height() {
  boxes = $('.maxheight');
  boxes.css({'height':''});
  maxHeight = Math.max.apply(
    Math, boxes.map(function() {
      return $(this).outerHeight();
    }).get());
  boxes.outerHeight(maxHeight);

  carousel_height = $('.carousel-inner .item.active img').height();
  $('.carousel .item').height(carousel_height);
  $('.carousel').height(carousel_height);
}

$(document).ready(function() {
  var windowHeight   = $(window).height();
  var documentHeight = $(document).height();
  var footerHeight   = $('#footer').height();
  var footerTop      = $('#footer').position().top + footerHeight;

  if ( footerTop < windowHeight ) {
    $('#footer').css('margin-top', (windowHeight - footerTop - footerHeight) + 'px');
  } 

  var img_width = $('div.img-resize').width();
  $('img.img-resize').width(img_width);

  $(window).resize(function() {
    var img_width = $('div.img-resize').width();
    $('img.img-resize').width(img_width);
  });

  $(window).resize(function() {
    set_height();
  });

  set_height();

  $('.post-body table').each(function(){
    $(this).prepend('<thead></thead>')
    $(this).find('thead').append($(this).find("tr:eq(0)"));
  });
  $('.post-body table').addClass('table table-striped table-hover table-condensed table-responsive');
  $('.post-body table').find('colgroup').remove().end().html();
  $('.post-body table thead').css({'font-weight': 'bold'});
  $('.post-body table td').css({'text-align': 'left',
                                'font-size': '10pt',
                                'font-family': 'sans-serif'});
});


@@ -585,24 +585,89 @@
 ).height();%0A
+  if ( carousel_height %3C 100 ) %7B%0A    carousel_height = 100;%0A  %7D%0A%0A
   $('.carous

Set minimum height of carousel to 100 pixels