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