/*the onload initializer setup*/
var initialize = new initializer();
window.onload = initialize.execute;

/*an extendable function; when initiated, sets makes a blank array of functions*/
function initializer() {
	var parent = this;
	this.functions = new Array();
	
	/*method extend() adds a function to the array of functions that will be executed*/
	this.extend = function(addFunction) {
		parent.functions.push(addFunction);
	}
	
	/*method execute() executes all the functions that have been added*/
	this.execute = function() {
		for (var i=0; i<parent.functions.length; i++) {
			if (typeof(parent.functions[i]) == 'function') {
				parent.functions[i]();
			}
		}
	}
}