jQuery(document).ready(function($){
   // hide empty divs inside #page and #footer
   $('#page > div, #footer > div').each(function() {
       if($(this).html().trim() == '') {
           $(this).css('display', 'none')
       }
   });
});
