function show_flash() { var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); if(hasRightVersion) { // if we've detected an acceptable version var oeTags = '' + '' + '' + '<\/embed>' + '<\/object>'; document.write(oeTags); // embed the flash movie } else { // flash is too old or we can't detect the plugin var alternateContent = 'Alternate HTML content should be placed here.' + 'This content requires the Macromedia Flash Player.' + 'Get Flash'; document.write(alternateContent); // insert non-flash content } }