		$(document).ready(function() {
			$("#slideshow").cycle({
		        	fx: 'fade',
				speed:    1000, 
				timeout:  3000 
			});
			$("a#gallery").fancybox({
				'overlayOpacity': 0.85,
				'overlayColor'	:'#000'
			});

			$("a.iframe").fancybox({
				'overlayOpacity': 0.85,
				'overlayColor'	:'#000'
			});
			$("a#yt").click(function() {
				$.fancybox({
					'overlayOpacity': 0.85,
					'overlayColor'	:'#000',
					'padding'	: 0,
					'autoScale'	: false,
					'transitionIn'	: 'none',
					'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'
					}
				});
				return false;
 			});
		});


