Ext.namespace("MicroPacific.UI");

var MpApplication = function()
{
	var app
	//app.divDock = null;
	
	return {
		GetApplication:function()
		{
			if (app == null) { app = new MicroPacific.UI.MpApplication(); }
			
			return app;
		}
	}
}();

MicroPacific.UI.MpApplication = function()
{
	this.CreateStatusBar = function()
	{
		// MDR #dock class should be defined in window_js/themes/default.js
		this.divDoc = Ext.get(MpCreateDiv('dock', document.body));
		this.pStatusText = document.createElement('p');
		this.pStatusText.id = 'StatusText'
		this.pStatusText.innerHTML = "";
		this.divDoc.appendChild(this.pStatusText);
	},
	
	this.SetStatusText = function(cText)
	{
		this.pStatusText.innerHTML = cText;
	}
}
