// JavaScript Document
function fancyGallerie(rel)
{
	$("a[rel="+rel+"]").fancybox({
			'transitionIn'		: 'elastic',
			'transitionOut'		: 'fade',
			'padding'			: 0,
			'titlePosition' 	: 'over',
			'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
				if (title!="") return '<span id="fancybox-title-over">' + title + '</span>';
				return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
			}
	});	
}
