Ext.onReady(function(){
	Ext.QuickTips.init();
	var tb = Ext.create('Ext.toolbar.Toolbar', {
		border:0,
		frame: true,
		plain: true,
		baseCls: 'nav_menu',
		defaults: {
			cls: 'nav_menu_text',
			padding: "0 10 0 10",
			
			listeners: {
				click: function(t) {
					if (!Ext.isEmpty(t.uri)) {
						window.location = t.uri;
					}
				}
			}
		}
	});
    tb.suspendLayout = true;
    tb.render('menu2');
    
    tb.add(
    	{
    		text: 'HOME',
    		uri: '/index.html'
    	},
    	{
    		text: 'ABOUT US',
    		menu: Ext.create('Ext.menu.Menu', {
    			defaults: {
    				listeners: {
    					click: function(t) {
    						if (!Ext.isEmpty(t.uri)) {
    							window.location = t.uri;
    						}
    					}
    				}
    			},
    			items: [
    			    {
    					text: 'Overview',
    					uri: 'overview.html',
    					iconCls: 'icon_webpage'
    				},
    			    {
    					text: 'Leadership',
    					uri: 'leadership.html',
    					iconCls: 'icon_webpage'
    				},
    			    {
    					text: 'News',
    					uri: 'news.html',
    					iconCls: 'icon_news'
    				}
    			]
    		})
    	},
    	{
    		text: 'SOLUTIONS',
    		menu: Ext.create('Ext.menu.Menu', {
    			defaults: {
    				listeners: {
    					click: function(t) {
    						if (!Ext.isEmpty(t.uri)) {
    							window.location = t.uri;
    						}
    					}
    				}
    			},
    			items: [
        			    {
        					text: 'IntelliSIGHT',
        					uri: 'intellisight.html',
        					iconCls: 'icon_webpage'
        				},
        			    {
        					text: 'ThreatScape',
        					uri: 'threatscape.html',
        					iconCls: 'icon_webpage'
        				},
        			    {
        					text: 'iRAM',
        					uri: 'iram.html',
        					iconCls: 'icon_webpage'
        				},
        			    {
        					text: 'EC4',
        					uri: 'ec4.html',
        					iconCls: 'icon_webpage'
        				}
    			]
    		})
    	},
    	{
    		text: 'CONTACT US',
    		menu: Ext.create('Ext.menu.Menu', {
    			defaults: {
    				listeners: {
    					click: function(t) {
    						if (!Ext.isEmpty(t.uri)) {
    							window.location = t.uri;
    						}
    					}
    				}
    			},
    			items: [
        			    {
        					text: 'USA',
        					uri: 'contact_us.html',
        					iconCls: 'icon_contact'
        				},
        				{
        					text: 'China',
        					uri: 'contact_ch.html',
        					iconCls: 'icon_contact'
        				},
        				{
        					text: 'Europe',
        					uri: 'contact_eu.html',
        					iconCls: 'icon_contact'
        				},
        				{
        					text: 'Request for Solutions',
        					uri: 'request.html',
        					iconCls: 'icon_webpage'
        				},
        				{
        					text: 'Careers',
        					uri: 'careers.html',
        					iconCls: 'icon_job'
        				}
        		]
    		})
    	}
    	);
    tb.show();
});
