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