/**
 * Script om eenvoudig meerdere onloadfuncties aan de pagina toe te voegen.
 *
 * Gebruik window.addOnloadFunction om een functie te registreren.
 * Script werkt niet meer als er ergens anders de window.onload functie wordt overschreven.
 *
 * @author	Bart Kapitein
 * @date	2 dec 2005
 */

/*
 * Array waarin we onload functies gaan registreren.
 */
var onloadFunctions = new Array( );

/**
 * Onload functie gaat door onloadFunctions array om die functies uit te voeren.
 */
window.onload = function( )
{
	for( myIndex = 0; myIndex < onloadFunctions.length; myIndex++ )
	{
		onloadFunctions[myIndex]( );
	}
}

/*
 * Functie om een onloadfunctie toe te voegen aan de onloadFunctions array
 */
window.addOnloadFunction = function( func )
{
	onloadFunctions[onloadFunctions.length] = func;
}
