Fix fancybox to respect parent option with overlay

fix for bug #556
Merge pull request #557 from zzzzBov/patch-1

Fix fancybox to respect parent option with overlay