jslt.OnLoadQueue=function(){
	this.calledOnLoad=false
		this.onLoadFunctions=[]	
		window.thisOnLoadQueue=this
		window.onload=function(){
			window.thisOnLoadQueue.onLoadActions.call(window.thisOnLoadQueue)
		}
	this.onLoadActions=function(){
		this.calledOnLoad=true
		for(var i=0;i<this.onLoadFunctions.length;i++){
			try{
				this.onLoadFunctions[i].call(this.onLoadFunctions[i])
			}catch(e){
				globalLog(e)
				if (console) {
					console.log(e)
				}
			}
		}
	}
	this.appendOnLoad=function(fun,id){
		if(this.calledOnLoad){
			//tracer.instance.trace("calledOnLoad")
			fun.call(window)
		}else{
			this.onLoadFunctions.push(fun)
		}
		
	}

}
onLoadQueue=new jslt.OnLoadQueue()