    if(typeof(flashLoader) == "undefined") {
        flashLoader = {};
        flashLoader.ACTIVE_X_EXCEPTION_FLASH_VERSION = [-1,-1,-1,-1];
        flashLoader.INLINE_UPGRADE_VERSION = "6,0,65,0";
        flashLoader.noFlashInstalledExceptionMessage = "Automation server can't create object";
    }
 
    // works around the "click to activate and use this control" on IE
    // srcUrl: string- name of swf
    // version: string- version of swf to ask for, e.g. "9,0,0,0"
    // width: int- width of movie
    // height: int- height of movie
    // divId: string- to set for id and name attributes
    // params: array- attr/var pairs to be passed to flash movie, e.g. ["allowScriptAccess", "always", "quality", "high"]
    //
    flashLoader.loadSpecifiedFlashMovie = function(srcUrl, version, width, height, divId, params) {
        document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" type="application/x-shockwave-flash"');
            document.write(' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + version + '"');
            document.write(' width="' + width + '" height="' + height + '" id="' + divId + '" name="' + divId + '">');
            document.write('<param name="movie" value="' + srcUrl + '" />');
            for (var i=0; i < params.length; i=i+2) {
                document.write('<param name="' + params[i] + '" value="' + params[i+1] + '" />');
            }
        
        document.write('<embed src="' + srcUrl + '" type="application/x-shockwave-flash"');
            document.write(' width="' + width + '" height="' + height + '" id="' + divId + '"' + '" name="' + divId + '"');
            document.write(' pluginspage="http://www.macromedia.com/go/getflashplayer" ');
            for (var i=0; i < params.length; i=i+2) {
                document.write(params[i] + '="' + params[i+1] + '" ');
            }
        document.write(' /></object>');
    }
