function writeFlash() { var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); if(hasRightVersion) { // if we've detected an acceptable version var content = ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' + ' ' document.write(content); // insert flash content } else { // flash is too old or we can't detect the plugin parent.location = "http://www.oxblue.com/flash_support/"; } }