/*
	Filename         :	mtLib.js
	Created by       :	Mark Thomas
	Last modified by :	Mark Thomas
	Created          :	20 June 2005 16:27:23
	Last Updated     :	6 October 2005 11:30:28
	Comments         :	v 1/1
*/


/****************************************************************************************
MTLibPage main Class
****************************************************************************************/ 

var oMTLib = {};
oMTLib.add = function(s){
	return this[s] || (this[s] = {});
};
/****************************************************************************************
addLoadEvent
****************************************************************************************/

function mtLibAddEvent(oFunc, sType){
	if(!sType) sType = "load";
	var oOriginalEvent = window["on" + sType];
	if(typeof window["on" + sType] != 'function'){
		window["on" + sType] = oFunc;
	}else{
		window["on" + sType] = function(){
			oOriginalEvent();
			oFunc();
		};
	};
};