// You can find instructions at www.treeview.net
// 'R' opens in the right frame (a frame named basefrm), 
// 'B' opens in a new window, 
// 'T' opens in the current browser window, replacing the frameset if one exists,
// 'S' opens in the current frame, replacing the tree.
// Note: the function is case sensitive; use uppercase.


// Decide if the names are links or just the icons
USETEXTLINKS = 1  //replace 0 with 1 for hyperlinks 
// 0 -> only the icons are clickable, or 1 -> the text is clickable too

// Decide if the tree is to start all open or just showing the root folders
STARTALLOPEN = 0 //replace 0 with 1 to show the whole tree 
// 0 -> show only one level 1 -> expand all.

ICONPATH = 'images/' //change if the gif's folder is a subfolder, for example: 'images/'

//Optical Shop Manual is listed as the name of the root folder
foldersTree = gFld("<b>How to Use this Manual</b>", "chapterbody.htm")

//INDEX
  aux1 = insFld(foldersTree, gFld("Manual Index", "index/index_intro.html"))
      insDoc(aux1, gLnk("R", "Index", "index/index_list.htm"))

//SETUP
  aux1 = insFld(foldersTree, gFld("Setting up", "setup/oss_setup.htm"))
      insDoc(aux1, gLnk("R", "Hardware", "setup/oss_setting_up.htm"))
      insDoc(aux1, gLnk("R", "Installing", "setup/oss_loading_software.htm"))
      insDoc(aux1, gLnk("R", "Networking", "setup/oss_networking.htm"))
      insDoc(aux1, gLnk("R", "Mac install", "setup/oss_setting_up_mac.htm"))
      insDoc(aux1, gLnk("R", "PC install", "setup/oss_setting_up_win.htm"))

//ACQUAINTED
  aux1 = insFld(foldersTree, gFld("Getting acquainted", "acquainted/acquainted.htm"))
      insDoc(aux1, gLnk("R", "Learn First", "acquainted/oss_learn_first.htm"))
      insDoc(aux1, gLnk("R", "Databases", "acquainted/oss_acquainted_dbnames.htm"))
      insDoc(aux1, gLnk("R", "Start host", "acquainted/oss_start_software.htm"))
      insDoc(aux1, gLnk("R", "Personalizing", "acquainted/oss_pers_software.htm"))
      insDoc(aux1, gLnk("R", "Start workstation", "acquainted/oss_workstations.htm"))
      insDoc(aux1, gLnk("R", "Navigation", "acquainted/oss_learn_navigate.htm"))
      insDoc(aux1, gLnk("R", "Searching", "acquainted/oss_finding_records.htm"))
      insDoc(aux1, gLnk("R", "Help Database", "acquainted/oss_help.htm"))

//OPTICAL SHOP
  aux1 = insFld(foldersTree, gFld("Optical Shop", "opticalshop/opticalshop.htm"))
      insDoc(aux1, gLnk("R", "Main Screen", "opticalshop/oss_main.htm"))
      insDoc(aux1, gLnk("R", "Setup Screen", "opticalshop/oss_os_setup.htm"))
      insDoc(aux1, gLnk("R", "Syst Prefs", "opticalshop/oss_os_syst_prefs.htm"))
      insDoc(aux1, gLnk("R", "Utilities", "opticalshop/oss_os_utilities.htm"))
      insDoc(aux1, gLnk("R", "Reports", "opticalshop/oss_os_reports.htm"))

//DIAGNOSIS
  aux1 = insFld(foldersTree, gFld("Diagnosis", "diagnosis/diagintro.html"))
      insDoc(aux1, gLnk("R", "Main Screen", "diagnosis/dx_main.htm"))
      insDoc(aux1, gLnk("R", "Functions", "diagnosis/dx_new.htm"))

//INSURANCES
  aux1 = insFld(foldersTree, gFld("Insurances", "insurances/insurintro.html"))
      insDoc(aux1, gLnk("R", "Data Entry", "insurances/insurance_entry.htm"))
      insDoc(aux1, gLnk("R", "Functions", "insurances/insurance_oss.htm"))

