jQuery(document).ready(function() {

	/*
	*   Examples - images
	*/

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

	/*
	*   Examples - various
	*/
	

		
			
	$(".portfolio").fancybox({
		'width'				: '60%',
		'height'			: '90%',
        'autoScale'     	: false,
        'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'type'				: 'iframe',
		'easingIn'      : 'easeOutBack',
		'easingOut'     : 'easeInBack'
	});
	$(".pricing").fancybox({
		'width'				: '100%',
		'height'			: '100%',
        'autoScale'     	: true,
        'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'type'				: 'iframe',
		'easingIn'      : 'easeOutBack',
		'easingOut'     : 'easeInBack'
	});
	$(".us2").fancybox({
		'width'				: '60%',
		'height'			: '90%',
        'autoScale'     	: false,
        'transitionIn'		: 'fade',
		'transitionOut'		: 'fade',
		'type'				: 'iframe',
		'easingIn'      : 'easeOutBack',
		'easingOut'     : 'easeInBack'
	});
	$(".us1").fancybox({
		'width'				: '90%',
		'height'			: '90%',
        'autoScale'     	: true,
        'transitionIn'		: 'elastic',
		'transitionOut'		: 'elastic',
		'type'				: 'iframe',
		'easingIn'      : 'easeOutBack',
		'easingOut'     : 'easeInBack'
	});

	/*
	*   Examples - manual call
	*/

	$(".us").click(function() {
		$.fancybox({
			//'orig'			: $(this),
			'padding'		: 0,
			'href'			: 'http://www.shannonmoorephotography.com/images/aboutus.jpg',
			
			'transitionIn'	: 'elastic',
			'transitionOut'	: 'elastic',
			'easingIn'      : 'easeOutBack',
		'easingOut'     : 'easeInBack'
		});
    });
	$(".portfolio1").click(function() {
		$.fancybox({
			//'orig'			: $(this),
			'padding'		: 0,
			'href'			: 'http://www.shannonmoorephotography.com/weddings.html',
			
			'transitionIn'	: 'elastic',
			'transitionOut'	: 'elastic'
		});
    });
    


});

