Calculate height properly in iOS Safari

iOS Safari has a bug which can cause window.height() to return the wrong height - the actual height minus the height of the address bar. This causes colorbox content to be misaligned and portrait images ending up 30px shorter than they should be. See details of bug and solution at http://bugs.jquery.com/ticket/6724#comment:15