		$(document).ready(function() {
			$(".fancyflash").click(function() {
				$.fancybox({
					'padding'			: 0,
					'autoScale'			: false,
					'transitionIn'		: 'none',
					'transitionOut'		: 'none',
					'type'				: 'swf',
					'href'				: this.href,
					'swf'				: {'allowfullscreen':'true', 'wmode':'transparent'}
				});
				return false;
			});
			$(".fancyyoutube").click(function() {
				$.fancybox({
					'padding'			: 0,
					'autoScale'			: false,
					'transitionIn'		: 'none',
					'transitionOut'		: 'none',
					'href'				: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
					'type'				: 'swf',
					'swf'				: {'allowfullscreen':'true', 'wmode':'transparent'}
				});
				return false;
			});
			$(".fancyvideo").click(function() {
				$.fancybox({
					'padding'			: 0,
					'autoScale'			: false,
					'transitionIn'		: 'none',
					'transitionOut'		: 'none',
					'type'				: 'swf',
					'href'				: this.href,
					'swf'				: {'allowfullscreen':'true', 'wmode':'transparent'}
				});
				return false;
			});
			$(".fancyaudio").click(function() {
				$.fancybox({
					'padding'			: 0,
					'autoScale'			: false,
					'transitionIn'		: 'none',
					'transitionOut'		: 'none',
					'width'				: 200,
					'height'			: 20,
					'type'				: 'swf',
					'href'				: this.href,
					'swf'				: {'allowfullscreen':'true', 'wmode':'transparent'}
				});
				return false;
			});
		});

