Ext.onReady(function(){ var tabs1 = Ext.createWidget('tabpanel', { renderTo: document.getElementById('tabs1'), activeTab: 0, width: '100%', height: 510, plain: true, defaults :{ autoScroll: true, bodyPadding: 1 }, items: [{ title: 'Forage and Supplements', loader: { url: 'sub_list.php?list_it=50', contentType: 'html', loadMask: true }, listeners: { activate: function(tab) { tab.loader.load(); } } },{ title: 'Tenders', loader: { url: 'sub_list.php?list_it=70', contentType: 'html', loadMask: true }, listeners: { activate: function(tab) { tab.loader.load(); } } },{ title: 'Hatching eggs', loader: { url: 'sub_list.php?list_it=20', contentType: 'html', loadMask: true }, listeners: { activate: function(tab) { tab.loader.load(); } } },{ title: 'Derived products', loader: { url: 'sub_list.php?list_it=30', contentType: 'html', loadMask: true }, listeners: { activate: function(tab) { tab.loader.load(); } } },{ title: 'Equipment and technology', loader: { url: 'sub_list.php?list_it=60', contentType: 'html', loadMask: true }, listeners: { activate: function(tab) { tab.loader.load(); } } },{ title: 'Package', loader: { url: 'sub_list.php?list_it=80', contentType: 'html', loadMask: true }, listeners: { activate: function(tab) { tab.loader.load(); } } },{ title: 'Veterinary science', loader: { url: 'sub_list.php?list_it=40', contentType: 'html', loadMask: true }, listeners: { activate: function(tab) { tab.loader.load(); } } } ] }); });