// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 8;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 0;
// -----------------------------------------------------------------------------

if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
	alert("This page requires AC_RunActiveContent.js.");
} else {
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version
		// embed the flash movie
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0',
			'width', '934',
			'height', '196',
			//templateSFPath is defined in the Home Template
			'src', templateSFPath + '/flash/header_35743',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'header',
			'bgcolor', '#ffffff',
			'name', 'header',
			'menu', 'false',
			'allowScriptAccess','sameDomain',
			'allowFullScreen','false',
			//templateSFPath is defined in the Home Template
			'movie', templateSFPath + '/flash/header_35743',
			'salign', '',
			// homeHeadImgList is defined in the Home Template
			'FlashVars', 'FlashVarImgList=' + homeHeadImgList + '&FlashVarImgDir=' + homeHeadImgDir
			); //end AC code
	} else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<a href="/" class="header-link"><h1>'+windowTitleStr+'</h1></a><p>To view this Flash content, please download the latest <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW">Flash Player</a></p>';
		document.write(alternateContent);  // insert non-flash content
	}
}