function formatTitle(title, currentArray, currentIndex, currentOpts) {
//	return '<p style="float: right;">' + (currentIndex + 1) + ' / ' + currentArray.length + '</p><div style="width: 90%; text-align: left;"><p class="bold">' + (title && title.length ? '' + title.replace(' | ', '</p><p>') + '' : '' ) + '</p></div>';
	return '';
}

$(document).ready(function(){
	$("a.imgshow").fancybox({
		'transitionIn'	: 'fade',
		'transitionOut'	: 'fade',
		'titlePosition'  : 'inside',
		'overlayOpacity' : '0.9',
		'overlayColor' : '#FFF',
		'cyclic' : true,
		'type' : 'image',
		'titleFormat' : formatTitle
	});
	
	
	$("a.iframeshow").fancybox({
		'transitionIn'	: 'elastic',
		'transitionOut'	: 'elastic',
		'titlePosition'  : 'inside',
		'scrolling' : 'no',
		'width' : 1050,
		'height' : 600,
		'overlayOpacity' : '0.8',
		'overlayColor' : '#000',
		'type' : 'iframe'
		
	});
	

});
