Controller = function()
{
  function hideLoadingMask()
  {
    var loading = Ext.get('loading');
    var mask = Ext.get('loading-mask');
    mask.remove();
    loading.remove();
    Ext.get(document.body).setStyle('overflow', 'visible');
  }

	function buildUI()
	{

		viewport = new Ext.Viewport({
			layout: 'fit',
			items: {
				xtype: 'form',
				items: [{
					xtype: 'textfield',
					fieldLabel: 'Text'
				},{
					xtype: 'xtinymce',
					fieldLabel: 'HTML',
					editor_config: {width: '600px'}
				}]
			}
		});
	}


	return {
		init : function()
		{
			buildUI();
			hideLoadingMask();
		}
	}
}()

Ext.BLANK_IMAGE_URL = '../ExtJS/resources/images/default/s.gif';
Ext.onReady(Controller.init);
