jQuery(document).ready(function() {
//override default jquery functionality, cause incompatibility problems with other libraries on the website...

$(".youfancy").click(function() {
	$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'autoDimensions': false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'title'			: this.title,
			'width'		: 489,
			'height'		: 388,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			   	 'wmode'		: 'opaque',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});
});
