var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); if(hasRightVersion) { // if we've detected an acceptable version //document.write("test"); var oeTags = '' + '' + '' + '<\/embed>' + '<\/object>'; document.write(oeTags); // embed the flash movie } else { // flash is too old or we can't detect the plugin var myDisplay = ''; document.write(myDisplay); }