// This file contains javascript that is specific to the dashboard/profile controller.
jQuery(document).ready(function($) {
   
   // Adapted from getPageSize() by quirksmode.com
   function getPageHeight() {
      var windowHeight
      if (self.innerHeight) {   // all except Explorer
         windowHeight = self.innerHeight;
      } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
         windowHeight = document.documentElement.clientHeight;
      } else if (document.body) { // other Explorers
         windowHeight = document.body.clientHeight;
      }   
      return windowHeight;
   }
   
   // Fill the screen with the iframe
   $('iframe').height(getPageHeight()-46);
   
});