var flashContent = '' +
'<object id="num2" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" height="225" width="336" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">' +
'<param value="sameDomain" name="allowScriptAccess" />' +
'<param value="num2.swf" name="movie" />' +
'<param value="high" name="quality" />' +
'<param value="#ffffff" name="bgcolor" />' +
'<embed src="num2.swf" FlashVars="filename=' + filename + '" quality="high" wmode="transparent" bgcolor="#ffffff" width="336" height="225" name="num2" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />' +
'</object>';

var alternateContent = '<font color="#FFFFFF">This content requires the Adobe Flash Player. ' +
'<a href=http://www.adobe.com/go/getflash/>Get Flash</a></font>';

// Version check based upon the values entered in "Globals"
var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
			
// Check to see if the version meets the requirements for playback
if (hasRequestedVersion) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
				
	document.write(flashContent);
				
} else {  // flash is too old or we can't detect the plugin
	
	document.write(alternateContent);  // insert non-flash content
}

