var footerTm;
function SetFooterPosition() {
  footerTm = null;
  var footerline = $('#footerline').hide();
  var footer = $('#footer');
  var header = $('#header');
  var b = $('#wrapper #body');
  b.css({'min-height':0});
  b.css({'min-height':$(document).height()-footer.outerHeight()-header.outerHeight()});
  var diff = footer.outerHeight() - footerline.outerHeight();
  footerline.show().offset({top:footer.offset().top+diff});
}
$(function() {
  if($.browser.msie) $.fx.off = true;
  
  $(window).resize(function() {
    if(footerTm) return;
    footerTm = setTimeout(SetFooterPosition, 10);
  });
  SetFooterPosition();
  
});


