/**

  © binary, 2007
  • 22.02.2007, 12:40
  
  USAGE:
  ------------------------------
  addOnLoad(
    function () {
      alert('it works');
    }
  );
  ------------------------------
  function test () {
    alert('it works');
  }
  addOnLoad(test);
  ------------------------------
  
*/

var onLoadFunctions = new Array ();
function addOnLoad ( func ) {
  onLoadFunctions[onLoadFunctions.length] = func;
}
window.onload = function () {
  for ( var n = 0; n < onLoadFunctions.length; n++ ) {
    onLoadFunctions[n]();
  }
}
