
// Version check based upon the values entered above in "Globals"
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://www.perthracing.com.au/flash/homepage1",
        "width", "480",
        "height", "183",
        "align", "middle",
        "id", "homepage",
        "wmode","transparent",
        "quality", "high",
        "bgcolor", "#FFFFFF",
        "name", "homepage",
        "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 = '<img src=flash/header_example.jpg width=480 height=183 border=0 /></a>';
     var answer = confirm ("This site requires the Flash Player Plugin. Would you like to download The Flash Player Plugin now?");
     if (answer) {
     window.location="http://www.adobe.com/go/getflash/";
     }
    else {
    document.write(alternateContent);  // insert non-flash content
    };

}

