var TITEMS = [ 
 ["InSight Documentation", null, "1",
  ["Welcome To InSight", null, "1",
   ["Welcome To InSight", "getting_started_with_insight.htm", "11"]
  ],
  ["TermView", null, "1",
   ["TermView Overview", "termview.htm", "11"],
   ["TermView Feature Summary", "termview_feature_summary.htm", "11"],
   ["InSight Terminal State Definitions", "insight_terminal_state_definitions.htm", "11"],
   ["TermView and Java-Enabled Terminals", "termview_and_java-enabled_terminals.htm", "11"],
   ["TermView Limitations Note", "termview_limitation_note.htm", "11"]
  ],
  ["InSight Dump Formatter", null, "1",
   ["InSight Dump Formatter Information", null, "1",
    ["Dump Formatter Overview", "insight_dump_formatter.htm", "11"]
   ],
   ["InSight Dump Formatter Output File", "insight_dump_formatter_output_file.htm", "1",
    ["Section 1. Terminal Properties", "insight_dump_formatter_output_file_section_1.htm", "11"],
    ["Section 2. Terminal Adxserve Data", "insight_dump_formatter_output_file_section_2.htm", "11"],
    ["Section 3. Global Events Queue", "section_3_insight_global_events_queue.htm", "11"],
    ["Section 4. Global Events Queue - Multiple Devices Shown", "section_4_global_events_queue_2.htm", "11"],
    ["Section 5. Device Events Queues", "section_5_device_event_queues.htm", "11"],
    ["Section 6. Keyboard Labeling", "section_6_keyboard_labeling.htm", "11"]
   ]
  ],
  ["InSight W008 Block Counting", null, "1",
   ["W008 Block Counting", "insight_w008_block_counting.htm", "11"]
  ],
  ["Installation and Use", null, "1",
   ["Installing InSight on the Store Controllers", null, "1",
    ["Installation Instructions", "installation.htm", "11"],
    ["Installation Notes", "controller_installation_notes.htm", "11"],
    ["Disk and Memory Requirements", "disk_and_memory_requirements.htm", "11"],
    ["Summary of Steps Taken by Self-Installer", "summary_of_steps_taken_by_self-installer.htm", "11"],
    ["Firewall Configuration When Installing on CSF", "firewall_configuration_when_installing_on_csf.htm", "11"]
   ],
   ["Uninstalling InSight on the Store Controllers", null, "1",
    ["Uninstall Instructions", "controlleruninstall.htm", "11"]
   ],
   ["InSight Controller Tool", null, "1",
    ["Controller Utility Command Line Option Summary", "insight_controller_tool.htm", "11"]
   ],
   ["Disabling InSight", null, "1",
    ["Disable/Enable Insight Operations", "disable_details.htm", "11"]
   ]
  ],
  ["InSight Programming Toolkit", "insight_toolkit.htm", "1",
   ["Documentation", null, "1",
    ["InSight Documentation included with the Toolkit", "insight_documentation_included_with_the_toolkit.htm", "11"]
   ],
   ["Build Resources", null, "1",
    ["Toolkit Library and Include Files", "toolkit_library_and_include_files.htm", "11"]
   ],
   ["MibWalk", "mibwalk.htm", "1",
    ["MIBWalk Options", "mibwalk_options.htm", "11"],
    ["MIBWalk Output File", "mibwalk_output_file.htm", "11"]
   ],
   ["FindServ", "findserver.htm", "1",
    ["FindServ Sample Output", "findserv_sample_output.htm", "11"]
   ],
   ["TermView", null, "1",
    ["TermView Sample Application", "termview_sample_application.htm", "11"]
   ],
   ["Dump Formatter", null, "1",
    ["Dump Formatter", "dump_formatter.htm", "11"]
   ],
   ["InSight Programming Guide", "insightapis_xxxx_xxxx.htm", "1",
    ["Programmer Guide Table of Contents", null, "1",
     ["Table of Contents", "apis_table_of_contents.htm", "11"]
    ],
    ["Chapter 1. InSight Design and Programming Interfaces", "chapter_1.htm", "1",
     ["Insight Design", "chapter_1.htm", "11"],
     ["InSight Direct Access", "insight_direct_access.htm", "11"]
    ],
    ["Chapter 2. InSight Direct Interface (IDA) for C", "chapter_2.htm", "1",
     ["InSight Direct Interface Software", "chapter_2.htm", "1",
      ["InSight Direct Interface Software Module Overview", "chapter_2.htm", "11"]
     ],
     ["Using InSight Direct Access", "using_insight_direct_access.htm", "1",
      ["InSight Direct Access Features", null, "1",
       ["Establishing a Controller Agent Session", "using_insight_direct_access.htm", "11"],
       ["SNMP Request Overview", "snmp_request_overview.htm", "11"],
       ["Accessing Variables Using IDA_GetVars and IDA_SetVars", "accessing_variables_using_ida_getvars.htm", "11"],
       ["Accessing Variables Using IDA_VarBindBuild", "accessing_variables_using_ida_varbind.htm", "11"],
       ["Waiting For MIB Events", "waiting_for_mib_events.htm", "11"]
      ],
      ["IDA Functions", "ida_functions.htm", "1",
       ["IDA_FindServers", "ida_findservers.htm", "11"],
       ["IDA_OpenSession", "ida_opensession.htm", "11"],
       ["IDA_CloseSession", "ida_closesession.htm", "11"],
       ["IDA_InitRequest", "ida_initrequest.htm", "11"],
       ["IDA_VarBindBuild", "ida_varbindbuild.htm", "11"],
       ["IDA_RepeatVarBindBuild", "ida_repeatvarbindbuild.htm", "11"],
       ["IDA_SessionRequest", "ida_sessionrequest.htm", "11"],
       ["IDA_EventDataWait", "ida_eventdatawait.htm", "11"],
       ["SessionRequestCallbackProc", "sessionrequestcallbackproc.htm", "11"],
       ["IDA_GetVars", "ida_getvars.htm", "11"],
       ["IDA_SetVars", "ida_setvars.htm", "11"],
       ["IDA_ConvertVStringToInstance", "ida_convertvstringtoinstance.htm", "11"],
       ["IDA_ConvertInstanceToVString", "ida_convertinstancetovstring.htm", "11"],
       ["Parse4610Stream", "parse4610stream.htm", "11"]
      ],
      ["IDA Structures", "ida_structures.htm", "1",
       ["SERVER_IDENTIFIER", "server_identifier.htm", "11"],
       ["VARIABLE_RECORD", "variable_record.htm", "11"]
      ]
     ]
    ],
    ["Appendix A", null, "1",
     ["Parse4610Stream Sample", "appendix_a.htm", "11"]
    ],
    ["Appendix B", null, "1",
     ["IDA_FindServers Sample", "appendix_b.htm", "11"]
    ]
   ]
  ],
  ["InSight Technical Details", "insighttechnicaldetails.htm", "1",
   ["Technical Details Table of Contents", null, "1",
    ["Table of Contents", "technical_details_table_of_contents.htm", "11"]
   ],
   ["MIB Details", "chapter_1_mib_details.htm", "1",
    ["MIB Design Requirements", "mib_design_requirements.htm", "11"],
    ["Keyboard Device Branch", "keyboard_device_branch.htm", "11"],
    ["POS I/O Events", "pos_i.htm", "11"],
    ["Device History Events", "device_history_events.htm", "11"],
    ["Manager Key Soft Override", "manager_key_soft_override.htm", "11"],
    ["4610 Printer Service Statistics Information", "4610_printer_service_statistics_information.htm", "1",
     ["Terminal Agent Details", "4610_printer_service_statistics_tagent.htm", "11"],
     ["Controller Agent Details", "4610_printer_service_statistics_cagent.htm", "11"]
    ],
    ["Device Operational Statistics and Adverse Event Information", "device_operational_statistics_and_adverse_event_information.htm", "1",
     ["Terminal Agent Details", "device_operational_statistics_and_adverse_event_tagent.htm", "11"]
    ],
    ["MIB Definition", "insight-qvs-store-access-mib.html", "11"]
   ],
   ["Controller Agent", "chapter_2_controller_agent.htm", "1",
    ["Controller Agent Threads", "controller_agent_threads.htm", "11"],
    ["Controller Agent Database", "controller_agent_database.htm", "11"]
   ],
   ["Terminal Agent", "chapter_3_terminal_agent.htm", "1",
    ["Design Requirements", "design_requirements.htm", "11"]
   ],
   ["InSight Controller Utility", "chapter_4_insight_controller_utility.htm", "1",
    ["Enable/Disable Details", "disable_details.htm", "11"]
   ],
   ["Controller Installation Process", "chapter_5_controller_installation_process.htm", "1",
    ["Installer Design Requirements", "installer_design_requirements.htm", "11"],
    ["Installer Steps", "installer_steps.htm", "11"]
   ],
   ["4690 Logical Names", null, "1",
    ["4690 Logical Names", "appendix_a_4690_logical_names.htm", "11"]
   ],
   ["Controller Flag Files", null, "1",
    ["Controller Flag Files", "appendix_b_controller_flag_files.htm", "11"]
   ],
   ["Controller Files", null, "1",
    ["Controller Files", "appendix_c_controller_files.htm", "11"]
   ],
   ["New 4690 Technologies", null, "1",
    ["New 4690 Technologies", "appendix_d_new_4690_technologies.htm", "11"]
   ]
  ],
  ["InSight Data Security Considerations", null, "1",
   ["InSight Data Security Considerations", "insight_security_overview.htm", "11"]
  ],
  ["Unicast TCC/IP Feature", "unicast_tccip_feature.htm", "1",
   ["Installation", "unicasttccinstallation.htm", "11"],
   ["Configuring TCCIP Support", "configuring_tccip_support.htm", "11"],
   ["Additional InSight Features", "additional_insight_features.htm", "11"],
   ["Trial Version Package Contents", "trial_version_package_contents.htm", "11"]
  ],
  ["Future and Demonstration Features", null, "1",
   ["Filter Control Enhancement", "filter_control_summary.htm", "1",
    ["Examples", "more_information.htm", "11"],
    ["Background", "background.htm", "11"],
    ["Proposed Implementaion", "proposed_implementation.htm", "11"],
    ["Filter Control Branch MIB Outline", "filtercontrolbranch_mib_outline.htm", "11"],
    ["Implementaion Notes", "implementation_notes.htm", "11"],
    ["Performance Considerations", "performance_considerations.htm", "11"],
    ["Security Considerations", "security_considerations.htm", "11"],
    ["Other Sample Applications", "other_sample_applications.htm", "11"]
   ],
   ["InSight User Interface", "insight_user_interface.htm", "1",
    ["Store Selector", "store_selector.htm", "1",
     ["Opening and Editing a Store Selector List", "opening_a_store_selector_list.htm", "11"],
     ["Creating a New Store Selector List", "creating_a_new_store_list.htm", "11"],
     ["Adding Found Stores to Store Selector List", "adding_found_stores_to_store_selector_list.htm", "11"],
     ["Import a Store Selector List", "importing_a_store_selector_list.htm", "11"],
     ["Add a Store Entry", "add_a_store_entry.htm", "11"],
     ["Deleting a Store Selector List Entry", "deleting_a_store_selector_list_entry.htm", "11"],
     ["Sorting a Store Selector List", "sorting_a_store_selector_list.htm", "11"],
     ["Searching a Store Selector List", "searching_a_store_selector_list.htm", "11"],
     ["Viewing Store Selector Entry Details", "viewing_store_selector_entry_details.htm", "11"],
     ["Saving a Store Selector List", "saving_a_store_selector_list.htm", "11"],
     ["Searching for InSight-Enabled Stores", "searching_for_insight.htm", "11"],
     ["Store Selector List Tasks and Details", "store_selector_list_tasks_and_details.htm", "11"],
     ["Store Tasks and Details", "store_tasks_and_details.htm", "11"],
     ["Recent Store Lists", "recent_store_lists.htm", "11"],
     ["Connecting to a Store", "connecting_to_a_store.htm", "11"],
     ["Recent Stores", "recent_stores.htm", "11"]
    ],
    ["Store View", "store_view.htm", "1",
     ["Store Name and Status", "store_name_and_status.htm", "11"],
     ["Store Tasks and Details", "store_tasks_and_details_store_view.htm", "11"],
     ["Terminal List", "terminal_list.htm", "11"],
     ["Terminal Tasks and Details", "terminal_tasks_and_details.htm", "11"],
     ["Controller Properties", "controller_properties.htm", "11"],
     ["CPU Utility", "cpu_utility.htm", "11"],
     ["Opening a Terminal View", "opening_a_terminal_view.htm", "11"],
     ["Dump History", "dump_history.htm", "11"],
     ["Multi Term View", "multi_term_view.htm", "11"]
    ],
    ["Terminal View", "terminal_view.htm", "1",
     ["Monitor View", "monitor_view.htm", "1",
      ["Terminal Status", "terminal_status.htm", "11"],
      ["Terminal Tasks and Details", "terminal_tasks_and_detail_terminal_view.htm", "11"],
      ["Service Functions", "service_functions.htm", "11"],
      ["2x20 Display", "2x20_display.htm", "11"],
      ["VDisplay", "vdisplay.htm", "11"],
      ["Cash Receipt", "cash_receipt.htm", "11"],
      ["Cash Drawer", "cash_drawer.htm", "11"],
      ["Scale", "scale.htm", "11"],
      ["Scanner", "scanner.htm", "11"],
      ["Keyboard", null, "1",
       ["Keyboard Types", "keyboard.htm", "11"],
       ["Key Attributes", "key_attributes.htm", "11"],
       ["Lights", "lights.htm", "11"],
       ["Cash Drawer Text", "cash_drawer_text.htm", "11"],
       ["Manager Key", "manager_key.htm", "11"]
      ],
      ["Events List", "events_list.htm", "1",
       ["Keyboard Events List", "keyboard_events_list.htm", "11"],
       ["History Events", "history_events.htm", "11"],
       ["Event Lists 1, 2, and 3", "events_1_2_and_3.htm", "11"]
      ],
      ["Qivo Event Control", "qivo_event_control.htm", "11"]
     ],
     ["Properties View", "properties_view.htm", "1",
      ["Properties Tab", "properties_tab.htm", "11"],
      ["Device List", "device_list.htm", "11"],
      ["System Messages", "system_messages.htm", "11"],
      ["CPU Utility", "cpu_utility_-_term_prop_view.htm", "11"]
     ],
     ["Device Statistics", "device_statistics.htm", "1",
      ["Usage Statistics", "usage_statistics.htm", "11"],
      ["Operational Statistics and Adverse Events", "operational_statistics_and_adverse_events.htm", "11"],
      ["Last 10 Adverse Events", "last_10_adverse_events.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;
}

