// 
 $(document).ready(function() {
   				$("a[rel=f]").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
	});
	
	function formatTitle(title, currentArray, currentIndex, currentOpts) {
    return '<div id="fancydiff_title"><span><a href="javascript:;" onclick="$.fancybox.close();"><img src="layout/closelabel.gif" /></a></span>' + (title && title.length ? '<b>' + title + '</b>' : '' ) + 'Image ' + (currentIndex + 1) + ' of ' + currentArray.length + '</div>';
}

$(".fancydiff").fancybox({
	'showCloseButton'	: false,
	'titlePosition' 		: 'inside',
	'titleFormat'		: formatTitle
});
	
});


