var flashContent = '' +
'<object id="new_flash" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="229" width="289" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">' +
'<param value="new_flash.swf" name="movie" />' +
'<param value="high" name="quality" /><param value="#000000" name="bgcolor" />' +
'<embed src="new_flash.swf" FlashVars="filename=' + filename + '" quality="high" bgcolor="#000000" width="289" height="229" name="banner" 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
}