//PATIENTS
  aux1 = insFld(foldersTree, gFld("Patients", "patients/patientsintro.html"))
      insDoc(aux1, gLnk("R", "Main Menu", "patients/oss_patients_main.htm"))
      insDoc(aux1, gLnk("R", "Summary, Top buttons", "patients/oss_patients_summary.htm"))
      insDoc(aux1, gLnk("R", "Optical Records tab", "patients/oss_patients_optical.htm"))
      insDoc(aux1, gLnk("R", "Billing Credit", "patients/oss_patients_billing.htm"))
      insDoc(aux1, gLnk("R", "Other Info", "patients/oss_patients_other.htm"))
      insDoc(aux1, gLnk("R", "Notes tab", "patients/oss_patients_notes.htm"))
      insDoc(aux1, gLnk("R", "Messages Tab", "patients/oss_patients_messages.htm"))
      insDoc(aux1, gLnk("R", "New Patient", "patients/oss_patients_newpat.htm"))
      insDoc(aux1, gLnk("R", "List View", "patients/oss_patients_list.htm"))
      insDoc(aux1, gLnk("R", "Ledger View", "patients/oss_patients_ledger.htm"))
      insDoc(aux1, gLnk("R", "Edit Layouts", "patients/oss_patients_edit_layouts.htm"))
      insDoc(aux1, gLnk("R", "Recall & Mailings", "patients/oss_patients_mailings.htm"))

//OPTICAL MESSAGES
  aux1 = insFld(foldersTree, gFld("Optical Messages", "opticalmessages/opticalmessages.html"))
      insDoc(aux1, gLnk("R", "Main Menu", "opticalmessages/opticalmessages_main.htm"))
      insDoc(aux1, gLnk("R", "Messages, Tickles", "opticalmessages/opticalmessages_entry.htm"))

//PHONEBOOK
  aux1 = insFld(foldersTree, gFld("Phonebook", "phonebook/phoneintro.html"))
      insDoc(aux1, gLnk("R", "Main & Functions", "phonebook/phonebook_main.htm"))
      insDoc(aux1, gLnk("R", "Contact", "phonebook/phonebook_contact.htm"))
      insDoc(aux1, gLnk("R", "Employer", "phonebook/phonebook_employer.htm"))
      insDoc(aux1, gLnk("R", "Facility", "phonebook/phonebook_facility.htm"))
      insDoc(aux1, gLnk("R", "Personnel", "phonebook/phonebook_personnel.htm"))
      insDoc(aux1, gLnk("R", "Providers", "phonebook/phonebook_provider.htm"))
      insDoc(aux1, gLnk("R", "Vendors", "phonebook/phonebook_vendor.htm"))

//PROCEDURES
  aux1 = insFld(foldersTree, gFld("Procedures", "procedures/procedintro.html"))
      insDoc(aux1, gLnk("R", "Entry screen", "procedures/oss_procedures.htm"))
      insDoc(aux1, gLnk("R", "New Frame", "procedures/oss_procedures_frame.htm"))
      insDoc(aux1, gLnk("R", "New Lens", "procedures/oss_procedures_lens.htm"))
      insDoc(aux1, gLnk("R", "New Clip", "procedures/oss_procedures_clip.htm"))
      insDoc(aux1, gLnk("R", "New Contact", "procedures/oss_procedures_contact.htm"))
      insDoc(aux1, gLnk("R", "Extra Items", "procedures/oss_procedures_extra.htm"))
      insDoc(aux1, gLnk("R", "CPT Codes", "procedures/oss_procedures_cpts.htm"))
      insDoc(aux1, gLnk("R", "Inventory", "procedures/oss_procedures_inventory.htm"))
      insDoc(aux1, gLnk("R", "Commissions", "procedures/oss_procedures_commissions.htm"))
      insDoc(aux1, gLnk("R", "Inventory Run", "procedures/oss_procedures_inv_run.htm"))
	insDoc(aux1, gLnk("R", "Importing", "procedures/oss_procedures_importing.htm"))

