Fixed fancybox-related code.

Hello. I tried to use fancybox viewer with nanoGallery and failed. Got it working this way (tested against fancybox 1.3.6).