function detectFlash( major, minor, revision, movie, width, height, flashID, bgColor, menu, redirect, baseURL, curTime, curDate, flashVars )
{
	// -----------------------------------------------------------------------------
	// Globals
	// Major version of Flash required
	var requiredMajorVersion = major;
	// Minor version of Flash required
	var requiredMinorVersion = minor;
	// Minor version of Flash required
	var requiredRevision = revision;
	// -----------------------------------------------------------------------------
	// -->
	
	// Version check based upon the values entered above in "Globals"
	var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	
	// Check to see if the version meets the requirements for playback
	if (hasReqestedVersion) {
		// if we've detected an acceptable version
		// embed the Flash Content SWF when all tests are passed
		AC_FL_RunContent(
					"baseurl", baseURL,
					"curdate", curDate,
					"curtime", curTime,
					"flashvars", flashVars,
					"src", movie,
					"width", width,
					"height", height,
					"id", flashID,
					"quality", "high",
					"bgcolor", bgColor,
					"name", flashID,
					"menu", menu,
					"allowScriptAccess","sameDomain",
					"wmode","window",
					"type", "application/x-shockwave-flash",
					"codebase", "http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab",
					"pluginspage", "http://www.adobe.com/go/getflashplayer"
		);
	} else {  // flash is too old or we can't detect the plugin
		location.replace( 'upgrade.html' );
	}
}