/* onLoadManager (C) 1999 by Paul Houle (paul@honeylocust.com)
   
   onLoadManager is part of Freedom VR 3 (http://www.honeylocust.com/vr/3/)
   
   FreedomVR 3 is free software; you can redistribute it and/or modify it
   under the terms of the GNU General Public License as published by the
   Free Software Foundation; either version 2, or (at your option) any
   later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.  */ 

onLoadManager=new Array();

// s is Javascript string to evaluate in the context of obj
// string will be evaluated in window if not specified

function onLoadManager_add(obj)
{
    var i=this.length;
    this[i]=obj;
};

function onLoadManager_onLoad()
{
   var i;
   for(i=0;i<onLoadManager.length;i++) {
      onLoadManager[i].onload();
   };
};

onLoadManager.add=onLoadManager_add;
window.onload=onLoadManager_onLoad;


