if($(document).height()-50 < $(window).height())
{
    $(".footer").css('position', 'absolute');
    $(".footer").css('bottom', '0px');
}
