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

function headerFlash(pFlashSource){

	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', '560',
				'height', '280',
				'src', 'flash/'+pFlashSource,
				'quality', 'high',
				'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
				'align', 'middle',
				'play', 'true',
				'loop', 'true',
				'scale', 'showall',
				'wmode', 'transparent',
				'devicefont', 'false',
				'id', 'header',
				'bgcolor', '#ffffff',
				'name', 'header',
				'menu', 'false',
				'allowScriptAccess','sameDomain',
				'allowFullScreen','false',
				'movie', 'flash/'+pFlashSource,
				'salign', ''
				
				); //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
		}
	}
}

function headerFlash2(pFlashSource, pXmlFileName){

	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', '560',
				'height', '280',
				'src', 'flash/'+pFlashSource,
				'quality', 'high',
				'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
				'align', 'middle',
				'play', 'true',
				'loop', 'true',
				'scale', 'showall',
				'wmode', 'transparent',
				'devicefont', 'false',
				'id', 'header',
				'bgcolor', '#ffffff',
				'name', 'header',
				'menu', 'false',
				'allowScriptAccess','sameDomain',
				'allowFullScreen','false',
				'movie', 'flash/'+pFlashSource,
				'salign', '',
				'flashvars','xmlfilename='+pXmlFileName
				); //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
		}
	}
}