function formatTitle(title, currentArray, currentIndex, currentOpts) {
	return (title && title.length ? '<strong>' + title + '</strong>' : '' ) + ' (' + (currentIndex + 1) + '/' + currentArray.length + ')';
}

$(document).ready(function() {
	/* This is basic - uses default settings */
	$("a.lightbox").fancybox({
		'overlayColor'	: '#000000',
		'overlayOpacity'	: '0.8',
		'centerOnScroll'	: 'true',
		'titlePosition'	: 'inside'
	});
	$("a.iframe").fancybox({
		'overlayColor'	: '#000000',
		'overlayOpacity'	: '0.8',
		'centerOnScroll'	: 'true',
		'width'			: '75%',
		'height'			: '75%',
		'type'			: 'iframe'
	});
	$("a.gallery").fancybox({
		'overlayColor'	: '#000000',
		'overlayOpacity'	: '0.8',
		'centerOnScroll'	: 'true',
		'titlePosition'	: 'inside',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
							return '<span id="fancybox-title-inside">' + (title.length ? ' &nbsp; ' + title : '') + ' Image ' + (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
						}
	});
});

