﻿// call this to make the page scroll (keeps the footer visible at the bottom)

function scrollContent() {
  // safari and chrome need time for the scrollbars to disappear
  window.setTimeout(function () {
    $('#divMenu').css('height', $(window).height() - $('#divHeader').height() - $('#divFooter').height() - 20);
    $('#divContent').css('height', $(window).height() - $('#divHeader').height() - $('#divFooter').height() - 20);
    $(window).resize(function () {
      $('#divMenu').css('height', $(window).height() - $('#divHeader').height() - $('#divFooter').height() - 20);
      $('#divContent').css('height', $(window).height() - $('#divHeader').height() - $('#divFooter').height() - 20);
    });
  }, 100);
}
