[ALLI-1991] Improved fancybox functionality. Some minor bug fixes.