function Delegate(){
	this.methods = new Array();
	this.append = function (operand) {
	   this.methods[this.methods.length] = operand;
	   return this;
	}
	this.execute = function(){
		for(var i=0; i<this.methods.length; i++){
			this.methods[i]();
		}
	}
}
var onLoadDelegate = new Delegate();
window.onload=function(){
	onLoadDelegate.execute();
	run();
}
var onResizeDelegate = new Delegate();
window.onresize=function(){
	onResizeDelegate.execute();
}
