var TITEMS = [ 
 ["Home page", "html/front_title_page.htm", "21"],
 ["Introduction", "html/introduction.htm", "21"],
 ["MODULE 1: Knowing Your Client", null, "1",
  ["Module Introduction", "html/1_intro.htm", "21"],
  ["Case Study", "html/1_case_study.htm", "21"],
  ["Welfare Law Overview", "html/1_welfare_law_overview.htm", "21"],
  ["Income Assistance", "html/1_income_assistance.htm", "21"],
  ["Disability Assistance", "html/1_disability_assistance.htm", "21"],
  ["Collection Proceedings &amp; Fraud Charges", "html/1_collection_proceedings.htm", "21"],
  ["First Nations Aspects", "html/1_first_nations.htm", "21"],
  ["Effectively Interview Your Client", "html/1_effectively_interview.htm", "21"],  
  ["Why Structure An Interview?", "html/1_why_structure.htm", "21"],  
  ["What Level of Service Can You Provide?", "html/1_what_level_of_service.htm", "21"],  
  ["The Four Levels of Service", "html/1_four_levels_of_service.htm", "21"],   
 ],
 ["MODULE 2: Researching The Case", null, "1",
  ["Module Introduction", "html/2_intro.htm", "21"],
  ["Case Study", "html/2_case_study.htm", "21"],
  ["Welfare Law", "html/2_welfare_law.htm", "21"],
  ["Practice Directives", "html/2_practice_directives.htm", "21"],
  ["Assess The Evidence", "html/2_assess_evidence.htm", "21"],  
  ["Persons With Disabilities (PWD)", "html/2_pwd.htm", "21"],  
  ["Persons With Persistent Multiple Barriers (PPMB)", "html/2_ppmb.htm", "21"],  
  ["Overpayments and Fraud Overpayments", "html/2_overpayments.htm", "21"],  
 ],
 ["MODULE 3: Preparing For Reconsideration", null, "1",
  ["Module Introduction", "html/3_intro.htm", "21"],
  ["Case Study", "html/3_case_study.htm", "21"],
  ["Negotiating A Resolution", "html/3_negotiating.htm", "21"],
  ["Reconsideration", "html/3_reconsideration.htm", "21"],
  ["An Effective Submission", "html/3_effective_submission.htm", "21"],
  ["Reconsideration Requirements", "html/3_reconsideration_reqs.htm", "21"],
 ],
 ["MODULE 4: Preparing For Tribunal", null, "1",
  ["Module Introduction", "html/4_intro.htm", "21"],
  ["Case Study", "html/4_case_study.htm", "21"],
  ["Draft Documents", "html/4_draft_documents.htm", "21"],
  ["Hearing Dates", "html/4_hearing_dates.htm", "21"],
  ["Evidence", "html/4_evidence.htm", "21"],
  ["Attend The Tribunal", "html/4_attend_tribunal.htm", "21"],
  ["Appeal", "html/4_appeal.htm", "21"],
  ["Practices and Procedures", "html/4_practices.htm", "21"],
 ],
 ["MODULE 5: Preparing For A Judicial Review", null, "1",
  ["Module Introduction", "html/5_intro.htm", "21"],
  ["Case Study", "html/5_case_study.htm", "21"],
  ["Assess The Case", "html/5_assess.htm", "21"],
  ["David Mossop's Judicial Review: A Layperson's Guide", "html/5_mossop.htm", "21"],
  ["The Administrative Tribunals Act", "html/5_tribunals_act.htm", "21"],
  ["Constitutional Questions", "html/5_constitutional.htm", "21"],
  ["Standard Of Review", "html/5_standard_review.htm", "21"],
 ],

];


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;
}

