var inline_audio_opts = {
	clip: {
		autoPlay: false,
		autoBuffering: false,
	},
	plugins: {
		controls: {
			fullscreen: false,
			autoHide: false,
			backgroundColor: 'transparent',
			backgroundGradient: 'none',
			tooltipColor: 'rgba(255, 255, 255, 0.7)',
			tooltipTextColor: '#000000'
		},
	}
};
var inline_video_opts = {
	clip: {
		autoPlay: true,
		autoBuffering: false,
	},
	screen: {
		bottom: 0
	},
	canvas: {
		backgroundColor: 'rgba(0,0,0,0)',
		backgroundGradient: 'none'
	},
	plugins: {
		controls: {
			fullscreen: false,
			autoHide: false,
			backgroundColor: 'transparent',
			backgroundGradient: 'none',
			tooltipColor: 'rgba(255, 255, 255, 0.7)',
			tooltipTextColor: '#000000'
		},
	}
};

jQuery(document).ready(function(){
	jQuery.fn.flowplayer = function(opts) {
		jQuery(this).each(function(){
			flowplayer(jQuery(this)[0], window.__flowplayer_swf, opts ? opts : window.__flowplayer_opts);
		});
	};
	
	jQuery('.start-video').click(function(){
		jQuery(this).parent().flowplayer(inline_video_opts);
	});
});

