// JavaScript Document
// 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	
	var oeTags = '<div style="float:left;height:307px;width:920px;padding:0 0 0 0;margin:0 0 0 0;">'
	+ '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="920" height="307" id="bmi" align="top">'
	+ '<param name="allowScriptAccess" value="sameDomain" />'
	+ '<param name="movie" value="GEN012_920x367_header_v6.swf" /><param name="play" value="false" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="wmode" value="transparent" /><embed src="GEN012_920x367_header_v6.swf" play="false" menu="false" quality="best" scale="noscale" wmode="transparent" width="920" height="307" name="bmi" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
	+ '</object></div>';
    document.write(oeTags);   // embed the Flash Content SWF when all tests are passed
	//document.write("test"); 
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = '<p>'
	+ 'This Website requires JavaScript enabled and the latest Flash player installed on<br>your computer. Please download the free Flash player <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW" target="_blank" style="color:#000000; font-weight:bold; ">here</a>.';
	+ '</p>';
    document.write(alternateContent);  // insert non-flash content
  }