var path;

function Set_Path(passed_path)
{
	path = passed_path;
}

function Write_Movie(movie_file, width, height, notes)
{
	var str = '<center>'
+		'<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="' + width + '" height="' + height + '" >'
+			'<param name="src" value="' + path + '/QTPlaceholder.mov" />'
+			'<param name="qtsrc" value="' + movie_file + '" />'
+			'<param name="controller" value="true" />'
+			'<param name="autoplay" value="false" />'
+			'<param name="scale" value="tofit" />'
+			'<param name="volume" value="100" />'
+			'<param name="loop" value="false" />'
+			'<embed pluginspage="http://www.apple.com/quicktime/download/"'
+				' type="video/quicktime"'
+				' class="mov"'
+				' width="' + width + '" height="' + height + '"'
+				' src="' + path + '/QTPlaceholder.mov"'
+				' qtsrc="' + movie_file + '"'
+				' controller="true"'
+				' autoplay="false"'
+				' scale="tofit"'
+				' volume="100"'
+				' loop="false"> '
+			'</embed> '
+		'</object>'
+	'</center>';
	document.write(str);
	if(notes) {
		document.write(	'<p class="center">'
+							'<small>Having trouble playing the video clip?  It requires QuickTime v7.  Choices; <b>get an Apple Mac</b>, or<br>'
+							'<a href="http://www.apple.com/quicktime/download/standalone.html" target="_blank">download QuickTime</a>.  Just click “Free Download Now”.</small>'
+						'</p>');
	}
}
