$(document).ready(function() {
	/* fancybox settings */
	$("a[rel=fbox]").fancybox({
		'overlayColor'      : '#000',
		'overlayOpacity'    : '0.5',
		'showCloseButton'   : false,
		'titlePosition'     : 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">Ôîòî ' + (currentIndex + 1) + ' èç ' + currentArray.length + (title.length ? '&nbsp; — &nbsp;' + title : '') + '</span>';
		},
		'onComplete'        : function() {
			$("#fancybox-wrap").hover(function() { $("#fancybox-title").fadeIn(0); }, function() { $("#fancybox-title").fadeOut(0); });
		}

	});
});

/* exif tooltip */
$(function() {
	$('#tooltiper span').tooltip({
		track: true,
		delay: 0,
		showURL: false,
		fade: 200
	});
});
