// Tree structure definition
var TREE_NODES = [
	['Research', null, null, 
		h(['Research Grant', 'researchgrant.html', null]),
		h(['Publications', 'publication.html', null]),
		h(['Webinars', 'webinar.html', null])
	],
	['Training', null, null,
	
		h(['Webinars', 'webinar.html', null]),
		h(['Conferences', 'construction.html', null]),
		h(['EAP Grad Class', 'eapgradclass.html', null])
	],
	['About IHE', null, null,
		h(['IHE Mission', 'institute.html', null]),
		h(['IHE Fellows', 'ihe-fellow.html', null]),
		h(['Distinguished Alumni', 'alumni.html', null]),
		['Staff Directory', null, null,
			h(["TRUCCS", 'staff-truccs.html', null]),
			h(["IHE", 'staff.html', null])
		],
	],
	['Contact IHE', null, null,
		h(['Contact Information', 'contactihe.html', null]),
		h(['Mailing List', 'mailinglist.html', null])
	]
];



// helper function; expands node and all parent nodes
function exp(node) {
   while (node) {
      if (!node.expanded) node.treeView.expandNode(node.index);
      node = node.parentNode;
   }
}

// helper function; highlight some node once per page load
function h(node) {
   if (location.href.indexOf(node[1]) > -1) node[0] = '<b>' + node[0] + '</b>';
   return node;
}