// image fade slideshows
$(document).ready(function() {
    $('#slideshow ul').cycle({
		fx: 'fade',
		timeout: '4500',  // milliseconds between slide transitions (0 to disable auto advance)
		speed: '1500',  // speed of the transition (any valid fx speed value)
		random: 1
	});
});



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

	return false;
});
});
