jQuery(document).ready(function($) { 
	$("a.myfancybox").fancybox({
					'titlePosition' 	: 'over',
					'overlayColor'		: '#000',
					'overlayOpacity'	: 0.7,
					'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">' + (title.length ? title : '') + '<br />Image ' + (currentIndex + 1) + ' / ' + currentArray.length + '</span>';},
					'onComplete'	:	function() {
						$("#fancybox-wrap").hover(function() {
						$("#fancybox-title").show();
						}, function() {
							$("#fancybox-title").hide();
						});
					}
	});
	
});