
Ext.onReady(function() {
	
	var menu0 = new Ext.menu.Menu({
        id: 'HomeMenu',
        items: [{
                        text: 'Welcome',
                        href: 'index.html'
                    },  {
                        text: 'Contacts',
                        href: 'Contact%20Us.htm'
                    },  {
                        text: 'Links',
                        href: 'Links.htm'
                    }
        ]
    });
	
    var menu1 = new Ext.menu.Menu({
        id: 'aboutMenu',
        items: [{
                        text: 'Location of Center',
                         href: 'Location%20of%20Center%201.htm'
                    },  {
                        text: 'History of Center',
                         href: 'History%20of%20Center.htm'
                    },
                    {
                        text: 'Building Design',
                         href: 'Building%20Design.htm'
                    }  
        ]
    });
    
    var menu2 = new Ext.menu.Menu({
        id: 'InfoMenu',
        items: [{
                        text: 'Doing a Retreat',
						href: 'Retreat%20Information.htm'
                    },{
                        text: 'Register',
						href: 'Retreat%20Information.htm#Register'
                    },  {
                        text: 'The Daily Routine',
                        href: 'Retreat%20Information.htm#Daily_Routine'
                    },
                    {
                        text: 'Accommodations',
                        href: 'Retreat%20Information.htm#Accomodations'
                    },
                    {
                        text: 'Plan Your Retreat',
                        href: 'Retreat%20Information.htm#Plan_Retreat'
                    },
                    {
                        text: 'Directions',
                        href: 'Retreat%20Information.htm#Directions'
                    }    
        ]
    });
    
    var menu3 = new Ext.menu.Menu({
        id: 'newsMenu',
        items: [{
                        text: 'Newletters',
                        href: 'News.htm'
                    },  {
                        text: 'Subscribe',
                        href: 'News.htm#Subscribe'
                    },
                    {
                        text: 'NamoBuddha Publications',
                        href: 'Namo%20Buddha%20Publications.htm'
                    }
        ]
    });
	
	var menu4 = new Ext.menu.Menu({
        id: 'SupportMenu',
        items: [{
                        text: 'Donate',
                        href: 'Membership.htm'
                    },  {
                        text: 'Membership',
                        href: 'Membership.htm'
                    },
                    {
                        text: 'How You Can Help',
                        href: 'How%20You%20Can%20Help.htm'
                    }
        ]
    });
	
	var menu5 = new Ext.menu.Menu({
        id: 'SupportMenu',
        items: [{
                        text: 'Teacher Information',
                        href: 'The%20Lamas.htm'
                    },  {
                        text: 'Sukhavati',
                        href: 'Sukhavati.htm'
                    }
        ]
    });
	
	var menu6 = new Ext.menu.Menu({
        id: 'ProgramMenu',
        items: [{
                        
                        text: 'Teaching & Retreat Programs',
                        href: 'teachingandretreatprograms.htm'
                    }
                    
        ]
    });

    var tb = new Ext.Toolbar('toolbar');
	
     tb.add({
            cls: 'x-btn-text-icon bmenu', // icon and text class
            text:'Home',
            menu: menu0  // assign menu by instance
        },'<font color="black"><strong>|</strong></font>',{
            cls: 'x-btn-text-icon bmenu', // icon and text class
            text:'About the Center',
            menu: menu1  // assign menu by instance
        },'<font color="black"><strong>|</strong></font>',
        {
            cls: 'x-btn-text-icon bmenu', // icon and text class
            text:'Retreat Information',
            menu: menu2  // assign menu by instance
        },'<font color="black"><strong>|</strong></font>',
        {
            cls: 'x-btn-text-icon bmenu', // icon and text class
            text:'News',
            menu: menu3  // assign menu by instance
        },'<font color="black"><strong>|</strong></font>',
        {
            cls: 'x-btn-text-icon bmenu', // icon and text class
            text:'Support the Center',
            menu: menu4  // assign menu by instance
        } ,'<font color="black"><strong>|</strong></font>',
        {
            cls: 'x-btn-text-icon bmenu', // icon and text class
            text:'The Lamas',
            menu: menu5  // assign menu by instance
        } ,'<font color="black"><strong>|</strong></font>',
        {
            cls: 'x-btn-text-icon bmenu', // icon and text class
            text:'Teaching & Retreat Programs',
            menu: menu6  // assign menu by instance
        }        
    );
    
    //var tb_height = tb.getEl().getHeight();
	//alert(tb_height);
});