$(document).ready(function() {
		
		/* ************************************* CUSTOM ********************************************* */

		/* galerija */
		$("a[rel=gallery]").fancybox({
			'titleShow'			: true,
			'titlePosition'		: 'inside',
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition' 	: 'over',
			'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over">' +  (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title + '</span>';
			}
		});


		/* ************************************* CUSTOM ********************************************* */

		/* youtube video */
		$(".pop_up_video").fancybox({
			'width'				: 655,
			'height'			: 530,
			'titleShow'			: false,
			'overlayColor'		: '000000',
			'transitionOut'		: 'fade',
			'transitionIn'		: 'fade',
			'type'				: 'iframe'

		});

		/* postavite_pitanje_savjetniku */
		$(".pop_up_zahtjev").fancybox({
			'width'				: 550,
			'height'			: 1000,
			'titleShow'			: false,
			'overlayColor'		: '000000',
			'transitionOut'		: 'fade',
			'transitionIn'		: 'fade',
			'type'				: 'iframe'

		});


		/* kontakt */
		$(".kontakt").fancybox({
			'width'				: 650,
			'height'			: 500,
			'titleShow'			: false,
			'overlayColor'		: '000000',
			'transitionOut'		: 'fade',
			'transitionIn'		: 'fade',
			'type'				: 'iframe'

		});



		/* slika / video / itd.*/
		$("a.pop_up").fancybox({
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
		});


		/* galerija */
		$("a[rel=foto_galerija]").fancybox({
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'titlePosition' 	: 'over',
			'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
				return '<span id="fancybox-title-over">' +  (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title + '</span>';
			}
		});
		

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



});
