//
// (c) 2007 webActive | Paweł Smoleński
//

var App = new Class(
{
	initialize: function()
	{
	    this.modules = new Array();
	},

	initApplication: function()
	{
		this.interfaceController = new Interface();
		this.interfaceController.initInterface();

		for (var iModule = 0; iModule < this.modules.length; iModule++)
			this.modules[iModule].initModule(this.interfaceController);
		
		this.interfaceController.resizeWindow();

		$('bottomlink').href = "mailto" + ":cofund" + "@" + "cofund." + "org" + ".pl";
		$('bottomlink').innerHTML = "cofund" + "@" + "cofund." + "org" + ".pl";
		
		return 'initApplication';
	},
	
	addModule: function(oModule)
	{
		this.modules.push(oModule);
	}
});

