// JavaScript Document
// Use a variable to reference the embedded SWF.
	var flashVideoPlayer;

	
	/* When the HTML page loads (via the onLoad event of the <body> tag) we have it call the initialize() function. */
	function initialize() {
		/* Check if the browser is IE. If so, flashVideoPlayer is window.videoPlayer. Otherwise, it's window.document.videoPlayer. The videoPlayer is the id assigned to <object> and <embed> tags. */
		var ie = navigator.appName.indexOf("Microsoft") != -1;
		flashVideoPlayer = (ie) ? window['videoPlayer'] : document['videoPlayer'];
	}

	/* When the user clicks the play button in the form, update the videoStatus textarea, and call the playVideo() function within the SWF, passing it the URL of the FLV file. */
	function callFlashPlayVideo(index) {
		flashVideoPlayer.playVideo(index);
	}
