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

});

