var TITEMS = [ 
 ["Overview", null, "1",
  ["Quick Start - Getting Started", "source/getstarted.htm", "11"],
  ["Using Public Talks", "source/communitytalks.htm", "11"],
  ["Using the 64 bit edition", "source/64bit.html", "11"]
 ],
 ["File", null, "1",
  ["New (Reports)", "source/reportdlg.htm", "1",
   ["Custom Reports Setup", "source/repcustom.htm", "11"],
   ["Away Talks Setup", "source/repawaytalks.htm", "11"],
   ["Congregations List Setup", "source/repcongs.htm", "11"],
   ["Home Talks Setup", "source/rephometalks.htm", "11"],
   ["Hospitality List Setup", "source/rephosplist.htm", "11"],
   ["Talks by Category Setup", "source/reptalkcat.htm", "11"],
   ["Talks List Setup", "source/reptalklist.htm", "11"],
   ["Talks Summary Setup", "source/reptalksum.htm", "11"],
   ["Talks Annual Review Setup", "source/reptalkreview.htm", "11"],
   ["Exporting to Microsoft Word", "source/wordexport.htm", "11"],
   ["Font Selection", "source/font_dlg.htm", "11"]
  ],
  ["Convert Database", "source/convert_database.html", "11"],
  ["Compact Database", "source/compact_database.html", "11"],
  ["Purge Database", "source/purge_database.html", "11"],
  ["Backup Database", "source/restore_dlg.htm", "11"],
  ["Restore Database", "source/restore_dlg.htm", "11"],
  ["Transfer to another PC", "source/transfersettings.htm", "11"],
  ["Transfer from another PC", "source/transfersettings.htm", "11"],
  ["Send to Microsoft Outlook", "source/send_outlook.html", "11"]
 ],
 ["Edit", null, "1",
  ["Talk Request List", "source/talk_request_list.html", "11"]
 ],
 ["Maintenance", null, "1",
  ["Assignments", "source/assign.htm", "11"],
  ["Maintain Databases", "source/maintdlg.htm", "1",
   ["Edit Entries", "source/edit_dlg.htm", "11"],
   ["Find Entries", "source/find_dlg.htm", "11"],
   ["Away/Home Talks", "source/hometalks.htm", "1",
    ["Editing Home Talk Entries", "source/homeentry.htm", "11"],
    ["Editing Away Talk Entries", "source/awayentry.htm", "11"],
    ["Importing Entries", "source/homeimport.htm", "11"]
   ],
   ["Brothers", "source/brothers.htm", "1",
    ["Importing Entries", "source/brothersimport.htm", "11"]
   ],
   ["Congregations", "source/congregations.htm", "1",
    ["Adding new congregations", "source/new_cong_dlg.htm", "11"],
    ["Time Changes Manager", "source/meettimechanges.htm", "11"],
    ["Congregation Hyperlinks", "source/congregationlink.htm", "11"],
    ["New / Modify Speaker", "source/speaker.htm", "11"],
    ["Brother Availability", "source/brotheravailable.htm", "11"],
    ["Importing Entries", "source/congimport.htm", "11"],
    ["Synchronize Data", "source/sync_cong.htm", "11"]
   ],
   ["Categories", "source/categories.htm", "1",
    ["Importing Entries", "source/catimport.htm", "11"]
   ],
   ["Public Talks", "source/talks.htm", "1",
    ["Adding new talks", "source/new_talk_dlg.htm", "11"],
    ["Importing Entries", "source/talkimport.htm", "11"]
   ],
   ["Custom Reports", "source/customreports.htm", "1",
    ["Script Editor", "source/scripteditor.htm", "11"],
    ["Script Editor Popup Menu", "source/scripteditor_popup.html", "11"],
    ["Script Editor Reset Variable", "source/scripteditor_reset_variable.html", "11"],
    ["Insert Database Loop", "source/loopdlg.htm", "11"],
    ["Insert IF", "source/crs_if.html", "11"],
    ["Script Command Syntax", "source/scriptsyntax.htm", "11"],
    ["Custom Date Format String", "source/customdates.htm", "11"],
    ["Expression Editor", "source/expression_editor.html", "11"],
    ["Tutorials", null, "1",
     ["Using The Script Editor", "source/tutorial1_using_script_editor.html", "11"],
     ["How To Write Scripts", "source/tutorial2_writing_scripts.html", "11"],
     ["Advanced Script Features", "source/tutorial3_variables.html", "11"]
    ]
   ],
   ["Journal", "source/journal.html", "11"]
  ],
  ["Rearrange Dates", "source/dateswizard.htm", "11"],
  ["Create Unassigned Date Entries", "source/unassigned_dlg.htm", "11"],
  ["Speaker Popup Menu", "source/speaker_popup_menu.html", "11"]
 ],
 ["Options", null, "1",
  ["Database Security", "source/database_security.html", "11"],
  ["Language", "source/language.html", "11"],
  ["Preferences", null, "1",
   ["General", "source/optionsgeneral.htm", "11"],
   ["Text Colours", "source/optionstextcolours.htm", "11"],
   ["Summary Info", "source/optionssummary.htm", "11"],
   ["Duplicates", "source/optionsduplicate.htm", "11"],
   ["Memo Labels", "source/optionsmemo.htm", "11"],
   ["Startup", "source/optionsstartup.htm", "11"],
   ["Google Calendar", "source/optionsgooglecalendar.html", "11"]
  ]
 ],
 ["Help", null, "1",
  ["Getting Started", "source/getstarted.htm", "11"],
  ["Current News (RSS feed)", "source/current_news.html", "11"],
  ["Checking for Updates", "source/checkforupdates.htm", "11"],
  ["Checking for New Talks", "source/updatetalks.htm", "11"],
  ["Submit a Bug or Feature Request", "source/reportbug.html", "11"]
 ],
 ["Revision History", "source/revisions.htm", "11"],
 ["Vista Compatability", "source/vista.htm", "11"],
 ["Contact Information", "source/contact.htm", "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;
}


