var TITEMS = [ 
 ["Getting Started", "source/howtostart.htm", "11"],
 ["User Interface", "source/interface.htm", "1",
  ["Toolbar", "source/toolbar.htm", "11"],
  ["Tabs", "source/dicttab.htm", "1",
   ["Dictionary", "source/dicttab.htm", "1",
    ["Edit Mode", "source/editmode.htm", "11"],
    ["Formatting an Entry", "source/editmode.htm#editing", "11"]
   ],
   ["Found", "source/dicttab.htm#found", "11"],
   ["Test", "source/dicttab.htm#test", "11"],
   ["Slide Show", "source/dicttab.htm#slideshow", "11"]
  ],
  ["Field Buttons", "source/fbuttons.htm", "11"],
  ["Searching Tool", "source/searchtool.htm", "1",
   ["Pop-Up Dictionary Mode", "source/searchtool.htm#popupdict", "11"],
   ["Sentence Word-for-Word Translation", "source/searchtool.htm#sentence", "11"],
   ["Advanced Search", "source/searchtool.htm#advsearch", "11"]
  ],
  ["Options", "source/opt_menu.htm", "1",
   ["Test", "source/options.htm", "11"],
   ["Timer", "source/options.htm#timer", "11"],
   ["General", "source/options.htm#general", "11"],
   ["Fields Tab", "source/options.htm#fields", "11"],
   ["View", "source/options.htm#view", "11"]
  ],
  ["Keyboard Shortcuts", "source/hotkeys.htm", "1",
   ["General", "source/hotkeys.htm", "11"],
   ["Fields", "source/hotkeys.htm#fields", "11"],
   ["Found Field", "source/hotkeys.htm#found", "11"],
   ["Searching Tool", "source/hotkeys.htm#search", "11"],
   ["Slide Show", "source/hotkeys.htm#slideshow", "11"]
  ]
 ],
 ["How To...", "source/howto.htm", "1",
  ["Open the Dictionary I have Downloaded from your Site", "source/howto3.htm", "11"],
  ["Make the Program to Pronounce a Word", "source/howto6.htm", "11"],
  ["Assign a Sound File to an Entry", "source/howto5.htm", "11"],
  ["Place the Main Window on Top", "source/howto1.htm", "11"],
  ["Make the Interface in my Own Language", "source/howto2.htm", "11"],
  ["Buy Pop-Up Dictionary", "source/register.htm", "11"],
  ["Buy Dictionaries", "source/howto4.htm", "11"],
  ["Set Optimal Test Options", "source/howto7.htm", "11"],
  ["Compact the Dictionary", "source/howto8.htm", "11"]
 ],
 ["Frequently Asked Questions", "source/faq.htm", "1",
  ["I can't find the transcription field", "source/faq1.htm", "11"],
  ["I can't find the New Dictionary button on the toolbar", "source/faq2.htm", "11"],
  ["What is the alternative for Ctrl+Ins+Ins?", "source/faq3.htm", "11"],
  ["A toolbar always pop-ups when I use Ctrl+Ins+Ins in MS Word 2000/XP.", "source/faq10.htm", "11"],
  ["How to Switch the Translation Direction?", "source/faq4.htm", "11"],
  ["How to enable Copy To &gt; button?", "source/faq5.htm", "11"],
  ["I have created a new dictionary, but I can't find it in the drop-down list", "source/faq6.htm", "11"],
  ["Do you have a dictionary for the ... language?", "source/faq7.htm", "11"],
  ["Wrong keyboard layout activates, when I place cursor to a field", "source/faq8.htm", "11"],
  ["Is there a compiler for creating a dictionary from a text file?", "source/faq9.htm", "11"]
 ],
 ["History of Changes", "source/history.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;
}

