/*
	Initialising object.

*/


var Initialise = {

	regEvents: new Array(),

	regFunctions: new Array(),

	load: function() {
		window.onload = this.init;
	},

	init: function() {
		try {
			len = Initialise.regFunctions.length;
			for ( var i = 0; i < len; i++ )
				Initialise.regFunctions[i]();
		}
		catch (Error) {
			/*
			alert(Error);
			errormsg = 'Click OK to continue loading this page,\n';
			errormsg+= 'or Cancel to return to ' + location.hostname;

			if( ! confirm(errormsg)) {
				document.location.href= 'http://'+location.hostname;
			}
			*/
		}
	},

	addEvent: function(argument) {
		this.regFunctions.push(argument);
	},

	addOnInit: function(argument) {
		this.regFunctions.push(argument);
	}

}

Initialise.load();
