// <![CDATA[
window["flashVideo"] = new Object();
var varVideo1 = '';
var varVideo2 = '';
function supports_video() {return !!document.createElement('video').canPlayType; }

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='+vWidth+' height='+vHieght+' id="flashVideo" align="middle">'
+ '<param name="allowScriptAccess" value="always" />'
+ '<param name="movie" value="Video/'+varVideo+'" /><param name="quality" value="high" /><param name="wmode" '
+ 'value="transparent" /><param name="bgcolor" value="#000000" /><embed src="Video/'+varVideo+'" quality="high" '
+ 'wmode="transparent" bgcolor="#000000" width='+vWidth+' height='+vHieght+' id="flashVideo" name="flashVideo" 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
if(supports_video() && varMp4 != null){ 
varVideo1 = '<video id="player" width="'+vWidth+'" height="'+vHieght+'" controls="controls" preload="none" > <source type="video/mp4" src="Video/'+varMp4+'" /> ';
varVideo2 = ' </video>';
document.write(varVideo1 + varFlash + varVideo2);
}else{
    var alternateContent = '<table border="0" cellpadding="0" cellspacing="0" width='+vWidth+' bgcolor="#dedede"><tr><td height='+vHieght+' 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("flashVideo")
// ]]>


