$(document).ready(function() {
function formatTitle(title, currentArray, currentIndex, currentOpts) {
return '<div id="galtitle"><span><a href="javascript:;" onclick="$.fancybox.close();"><img src="files/addons/lightbox/fancy_close.png" /></a></span>' + (title && title.length ? '<b>' + title + '</b>' : '' ) + (currentIndex + 1) + ' / ' + currentArray.length + '</div>';
}
$("a.galerie").fancybox({
'showCloseButton': false,
'titlePosition' : 'inside',
'titleFormat'	: formatTitle,
'overlayShow'	:	true,
'overlayColor'  :   '#000',
'overlayOpacity':   0.3,
'speedIn'		:	600, 
'speedOut'		:	200

	});
	
});
