 /*    Expanding Menus for Indexhibit
  *        uses jquery
  *
  *    Created by Ross Cairns  Mar 2008
  *  Adapations by Vaska September 2008
 */
 function ndxz_expanding_loader()
 {
      var speed = 100;
     var item_title = new Array();
     var items = new Array();
     var i = 0;
     $("#menu ul").each(function()
     {
         items[i] = $("#menu ul").eq(i).children().filter(function (index) { return index > 0; });
         /* v1 - hide items if not active */
         //if (items[i].is(".active") == false) { items[i].hide(); }
         /* v2 - hide all */
         items[i].hide();
         // apply the clicker
         $(this).attr('id', 'c' + i);
         $(this).children(":first").css({ cursor: 'pointer' }).attr('onclick', "$('ul#c" + i + " li:gt(0)').toggle(" + speed + ");");
         i++;
     });
 }

