// <![CDATA[
window["flashVideo"] = new Object();
var varVideo1 = '';
var varVideo2 = '';
function supports_video() {return !!document.createElement('video').canPlayType; }
if(supports_video()){ 
varVideo1 = '<video id="player" width="316" height="178" controls="controls" autoplay="true" preload="none" ><source type="video/mp4" src="Video/TruSpeed-Action.mp4" /> '
+ '<source type="video/webm" src="Video/TruSpeed-Action.webm" /><source src="Video/TruSpeed-Action.ogv" type="video/ogg" />';
varVideo2 = ' </video>';
}
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {  // if we've detected an acceptable version
var varFlash = '<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="316" height="179" id="LTI_TruSpeed" align="middle">'
+ '<param name="allowScriptAccess" value="always" />'
+ '<param name="movie" value="LTI_TruSpeed.swf" /><param name="quality" value="high" /><param name="wmode" '
+ 'value="transparent" /><param name="bgcolor" value="#d0d0d0" /><embed src="LTI_TruSpeed.swf" quality="high" '
+ 'wmode="transparent" bgcolor="#d0d0d0" width="316" height="179" id="LTI_TruSpeed" name="LTI_TruSpeed" align="middle" '
+ 'allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'
+ '</object>'
document.write(varVideo1 + varFlash + varVideo2);
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = '<table border="0" cellpadding="0" cellspacing="0" width="316" bgcolor="#dedede"><tr><td height="178" align="center">'
  	+ 'A Minumum Of Macromedia Flash Player 8 Is Required To Properly View This Site.<br/><br/>'
   	+ '<a href=http://www.macromedia.com/go/getflash/>Update Flash Player</a></td></tr></table>';
    document.write(varVideo1 + alternateContent + varVideo2);  // insert non-flash content
  }
window["flashVideo"] = document.getElementById("LTI_TruSpeed")
// ]]>
