var flashContent = '' +

'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="898" height="152">'+
'<param name="allowScriptAccess" value="sameDomain" />' +
'<param name="movie" value="flash/banner.swf" />' +
'<param name="quality" value="high" />' +
'<param name="wmode" value="transparent" />' +
'<param name="FlashVars" value="filename=' + filename + '" />' +
'<param name="bgcolor" value="#92B0BA" />' +
'<embed src="flash/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="898" height="152" />' +
'</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
}

