$(document).ready(function() {
  			
  			$("a[rel=lightbox]").fancybox({
  				'transitionIn'		: 'fade',
  				'transitionOut'		: 'fade',
  				'titlePosition' 	: 'over',
  				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
  					return '<span id="fancybox-title-over">Obrázek ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
  				}
  			});
  
});
