function Controlador_carga()
{
	this.ARRAY_FUNCIONES_ONLOAD=Array();

	if(window.onload)
	{
		this.poner_onload(window.onload);
	}

	var aquello=this;
	window.onload=function() {aquello.iniciar_carga();}
}

Controlador_carga.prototype.poner_onload=function(v_metodo)
{	
	this.ARRAY_FUNCIONES_ONLOAD.push(v_metodo);
}

Controlador_carga.prototype.iniciar_carga=function(v_metodo)
{
	var l=this.ARRAY_FUNCIONES_ONLOAD.length;
	var i=0;
	for(i; i<l; i++)
	{
		var m=this.ARRAY_FUNCIONES_ONLOAD[i];
		m();
	}
}

function poner_onload(v_metodo) {CONTROLADOR_CARGA.poner_onload(v_metodo);}
var CONTROLADOR_CARGA=new Controlador_carga();

