//ist eine Klasse um mehrer Funktionen zu booten

function MH_BOOT(functor) {
  var bootElements = new Array();
  var sumBooted=0;
  if (functor!=null && functor) bootElements.push(functor);

  this.boot = function() {

    for (var element in bootElements) bootElements[element]();
    sumBooted++;
  }

  this.bootPop = function() {
    while (bootElements.length>0) bootElements.pop()();
    sumBooted=0;
  }

  this.pop = function() {return bootElements.pop();}
  this.push = function(functor) {bootElements.push(functor);}
  this.add = function(functor) {bootElements.push(functor);}
  this.length = function() {return bootElements.length;}
}

mh_boot = new MH_BOOT();
