может это поможет:
$("a[rel=group]").fancybox({
openEffect : 'fade',
closeEffect : 'fade',
nextEffect : 'fade',
prevEffect : 'fade',
helpers : {
title : {
type : 'inside'
}
},
beforeShow : function(opt) {
if(this.element.title==''){
this.element.title='Image '+ (this.index + 1) + ' / ' + this.group.length;
this.title=this.element.title;
}
}
});