Ref: http://stackoverflow.com/a/8855410/1055987
http://stackoverflow.com/q/9021325/1055987
Requires fancybox v2.x
jQuery and fancybox files should be loaded on both, the parent and the iframed page, however, it is enough to place the fancybox custom script in the iframed page only.
UPDATE: Includes manual gallery with navigation buttons