var app_path = "/";

sniffBrowsers();

FPCMenu = new menuBar('FPCMenu',800, 'horizontal', null, null);
    FPCMenu.addLabel(null, 'Home', 1, 60, '#FFFFFF', '#E8E3F2', app_path, 'left');
    FPCMenu.addLabel(null, 'About The Foundation', 2, 150, '#FFFFFF', '#E8E3F2', app_path + 'about_the_foundation/', 'left', null);
    FPCMenu.addLabel(null, 'About therapy', 3, 100, '#FFFFFF', '#E8E3F2', app_path + 'about_therapy/', 'left', null);
    FPCMenu.addLabel(null, 'Health professionals', 4, 135, '#FFFFFF', '#E8E3F2', app_path + 'health_professionals/', 'left', null);
    FPCMenu.addLabel(null, 'Find a therapist', 5, 113, '#FFFFFF', '#E8E3F2', app_path + 'find_a_therapist/', 'left', null);
    FPCMenu.addLabel(null, 'Contacts', 6, 75, '#FFFFFF', '#E8E3F2', app_path + 'contacts', 'left', null);
    FPCMenu.addLabel(null, 'Members area', 7, 100, '#FFFFFF', '#F5FFD6', '/members/', 'left', "MemebersLabelLink");

//FPCMenu.height = '50px';

menus[1] = new menu(200, 'vertical', null, null);
menus[1].writeMenu();

menus[2] = new menu(200, 'vertical', null, null);
menus[2].addItem(null, 'Background', null, 200, '#E8E3F2', '#E8E3F2', '/about_the_foundation/index.php', 'first');
menus[2].addItem(null, 'Our training', null, 200, '#E8E3F2', '#E8E3F2', '/about_the_foundation/training.php', 'last');
menus[2].writeMenu();

menus[3] = new menu(400, 'vertical', null, null);
menus[3].height = 18;
menus[3].addItem(null, 'Deciding &#8211; is this the right route for you?', null, 400, '#E8E3F2', '#E8E3F2', '', 'first');
menus[3].addItem(null, 'Why choose counselling or therapy?', null, 400, '#E8E3F2', '#E8E3F2', app_path + 'about_therapy/why_choose_counselling_or_therapy.php', 'sub');
menus[3].addItem(null, 'Why choose The Foundation?', null, 400, '#E8E3F2', '#E8E3F2', app_path + 'about_therapy/why_choose_the_foundation.php', 'sub');
menus[3].addItem(null, 'Choosing &#8211; What and who will suit you best?', null, 400, '#E8E3F2', '#E8E3F2', '', 'sec');
menus[3].addItem(null, 'Who is it for?', null, 400, '#E8E3F2', '#E8E3F2', app_path + 'about_therapy/matching.php', 'sub');/*who_is_it_for.php*/
menus[3].addItem(null, 'Individual therapy', null, 400, '#E8E3F2', '#E8E3F2', app_path + 'about_therapy/individual_therapy.php', 'sub');
menus[3].addItem(null, 'Group therapy', null, 400, '#E8E3F2', '#E8E3F2', app_path + 'about_therapy/group_therapy.php', 'sub');
menus[3].addItem(null, 'How do I find a therapist?', null, 400, '#E8E3F2', '#E8E3F2', app_path + 'about_therapy/find_therapist.php', 'sub');
menus[3].addItem(null, 'Getting started &#8211; Knowing what\'s involved and getting in touch', null, 400, '#E8E3F2', '#E8E3F2', '', 'sec');	
menus[3].addItem(null, 'When can I see someone?', null, 400, '#E8E3F2', '#E8E3F2', app_path + 'about_therapy/acting.php', 'sub');
menus[3].addItem(null, 'Fees', null, 400, '#E8E3F2', '#E8E3F2', app_path + 'about_therapy/fees.php', 'sub');
menus[3].addItem(null, 'Contracts', null, 400, '#E8E3F2', '#E8E3F2', app_path + 'about_therapy/contracts.php', 'sec');
menus[3].addItem(null, 'In your best interests', null, 400, '#E8E3F2', '#E8E3F2', app_path + 'about_therapy/overview.php', 'sec');
menus[3].addItem(null, 'Code of Conduct', null, 400, '#E8E3F2', '#E8E3F2', app_path + 'about_therapy/code_of_conduct.php', 'sub');
menus[3].addItem(null, 'Special requirements', null, 400, '#E8E3F2', '#E8E3F2', app_path + 'about_therapy/special_requirements.php', 'lastsub');
menus[3].writeMenu();

menus[4] = new menu(300, 'vertical', null, null);
menus[4].height = 18;
menus[4].writeMenu();

menus[5] = new menu(250, 'vertical', null, null);
menus[5].height = 18;
menus[5].addItem(null, 'An overview of your options', null, 300, '#E8E3F2', '#E8E3F2', app_path + 'find_a_therapist/index.php', 'first');
menus[5].addItem(null, 'Online search and self&#8211;select', null, 300, '#E8E3F2', '#E8E3F2', app_path + 'find_a_therapist/online_search.php', 'sec');
menus[5].addItem(null, 'Contacting the referral service', null, 300, '#E8E3F2', '#E8E3F2', app_path + 'find_a_therapist/referral_service.php', 'last');
menus[5].writeMenu();

menus[6] = new menu(180, 'vertical', null, null);
menus[6].addItem(null, 'Contact The Foundation', null, 170, '#E8E3F2', '#E8E3F2', '/contacts/index.php', 'first');
menus[6].addItem(null, 'Other contacts', null, 170, '#E8E3F2', '#E8E3F2', '/contacts/other_contacts.php', 'sec');
menus[6].addItem(null, 'In an emergency', null, 170, '#E8E3F2', '#E8E3F2', '/contacts/emergency.php', 'last');
menus[6].writeMenu();

menus[7] = new menu(190, 'vertical', null, null);
menus[7].height = 18;
menus[7].addItem(null, 'Log in', null, 200, '#F5FFD6', '#F5FFD6', '/members/login.php', 'firstlast');
menus[7].writeMenu();

menus[1].align='left';
menus[2].align='left';
menus[3].align='left';
menus[4].align='left';
menus[5].align='left';
menus[6].align='left';
menus[7].align='right';


//var style = getStyleObject("ject("

