$(document).ready(function() {

	/*
if($.flash.available) {
		$('#intro-container').flash({
			swf: 'files/eye.swf',
			width: '100%',
			height: 448,
			wmode: 'transparent'
		});
				
		$('#intro-container').css('background', 'none');
	}
*/

	swfobject.embedSWF("files/eye.swf", "info-container-wrapper", "100%", "448", "9.0.0", "", {}, { wmode: 'transparent' });

	var fpVersion = swfobject.getFlashPlayerVersion();
	if(fpVersion.major > 0) {
		$('#intro-container').css('background', 'none');
	}
	
	$(".video").click(function() {
		$.fancybox({
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'fade',
			'transitionOut'	: 'fade',
			'title'			: this.title,
			'width'			: 640,
			'height'		: 385,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: {
			'wmode'				: 'transparent',
			'allowfullscreen'	: 'true'
			}
		});

		return false;
	});
			
});
