var cOnLoadManager = function()
{
    this.functions = new Array();
}

cOnLoadManager.prototype.attach = function(function_item)
{
    this.functions[this.functions.length]=function_item;
}
cOnLoadManager.prototype.run_on_load_functions = function()
{

    for(var i=0;i<this.functions.length;i++)
        {
            this.functions[i]();
        }

}


on_load_manager = new cOnLoadManager();

hydra_add_event(window, 'load', function(){on_load_manager.run_on_load_functions()});


