// as copied from DEK from http://www.sitepoint.com/forums/showthread.php?p=2372494

// collection for functions which will be executed onLoad.
var LOADER = new function() {
	var _self = this;
	this.fns = [ ];
	
	this.add = function(fn) { this.fns.push(fn); }
	this.exec = function() { var fn; while (fn = this.fns.shift()) fn(); }
	window.onload = function() { LOADER.exec(); }
}

