$(document).ready(function() {
			/*
			*   Examples - images
			*/
			
			$("#book_gallery a").fancybox({
				'autoScale'			: true,
				'cyclic'			: true,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'image',
				'autoDimensions'	: true,
				'titleShow'			: true,
				'titlePosition'		: 'over',
				'overlayOpacity'	: 0.5,
				'overlayColor'		: '#ffffff',
				'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Slika ' +  (currentIndex + 1) + ' / ' + currentArray.length + '</span>';
				}
			});
			
			$("#downloads_gallery a").fancybox({
				'autoScale'			: true,
				'cyclic'			: true,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'image',
				'autoDimensions'	: true,
				'titleShow'			: true,
				'titlePosition'		: 'over',
				'overlayOpacity'	: 0.5,
				'overlayColor'		: '#ffffff'
			});
			
			$("#novost_gallery a").fancybox({
				'autoScale'			: true,
				'cyclic'			: true,
				'transitionIn'		: 'fade',
				'transitionOut'		: 'fade',
				'type'				: 'image',
				'autoDimensions'	: true,
				'titleShow'			: false,
				'overlayOpacity'	: 0.5,
				'overlayColor'		: '#ffffff'
			});
			
			$(".kosarica_open").fancybox({
				'width'				: 700,
				'height'			: 430,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'autoDimensions'	: false,
				'titlePosition'		: 'over',
				'overlayOpacity'	: 0.5,
				'overlayColor'		: '#ffffff'
			});
			
			$(".popup_open").fancybox({
				'width'				: 700,
				'height'			: 440,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'type'				: 'iframe',
				'autoDimensions'	: false,
				'titlePosition'		: 'over',
				'overlayOpacity'	: 0.5,
				'overlayColor'		: '#ffffff'
			});
			
			});
