$(document).ready(function() {
    var h = $(document).height() - $("div#footer").height() - 15;
    $("div#wrapper").height(h);
});

