$(document).ready(function() {

	$("a[rel=group1]").fancybox({
					'overlayOpacity' : 0.5,
					'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span  class="fancybox-title-inside" style="background:white; padding:3px; border:solid 1px; font-size:12pt; " >Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ': &nbsp; ' + title : '') + '</span>';
				}
				
					
	});
	$("a[rel=group2]").fancybox({
					'overlayOpacity' : 0.5,
					'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span  class="fancybox-title-inside" style="background:white; padding:3px; border:solid 1px; font-size:12pt; " >Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ': &nbsp; ' + title : '') + '</span>';
				}
				
					
	});
	$("a[rel=group3]").fancybox({
					'overlayOpacity' : 0.5,
					'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span  class="fancybox-title-inside" style="background:white; padding:3px; border:solid 1px; font-size:12pt; " >Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ': &nbsp; ' + title : '') + '</span>';
				}
				
					
	});
	
	$("a.fbox").fancybox({
					'overlayOpacity' : 0.5,
					'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span  class="fancybox-title-inside" style="background:white; padding:3px; border:solid 1px; font-size:12pt; " >Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ': &nbsp; ' + title : '') + '</span>';
				}
				
					
	});

	
});


