﻿
function AC_FL_RunContent()
{
    var ret = AC_GetArgs(arguments, "", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000", "application/x-shockwave-flash");
    AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

var flashInstance = 0;
function doTeaser (swfPath, swfWidth, swfHeight, swfMajorVersion, swfMinorVersion, swfRevision, swfBgColor, imgPath, imgWidth, imgHeight, imgAlt, linkPath)
{
    var hasRequestedVersion = DetectFlashVer(swfMajorVersion, swfMinorVersion, swfRevision);
    if (hasRequestedVersion)
    {
        AC_FL_RunContent(
        "src", swfPath,
        "width", swfWidth,
        "height", swfHeight,
        "align", "middle",
        "id", ("teaserFlash"+flashInstance++),
        "quality", "high",
        "bgcolor", swfBgColor,
        "name", ("teaserFlash"+flashInstance++),
        "allowScriptAccess","sameDomain",
        "type", "application/x-shockwave-flash",
        'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
        "pluginspage", "http://www.adobe.com/go/getflashplayer",
        'FlashVars', 'linkurl='+linkPath,
        'wmode', 'transparent'
        );
        //document.write("hasRequestedVersion");
    }
    else
    {
        var alternateContent = '<a href="' + linkPath + '"><img src="' + imgPath + '" alt="' + imgAlt + '" width="' + imgWidth + '" height="' + imgHeight + '" /></a>';
        document.write(alternateContent);
        //document.write("doesnthaveRequestedVersion");
    }
}

