var TITEMS = [ 
 ["Introduction", null, "1",
  ["Welcome to RMSWeb", "source/welcometopic.htm", "11"],
  ["How Do I Get Support?", "source/secondtopic.htm", "11"],
  ["How Do I Log an Enhancement Request?", "source/howdoiloganenhancementre.htm", "11"],
  ["Creating a Shortcut Icon for RMSWEB", "source/creatingashortcuticonforr.htm", "11"],
  ["Glossary of Terms", "source/glossaryofterms.htm", "11"]
 ],
 ["Getting Started with RMSWeb", null, "1",
  ["Connecting your Existing RMS Data", "source/connectingyourexistingrmsd.htm", "1",
   ["RMS Hosted", "source/rmshosted.htm", "11"],
   ["Self Hosted", "source/selfhosted.htm", "11"]
  ],
  ["Configuring RMSWeb for the first Time", "source/configuringrmswebforthefir.htm", "11"],
  ["Accessing your RMSWeb data", "source/overview.htm", "11"]
 ],
 ["Setting Up RMSWeb", "source/settingupyourrmswebdatabas.htm", "1",
  ["Property Options Overview", "source/propertyoptions.htm", "1",
   ["Property Information - Quick Start", "source/propertyinformation.htm", "1",
    ["Property Details Tab", "source/propertydetailstab.htm", "11"],
    ["Attributes Tab", "source/attributestab.htm", "11"],
    ["Other Tab", "source/othertab.htm", "11"],
    ["Banking Tab", "source/bankingtab.htm", "11"],
    ["Housekeeper Tab", "source/housekeepertab2.htm", "11"]
   ],
   ["Property Options Overview", "source/generaloptions.htm", "1",
    ["Options Tab", "source/options3.htm", "11"],
    ["Client Options Tab", "source/clientoptions.htm", "11"],
    ["Reservations Tab", "source/reservations.htm", "11"],
    ["Mandatory Fields Tab", "source/mandatoryfields.htm", "11"],
    ["Backup Tab", "source/backup.htm", "11"],
    ["Housekeeping Tab", "source/housekeeping2.htm", "11"]
   ],
   ["Accounting Options Overview", "source/accountingoptions.htm", "1",
    ["Account Tab", "source/account.htm", "11"],
    ["Options Tab", "source/options4.htm", "11"],
    ["GST Tab", "source/gst.htm", "11"],
    ["Correspondence Tab", "source/correspondence.htm", "11"],
    ["Reporting Tab", "source/reporting.htm", "11"],
    ["Owner Accounting Tab", "source/owneraccounting.htm", "11"],
    ["Print Options Tab", "source/printoptions.htm", "11"]
   ],
   ["System Labels", "source/systemlabels.htm", "1",
    ["Property Tab", "source/propertytab.htm", "11"],
    ["Accounting Tab", "source/accountingtab.htm", "11"],
    ["Area Tab", "source/areatab.htm", "11"],
    ["Client Tab", "source/clienttab.htm", "11"],
    ["Reservation Tab", "source/reservationtab.htm", "11"]
   ],
   ["Modules", "source/sparelabels.htm", "11"]
  ],
  ["Accounting Overview", "source/accounting.htm", "1",
   ["G/L Acc Codes", "source/glacccodes.htm", "11"],
   ["Credit Cards", "source/creditcards.htm", "11"],
   ["Discounts", "source/discounts.htm", "11"],
   ["Late Fees", "source/latefees.htm", "11"],
   ["Sundries", "source/sundries.htm", "11"],
   ["Packages", "source/packages.htm", "11"],
   ["Requirements", "source/requirements.htm", "11"]
  ],
  ["Properties/Category/Area Overview", "source/propertiescategoryarea.htm", "1",
   ["Properties/Category/Area", "source/propertiescategoryarea2.htm", "1",
    ["Category - Quick Start", "source/category.htm", "1",
     ["Category Full Overview", "source/categoryfulloverview.htm", "11"]
    ],
    ["Area - Quick Start", "source/area.htm", "1",
     ["Area Full Overview", "source/areafulloverview.htm", "11"]
    ]
   ],
   ["Attributes", "source/attributes.htm", "11"]
  ],
  ["Tariff Overview", "source/tariffsratessetup.htm", "1",
   ["Getting Started Quickly with RMSWeb Tariffs", "source/gettingstartedquicklywithrmswe.htm", "11"],
   ["Day of Week Tariffs (Grid)", "source/rategrid.htm", "1",
    ["Setting Your Tariffs for the First Time", "source/settingyourtariffsforthef.htm", "11"],
    ["Existing Tariff Type Setup for the Tariff Grid", "source/chargetypesetupforthetari.htm", "11"],
    ["Existing Tariff Table Setup for the Tariff Grid", "source/tarifftablesetupforthetar2.htm", "11"]
   ],
   ["Tariff Types", "source/chargetypes.htm", "11"],
   ["Tariff Periods", "source/chargeperiods.htm", "11"],
   ["Tariff Tables", "source/tarifftables.htm", "1",
    ["Tariff Tab", "source/tarifftab.htm", "11"],
    ["Packages Tab", "source/packagestab.htm", "11"],
    ["Deposits Tab", "source/depositstab.htm", "11"],
    ["Additionals Tab", "source/additionalstab.htm", "11"],
    ["Discounts Tab", "source/discountstab.htm", "11"],
    ["Housekeeper Tab", "source/housekeepertab.htm", "11"],
    ["EOM Commissions Tab", "source/eomcommissionstab.htm", "11"]
   ],
   ["Tariff Lookups", "source/tarifflookups.htm", "11"],
   ["Dynamic Pricing", "source/dynamicpricing.htm", "11"]
  ],
  ["Housekeeping Overview", "source/housekeeping.htm", "1",
   ["Quick Start to Housekeeping", "source/quickstarttohousekeeping.htm", "11"],
   ["Linen - Optional Element", "source/linens.htm", "11"],
   ["Bed Configuration - Optional Element", "source/bedconfiguration.htm", "11"],
   ["Housekeeper Holidays - Optional Element", "source/housekeeperholidays.htm", "11"],
   ["Housekeeper Tasks", "source/housekeepertasks.htm", "11"],
   ["Housekeeper Task Costs - Owner Accounting", "source/housekeepertaskcosts.htm", "11"],
   ["Housekeepers - Optional Element", "source/housekeepers.htm", "11"]
  ],
  ["Users Overview", "source/users.htm", "1",
   ["Security Profiles", "source/securityprofiles.htm", "11"],
   ["Users Information", "source/usersinformation.htm", "11"]
  ],
  ["Lookup Tables Overview", "source/groupings.htm", "1",
   ["Groupings", "source/groupings2.htm", "11"],
   ["Contacts", "source/contacts.htm", "11"],
   ["Relationships", "source/relationships.htm", "11"],
   ["Titles", "source/titles.htm", "11"],
   ["Classifications", "source/classifications.htm", "11"],
   ["Bkg Sources", "source/bkgsources.htm", "11"],
   ["Res Types", "source/restypes.htm", "11"],
   ["Client Status", "source/clientstatus.htm", "11"],
   ["Business Lost", "source/businesslost.htm", "11"],
   ["Booking Templates", "source/bookingtemplates.htm", "11"]
  ],
  ["Company", null, "11"],
  ["Travel Agents Overview", "source/agents.htm", "2",
   ["Travel Agents - Quick Start", "source/travelagents.htm", "1",
    ["Travel Agent Full Overview", "source/travelagentfulloverview.htm", "11"],
    ["Travel Agent - Using A/R", "source/travelagent_usingar.htm", "11"],
    ["Travel Agent - Using Commission", "source/travelagent_usingcommissio.htm", "11"]
   ]
  ],
  ["Online Bookings", "source/websitebookingscreen.htm", "1",
   ["Options", "source/options2.htm", "11"],
   ["Default Allotments for all Internet Bookings", "source/defaultallotmentsforallint.htm", "11"],
   ["Online Agents Websites", "source/onlineagentswebsites2.htm", "11"],
   ["Photos", "source/photos2.htm", "11"]
  ]
 ],
 ["RMS Online Setup", "source/rmsonlinesetup.htm", "1",
  ["RMS Online FAQs", "source/rmsonlinefaqs.htm", "1",
   ["How do i set the Deposit Amount?", "source/howdoisetthedepositamoun.htm", "11"],
   ["How do i enter a Stop Sell?", "source/howdoienterastopsell.htm", "11"]
  ],
  ["Steps to Getting Started", "source/stepstogettingstarted.htm", "11"],
  ["Setup Checklist", "source/setupchecklist.htm", "11"],
  ["1. Category Setup", "source/categorysetup.htm", "1",
   ["Max Occupants per Area", "source/maxoccupantsperarea.htm", "11"],
   ["Long Description", "source/longdescription.htm", "11"],
   ["No. to hold from Online", "source/no_toholdfromonline.htm", "11"]
  ],
  ["2. Tariff Setup", "source/tariffsetup.htm", "1",
   ["Why Use the Tariff Grid", "source/whyusethetariffgrid.htm", "11"],
   ["Tariff Grid", "source/tariffgrid.htm", "11"],
   ["Promo Code", "source/promocode.htm", "11"]
  ],
  ["3. Credit Card Setup (RMS Agent Only)", "source/creditcardsetup.htm", "11"],
  ["4. Booking Source Setup (RMS Agent Only)", "source/bookingsourcesetup.htm", "11"],
  ["5. Online Bookings", "source/onlinebookings.htm", "1",
   ["Options", "source/options.htm", "11"],
   ["Default Allotments for all Internet Bookings", "source/defaultallotments.htm", "11"],
   ["Online Agents Websites", "source/onlineagentswebsites.htm", "11"],
   ["Online Agents Websites for Wotif", "source/onlineagentswebsitesforwot.htm", "11"],
   ["Photos (RMS Agent Only)", "source/photos.htm", "11"]
  ],
  ["6. Attribute Setup (RMS Agent Only)", "source/attributesetup.htm", "11"],
  ["7. Installing the RMS Online Client", "source/installingthermsonlineclie.htm", "11"],
  ["8. RMS Online Test Reservation (RMS Agent Only)", "source/rmsonlinetestreservation.htm", "11"]
 ],
 ["Troubleshooting", "source/troubleshooting.htm", "1"]
];


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;
}

