jQuery(document).ready(function() {
  	jQuery("a[rel=landing_ths]").fancybox({
  		'transitionIn'		: 'fade',
  		'transitionOut'		: 'fade',
  		'titlePosition' 	: 'over',
  		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
  			return '<span id="fancybox-title-over">Slika ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
  		}
  	});
  });
  jQuery(document).ready(function() {
  	jQuery("a[rel=nebeska-1x2]").fancybox({
  		'transitionIn'		: 'fade',
  		'transitionOut'		: 'fade',
  		'titlePosition' 	: 'over',
  		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
  			return '<span id="fancybox-title-over">Slika ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
  		}
  	});
  });
  jQuery(document).ready(function() {
  	jQuery("a[rel=nebeska-2x2]").fancybox({
  		'transitionIn'		: 'fade',
  		'transitionOut'		: 'fade',
  		'titlePosition' 	: 'over',
  		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
  			return '<span id="fancybox-title-over">Slika ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
  		}
  	});
  });
  jQuery(document).ready(function() {
  	jQuery("a[rel=nebeska-2x3]").fancybox({
  		'transitionIn'		: 'fade',
  		'transitionOut'		: 'fade',
  		'titlePosition' 	: 'over',
  		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
  			return '<span id="fancybox-title-over">Slika ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
  		}
  	});
  });
  jQuery(document).ready(function() {
  	jQuery("a[rel=nebeska-3x4]").fancybox({
  		'transitionIn'		: 'fade',
  		'transitionOut'		: 'fade',
  		'titlePosition' 	: 'over',
  		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
  			return '<span id="fancybox-title-over">Slika ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
  		}
  	});
  });
  jQuery(document).ready(function() {
  	jQuery("a[rel=nebeska-4x4]").fancybox({
  		'transitionIn'		: 'fade',
  		'transitionOut'		: 'fade',
  		'titlePosition' 	: 'over',
  		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
  			return '<span id="fancybox-title-over">Slika ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
  		}
  	});
  });
  jQuery(document).ready(function() {
  	jQuery("a[rel=nebeska-4x6]").fancybox({
  		'transitionIn'		: 'fade',
  		'transitionOut'		: 'fade',
  		'titlePosition' 	: 'over',
  		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
  			return '<span id="fancybox-title-over">Slika ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
  		}
  	});
  });
  jQuery(document).ready(function() {
  	jQuery("a[rel=nebeska-1x1]").fancybox({
  		'transitionIn'		: 'fade',
  		'transitionOut'		: 'fade',
  		'titlePosition' 	: 'over',
  		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
  			return '<span id="fancybox-title-over">Slika ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
  		}
  	});
  });
  jQuery(document).ready(function() {
  	jQuery("a[rel=nebeska-2x1]").fancybox({
  		'transitionIn'		: 'fade',
  		'transitionOut'		: 'fade',
  		'titlePosition' 	: 'over',
  		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
  			return '<span id="fancybox-title-over">Slika ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
  		}
  	});
  });
  jQuery(document).ready(function() {
  	jQuery("a[rel=nebeska-3x1]").fancybox({
  		'transitionIn'		: 'fade',
  		'transitionOut'		: 'fade',
  		'titlePosition' 	: 'over',
  		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
  			return '<span id="fancybox-title-over">Slika ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
  		}
  	});
  });
  jQuery(document).ready(function() {
  	jQuery("a[rel=nebeska-4x1]").fancybox({
  		'transitionIn'		: 'fade',
  		'transitionOut'		: 'fade',
  		'titlePosition' 	: 'over',
  		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
  			return '<span id="fancybox-title-over">Slika ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
  		}
  	});
  });
  jQuery(document).ready(function() {
  	jQuery("a#single").fancybox({
  		'transitionIn'		: 'fade',
  		'transitionOut'		: 'fade',
  		'titlePosition' 	: 'over',
  		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
  			return '<span id="fancybox-title-over">' + (title.length ? ' &nbsp; ' + title : '') + '</span>';
  		}
  	});
  });
  jQuery(document).ready(function() {
  	jQuery("a[rel=reference]").fancybox({
  		'transitionIn'		: 'fade',
  		'transitionOut'		: 'fade',
  		'titlePosition' 	: 'over',
  		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
  			return '<span id="fancybox-title-over">Slika ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
  		}
  	});
  });
  jQuery(document).ready(function() {
  	jQuery("a[rel=nebeska-motivi]").fancybox({
  		'transitionIn'		: 'fade',
  		'transitionOut'		: 'fade',
  		'titlePosition' 	: 'over',
  		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
  			return '<span id="fancybox-title-over">Slika ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
  		}
  	});
  });
