theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
	theObjects[i].outerHTML = theObjects[i].outerHTML;
}

function animacion () {
	direccion = animacion.arguments[0];
	ancho = animacion.arguments[1];
	alto = animacion.arguments[2];
	bgcolor = animacion.arguments[3];
	wmode = animacion.arguments[4];
	
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ancho+'" height="'+alto+'">');
	document.write('<param name="movie" value="'+direccion+'" /><param name="quality" value="high" /><param name="SCALE" value="exactfit" />');
	if(bgcolor){
		document.write('<param name="BGCOLOR" value="'+bgcolor+'" />');
	}
	if (wmode) {
		document.write('<param name="wmode" value="'+wmode+'" />');		
	}
	document.write('<embed src="'+direccion+'" quality="high" quality="high"  scale="exactfit" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" ');
	if(bgcolor){
		document.write(' bgcolor="'+bgcolor+'"');
	}
	if (wmode) {
		document.write(' wmode="'+wmode+'"');
	}
	document.write(' width="'+ancho+'" height="'+alto+'"></embed></object>');
}
