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

 $("a[rel=photos_photo]").fancybox({
	'transitionIn'		: 'none',
	'centerOnScroll'	:	'true',
	'transitionOut'		: 'none',
	'titlePosition' 	: 'inside',
//	'titleFormat'     : function(title, currentArray, currentIndex, currentOpts) { return '<span id="fancybox-title-inside">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"telecharger-'+ title +'.html\">T&eacute;l&eacute;charger la photo</a></span>'; }
	'titleFormat'     : function(title, currentArray, currentIndex, currentOpts) { return '<script type="text/javascript" src="/js/jquery.rightClick.js"></script><span id="fancybox-title-inside">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>'; }
 });

 $("#click_dedicace").fancybox({
	'titlePosition'		: 'inside',
	'transitionIn'		: 'none',
	'transitionOut'		: 'none'
 });

});

function fancybox_play()
{
 $.fancybox.next;
 setTimeout(function() { fancybox_play(); },2000);  
}
 
