<!--
// -----------------------------------------------------------------------------
// Globals
// Revision of Flash required
var requiredRevision = 0;
// the version of javascript supported
var jsVersion = 1.0;
// -----------------------------------------------------------------------------

function InsertFlash(p_strFilePath, p_intWidth, p_intHeight, p_blnScale, p_blnLoop, p_blnMenu, p_strAlign, p_strWMODE, p_strColor, p_strFlashVars, p_strAlternateContent) {
    var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
    if(hasRightVersion) {  // if we've detected an acceptable version
        var oeTags = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
        + 'WIDTH="'+p_intWidth+'" HEIGHT="'+p_intHeight+'" id="flashMovie" ALIGN="'+p_strAlign+'"'
        + 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
        + '<PARAM NAME="MOVIE" VALUE="'+p_strFilePath+'">'
        + '<PARAM NAME="PLAY" VALUE="true">'
        + '<PARAM NAME="LOOP" VALUE="'+p_blnLoop+'">'
        + '<PARAM NAME="QUALITY" VALUE="high">'
        + '<PARAM NAME="MENU" VALUE="'+p_blnMenu+'">'
        + '<PARAM NAME="BGCOLOR" VALUE="'+p_strColor+'">'
        + '<PARAM NAME="FLASHVARS" VALUE="'+p_strFlashVars+'">'
        + '<PARAM NAME="WMODE" VALUE="'+p_strWMODE+'">'
        + '<EMBED SRC="'+p_strFilePath+'"'
        + 'WIDTH="'+p_intWidth+'" HEIGHT="'+p_intHeight+'"'
        + 'PLAY="true"'
        + 'LOOP="'+p_blnLoop+'"'
        + 'QUALITY="high"'
        + 'MENU="'+p_blnMenu+'"'
        + 'BGCOLOR="'+p_strColor+'"'
        + 'FLASHVARS="'+p_strFlashVars+'"'
        + 'WMODE="'+p_strWMODE+'"'
        + 'ALIGN="'+p_strAlign+'"'
        + 'AllowScriptAccess="sameDomain"'
        + 'TYPE="application/x-shockwave-flash"'
        + 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
        + '<\/EMBED>'
        + '<\/OBJECT>';
        document.write(oeTags);   // embed the flash movie
      } else {  // flash is too old or we can't detect the plugin
        document.write(p_strAlternateContent);  // insert non-flash content
      }
}

// -->
