var simpleOnloadHandler = Class.create();
/**
* simple onloadHandler
*/
simpleOnloadHandler.prototype = {
  initialize: function() {
		this.functionsList = [];
  },

	execute: function() {
		this.functionsList.each(function(function_name) {
		  eval(function_name+"()");
		});
	},

	addFunction: function(function_name) {
		this.functionsList.push(function_name);
	}

}

var onloadHandler = new simpleOnloadHandler();


function initLiveHelp() {
	var liveHelp= document.getElementById( 'liveHelp' );
	if (liveHelp) {
		var imgs= liveHelp.getElementsByTagName( 'img' );
		for( var i= 0; i < imgs.length; ++i ) fixPNG( imgs[i] );
		liveHelp.style.display= 'block';
	}
}


window.onload=function (){
	onloadHandler.addFunction("initLiveHelp");
	onloadHandler.execute();

/*
window.attachEvent( 'onscroll', function( ){
	var fix= document.getElementById( 'right_tooltip' );
	if (!fix) return;
	var par= fix.parentNode;
	parx=par;
	var top= 0;
	do{ top+= par.offsetTop } while( par= par.offsetParent ) 
	if( document.documentElement.scrollTop > top )
		fix.style.top=document.documentElement.scrollTop - top + 'px';
	else
		fix.style.top=0;
})

/*


	if (typeof Order != 'undefined' && rt instanceof Object) {
		rt.refreshTotalsFromOrderData();
	}
*/
}

