/*!
 * Ext JS Library 3.2.1
 * Copyright(c) 2006-2010 Ext JS, Inc.
 * licensing@extjs.com
 * http://www.extjs.com/license
 */
Ext.onReady(function(){

    var tabs = new Ext.TabPanel({
        renderTo:'tabs',
        resizeTabs:true, // turn on tab resizing
        minTabWidth: 85,
        tabWidth:135,
        enableTabScroll:true,
        width:255,
        height:290,
        padding: '5px',
        defaults: {autoScroll:false},
        plugins: new Ext.ux.TabCloseMenu()		
    });

    // tab generation code
    var index = 0;	
	add6SigmaGBTab();
    function add6SigmaGBTab(){
        tabs.add({
            title: '6 Sigma GB',
            iconCls: 'tabs',
            html: "<table style='font-size:11px;'><tr><td><b>Lean Six Sigma Green Belt Certification</b></td></tr><tr><td><b>Singapore</b></td></tr><tr><td><b>February 2012</b></td></tr><tr><td>4th, 5th, 11th and 12th [full day session] <br> 8th and 9th [evening session]</td></tr><tr><td><b>March 2012</b></td></tr><tr><td>17th, 18th, 24th and 25th [full day session]</td></tr><tr><td>21st, 22nd [evening session]</td></tr></table>",
            closable:false
        }).show();
    }
	add6SigmaBBTab();
    function add6SigmaBBTab(){
        tabs.add({
            title: '6 Sigma BB',
            iconCls: 'tabs',
            html: "<table style='font-size:11px;'><tr><td><b>Lean Six Sigma Black Belt</b></td></tr><tr><td><b>Wave1</b></td></tr><tr><td><b>February 2012</b></td></tr><tr><td>4th, 5th, 11th and 12th [full day session] <br> 8th and 9th [evening session]</td></tr><tr><td><b>Wave2</b></td></tr><tr><td><b>March 2012</b></td></tr><tr><td>3rd, 4th, 10th and 11th [full day session] <br> 7th and 8th [evening session]</td></tr></table>",
            closable:false
        }).show();
    }
	add6SigmaBB2Tab();
    function add6SigmaBB2Tab(){
        tabs.add({
            title: '6 Sigma BB2',
            iconCls: 'tabs',
            html: "<table style='font-size:11px;'><tr><td><b>Lean Six Sigma Black Belt 2</b></td></tr><tr><td><b>Wave1</b></td></tr><tr><td><b>March 2012</b></td></tr><tr><td>17th, 18th, 24th and 25th [full day session] <br> 21st and 22nd [evening session]</td></tr><tr><td><b>Wave2</b></td></tr><tr><td><b>April 2012</b></td></tr><tr><td>14th, 15th, 21st and 22nd [full day session] <br> 18th and 19th [evening session]</td></tr></table>",
            closable:false
        }).show();
    }
    addISO20000Tab();
    function addISO20000Tab(){
        tabs.add({
            title: 'ISO 20 K',
            iconCls: 'tabs',
            html: "<table style='font-size:11px;'><tr><td><b>Achieving ISO 20000 Certification</b></td></tr><tr><td><b>Singapore</b></td></tr><tr><td>23 Apr – 24 Apr 2011 </td></tr><tr><td>21 May – 22 May 2011 </td></tr></table>",
            closable:false
        }).show();
    }
	addISO27000Tab();
    function addISO27000Tab(){
        tabs.add({
            title: 'ISO 27 K',
            iconCls: 'tabs',
            html: "<table style='font-size:11px;'><tr><td><b>Implementing ISO 27001</b></td></tr><tr><td><b>Singapore</b></td></tr><tr><td>21 May – 05 Jun 2011 </td></tr><tr><td><b>Kuala Lumpur, Malaysia</b></td></tr><tr><td>11 – 25 Jun 2011</td></tr></table>",
            closable:false
        }).show();
    }
    addITsoftTab();
    function addITsoftTab(){
        tabs.add({
            title: 'CCBA/CBAP Training',
            iconCls: 'tabs',
            html: "<table style='font-size:11px;'><tr><td><b>CCBA/CBAP Training</b></td></tr><tr><td><b>Singapore</b></td></tr><tr><td><b>February 2012</b></td></tr><tr><td>11th, 12th, 18th and 19th</td></tr></table>",
            closable:false
        }).show();
    }     
	addITILTab();
    function addITILTab(){
        tabs.add({
            title: 'ITIL®',
            iconCls: 'tabs',
            html: "<table style='font-size:11px;'><tr><td><b>ITIL® V3 Foundation Certification</b></td></tr><tr><td><b>Singapore</b></td></tr><tr><td><b>February 2012</b></td></tr><tr><td>11th, 12th and 18th</td></tr><tr><td>25th, 26th and 3rd Mar</td></tr></table>",
            closable:false
        }).show();
    }
    addPMPab();
    function addPMPab(){
        tabs.add({
            title: 'PMP®',
            iconCls: 'tabs',
            html: "<table style='font-size:11px;'><tr><td><b>PMP® Cert. Prep. Program</b></td></tr><tr><td><b>Singapore</b></td></tr><tr><td><b>January 2012</b></td></tr><tr><td>14th, 15th, 28th, 29th Jan & 4th Feb (Mock Exam)</td></tr><tr><td><b>February 2012</b></td></tr><tr><td>4th, 5th, 11th, 12th Feb & 18th Feb (Mock Exam)</td></tr><tr><td>18th, 19th, 25th, 26th Feb & 3rd Mar (Mock Exam)</td></tr><tr><td><b>March 2012</b></td></tr><tr><td>3rd, 4th, 10th, 11th Mar & 17th Mar (Mock Exam)</td></tr><tr><td>17th, 18th, 24th, 25th Mar & 31 Mar (Mock Exam)</td></tr></table>",
            closable:false
        }).show();
    }
});
