$(document).ready(function() {
    $('.slideshow').cycle({
		next: '#next1',
		fx: 'none' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
	$("a.grouped_elements").fancybox({
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'speedIn'		: 100,
			'speedOut'		: 100, 
			'overlayShow'	: true 
	    });
	$("#mpop").fancybox();
	$("#vid").click(function() {
		$.fancybox({
			'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;
	});

	$("#eclipseside").click(function() {
		$.fancybox({
			'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;
	});

	$("#vidside").click(function() {
		$.fancybox({
			'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;
	});
	$("#vidsc").click(function() {
		$.fancybox({
			'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;
	});

	$("#clickit").click(function() {
	$("#notes").toggle();
	});
});

