function mobileCheckForVideo() {
	/*var mobile = navigator.userAgent.indexOf('Mobile')!=-1;
	//mobile = true;
	//This code relies on the fact that low quality mobile sources are defined above/first!
	if (mobile) {
		$('video').each(function(index) {
			$(this).find('source').each(function() {
				if (($('video').find('source[type="' + $(this).attr('type') + '"]')).length > 1) {
					$(this).remove();
				}
			});
		});
	}*/
}

//Sitewide setup function that should be used to set up videoJS
//so that the params can be managed in one place
function spursSetupVideoJS() {
	if(typeof VideoJS != "undefined"){
		VideoJS.setupAllWhenReady({
			controlsBelow: true, // Display control bar below video instead of in front of
			controlsHiding: true, // Hide controls when mouse is not over the video
			defaultVolume: 0.85, // Will be overridden by user's last volume if available
			flashVersion: 9, // Required flash version for fallback
			linksHiding: true // Hide download links when video is supported
		});
	}
}
spursSetupVideoJS();

