function reemplazarTexto(swf,elegido,tcolor,ttamano,tmargenarriba,tmargenizquierda,tancho,talto){

	if(tancho!=null) {
		ancho=tancho;
	}else{
		ancho=$(elegido).width()+5;
		ancho=ancho+(ancho/10)+tmargenizquierda;
	}

	if(talto!=null) {
		alto=talto;
	}else{
		alto=$(elegido).height();
		alto=alto+(alto/10);
	}

	texto=$(elegido).text();
	
	
	/*var flashvars = {'texto':texto,
					'textocolor':tcolor,
					'textotamano':ttamano,
					'textomargenarriba':tmargenarriba,
					'textomargenizquierda':tmargenizquierda};
					
	var params = {wmode: "transparent"};
	var attributes = {};

	swfobject.embedSWF(swf,id_contenedor, ancho, alto, "9.0.0","", flashvars, params, attributes);*/

	//$(elegido).html('<object type="application/x-shockwave-flash" data="'+swf+'" width="'+ancho+'" height="'+alto+'"><param name="movie" value="'+swf+'"/><param name="wmode" value="transparent"/></object>');
	$(elegido).html('<object type="application/x-shockwave-flash" data="'+swf+'" width="'+ancho+'" height="'+alto+'"><param name="movie" value="'+swf+'"/><param name="flashvars" value="texto='+texto+'&amp;textocolor='+tcolor+'&amp;textotamano='+ttamano+'&amp;textomargenarriba='+tmargenarriba+'&amp;textomargenizquierda='+tmargenizquierda+'"/><param name="wmode" value="transparent"/></object>');

}
