var arrCat = [];
arrCat[0] = 'Discipleship';
arrCat[1] = 'Evangelism';
arrCat[2] = 'Worship';
arrCat[3] = 'Community';
arrCat[4] = 'Staff Expense';
arrCat[5] = 'Staff Benefits';
arrCat[6] = 'Building and Office';

var arrCatSub = [];
for (var j=0; j<arrCat.length; j++) {
	arrCatSub[j] = [];
}

arrCatSub[0][0] = '5000: Discipleship';
arrCatSub[0][1] = '5010: Membership';
arrCatSub[0][2] = '5011: Membership - Events';
arrCatSub[0][3] = '5012: Membership - Food';
arrCatSub[0][4] = '5013: Membership - Photocopy';
arrCatSub[0][5] = '5020: Hospitality and Care';
arrCatSub[0][6] = '5021: Hospitality and Care - Gifts';
arrCatSub[0][7] = '5022: Hospitality and Care - Supplies';
arrCatSub[0][8] = '5030: Women\'s Discipleship';
arrCatSub[0][9] = '5031: Women\'s Discipleship - Resources';
arrCatSub[0][10] = '5032: Women\'s Discipleship - Training';
arrCatSub[0][11] = '5040: Men\'s Discipleship';
arrCatSub[0][12] = '5041: Men\'s Discipleship - Resources';
arrCatSub[0][13] = '5042: Men\'s Discipleship - Training';
arrCatSub[0][14] = '5050: Celebrate Recovery';
arrCatSub[0][15] = '5051: Celebrate Recovery - Conferences/Retreat';
arrCatSub[0][16] = '5052: Celebrate Recovery - CR Weekly Meetings';
arrCatSub[0][17] = '5053: Celebrate Recovery - Supplies';
arrCatSub[0][18] = '5054: Celebrate Recovery - Team Meetings';
arrCatSub[0][19] = '5055: Celebrate Recovery - Training Resources';
arrCatSub[0][20] = '5060: Children\'s Ministry';
arrCatSub[0][21] = '5061: Children\'s Ministry - Children Events';
arrCatSub[0][22] = '5062: Children\'s Ministry - Curriculum/Materials';
arrCatSub[0][23] = '5063: Children\'s Ministry - Food/Snack/Juice';
arrCatSub[0][24] = '5064: Children\'s Ministry - Retreat/Training';
arrCatSub[0][25] = '5065: Children\'s Ministry - Supplies';
arrCatSub[0][26] = '5066: Children\'s Ministry - Teachers/Volunteer Care';
arrCatSub[0][27] = '5067: Children\'s Ministry - Training/Resources';
arrCatSub[0][28] = '5070: Discipleship Retreats';
arrCatSub[0][29] = '5080: Leadership Expenses';
arrCatSub[0][30] = '5081: Leadership Expenses - Session Expenses';
arrCatSub[0][31] = '5082: Leadership Expenses - Deacon Expenses';
arrCatSub[0][32] = '5090: Miscellaneous';
arrCatSub[1][0] = '5100: Evangelism Committee';
arrCatSub[1][1] = '5101: Support (Break Through)';
arrCatSub[1][2] = '5102: Support (Elijah Foundation)';
arrCatSub[1][3] = '5103: Support (Josh Hoskins)';
arrCatSub[1][4] = '5106: Short Term Missions';
arrCatSub[1][5] = '5107: Other Mobilization PCUSA';
arrCatSub[1][6] = '5108: Special Projects';
arrCatSub[1][7] = '5109: Admin';
arrCatSub[1][8] = '5111: Updates/Training/Speakers';
arrCatSub[1][9] = '5115: GWAYO';
arrCatSub[1][10] = '5116: Paul Kim';
arrCatSub[1][11] = '5117: Sandy Song';
arrCatSub[1][12] = '5118: Zeta Lee';
arrCatSub[2][0] = '5300: Worship Committee';
arrCatSub[2][1] = '5310: Welcoming Team';
arrCatSub[2][2] = '5311: Welcoming Team - Activities Exp';
arrCatSub[2][3] = '5312: Welcoming Team - Food/Meetings Exp';
arrCatSub[2][4] = '5313: Welcoming Team - Parking';
arrCatSub[2][5] = '5314: Welcoming Team - Photocopy';
arrCatSub[2][6] = '5315: Welcoming Team - Resources';
arrCatSub[2][7] = '5320: Fellowship Team';
arrCatSub[2][8] = '5321: Fellowship Team - Food/Supplies';
//arrCatSub[2][9] = '5322: Fellowship Team - Team Outings';
arrCatSub[2][9] = '5322: Fellowship Team - Special Events';
arrCatSub[2][10] = '5330: Worship Team';
arrCatSub[2][11] = '5331: Worship Team - Equipment Exp';
arrCatSub[2][12] = '5332: Worship Team - Resources';
arrCatSub[2][13] = '5333: Worship Team - Supplies';
arrCatSub[2][14] = '5334: Worship Team - Team Activities and Meetings';
arrCatSub[2][15] = '5340: Sermon Distribution Ministry';
arrCatSub[2][16] = '5341: Sermon Distribution Ministry - Supplies and Media';
arrCatSub[2][17] = '5350: Creative Arts Ministry';
arrCatSub[2][18] = '5351: Creative Arts Ministry - Equipment';
arrCatSub[2][19] = '5352: Creative Arts Ministry - Meetings and Activities';
arrCatSub[2][20] = '5353: Creative Arts Ministry - Software';
arrCatSub[2][21] = '5354: Creative Arts Ministry - Supplies/Media';
arrCatSub[2][22] = '5355: Creative Arts Ministry - Training Resources';
arrCatSub[2][23] = '5390: Miscellaneous';
arrCatSub[3][0] = '5400: Community Committee';
arrCatSub[3][1] = '5410: Cell Groups';
arrCatSub[3][2] = '5411: Cell Groups - Leaders Meetings';
arrCatSub[3][3] = '5412: Cell Groups - Leaders Retreat';
arrCatSub[3][4] = '5413: Cell Groups - Materials';
arrCatSub[3][5] = '5420: Activities';
arrCatSub[3][6] = '5421: Activities - Events';
arrCatSub[3][7] = '5422: Activities - Supplies and Equipment';
arrCatSub[3][8] = '5430: All Church Retreat';
arrCatSub[3][9] = '5431: All Church Retreat - Speaker';
arrCatSub[3][10] = '5432: All Church Retreat - Facility';
arrCatSub[3][11] = '5433: All Church Retreat - Supplies and Resources';
arrCatSub[4][0] = '6000: Staff Expense';
arrCatSub[4][1] = '6100: Senior Pastor';
arrCatSub[4][2] = '6110: Executive Pastor - Schaumburg';
arrCatSub[4][3] = '6120: Executive Pastor - Chicago';
arrCatSub[4][4] = '6130: Community Pastor - Chicago';
arrCatSub[4][5] = '6140: Counseling Pastor - Chicago';
arrCatSub[4][6] = '6150: Worship Director - Chicago';
arrCatSub[4][7] = '6160: Worship Director - Schaumburg';
arrCatSub[4][8] = '6170: Children\'s Ministry - Chicago';
arrCatSub[4][9] = '6180: Children\'s Ministry - Schaumburg';
arrCatSub[4][10] = '6190: Administrative Assistant';
arrCatSub[4][11] = '6800: Group Staff Expense';
arrCatSub[4][12] = '6801: Group Staff Expense - Staff Retreat';
arrCatSub[4][13] = '6802: Group Staff Expense - Staff Outing';
arrCatSub[5][0] = '8000: Benefits';
arrCatSub[5][1] = '8100: Benefits - Health Insurance';
arrCatSub[5][2] = '8200: Benefits - Pension';
arrCatSub[6][0] = '5500: Building and Office';
arrCatSub[6][1] = '5510: Church';
arrCatSub[6][2] = '5511: Church - Rent';
arrCatSub[6][3] = '5512: Church - Storage';
arrCatSub[6][4] = '5519: Church - Miscellaneous';
arrCatSub[6][5] = '5520: Office';
arrCatSub[6][6] = '5521: Office - Rent';
arrCatSub[6][7] = '5522: Office - Supplies';
arrCatSub[6][8] = '5523: Office - Equipment and Repair';
arrCatSub[6][9] = '5530: Van';
arrCatSub[6][10] = '5531: Van - Gas';
arrCatSub[6][11] = '5532: Van - Repair and Maintenance';

var intCommittee = 8;	//document.getElementsByTagName('select').length;
var listCat = [];
for(var m=0; m<intCommittee; m++) {
	listCat[m] = new DynamicOptionList("Category" + (m+1),"Committee");
	for(var i=0; i<arrCat.length; i++) {
		for(var k=0; k<arrCatSub[i].length; k++) {
			listCat[m].addOptions(arrCat[i],arrCatSub[i][k],arrCatSub[i][k]);
		}
	}
}

function popLists() {
	for(var i=0; i<intCommittee; i++) {
		listCat[i].populate();
	}
}

function initCat() {
	var theform = ge('frmReimburse');
	for(var i=0; i<intCommittee; i++) {
		listCat[i].printOptions();
		listCat[i].init(theform);
	}
}