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 Details - Quick Start", "source/propertyinformation.htm", "1",
    ["Property Details", "source/propertydetailstab.htm", "11"],
    ["Attributes", "source/attributestab.htm", "11"],
    ["Other", "source/othertab.htm", "11"],
    ["Banking", "source/banking.htm", "11"],
    ["Housekeeper Tab", "source/housekeepertab2.htm", "11"]
   ],
   ["General Information 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"]
   ],
   ["Labels", "source/systemlabels.htm", "1",
    ["Property", "source/propertytab.htm", "11"],
    ["Accounting", "source/accountingtab.htm", "11"],
    ["Area", "source/areatab.htm", "11"],
    ["Client", "source/clienttab.htm", "11"],
    ["Reservation", "source/reservationtab.htm", "11"]
   ],
   ["Modules", "source/sparelabels.htm", "1"]
  ],
  ["Accounting Overview", "source/accounting.htm", "1",
   ["Accounting Options Overview", "source/accountingoptions.htm", "1",
    ["Account", "source/account.htm", "11"],
    ["Options", "source/options4.htm", "11"],
    ["GST", "source/gst.htm", "11"],
    ["Correspondence", "source/correspondence.htm", "11"],
    ["Reporting", "source/reporting.htm", "11"],
    ["Owner Accounting", "source/owneraccounting.htm", "1",
     ["Trust Accounting Settings", "source/trustaccountingsettings.htm", "11"],
     ["Owner Accounting Settings", "source/owneraccountingsettings.htm", "11"],
     ["Trust Pooling Settings", "source/trustpoolingsettings.htm", "11"]
    ],
    ["Print Options", "source/printoptions.htm", "11"]
   ],
   ["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", "1",
    ["Basic Sundry", "source/basicsundry.htm", "11"],
    ["Refundable Sundry", "source/refundablesundry.htm", "11"],
    ["Credit Note Sundry", "source/creditnotesundry.htm", "11"],
    ["Sundry Payable to Owners", "source/sundrypayabletoowners.htm", "11"],
    ["Sundry Payable to 3rd Parties", "source/sundrypayableto3rdparties.htm", "11"],
    ["Sundry with Additional Tax", "source/sundrywithadditionaltax.htm", "11"],
    ["Sundry with Late Fee", "source/sundrywithlatefee.htm", "11"]
   ],
   ["Packages", "source/packages.htm", "11"],
   ["Requirements", "source/requirements.htm", "11"]
  ],
  ["Category/Area Overview", "source/propertiescategoryarea.htm", "1",
   ["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"]
    ]
   ]
  ],
  ["Tariff/Availability Chart", "source/tariffavailabilitychart.htm", "1",
   ["Chart vs Traditional Tariffs", "source/chartvstraditionaltariffs.htm", "11"],
   ["Chart Tariff Table Breakdown", "source/charttarifftablebreakdown.htm", "11"],
   ["First Time Setup", "source/firsttimesetup.htm", "1",
    ["Lets Review the Features of the Tariff/Availability Chart", "source/letsreviewthefeaturesofth.htm", "11"],
    ["Opening the Tariff/Availability Chart for the First Time", "source/openingthetariffavailabilit.htm", "11"],
    ["Adding Tariffs into the Chart", "source/addingtariffsintothechart.htm", "11"],
    ["Adding Additional Tariff Types", "source/addingtarifftypes.htm", "11"]
   ],
   ["How Do I?", "source/howdoi.htm", "1",
    ["Tariffs - How Do I?", "source/tariffs.htm", "1",
     ["How do I access the Tariff/Availability Chart?", "source/howdoiaccessthetariffava.htm", "11"],
     ["How do I see which Tariff Type I am viewing?", "source/howdoiseewhichtarifftype.htm", "11"],
     ["How do Iview my different Properties on the Chart?", "source/howdoiviewmydifferentprop.htm", "11"],
     ["How do I see a summary of the Tariffs Entered?", "source/howdoiseeasummaryofthe.htm", "11"],
     ["How do I Edit an Existing Tariff?", "source/howdoieditanexistingtari.htm", "11"],
     ["How do I set Colors for my Periods?", "source/howdoisetcolorsformyper.htm", "11"],
     ["How do I Manually Override my Tariffs?", "source/howdoimanuallyoverridemy.htm", "11"],
     ["How do I Clear a Manually Overridden Tariff?", "source/howdoiclearamanuallyover.htm", "11"],
     ["How do I Add New Tariff Types?", "source/howdoiaddnewtarifftypes.htm", "11"],
     ["How do I Add a New Tariff?", "source/addanewtariff.htm", "11"],
     ["How do I Add Dynamic Pricing?", "source/howdoiadddynamicpricing.htm", "11"],
     ["How do I set Minimum Nights?", "source/howdoisetminimumnights.htm", "11"]
    ],
    ["Availability - How Do I?", "source/availability.htm", "1",
     ["How do I change the Availability View?", "source/howdoichangetheavailabili.htm", "11"],
     ["How do I see my Occupancy Levels?", "source/howdoiseemyoccupancyleve.htm", "11"]
    ],
    ["Allotments - How Do I?", "source/allotments_howdoi.htm", "1",
     ["How do I see the Allotments I have set for a specific Agent?", "source/howdoiseetheallotmentsi.htm", "11"],
     ["How do I use Default Internet Bookings Allotments?", "source/howdoiuedefaultinternetb.htm", "11"],
     ["How do I perform a Stop Sell?", "source/howdoiperformastopsell.htm", "11"],
     ["How do I change my Allotements to Agents?", "source/howdoichangemyallotements.htm", "11"],
     ["How do I Clear a Stop Sell?", "source/howdoiclearastopsell.htm", "11"]
    ]
   ]
  ],
  ["Traditional Tariff Setup", "source/tariffsratessetup.htm", "1",
   ["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", "1"]
  ],
  ["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",
   ["Attributes", "source/attributes.htm", "11"],
   ["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"]
   ]
  ]
 ],
 ["RMS Online Setup", "source/rmsonlinesetup.htm", "1",
  ["Steps to Getting Started", "source/stepstogettingstarted.htm", "11"],
  ["Bookings from your Website", "source/rmsonlinebookbutton.htm", "1",
   ["Category Setup", "source/categorysetup2.htm", "1",
    ["Max Occupants per Area", "source/maxoccperarea.htm", "11"],
    ["Long Description", "source/longdescription2.htm", "11"],
    ["No. to Hold from Online", "source/no_toholdfromonline2.htm", "11"]
   ],
   ["Tariff Setup", "source/tariffsetup2.htm", "1",
    ["Why Use the Tariff Availability Chart", "source/whyusethetariffgrid2.htm", "11"],
    ["Promo using Tariff Types", "source/promocode2.htm", "11"],
    ["Promo using Discounts", "source/promousingdiscounts.htm", "11"]
   ],
   ["Credit Card Setup", "source/creditcardsetup2.htm", "11"],
   ["Booking Source Setup", "source/bookingsourcesetup2.htm", "11"],
   ["Requirements Setup", "source/requirementssetup2.htm", "11"],
   ["Online Bookings", "source/onlinebookings2.htm", "1",
    ["Options", "source/options5.htm", "1",
     ["General", "source/general.htm", "11"],
     ["Extra Details", "source/extradetails.htm", "11"],
     ["Deposits", "source/deposits.htm", "11"]
    ],
    ["Photos", "source/photos3.htm", "11"],
    ["Online Agent", "source/onlineagent.htm", "1",
     ["Contacts", "source/contacts2.htm", "11"],
     ["Tariff Types", "source/tarifftypes.htm", "11"],
     ["Allotments", "source/allotments.htm", "11"]
    ],
    ["Online Booking Colors", "source/onlinebookingcolors2.htm", "11"],
    ["Default Allotments for all Internet Bookings", "source/defaultallotmentsforallint2.htm", "11"]
   ],
   ["Attributes", "source/attributes2.htm", "11"],
   ["Using your Own Payment Gateway", "source/usingyourownpaymentgateway.htm", "11"],
   ["Passing Online Fees to your Guests", "source/passingonlinefeestoyourgu.htm", "11"],
   ["Installing the RMS Online Client", "source/installingthermsonlineclie2.htm", "11"],
   ["RMS Online Test Reservation", "source/rmsonlinetestreservation2.htm", "11"],
   ["Frequently Asked Questions", null, "11"]
  ],
  ["Retail Websites Setup", "source/retailwebsitessetup.htm", "1",
   ["Tariff Setup", "source/tariffsetup2_2.htm", "1",
    ["Why Use the Tariff Grid", "source/whyusethetariffgrid2_2.htm", "11"],
    ["Promo Code", "source/promocode2_2.htm", "11"]
   ],
   ["Online Bookings", "source/onlinebookings2_2.htm", "1",
    ["Online Agent", "source/onlineagent_2.htm", "1",
     ["Contacts", "source/contacts2_2.htm", "11"],
     ["Tariff Types", "source/tarifftypes_2.htm", "11"],
     ["Allotments", "source/allotments_2.htm", "11"],
     ["Retail Websites Link", "source/retailwebsiteslink.htm", "11"]
    ],
    ["Default Allotments for all Internet Bookings", "source/defaultallotmentsforallint2_2.htm", "11"]
   ],
   ["Installing the RMS Online Client", "source/installingthermsonlineclie2_2.htm", "11"],
   ["Frequently Asked Questions", null, "11"]
  ],
  ["Channel Manager Setup", "source/distributorssetup.htm", "1",
   ["Category Setup", "source/categorysetup2_2.htm", "1",
    ["Max Occupants per Area", "source/maxoccperarea_2.htm", "11"],
    ["Long Description", "source/longdescription2_2.htm", "11"],
    ["No. to Hold from Online", "source/no_toholdfromonline2_2.htm", "11"]
   ],
   ["Tariff Setup", "source/tariffsetup2_3.htm", "1",
    ["Why Use the Tariff Grid", "source/whyusethetariffgrid2_3.htm", "11"],
    ["Promo Code", "source/promocode2_3.htm", "11"]
   ],
   ["Online Bookings", "source/onlinebookings2_3.htm", "1",
    ["Online Agent", "source/onlineagent_3.htm", "1",
     ["Contacts", "source/contacts2_3.htm", "11"],
     ["Tariff Types", "source/tarifftypes_3.htm", "11"],
     ["Allotments", "source/allotments_3.htm", "11"]
    ],
    ["Default Allotments for all Internet Bookings", "source/defaultallotmentsforallint2_3.htm", "11"]
   ],
   ["Installing the RMS Online Client", "source/installingthermsonlineclie2_3.htm", "11"],
   ["Frequently Asked Questions", null, "11"]
  ],
  ["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"]
  ]
 ]
];


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;
}


