$(document).ready(function() {
	var w = $('body').width();
	var h = w/2.7586;
	jwplayer("splashPlayer").setup({
		skin: "/wp/wp-content/themes/cabral/js/skins/glow/glow.zip",
		autostart: true,
		icons: false,
		image: "/wp/wp-content/themes/cabral/images/splash-video-poster.jpg",
		stretching: 'uniform',
		width: w,
		height: h,
		levels: [
			{ file: "/wp/wp-content/uploads/vids/Cabral-Director-Reel.mp4" },
			{ file: "/wp/wp-content/uploads/vids/Cabral-Director-Reel.ogv" },
			{ file: "/wp/wp-content/uploads/vids/Cabral-Director-Reel.webm" }
		],
		modes: [
			{ type: "html5" },
			{ type: "flash", src: "/wp/wp-content/themes/cabral/js/player.swf" }
		]
	}).onComplete(function() {
		window.location = $("#splashHeaderText a").attr('href');
	});	
});
