From http://www.drupalgardens.com/content/jquery-set-max-height-css-property-depending-page-height