var TITEMS = [ 
 ["Technical Analysis Help", null, "1",
  ["New Chart Types", "source/chart_pointfigure.htm", "1",
   ["Point &amp; Figure", "source/chart_pointfigure.htm", "11"],
   ["Three-Line Break", "source/chart_threelinebreak.htm", "11"],
   ["Kagi", "source/chart_kagi.htm", "11"],
   ["Renko", "source/chart_renko.htm", "11"],
   ["Analytical Charts", "source/chart_analytical.htm", "11"]
  ],
  ["Analytical Chart Features", null, "1",
   ["Price Indicators", null, "1",
    ["Moving Averages", null, "1",
     ["Simple Moving Average", "source/pi_simplema.htm", "11"],
     ["Exponential MA", "source/pi_exponentialma.htm", "11"],
     ["Triangular MA", "source/pi_triangularma.htm", "11"],
     ["Weighted MA", "source/pi_weightedma.htm", "11"]
    ],
    ["Bollinger Bands", "source/pi_bollingerbands.htm", "11"],
    ["Envelopes (trading bands)", "source/pi_envelopes.htm", "11"],
    ["Median Price", "source/pi_medianprice.htm", "11"],
    ["Typical Price", "source/pi_typicalprice.htm", "11"],
    ["Weighted Close", "source/pi_weightedclose.htm", "11"]
   ],
   ["Technical Indicators", null, "1",
    ["Volume Related", null, "1",
     ["Volume Indicator", "source/ti_volume.htm", "11"],
     ["Money Flow Index", "source/ti_moneyflow.htm", "11"],
     ["Price Volume Trend", "source/ti_pricevolumetrend.htm", "11"],
     ["Negative Volume Index", "source/ti_negativevolumeindex.htm", "11"],
     ["Positive Volume Index (PVI)", "source/ti_positivevolumeindex.htm", "11"],
     ["On-Balance Volume", "source/ti_onbalancevolume.htm", "11"],
     ["Accumulation Distribution", "source/ti_accumulationdistribution.htm", "11"]
    ],
    ["Oscillators", null, "1",
     ["Chaikin", "source/ti_chaikin.htm", "11"],
     ["Detrended Price", "source/ti_detrendedprice.htm", "11"],
     ["Lanes Stochastics", "source/ti_lanesstochastics.htm", "11"],
     ["Volatility Chaikin's", "source/ti_volatilitychaikin.htm", "11"],
     ["Volume Oscillator", "source/ti_volumeoscillator.htm", "11"],
     ["Williams %R", "source/ti_williamsr.htm", "11"]
    ],
    ["Average True Range (ATR)", "source/ti_averagetruerange.htm", "11"],
    ["Ease of Movement (EMV)", "source/ti_easeofmovement.htm", "11"],
    ["Mass Index", "source/ti_massindex.htm", "11"],
    ["Performance", "source/ti_performance.htm", "11"],
    ["Rate of Change", "source/ti_rateofchange.htm", "11"],
    ["RSI", "source/ti_rsi.htm", "11"],
    ["Standard Deviation", "source/ti_standarddeviation.htm", "11"],
    ["TRIX", "source/ti_trix.htm", "11"],
    ["MACD", "source/ti_macd.htm", "11"],
    ["Commodity Channel Index", "source/ti_commoditychannelindex.htm", "11"],
    ["Vertical Horizontal Filter", "source/ti_vhf.htm", "11"]
   ],
   ["Interactive Drawing Features", null, "1",
    ["Gann Fan", "source/idf_gannfan.htm", "11"],
    ["Fibonacci Arcs", "source/idf_fibonacciarcs.htm", "11"],
    ["Fibonacci Fan", "source/idf_fibonaccifan.htm", "11"],
    ["Fibonacci Retracements", "source/idf_fibonacciretracements.htm", "11"],
    ["Fibonacci Time Zones", "source/idf_fibonaccitimezones.htm", "11"],
    ["Quadrant Lines", "source/idf_quadrantlines.htm", "11"],
    ["Speed Resistance Lines", "source/idf_speedresistancelines.htm", "11"],
    ["Tirone Levels (Mean)", "source/idf_tironelevelsmean.htm", "11"],
    ["Tirone Levels (MidPoint)", "source/idf_tironelevelsmidpoint.htm", "11"],
    ["TrendLines", "source/idf_trendlines.htm", "11"],
    ["Information On Demand", "source/idf_infoondemand.htm", "11"],
    ["Zoom In", "source/idf_zoom.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;
}


