var TITEMS = [ 
 ["Graphic Accounts Help - Index", "ga_index.html", "1",
  ["Overview: Modeling your finances with Graphic Accounts", "overview.html", "11"],
  ["Quick Toolbar", "quick_toolbar.html", "11"],
  ["Getting Started - Tutorial", "getting started - tutorial/index.html", "1",
   ["Lesson 1.1: Setting up Initial Funds", "getting started - tutorial/lesson_initialfunds_setup.html", "11"],
   ["Lesson 1.2: Setting Up Salary", "getting started - tutorial/lesson_salary_setup.html", "11"],
   ["Lesson 1.3: Simple and Compound Interest", "getting started - tutorial/lesson_interest.html", "11"],
   ["Lesson 1.4: Tax and Salary", "getting started - tutorial/lesson_tax_salary.html", "11"],
   ["Lesson 1.5: Tax and Investments/Savings", "getting started - tutorial/lesson_tax_investments.html", "11"],
   ["Lesson 1.6: Inflation and Salary", "getting started - tutorial/lesson_inflation_salary.html", "11"],
   ["Lesson 1.7: Inflation and Investments", "getting started - tutorial/lesson_inflation_investments.html", "11"],
   ["Lesson 1.8: Optimizing Expenditure", "getting started - tutorial/lesson_optimizing_expenditure.html", "11"],
   ["Lesson 2.1: Starting a new budget", "getting started - tutorial/lesson_creatingbudget.html", "11"],
   ["Lesson 2.2: Categories and sub-categories", "getting started - tutorial/lesson_categories.html", "11"],
   ["Lesson 2.3: Setting category expenditure (1)", "getting started - tutorial/lesson_categoryamounts.html", "11"],
   ["Lesson 2.4: Setting category expenditure (2)", "getting started - tutorial/lesson_nonstandardperiods.html", "11"],
   ["Lesson 3.1: Rescaling the Budget", "getting started - tutorial/lesson_budgetrescaling.htm", "11"],
   ["Lesson 4.1: Synchronizing Expenditure and Budget", "getting started - tutorial/lesson_synchronizing.html", "11"],
   ["Lesson 4.2: Synchronizing and Optimizing", "getting started - tutorial/lesson_synchronizing-optimizing.html", "11"]
  ],
  ["Accounts", "accounts/index.html", "1",
   ["Introducing the dual accounts model", "accounts/introducing_dual_accounts.html", "11"],
   ["Dual chart display", "accounts/dual_charts.html", "11"],
   ["Linking Accounts", "accounts/linkingaccounts.html", "11"],
   ["Initial Funds", "accounts/initial_funds.html", "11"],
   ["Salary", "accounts/salary.html", "11"],
   ["Expenditure", "accounts/expenditure.html", "11"],
   ["Optimizing Expenditure", "accounts/optimizing.html", "11"],
   ["Interest rates", "accounts/interest.html", "11"],
   ["Tax rate", "accounts/tax.html", "11"],
   ["Inflation rate", "accounts/inflation_rate.html", "11"],
   ["Editing currency amounts", "accounts/editing_currency_amounts.html", "11"],
   ["Market Variability Simulation", "accounts/simulation.html", "11"]
  ],
  ["Budgets", "budgets/index.html", "3",
   ["Importing spending categories from Quicken or Microsoft Money", "budgets/importing_category_expenses_data.html", "3",
    ["Importing Quicken expenses and categories", "budgets/importing_quicken_data.html", "11"],
    ["Importing Microsoft Money expenses and categories", "budgets/importing_msmoney_data.html", "11"],
    ["Importing an expenses report file into Graphic Accounts", "budgets/importing_expenses_report_file.html", "11"],
    ["Troubleshooting Quicken report files", "budgets/troubleshooting_quicken_report_files.html", "11"],
    ["Troubleshooting Microsoft Money report files", "budgets/troubleshooting_msmoney_report_files.html", "11"]
   ],
   ["Creating and deleting categories", "budgets/creating_deleting_categories.html", "11"],
   ["Setting expense category amount", "budgets/category_amounts.html", "11"],
   ["Moving categories in budget tree", "budgets/moving_categories.html", "11"],
   ["Essential Expenses", "budgets/essential expenses.html", "11"],
   ["Rescaling the budget", "budgets/rescaling.html", "11"],
   ["Synchronizing budget with accounts", "budgets/synchronizing.html", "11"]
  ],
  ["Print &amp; Preview: Options", "printpreview/index.html", "1",
   ["Print Options - Budget: Content", "printpreview/budget_content.html", "11"],
   ["Print Options - Budget: Margins", "printpreview/budget_margins.html", "11"],
   ["Print Options - Budget: Fonts/Header", "printpreview/budget_fonts_header.html", "11"],
   ["Print Options - Budget: Shading", "printpreview/budget_shading.html", "11"],
   ["Print Options - Printer", "printpreview/printer_options.html", "11"],
   ["Print Options: Accounts - Layout", "printpreview/accounts_layout.html", "11"]
  ],
  ["Preferences", "preferences/index.html", "1",
   ["Currency Options", "preferences/prefs_currencyoptions.html", "11"],
   ["General options", "preferences/prefs_generaloptions.html", "11"],
   ["Account Colors", "preferences/prefs_colors.html", "11"],
   ["Account Titles", "preferences/prefs_titles.html", "11"],
   ["File Associations", "preferences/prefs_fileassociations.html", "11"]
  ],
  ["Files and Security", "files and security.html", "11"],
  ["Ordering Information", "howtobuy.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;
}


