/*
 * Ext JS Library 2.0
 * Copyright(c) 2006-2007, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

Ext.onReady(function(){
    Ext.QuickTips.init();
    
    var userGuideMenu = new Ext.menu.Menu({
        id: 'userGuideMenu',
        items: [
                        // stick any markup in a menu
                        '<b class="menu-title">Choose a Guide</b>',
                        {
                            text: 'Join MUFTS',
                            handler: loadJoinMuftsGuide
                        }, {
                            text: 'Different Memberships',
                            handler: loadMembershipGuide
                        }, {
                            text: 'Preferred Membership Advantages',
                            handler: loadAdvantages
                        }, {
                            text: 'Promote Product',
                            handler: loadPromoteProductGuide
                        }, {
                            text: 'Promote Business',
                            handler: loadPromoteBusinessGuide
                        }, {
                            text: 'Request Quote',
                            handler: loadRequestQuoteGuide
                        }, {
                            text: 'Account Managment',
                            handler: loadAccountGuide
                        }, {
                            text: 'Product Search',
                            handler: loadProductSearchGuide
                        }, {
                            text: 'Request Search',
                            handler: loadRequestSearchGuide
                        }, {
                            text: 'Business Search',
                            handler: loadBusinessSearchGuide
                        }, {
                            text: 'Assistance Center',
                            handler: loadAssistanceCenterGuide
                        }
                    ]
                });
        var servicesMenu = new Ext.menu.Menu({
        id: 'servicesMenu',      
                    items: [
                        // stick any markup in a menu
                        '<b class="menu-title">Choose a Service</b>',
                        {
                            text: 'International Marketplace (www.MUFTS.com)',
                            handler: LoadMarketPlace
                        },{
                            text: 'Advertising',
                            handler: LoadAdvertising
                        },{
                            text: 'MUFTS Assistance Center',
                            handler: LoadAssistanceCenter
                        }, {
                            text: 'Supplier Verification',
                            handler: LoadSupplierVerification
                        }, {
                            text: 'Trading Intermediate',
                            handler: LoadTradingIntermediate
                        }, {
                            text: 'Consulting',
                            menu: {
									items: [
				                        {
				                            text: 'International Trade Consulting',
				                            handler: loadTradeConsulting
				                        }, {
				                            text: 'Information and Technology Consulting',
				                            handler: loadITConsulting
				                        }, {
				                            text: 'Small Business Consulting',
				                            handler: loadBusinessConsulting
				                        }
				                    ]
				                }
                        }, {
                            text: 'Web Intermediate',
                            handler: LoadWebIntermediate
                        }
                    ]
                });
        var policiesMenu = new Ext.menu.Menu({
        id: 'policiesMenu',
					items: [
	                        {
	                            text: 'Disclaimer',
	                            handler: loadDisclaimer
	                        },
							{
	                            text: 'Privacy Policy',
	                            handler: loadPrivacyPolicy
	                        }, {
	                            text: 'Terms of Use Agreement',
	                            menu: {
									items: [
				                        {
				                            text: 'Acceptance Terms',
				                            handler: loadAcceptanceTerms
				                        }, {
				                            text: 'The Service',
				                            handler: loadService
				                        }, {
				                            text: 'Member Responsabilities',
				                            handler: loadMemberResponsabilities
				                        }, {
				                            text: 'Transactions between Buyers and Suppliers',
				                            handler: loadTransactionRules
				                        }, {
				                            text: 'Limitation of Liability',
				                            handler: loadLiability
				                        }, {
				                            text: 'Intellectual Property Rights',
				                            handler: loadPropertyRights
				                        }, {
				                            text: 'General',
				                            handler: loadGeneral
				                        }
				                    ]
				                }
	                        }, {
	                            text: 'Product Restrictions and Prohibitions',
	                            handler: loadProductRestriction
	                        }
	                    ]
	                });
 



    var tb = new Ext.Toolbar();
    tb.render('toolbar');

    tb.add(
    	{
            text:'Company Overview',
            id:'overview',
            iconCls: 'bmenu',  // <-- icon
            handler: LoadCompanyOverview
        },
		{
            text:' MUFTS Services',
            id:'services',
            iconCls: 'bmenu',  // <-- icon
            menu: servicesMenu  // assign menu by instance
        },
		{
            text:' MUFTS User Guide ',
            id:'userGuide',
            iconCls: 'bmenu',  // <-- icon
            menu: userGuideMenu  // assign menu by instance
        },
		{
            text:' MUFTS Policies ',
            id:'back',
            iconCls: 'bmenu',  // <-- icon
            menu: policiesMenu 
        },
		{
            text:' Contact Us ',
            id:'back',
            iconCls: 'bmenu',  // <-- icon
            handler: loadContactUs
        },'->', 
		{
            text:' French Translation ',
            id:'back',
            iconCls: 'fmenu',  // <-- icon
            handler: translateWeb
        });


});
Ext.BLANK_IMAGE_URL = '../images/s.gif';