var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) {  // if we've detected an acceptable version
    var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="100%" height="100%"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="index.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="bgcolor" value="#000000" />'
    + '<embed src="index.swf" quality="high" scale="noscale" bgcolor="#000000" '
    + 'width="100%" height="100%" name="start" align="middle"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object>';
    document.write(oeTags);   // embed the flash movie
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = '<html><head><title>Flying Group</title></head><body bgcolor="#000000" bottommargin="0" topmargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth=""><table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%"><tr><td align="center"><div align="center"><a href="http://www.macromedia.com/go/getflash" target="_blank"><img src="noflash.gif" width="725" height="131" border="0"></a></div></td></tr></table></body></html>';
    document.write(alternateContent);  // insert non-flash content
  }
