// 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 = '<p align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
    + 'width="900" height="650"'
    + 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
    + '<param name="movie" value="nnn_topmovie.swf" /><param name="allowScriptAccess" value="sameDomain" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" />'
    + '<embed src="nnn_topmovie.swf" quality="high" bgcolor="#000000" '
    + 'width="900" height="650" name="detectiontest" aligh="middle"'
    + 'play="true"'
    + 'loop="false"'
    + 'quality="high"'
    + 'allowScriptAccess="sameDomain"'
    + 'type="application/x-shockwave-flash"'
    + 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
    + '<\/embed>'
    + '<\/object></p>';
    document.write(oeTags);   // embed the Flash Content SWF when all tests are passed
  } else {  // flash is too old or we can't detect the plugin
    var alternateContent = '<p align="center">nice &amp; neat トップムービー</p>'
  	+ '<p align="center">このコンテンツを閲覧するには、最新の Macromedia Flash Player（Ver.8以降）が必要です。<br />'
   	+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash Player</a></p>'
   	+ '<p align="center"><a href=http://www.nnnjp.com/blog/>メインページはこちら</a></p>';
    document.write(alternateContent);  // insert non-flash content
  }
