
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
    // embed the Flash Content SWF when all tests are passed
    AC_FL_RunContent(
                "src", "http://siteresources.worldbank.org/EXTABOUTUSCHINESE/Resources/mainmovie",
                "width", "570",
                "height", "272",
                "align", "left",
                "id", "wbflashdetect",
                "quality", "high",
                "bgcolor", "#ffffff",
                "name", "StaffProfiles",
                "allowScriptAccess","sameDomain",
                "type", "application/x-shockwave-flash",
                'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
                "pluginspage", "http://www.adobe.com/go/getflashplayer"
    );
} else {  // flash is too old or we can't detect the plugin
    var alternateContent = '<P>The page you were trying to view contains a'
    + 'Flash component. You need a Flash Player to view it. <P>'
    + 'Download and install the latest '
    + '<a href=http://www.adobe.com/go/getflash/>Macromedia Flash Player</a>';
    document.write(alternateContent);  // insert non-flash content
}
 