/** 
 * Copyright Intermesh
 * 
 * This file is part of Group-Office. You should have received a copy of the
 * Group-Office license along with Group-Office. See the file /LICENSE.TXT
 * 
 * If you have questions write an e-mail to info@intermesh.nl
 * 
 * @copyright Copyright Intermesh
 * @version $Id: MainLayout.js 3020 2009-08-06 09:04:01Z mschering $
 * @author Merijn Schering <mschering@intermesh.nl>
 */

GO.MainLayout.override({
	beforeRender : function(){
		this.tabPanel.baseCls='go-moduletabs';
	}
});

function showTabs(url, timeout)
{
	Ext.Ajax.request({
		url: url,
		success: function (result) 
		{ 
			if(result.responseText != '')
			{
				Ext.fly('tabs').update(result.responseText).show(); 
				if(typeof(GO.loginDialog) != 'undefined')
				{
					GO.loginDialog.setPosition(GO.loginDialog.x, 123);
				}
				else
				{
					GO.settings.tabs_enable = true;
				}
			}
		},
		failure: function () { },
		timeout: timeout
	});
};
