// Enregistre les fonctions qui doivent etre appeler au chargement de la page
function addToStart(fnc){
  // Test si le tableau des fonctions existe
  if(!window.listStart) window.listStart = new Array();
  // Enregistre la fonction dans le tableau 
  window.listStart.push(fnc)
}


// Execute les fonctions enregistrées 
function start(){
  var ls = window.listStart;
  if(ls){
    for(i=0; i<ls.length; i++){
      ls[i]();
    }
  }
}

window.onload = start;