//<![CDATA[

var video_list = new Array();
		   
function displayVideo (format, audio_enabled, filename, archive, float_pos, caption, width, height) {
	var video_id = "format"+video_list.length;
	video_list.push(video_id);
	var w=336;
	if (typeof width != "undefined")
		w=width;
	var h=230;
	if (typeof height != "undefined")
		h=height;
	if (1==1) {
		var cmd = '\
			<div id="'+video_id+'" style="position:relative; float:'+float_pos+'; \
			width:'+(w)+'px; padding:5px;margin:5px;border:3px ridge \
				rgb(0,128,0); z-index:1;"> \
				<div id="mpg_player" style="position:static;"> \
					<applet name="mediaframe" code="mediaframe.mpeg1.MPEG1.class" \
					archive="'+archive+'" width="'+(w)+'" height="'+(h)+'" \
					MAYSCRIPT> \
						<param name="id" value="ID: '+filename+'" /> \
						<param name="video_license"		value="false" /> \
						<param name="allow_save"		value="false" /> \
						<param name="pre_buffer"  		value="25%" /> \
						<param name="audio"	  		value="'+(audio_enabled?"true":"false")+'" /> \
						<param name="default_media"		value="'+filename+'" /> \
						<param name="startup_volume"	value="100%" /> \
						<param name="loop"	 		value="true" /> \
						<param name="controls"	  		value="true" /> \
						<param name="playback"	  		value="AUTO_START" /> \
						<param name="feedback_agent"	value="true" /> \
						<param name="cache"	 		value="true" /> \
						<param name="target" 			value="_blank" /> \
						<hr /> \
						MediaFrame is a plug-in free media player \
						for high quality video and \
						audio online.  \
						<hr /> \
					</applet> \
					<div id="player_control" style="position:static;font-size:0.7em;border:2px groove red;"> \
						<a href="javascript:document.mediaframe.playerplay()">Play</a> | \
						<a href="javascript:document.mediaframe.playerpause()">Pause</a>  | \
						<a  href = "javascript:document.mediaframe.playerrewind()">Stop</a> | \
						<a href="javascript:document.mediaframe.playersetmute(true)">Mute</a> | \
						<a  href="javascript:document.mediaframe.playersetmute(false)">Un-mute</a> \
					</div> <!-- player_control --> \
				</div> <!-- mpg_player --> \
				<div style="position:static; padding-top:3px; padding-left:1px; width:98%; font-weight:normal; font-size:0.8em; font-style:oblique; color:rgb(0,64,64);"> '+caption+' </div> \
			</div> <!-- video -->';
			document.writeln (cmd);
	} // if format=="MPG"
	/*
	<applet name="mediaframe" code="mediaframe.mpeg4.MPEG4.class" archive="mediaframe-mpeg4.jar,mediaframe-aac.jar" width="384" height="224" mayscript="true">

		<param name="id"				value="ID: subtitled demo">
		<param name="default_media"		value="video/sample_video.mp4">
		<param name="pre_buffer"  		value="28%">
		<param name="playback"			value="auto_start">
		<param name="loop"				value="false">
		<param name="control_location"	value="control_set">
		<param name="pre_screen"		value="posters/pre.gif">
		<param name="pre_screen_loop"	value="false">
		<param name="post_screen"		value="posters/post.gif">

		<param name="post_screen_loop"	value="false">
		<param name="smooth_video"		value="true">
		<param name="video_license"		value="false">
		<param name="save_script"		value="save_scripts/movie_save.php">
		<param name="allow_save"		value="false">
		<HR>
		MediaFrame&trade; is a plug-in free media player for high quality video and 
		audio online. Java is required to view this demo.
		<HR>

	</applet>							
	
	*/
}
/*
function displayVideo2 (format, filename, archive, float_pos, caption, width, height) {
	var is_msie = (navigator.appName.toUpperCase().indexOf("MICROSOFT")>=0 ? true : false);
		var video_id = format+video_list.length;
		video_list.push(video_id);
		var w;
		if (typeof width != "undefined")
			w=width;
		else
			w=336;
		var h;
		if (typeof height != "undefined")
			h=height;
		else
			h=230;
		if (format=="MPG") {
			var cmd = '\
				<div id="'+video_id+'" style="float:'+float_pos+'; width:'+(w)+'; \n \ padding:5px;margin:5px;border:3px ridge \n \
					rgb(0,128,0); z-index:1;"> \n \
					<div style="position:static;"> ';
						if (is_msie) {
							cmd = cmd+'\n<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" \n \
								codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0-windows-i586.cab" \n \
								height="'+(h)+'" width="'+(w)+'" > \n ';
								if (archive && archive.length>1)
									cmd = cmd+'<param name="archive" value="'+archive+'" />';
						}
						else {
							cmd = cmd+'\n<embed code="mediaframe.mpeg1.MPEG1.class" \n \
								type="application/x-java-applet;version=1.3.0" \n ';
								if (archive && archive.length>1)
									cmd = cmd+'archive="'+archive+'" \n \
								height="'+(h)+'" width="'+(w)+'" >\n';
						}
						cmd = cmd+'<param name="id" value="ID: '+filename+'" /> \n \
							<param name="video_license"		value="false" /> \n \
							<param name="allow_save"		value="false" /> \n \
							<param name="pre_buffer" 	value="25%" /> \n \
							<param name="audio"	  value="true" /> \n \
							<param name="default_media"		value="'+filename+'" /> \n \
							<param name="startup_volume"	value="100%" /> \n \
							<param name="loop"	 		value="true" /> \n \
							<param name="controls"	  		value="true" /> \n \
							<param name="playback"	  		value="AUTO_START" /> \n \
							<param name="feedback_agent"	value="true" /> \n \
							<param name="cache"	 value="true" /> \n \
							<param name="target" value="_blank" /> \n';
						if (is_msie)
							cmd = cmd+'</object> \n ';
						else
							cmd = cmd+'</embed>\n';
					cmd = cmd + '</div> <!-- mpg_player --> \n \
					<div style="position:static; padding-top:3px; padding-left:1px; width:98%; font-weight:normal; font-size:0.8em; font-style:oblique; color:rgb(0,64,64);"> '+caption+' </div> \n \
				</div> <!-- video -->';
				alert (cmd);
				document.writeln (cmd);
		} // if format=="MPG"

}
*/
//]]>
