﻿// JScript File

function CheckEmbedFlashPlayer(RelativeVideoPath)
{
    var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if ( hasRightVersion ) // if we've detected an acceptable version
	{  
		if (AC_FL_RunContent == 0) 
		{
			alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
		} 
		else 
		{
			// embed the flash movie
			AC_FL_RunContent(
				'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
				'width', '271',
				'height', '120',
				'src', RelativeVideoPath, //'CAU-inner',
				'quality', 'high',
				'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
				'align', 'middle',
				'play', 'true',
				'loop', 'true',
				'scale', 'showall',
				'wmode', 'transparent',
				'devicefont', 'false',
				'id', 'CAU-inner',
				'bgcolor', '#b24c00',
				'name', 'CAU-inner',
				'menu', 'true',
				'allowScriptAccess','sameDomain',
				'movie', RelativeVideoPath, //'CAU-inner',
				'salign', ''
			    ); //end AC code
		}
	}
}
