// JavaScript Document


/*
example usage

<div id="containerID"></div>
<script language="javascript">
	embedVideo('containerID', 'path/to/file/from/FlowPlayerLight.swf', intMovieWidth, intMovieHeight, BoolAutoPlay, 'path/to/splash/image/from/webpage');
</script>



*/






function embedVideo(id, videoFile, iWidth, iHeight, boolAutoplay, splashImg) {
	
	new flashembed(id, { 
		src: "../assets/video/FlowPlayerLight.swf", width: iWidth, height: iHeight, wmode: 'transparent' }, {
			config: {
				autoPlay: boolAutoplay,
				autoRewind: true,
				showStopButton: true, 
				showScrubber: true, 
				showVolumeSlider: false,
				showMuteVolumeButton: false, 
				showFullScreenButton: false, 
				showMenu: false, 
				controlsOverVideo: 'ease',
				controlBarBackgroundColor: -1,
				backgroundColor: -1,
				controlBarGloss: 'high',
				bufferLength:55,
				timeDisplayFontColor:0x1c6c91,
				startingBufferLength:25,
				bufferingAnimationColor:0x1c6c91,
				initialScale: 'scale',
				videoFile: videoFile,
				splashImageFile: splashImg,
				loop:false
			}
		}
	);
}
