// comunes a los medios
function playParamFlashObject(swfFile, id, dim, transparent, clsid, flashversion, divId)
{
    content = '<OBJECT classid="../js/'+clsid+'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+flashversion+',0,0,0" ID="'+id+'" '+dim+' ALIGN="">';

    if(swfFile.indexOf('?')!=-1){
        pos=swfFile.indexOf('?');
        fname=swfFile.substring(0,pos);
        fvars=swfFile.substring(pos+1,swfFile.length);
        content += '<PARAM NAME=movie VALUE="../js/'+fname+'">';
        content += '<PARAM NAME=FlashVars VALUE="'+fvars+'">';
    }else{
        fname=swfFile;
        fvars='';
        content += '<PARAM NAME=movie VALUE="../js/'+fname+'">';
    }
    content += '<PARAM NAME=quality VALUE=high><PARAM NAME="wmode" VALUE="'+transparent+'">';
    content += '<EMBED src="../js/'+fname+'" FlashVars="'+fvars+'" quality=high wmode='+transparent+' swLiveConnect=FALSE '+dim+' name="'+id+'" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">';
    content += '</EMBED></OBJECT>';
    if (divId)
    {
        objDiv = document.getElementById(divId);
        objDiv.innerHTML=content;
    }
    else document.write(content);
    return content;
}

function loadEmbedObject(str){
    document.write(str);
}

function loadEmbedObjectInDiv(myDiv, str){
    myDiv.innerHTML = str;
}


