		$(document).ready(function() {
			
			$("a.youtube").click(function() {
	$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'		: 'elastic',
			'transitionOut'		: 'none',
			'title'			: this.title,
			'width'			: 680,
			'height'		: 495,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			'wmode'			: 'transparent',
			'allowfullscreen'	: 'true',
			'showCloseButton'	: true
			}
		});

	return false;
});

			/*
			*   Examples - images
			*/

			

			$("a.fncy-image").fancybox({
				'overlayShow'		: true,
				'showCloseButton'	: true,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'none',
				'overlayOpacity'	: 0.9,
				'titlePosition' 	: 'over',
				'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
					return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
				}


			});
			
			$("a.register").fancybox({
				'overlayShow'		: true,
				'showCloseButton'	: true,
				'width'			: 220,
				'height'		: 290,
				'transitionIn'		: 'elastic',
				'transitionOut'		: 'none',
				'overlayOpacity'	: 0.9,
				'type'			: 'iframe'

			});
			
			$.fancybox.resize();


			$("a#title-inside").fancybox({
				'titlePosition'		: 'outside',
				'overlayColor'		: '#000',
				'overlayOpacity'	: 0.9,
				'showCloseButton'	: true

			});
			

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

	
		});

