
var requiredMajorVersion = 8;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Minor version of Flash required
var requiredRevision = 0;

var hasProductInstall = DetectFlashVer(6, 0, 65);

var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

if ( hasProductInstall && !hasRightVersion ) {
	// MMdoctitle is the stored document.title value used by the installation process to close the window that started the process
	// This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed
	// DO NOT MODIFY THE FOLLOWING FOUR LINES
	// Location visited after installation is complete if installation is required
	var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
	var MMredirectURL = window.location;
	document.title = document.title.slice(0, 47) + " - Flash Player Installation";
	var MMdoctitle = document.title;

	AC_FL_RunContent(
		"src", "/resource/swf/playerProductInstall",
		"FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"",
		"width", "720",
		"height", "228",
		"align", "middle",
		"id", "playerProductInstall",
		"quality", "high",
		"wmode", "opaque",
		"name", "playerProductInstall",
		"allowScriptAccess","sameDomain",
		'menu', 'false',
		"type", "application/x-shockwave-flash",
		"pluginspage", "http://www.adobe.com/go/getflashplayer"
		); //end AC code
		
} else 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=6,65,0,0',
		'width', '720',
		'height', '228',
		'src', '/resource/swf/homepage_may_07',
		'quality', 'high',
		'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
		'align', 'middle',
		'play', 'true',
		'loop', 'true',
		'scale', 'showall',
		'wmode', 'opaque',
		'devicefont', 'false',
		'id', 'homepage',
		'name', 'home',
		'menu', 'homepage',
		'allowScriptAccess', 'sameDomain',
		'swliveconnect', 'true', 
		'movie', '/resource/swf/homepage_may_07',
		'salign', ''
		); //end AC code
} else {  // flash is too old or we can't detect the plugin
	document.write('<a href="/support/requirements"><img src="/resource/images/home_flash.jpg" alt="" border="0"></a>');
}
