$().ready(function(){
	
	$("a[rel^='fancybox']").fancybox({
		'zoomSpeedIn': 1000,
		'zoomSpeedOut': 0,
		'overlayShow': true,
		'titlePosition': 'over',
		'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
			return '<span id="fancybox-title-over">' + title + '<br />Picture ' + (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
		}
	});

});
