// JavaScript für Onload-Handler
//
// Verwende Methode window.onload_handler.add um einen Handler hinzuzufügen.
// Beispiel: function doit() {...}; onload_handler.add(doit);

function onload_class() {
	this.handler = new Array();
	this.handle = function() {
		for (var i = 0; i < this.handler.length; i++)
			if (typeof(this.handler[i]) == "function")
				this.handler[i]();
	};
}

onload_class.prototype.add = function(handler) {
	this.handler.push(handler);
}
onload_handler = new onload_class();
