$("document").ready( function(){
    $('#layer').css('margin-top', ($(document).height()-836) /2 + 'px');

});

