//Put the items from QuickBase into the menu structure

//			 fid 		index	field
//				3		0		Record id
//				8		1		Parent Page
//				14		2		Menu Label
//				16		3		Number of Pages under this one
//				18		4		Href
//				21		5		Menu Item Width
//				22		6		Parent Page label
//				6 		7		Title
//				23 		8		first headline
//				24		9		2nd head
//				15 		10		first Body
//				25		11		second Body
//				29		12		url page name 
				
	var MENU_ITEMS

	MENU_ITEMS=new Array();
	var topLevelItems=5;
	for (var i99=0;i99<topLevelItems;i99++)
		{
		MENU_ITEMS[i99]=[qdb_data[i99][2],qdb_data[i99][4],""]
		var incr=0;		//number of additional items in array
		for (j=0;j<qdb_numrows;j++)
			{
			if (qdb_data[j][6]==MENU_ITEMS[i99][0])	// if this child goes with this parent
				{
				MENU_ITEMS[i99][3+incr]=[qdb_data[j][2],qdb_data[j][4],""]
				// check for 3rd level
				if (qdb_data[j][3]>0)
					{
					var incr2=0;
					for (j2=0;j2<qdb_numrows;j2++)
						if (qdb_data[j2][6]==MENU_ITEMS[i99][3+incr][0])	// if this grandchild goes with this child
							{
							MENU_ITEMS[i99][3+incr][3+incr2]=[qdb_data[j2][2],qdb_data[j2][4],""]
							incr2++
							}
					}
				incr++;
				}
			}
		}