//OPTICAL RECORDS
  aux1 = insFld(foldersTree, gFld("Optical Records", "opticalrecords/opticalrecords.html"))
      insDoc(aux1, gLnk("R", "Main Menu", "opticalrecords/optical_records_main.htm"))
      insDoc(aux1, gLnk("R", "Check List", "opticalrecords/oss_records_checklist.htm"))
      insDoc(aux1, gLnk("R", "New Record", "opticalrecords/oss_records_new.htm"))
      insDoc(aux1, gLnk("R", "Rx Entry", "opticalrecords/oss_records_rx_entry.htm"))
      insDoc(aux1, gLnk("R", "Frame Entry", "opticalrecords/oss_records_frame.htm"))
      insDoc(aux1, gLnk("R", "Lens Entry", "opticalrecords/oss_records_lenses.htm"))
      insDoc(aux1, gLnk("R", "Contacts Entry", "opticalrecords/oss_records_contacts.htm"))
      insDoc(aux1, gLnk("R", "Compact Entry", "opticalrecords/oss_records_compact.htm"))
      insDoc(aux1, gLnk("R", "Payments and More...", "opticalrecords/oss_records_overview.htm"))
      insDoc(aux1, gLnk("R", "Admin Screen", "opticalrecords/oss_records_admin.htm"))
      insDoc(aux1, gLnk("R", "Order & Finish", "opticalrecords/oss_records_job_complete.htm"))
      insDoc(aux1, gLnk("R", "Payments", "opticalrecords/oss_records_payments.htm"))
      insDoc(aux1, gLnk("R", "Adjustments", "opticalrecords/oss_records_adjust.htm"))
      insDoc(aux1, gLnk("R", "Accounts Receivable", "opticalrecords/oss_records_ars.htm"))
      insDoc(aux1, gLnk("R", "Insurance Claim", "opticalrecords/oss_records_claim.htm"))
      insDoc(aux1, gLnk("R", "Tax Collection", "opticalrecords/oss_records_tax.htm"))
      insDoc(aux1, gLnk("R", "Image Capture", "opticalrecords/oss_records_images.htm"))
      insDoc(aux1, gLnk("R", "Automated Ordering", "opticalrecords/oss_automation.htm"))
      insDoc(aux1, gLnk("R", "Editing Forms", "opticalrecords/oss_editrecords.htm"))

//ORDER ITEMS
  aux1 = insFld(foldersTree, gFld("Order Items", "orderitems/orderitems.html"))
      insDoc(aux1, gLnk("R", "Menu Functions", "orderitems/oss_order_items.htm"))

//PICKLIST USER
  aux1 = insFld(foldersTree, gFld("User Picklists", "picklistuser/picklistintro.html"))
      insDoc(aux1, gLnk("R", "Insurance Selector", "picklistuser/picklistuser_ins_sel.htm"))
      insDoc(aux1, gLnk("R", "Messages List", "picklistuser/picklistuser_messages.htm"))
      insDoc(aux1, gLnk("R", "Modifiers List", "picklistuser/picklistuser_modifiers.htm"))
      insDoc(aux1, gLnk("R", "Types of Service", "picklistuser/picklistuser_tos.htm"))

//PICKLIST
  aux1 = insFld(foldersTree, gFld("System Picklists", "picklists/picklistintro.html"))
      insDoc(aux1, gLnk("R", "POS Codes", "picklists/picklistuser_pos_code.htm"))

//ZIPCODES
  aux1 = insFld(foldersTree, gFld("Zipcode Module", "zipcodes/zipintro.html"))
      insDoc(aux1, gLnk("R", "Zipcode Module", "zipcodes/zipcodes.htm"))

//FRAMEDATA
  aux1 = insFld(foldersTree, gFld("Frame Data Interface", "framedata/framedataintro.html"))
      insDoc(aux1, gLnk("R", "Setting Up Connection", "framedata/framedata_main.htm"))

//TROUBLESHOOTING
  aux1 = insFld(foldersTree, gFld("Troubleshooting", "troubleshooting/troubleintro.html"))
      insDoc(aux1, gLnk("R", "Troubleshooting", "troubleshooting/oss_troubleshooting.htm"))
      insDoc(aux1, gLnk("R", "Database Updating", "troubleshooting/oss_updating.htm"))

//EXAMPLES
  aux1 = insFld(foldersTree, gFld("Examples", "examples/examples.html"))
      insDoc(aux1, gLnk("R", "New everything", "examples/oss_example1.htm"))
      insDoc(aux1, gLnk("R", "Repeat order", "examples/oss_example2.htm"))


