Bad fancybox selector

Hi, fancybox selector should be more direct, because now it adds its events on whole page a tags. For that reason Thumbnails closes fancybox instead of changing image.