var TITEMS = [ 
 ["Welcome", "welcome/welcome.html", "11"],
 ["What's new in version 3.1", "welcome/features.html", "11"],
 ["Installation and Configuration", null, "1",
  ["Getting Started", "getstarted/main.html", "11"],
  ["Configuration", "config/main.html", "1",
   ["Logging in", "config/login.html", "11"],
   ["License Key", "config/license.html", "11"],
   ["Database Settings", "config/database.html", "11"],
   ["Upgrade", "config/updgrade.html", "11"],
   ["Email Settings", "config/email.html", "11"],
   ["General Settings", "config/general.html", "11"],
   ["Password Settings", "config/password.html", "11"]
  ]
 ],
 ["Using Bug-Track.com", null, "1",
  ["Accounts", null, "1",
   ["Creating a new Account", "accounts/create_account.html", "11"],
   ["Upgrading an existing Account", "accounts/upgrading_account.html", "11"],
   ["Closing an Account", "accounts/closing_account.html", "11"]
  ],
  ["Administration", "administration/main.html", "1",
   ["Accounts", null, "1",
    ["Account Information", "administration/account/information.html", "11"],
    ["Account Co-Branding", "administration/account/cobranding.html", "11"],
    ["Account Security", "administration/account/security.html", "11"],
    ["Account Level Drop-Down Customization", "administration/account/lookups.html", "11"]
   ],
   ["Clients", "administration/client/main.html", "1",
    ["Adding New Clients", "administration/client/add.html", "11"],
    ["Modifying Client Information", "administration/client/modify.html", "11"]
   ],
   ["Projects", "administration/project/main.html", "1",
    ["Adding New Projects", "administration/project/add.html", "11"],
    ["Modifying Project Information", "administration/project/modify.html", "11"],
    ["Project Security", "administration/project/security.html", "11"],
    ["Project Level Drop-Down Customization", "administration/project/lookups.html", "11"]
   ],
   ["Users", "administration/user/main.html", "1",
    ["Adding New Users", "administration/user/add.html", "11"],
    ["Modifying a User", "administration/user/modify.html", "11"],
    ["User Security", "administration/user/security.html", "11"]
   ]
  ],
  ["Bugs", "bugs/main.html", "1",
   ["Adding a Bug", "bugs/add.html", "11"],
   ["Modifying a Bug", "bugs/edit.html", "11"],
   ["Bug Fields Descritpion", "bugs/fields.html", "11"],
   ["Closing and re-opening a Bug", "bugs/close.html", "11"],
   ["Navigating Bugs", "bugs/list.html", "11"],
   ["Modifying a Bug's attachments", "bugs/attachments.html", "11"],
   ["Modifying a Bug's links", "bugs/links.html", "11"],
   ["Copying a Bug to another project", "bugs/copy.html", "11"],
   ["Moving a Bug to another project", "bugs/move.html", "11"],
   ["Printing a Bug", "bugs/print.html", "11"],
   ["View a bug's history", "bugs/history.html", "11"]
  ],
  ["Exporting Data", "export/main.html", "11"],
  ["Lists", "lists/main.html", "1",
   ["Customizing Pre-Defined Lists", "lists/customize.html", "11"],
   ["Sorting Pre-Defined Lists", "lists/sorting.html", "11"],
   ["Printing Pre-Defined Lists", "lists/printing.html", "11"]
  ],
  ["Preferences", "preferences/main.html", "1",
   ["Change your personnal information", "preferences/info.html", "11"],
   ["Customize Pre-Defined Bug Lists", "preferences/lists.html", "11"],
   ["Customize Pre-Defined Bug Reports", "preferences/reports.html", "11"]
  ],
  ["Project Center", "projectcenter/main.html", "1",
   ["View a Project's Information", "projectcenter/info.html", "11"],
   ["Switching Projects", "projectcenter/switch.html", "11"],
   ["Adding a new bug to a project", "projectcenter/addbug.html", "11"],
   ["View a Project's Documents", "projectcenter/documents.html", "11"],
   ["View a Project's Document", "projectcenter/viewdoc.html", "11"],
   ["Add a document to a Project", "projectcenter/adddoc.html", "11"],
   ["Delete a Project's Document", "projectcenter/removedoc.html", "11"],
   ["View a Project's Dashboards", "projectcenter/dashboard.html", "11"],
   ["View a project's RSS Feeds", "projectcenter/rss.html", "11"]
  ],
  ["Reporting", "reports/main.html", "1",
   ["Text Reports", "reports/text.html", "11"],
   ["Graphical Reports", "reports/graphic.html", "11"],
   ["Management Reports", "reports/mgmt.html", "11"],
   ["Performance Reports", "reports/performance.html", "11"]
  ],
  ["Search", "search/main.html", "1",
   ["Text Search", "search/text.html", "11"],
   ["Bug Number Search", "search/number.html", "11"],
   ["Advanced Search", "search/advanced.html", "11"],
   ["Search using Saved Search Query", "search/searchsaved.html", "11"],
   ["View Saved Search Queries", "search/viewqueries.html", "11"],
   ["Add a Saved Search Query", "search/addquery.html", "11"],
   ["Delete Saved Search Queries", "search/deletesaved.html", "11"],
   ["Change the Public/Private property of a Saved Search Query", "search/makepublic.html", "11"]
  ]
 ]
];


var FITEMS = arr_flatten(TITEMS);

function arr_flatten (x) {
   var y = []; if (x == null) return y;
   for (var i=0; i<x.length; i++) {
      if (typeof(x[i]) == "object") {
         var flat = arr_flatten(x[i]);
         for (var j=0; j<flat.length; j++)
             y[y.length]=flat[j];
      } else {
         if ((i%3==0))
          y[y.length]=x[i+1];
      }
   }
   return y;
}


