/*
 *
 * use this if you expect you might have multiple onloads;
 *	
 *	
 */
 
function _Onload()
{
	this.functions 	= new Array;
	this.add		= Add;
	this.run		= Run;
	window.onload  	= this.run;
	
	function Run(){
		for (var i=0;i<_onload.functions.length;i++) {
			eval(_onload.functions[i]);
		}
	}
	function Add(f){
		this.functions.push(f);
	}
}

// create this object first:
var _onload = new _Onload;

// usage:
// _onload.add('yourfunctionname()');
