$(document).ready(function() {
	$("a.big").fancybox({
		'hideOnContentClick'	: true,
	});

	$("a[rel=gallery_group]").fancybox({
		'hideOnContentClick'	: true,
		'titlePosition'			: 'over',
		'titleFormat'			: function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
		}
	});
});
