function utlFlash_load( swfAddr, divSwfId, divAltId, width, height )
{
    var params = { allowScriptAccess: "always", wmode: "opaque"  };
    var atts = { id: divSwfId };
    var flashvars = { };
    swfobject.embedSWF(swfAddr, divAltId, width, height, "8", null, 
        flashvars, params, atts);

    /* In the call above, swfobject.embedSWF replaces the element with
     * id divAltId with another div with id divSwfId. */
}

function utlFlash_resetAndHide( divSwfId, divAltId )
{
    var playerDiv = document.getElementById(divSwfId);
    if( null == playerDiv ) {
        /* Player not running, so there is nothing to do.
         * If we don't return early, errors will happen. */
        return;
    }

    var stoppedDiv = document.getElementById(divAltId);
    if( null == stoppedDiv ) {
        stoppedDiv = document.createElement("div");
        stoppedDiv.setAttribute('id', divAltId);
    }

    stoppedDiv.innerHTML = "";
    /* replaceChild(new, old) */
    playerDiv.parentNode.replaceChild(stoppedDiv, playerDiv);
}
