jQuery(document).ready(function() {
  ResizeLayout(10);
});


function ResizeLayout(count) {
  var footHeight = jQuery('#bodyFoot').innerHeight(true);
  var footContentHeight = jQuery('#bodyFootContent').outerHeight(true);
  var footContentInnerHeight = jQuery('#bodyFootContentInner').innerHeight(true);

  jQuery('#bodyFootContent').css('top', footHeight / 2);
  jQuery('#bodyFootContentInner').css('margin-top', -(footContentInnerHeight / 2));
  if(count > 0) {
    setTimeout(function() {
      ResizeLayout(count - 1);
    }, 200);
  }
}
