//
// output a flash FLV player box
//

function makeVideoPlayer(videoPath,imagePath,width,height,autoPlay)
{
	var o = '';
	o += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="video" align="middle">';
	o += '<param name="allowScriptAccess" value="sameDomain" />';
	o += '<param name="movie" value="/video.swf?contentPath='+videoPath+'&imagePath='+imagePath+'&autoPlay='+autoPlay+'" />';
	o += '<param name="quality" value="high" />';
	o += '<param name="bgcolor" value="#ffffff" />';
	o += '<param name="wmode" value="transparent" />';
	o += '<embed src="/video.swf?contentPath='+videoPath+'&imagePath='+imagePath+'&autoPlay='+autoPlay+'" wmode="transparent" quality="high" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="video" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	o += '</object>';
	document.write(o)
	
}


function videoPaused(playheadTime)
{
	if(document.videoForm){
		document.videoForm.capture.disabled = false
		document.videoForm.time.value = playheadTime
	}
}




//
// output a flash FLV player box
//

function makeVideoPlayer9(videoPath,imagePath,width,height,autoPlay)
{

	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', width,
			'height', height,
			'src', '../video9',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', '../video9',
			'bgcolor', '#ffffff',
			'name', '../video9',
			'menu', 'true',
			'allowFullScreen', 'true',
			'allowScriptAccess','sameDomain',
			'flashVars','contentPath='+videoPath+'&imagePath='+imagePath+'&autoPlay='+autoPlay,
			'movie', '../video9',
			'salign', ''
			); //end AC code
	}
	
}
