var Burnto = {
  obfuscate: function(p4, p1, p3, p2) {
    return p1 + p2 + p3 + p4;
  },
  update_size: function() {
    var margin = $(window).height() - ($("#page_content").offset().top + $("#page_content").height()) - $("#page_bottom").height() - 10;
    $("#page_bottom").css({marginTop: Math.max(0, margin)})
  }
}

jQuery.fn.replaceWithMailto = function(email, options) {
  options = jQuery.extend({
    content: email,
    title: "Send an email to " + email + "."
  }, options);
  return this.each(function(){
    $(this).replaceWith("<a href=\"mailto:" + email + "\" title=\"" + options.title + "\">" + options.content + "</a>")
  });
};

$(window).bind("resize", Burnto.update_size);
$(document).ready(function() {
  Burnto.update_size();
})