
function embed_flash ( objid, fl_codebase, fl_data, fl_flashvars, fl_width, fl_height, fl_wmode, no_flash_warning )
{
    txt  = '';
    txt += '<object codebase="' + fl_codebase + '" ';
    txt += 'type="application/x-shockwave-flash" ';
    txt += 'data="' + fl_data + '" ';
    txt += 'flashvars="' + fl_flashvars + '" ';
    txt += 'width="' + fl_width + '" ';
    txt += 'height="' + fl_height + '" ';
    txt += 'wmode="' + fl_wmode + '"';
    txt += 'allowfullscreen="true">';
    txt += '<param name="movie" value="' + fl_data + '?' + fl_flashvars + '"/>';
    txt += '<param name="allowFullScreen" value="true"/>';
    txt += '<param name="wmode" value="' + fl_wmode +'"/>';
    txt += '<p class="no_flash">' + no_flash_warning + '</p>';
    txt += '</object>';

    document.getElementById(objid).innerHTML = txt;
}
