// Settings for Fancybox image gallery script

$(document).ready(function() {

	$("a.popup").fancybox({     			// Target links with the class .popup  (load images inside fancybox)
		'padding'			: 25,			// Padding (pixels) outside loaded content
		'autoScale'			: false,		// Does fancybox autoscale to fit viewport?
		'titlePosition'		: 'over',		// Title position in relation to fancybox content
		'transitionIn'		: 'elastic',	// Transition style when opening fancybox
		'transitionOut'		: 'elastic',	// Transition style when closing fancybox
		'speedIn'			: '1000',		// Transition time (milliseconds) when opening fancybox 
		'speedOut'			: '400'			// Transition time (milliseconds) when closing fancybox 
	});

	$("a.popup-video").fancybox({			// Target links with the class .popup-video (load an iframe containing jwplayer inside fancybox)
		'width' 			: 700,			// Width (pixels)
		'height' 			: 440,			// Height (pixels)
		'scrolling' 		: 'no',			// Disables scrollbars -- yes / no / auto
		'type' 				: 'iframe',  	// Video is loaded inside an inline frame
		'padding'			: 12,			// Padding (pixels) outside loaded content
		'autoScale'			: false,		// Does fancybox autoscale to fit viewport?
		'titlePosition'		: 'under',		// Title position in relation to fancybox content
		'transitionIn'		: 'elastic',	// Transition style when opening fancybox
		'transitionOut'		: 'elastic',	// Transition style when closing fancybox
		'speedIn'			: '1000',		// Transition time (milliseconds) when opening fancybox 
		'speedOut'			: '400'			// Transition time (milliseconds) when closing fancybox 
	});
	
	$("a.popup-contact").fancybox({			// Target links with the class .popup-contact (load an iframe containing simple contact form inside fancybox)
		'width' 			: 350,			// Width (pixels)
		'height' 			: 400,			// Height (pixels)
		'scrolling' 		: 'no',			// Disables scrollbars -- yes / no / auto
		'type' 				: 'iframe',  	// Video is loaded inside an inline frame
		'padding'			: 0,			// Padding (pixels) outside loaded content
		'autoScale'			: false,		// Does fancybox autoscale to fit viewport?
		'titlePosition'		: 'under',		// Title position in relation to fancybox content
		'transitionIn'		: 'none',		// Transition style when opening fancybox
		'transitionOut'		: 'none'		// Transition style when closing fancybox
	});
});
