// Version check basedupon 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(
				"src", "assets/templates/jbmicroscopes/flash/video",
				"width", "475",
				"height", "235",
				"id", "video",
				"quality", "high",
				"autostart", "true",
				"showcontrols", "false",
				"showstatusbar", "true",
				"showdiplay", "false",
				"autorewind", "true",
				"allowScriptAccess","sameDomain",
				"bgcolor", "#FFCE58",
				"name", "video",
				"wmode","transparent",
				"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
	var alternateContent = '<font face="Arial, Helvetica, sans-serif" color="#FFFFFF" size="2">Your Flash Plugin is either out of date or can NOT be detected.<br>'
	+ 'This content requires the most recent Adobe Flash Player. '
	+ '<a href=http://www.adobe.com/go/getflash/ style="color:#FFFFFF;">Get Flash</a></font>';
	document.write(alternateContent);  // insert non-flash content
}