function cargarFlash(url,id,donde,ancho,alto,modo){
	$(donde).html(null);
	
	$(donde).css({
		width : ancho, 
		height : alto
	});
	$(donde).flash({ 
		src: url, 
		id: id, 
		name: id, 
		width: ancho, 
		height: alto, 
		wmode: 'transparent'
	},{ version : 10, expressInstall: true }
	); 

	$().cmDebug({
		tipo:'info', 
		texto:'<strong>Carga de archivo Flash:</strong>'+url+' id:'+id
	})

}

function llamarFlash(nombre){
	if (window.document[nombre]){
    	return window.document[nombre];
  	}
	if (navigator.appName.indexOf("Microsoft Internet")==-1){
		if (document.embeds && document.embeds[nombre])
		return document.embeds[nombre]; 
  	}
  	else{
    	return document.getElementById(nombre);
  	}
}

function flashFuncion(funcion){
	eval(funcion);
}
