prettyPhoto is a jQuery based lightbox clone. Not only does it support images, it also add support for videos, flash, YouTube, iFrames. It’s a full blown media lightbox. The setup is easy and quick, plus the script is compatible in every major browser.
Somewhere on line 107:
Should be;
instead. _resize_overlay() should be called first to get the correct window dimensions prior to centering the overlay.