/******************************************************************************
* This file defines the tree menu with it's items and submenus.               *
******************************************************************************/

// User-defined tree menu data.

var treeMenu           = new TreeMenu();  // This is the main menu.
var treeMenuName       = "myMenu_1.0";    // Make this unique for each tree menu.
var treeMenuDays       = 2;               // Number of days to keep the cookie.
var treeMenuFrame      = "menuFrame";     // Name of the menu frame.
var treeMenuImgDir     = "./shire_profile/graphics/"      // Path to graphics directory.
var treeMenuBackground = "";              // Background image for menu frame.   
var treeMenuBgColor    = "#ffffff";       // Color for menu frame background.   
var treeMenuFgColor    = "#000000";       // Color for menu item text.
var treeMenuHiBg       = "#008080";       // Color for selected item background.
var treeMenuHiFg       = "#ffffff";       // Color for selected item text.
var treeMenuFont       = 
      "MS Sans Serif,Arial,Helvetica";    // Text font face.
var treeMenuFontSize   = 1;               // Text font size.
var treeMenuRoot       = "Site Map";     // Text for the menu root.
var treeMenuFolders    = 0;               // Sets display of '+' and '-' icons.
var treeMenuAltText    = true;            // Use menu item text for icon image ALT text.

// Define the items for the top-level of the tree menu.

treeMenu.addItem(new TreeMenuItem("Home"));
treeMenu.addItem(new TreeMenuItem("Shire Profile", "./shire_profile/", "_parent"));
treeMenu.addItem(new TreeMenuItem("Business"));
treeMenu.addItem(new TreeMenuItem("Tourism"));
treeMenu.addItem(new TreeMenuItem("Community"));
treeMenu.addItem(new TreeMenuItem("Council"));

// Home submenu.

var home = new TreeMenu();
home.addItem(new TreeMenuItem("New residents kit", "./new_res_kit.php", "_parent"));
home.addItem(new TreeMenuItem("Lifestyle", "./lifestyle.php", "_parent"));
home.addItem(new TreeMenuItem("Sitemap", "./sitemap.html", "_parent"));
home.addItem(new TreeMenuItem("Photo gallery", "./photo_gallery.php", "_parent"));
home.addItem(new TreeMenuItem("Contact Us", "./contact_us.php", "_parent"));
home.addItem(new TreeMenuItem("Admin area", "./admin/", "_parent"));
treeMenu.items[0].makeSubmenu(home);


// Business sub-submenu.

var bus = new TreeMenu();
bus.addItem(new TreeMenuItem("Business Gunnedah", "./business/business_gunnedah.php", "_parent"));
bus.addItem(new TreeMenuItem("Gunnedah business listing", "./business/b_directory.php", "_parent"));
bus.addItem(new TreeMenuItem("Rural Plan", "./business/rural_plan.php", "_parent"));
bus.addItem(new TreeMenuItem("Agriculture", "./business/agriculture.php", "_parent"));
bus.addItem(new TreeMenuItem("Gunnedah District Development", "./business/distric-development.php", "_parent"));
treeMenu.items[2].makeSubmenu(bus);


// Tourism sub-submenu.

var tourism = new TreeMenu();
tourism.addItem(new TreeMenuItem("Attractions", "./tourism/attractions.php", "_parent"));
tourism.addItem(new TreeMenuItem("Accommodation", "./tourism/accommodation.php", "_parent"));
tourism.addItem(new TreeMenuItem("Places to eat", "./tourism/places_to_eat.php", "_parent"));
tourism.addItem(new TreeMenuItem("Calendar of events", "./tourism/cal_of_events.php", "_parent"));
tourism.addItem(new TreeMenuItem("Conference Venue", "./tourism/conference.html", "_parent"));
tourism.addItem(new TreeMenuItem("How to get to gunnedah", "./tourism/how_to_get.html", "_parent"));
tourism.addItem(new TreeMenuItem("Visitor Information Centre", "./tourism/visitor_info.html", "_parent"));
tourism.addItem(new TreeMenuItem("Koalas", "./tourism/koalas.html", "_parent"));
tourism.addItem(new TreeMenuItem("Dorothea Mackellar", "./tourism/dorothea.html", "_parent"));
tourism.addItem(new TreeMenuItem("Civic Theatre", "./tourism/civic_theatre.html", "_parent"));
tourism.addItem(new TreeMenuItem("Send a postcard from Gunnedah", "./tourism/postcard.php", "_parent"));
treeMenu.items[3].makeSubmenu(tourism);


// Community sub-submenu.

var tourism = new TreeMenu();
tourism.addItem(new TreeMenuItem("Community organisation", "./community/", "_parent"));
tourism.addItem(new TreeMenuItem("Community facilities", "./community/community_facilities.html", "_parent"));
tourism.addItem(new TreeMenuItem("Schools", "./community/schools.html", "_parent"));
tourism.addItem(new TreeMenuItem("Health", "./community/health.html", "_parent"));
tourism.addItem(new TreeMenuItem("Emergency services", "./community/emergency.html", "_parent"));
tourism.addItem(new TreeMenuItem("Town history", "./community/town_history.html", "_parent"));
tourism.addItem(new TreeMenuItem("Churches", "./community/churches.html", "_parent"));
treeMenu.items[4].makeSubmenu(tourism);


// Council sub-submenu.

var recreation = new TreeMenu();
recreation.addItem(new TreeMenuItem("Sporting Clubs", "./council/", "_parent"));
recreation.addItem(new TreeMenuItem("Function and Conference Centres", "./council/", "_parent"));
recreation.addItem(new TreeMenuItem("Community Services and Service Clubs", "./council/", "_parent"));
recreation.addItem(new TreeMenuItem("Health Care", "./council/", "_parent"));
recreation.addItem(new TreeMenuItem("Services for the Aged", "./council/", "_parent"));
recreation.addItem(new TreeMenuItem("Disability Services", "./council/", "_parent"));
recreation.addItem(new TreeMenuItem("Churches and Religious Groups ", "./council/", "_parent"));
treeMenu.items[5].makeSubmenu(recreation);




