/*
 * Ext JS Library 2.2
 * Copyright(c) 2006-2008, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

Ext.onReady(function(){

//code below for global tooltip
			var action = new Ext.Action({
        text: '<font color="#15428B">Help Section</font>',
        handler: function(){
            Ext.example.msg('Click','Loading... "Help Section Coming Soon".');
        },
        iconCls: 'login'
    });

    var win;
    var button = Ext.get('show-btn');

    button.on('click', function(){
        // create the window on the first click and reuse on subsequent clicks
        if(!win){
            		win = new Ext.Window({
			                applyTo     : 'hello-win',
			                layout      : 'fit',
			                width       : 490,
			                height      : 350,
			                closeAction :'hide',
											defaults: {autoScroll:true},
			                plain       : false,
											tbar: [
			            				action//, {                   // <-- Add the action directly to a toolbar
			                		//text: 'Help Menu',
			                		//menu: [action]          // <-- Add the action directly to a menu
			            		//}
			        				],
											
							                		items       : new Ext.TabPanel({
																					iconCls		:'translation',
											                    applyTo        : 'hello-tabs',
											                    autoTabs       : true,
																					enableTabScroll:true,
																					autoScroll:true,
											                    activeTab      : 0,
											                    deferredRender : false,
											                    border         : false,
																					xtype:'tabpanel'																					
																					
																					
															}),//end of the tab panel

                buttons: [{
                    text     : 'Submit for Review',
                    disabled : true
                },{
                    text     : 'Close',
                    handler  : function(){
                    win.hide();//hides window when closed
                    }
                }]//end of buttons
            });
        }
        win.show(button);
    });
});