/***
 * Common setting for flowplayer
 **/
var flowplayer_tool = '../tools/flowplayer/flowplayer-3.2.2.swf';

// Embeded call to the flowplayer with common setting
// - autoplay disabled
// - autobuffering enabled (to display the first image of the video)
// - video size preserved
function flowplay( playerid, video_width, video_height ) {
	flowplayer( playerid,
		{	src: flowplayer_tool,
			width: video_width,
			height: video_height,
			wmode: 'opaque'
		},
		{	clip: {	autoBuffering: true,
					autoPlay: false,
					scaling: 'fit'
				}
		}
	);
}

