
var requiredMajorVersion = 9;
// 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", "767",
		"height", "445",
		"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', '767',
		'height', '445',
		'src', '/resource/swf/YourStamps20080513',
		'quality', 'high',
		'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
		'align', 'middle',
		'play', 'true',
		'loop', 'true',
		'scale', 'showall',
		'wmode', 'opaque',
		'devicefont', 'false',
		'id', 'home',
		'name', 'home',
		'menu', 'false',
		'allowScriptAccess', 'sameDomain',
		'swliveconnect', 'true',
		'movie', '/resource/swf/YourStamps20080513',
		'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.jpg" border="0" alt="" width="767" height="445" /></a>');
}
