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
A check to insure that the content that gets loaded into colorbox matches the correct ajax request (Fixes #368)
Fixed an issue with percent-based heights in iOS
Fixed an issue with ajax requests being applied at the wrong time.