/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var theSitetree=[ 
	['PAGE','629',jdecode('2009-10+Registration'),jdecode(''),'/629.html','true',[],''],
	['PAGE','15096',jdecode('Religion+Classes'),jdecode(''),'/15096/index.html','true',[ 
		['PAGE','80',jdecode('Grades+1-8'),jdecode(''),'/15096/80.html','true',[],''],
		['PAGE','683',jdecode('RCIA'),jdecode(''),'/15096/683.html','true',[],''],
		['PAGE','89',jdecode('RCIYA'),jdecode(''),'/15096/89.html','true',[],''],
		['PAGE','17197',jdecode('S.P.A.R.E.+Home'),jdecode(''),'/15096/17197.html','true',[],'']
	],''],
	['PAGE','71',jdecode('Programs+Available'),jdecode(''),'/71/index.html','true',[ 
		['PAGE','4018',jdecode('Altar+Servers'),jdecode(''),'/71/4018.html','true',[],''],
		['PAGE','4027',jdecode('Bible+Study'),jdecode(''),'/71/4027.html','true',[],''],
		['PAGE','11350',jdecode('Children%26%23x27%3Bs+Liturgy'),jdecode(''),'/71/11350.html','true',[],''],
		['PAGE','4087',jdecode('Music+Ministry'),jdecode(''),'/71/4087.html','true',[],''],
		['PAGE','51301',jdecode('Youth+Ministry'),jdecode(''),'/71/51301.html','true',[],'']
	],''],
	['PAGE','98',jdecode('Bible+Camp'),jdecode(''),'/98/index.html','true',[ 
		['PAGE','2506',jdecode('ArtWork%3B+Kid-Style%21'),jdecode(''),'/98/2506.html','true',[],''],
		['PAGE','10177',jdecode('B.I.B.L.E.+Acronyms'),jdecode(''),'/98/10177.html','true',[],''],
		['PAGE','71922',jdecode('Camp+Album+2009'),jdecode(''),'/98/71922.html','true',[],''],
		['PAGE','10460',jdecode('Camp+Album+2007'),jdecode(''),'/98/10460.html','false',[],''],
		['PAGE','71901',jdecode('Camp+Album+2008'),jdecode(''),'/98/71901.html','false',[],'']
	],''],
	['PAGE','89901',jdecode('Bible+Games+for+Kids'),jdecode(''),'/89901.html','true',[],''],
	['PAGE','33201',jdecode('Blog+Journal-New%21'),jdecode(''),'/33201.html','false',[],''],
	['PAGE','10286',jdecode('Bulletin+Online'),jdecode(''),'/10286.html','true',[],''],
	['PAGE','8136',jdecode('Calendar+Dates-New%21'),jdecode(''),'/8136.html','true',[],''],
	['PAGE','62',jdecode('Catechists-Updated'),jdecode(''),'/62/index.html','true',[ 
		['PAGE','53101',jdecode('Courses%2FContinuing+Education'),jdecode(''),'/62/53101.html','true',[],''],
		['PAGE','11892',jdecode('Protect+God%26%23x27%3Bs+Child'),jdecode(''),'/62/11892.html','true',[],'']
	],''],
	['PAGE','79301',jdecode('Chapter+Activites'),jdecode(''),'/79301.html','true',[],''],
	['PAGE','602',jdecode('Confirmation'),jdecode(''),'/602/index.html','true',[ 
		['PAGE','6899',jdecode('Calendar+Dates'),jdecode(''),'/602/6899.html','true',[],''],
		['PAGE','7053',jdecode('Confirmation+Forms'),jdecode(''),'/602/7053.html','true',[],''],
		['PAGE','656',jdecode('Saint+%26+Help+Stuff'),jdecode(''),'/602/656.html','true',[],''],
		['PAGE','107',jdecode('Stewardship+Projects'),jdecode(''),'/602/107.html','true',[],'']
	],''],
	['PAGE','2817',jdecode('CubScouts+Pack+222'),jdecode(''),'/2817/index.html','true',[ 
		['PAGE','7446',jdecode('Den+Leaders+07-08'),jdecode(''),'/2817/7446.html','false',[],''],
		['PAGE','7455',jdecode('Forms'),jdecode(''),'/2817/7455.html','true',[],'']
	],''],
	['PAGE','593',jdecode('Download+Forms'),jdecode(''),'/593/index.html','false',[ 
		['PAGE','981',jdecode('Downloadable+Forms+%28follow+up+page%29'),jdecode(''),'/593/981.html','true',[],''],
		['PAGE','6642',jdecode('Choir+Sign-up+09-10'),jdecode(''),'/593/6642.html','true',[],''],
		['PAGE','620',jdecode('Church+Calendar'),jdecode(''),'/593/620.html','false',[],'']
	],''],
	['PAGE','15456',jdecode('Father+Ryan'),jdecode(''),'/15456.html','false',[],''],
	['PAGE','489',jdecode('Guestbook'),jdecode(''),'/489.html','true',[],''],
	['PAGE','488',jdecode('Guestbook-Peek+in%21'),jdecode(''),'/488.html','false',[],''],
	['PAGE','611',jdecode('Holy+Communion'),jdecode(''),'/611/index.html','true',[ 
		['PAGE','14278',jdecode('Communion+Dates'),jdecode(''),'/611/14278.html','false',[],''],
		['PAGE','665',jdecode('Communion+Update'),jdecode(''),'/611/665.html','true',[],''],
		['PAGE','7120',jdecode('Communion+Sets'),jdecode(''),'/611/7120.html','true',[],''],
		['PAGE','2115',jdecode('Reconciliation+Dates'),jdecode(''),'/611/2115.html','false',[],''],
		['PAGE','906',jdecode('Reconciliation+Update'),jdecode(''),'/611/906.html','true',[],'']
	],''],
	['PAGE','32',jdecode('Home'),jdecode(''),'/32/index.html','true',[ 
		['PAGE','53',jdecode('About+us'),jdecode(''),'/32/53.html','true',[],''],
		['PAGE','804',jdecode('Directions'),jdecode(''),'/32/804.html','true',[],''],
		['PAGE','816',jdecode('Find+us'),jdecode(''),'/32/816.html','true',[],''],
		['PAGE','8755',jdecode('Parochial+School'),jdecode(''),'/32/8755.html','true',[],'']
	],''],
	['PAGE','15105',jdecode('Items+of+Interest'),jdecode(''),'/15105/index.html','true',[ 
		['PAGE','55601',jdecode('Know+Your+Parish'),jdecode(''),'/15105/55601.html','true',[],''],
		['PAGE','53164',jdecode('Special+Needs'),jdecode(''),'/15105/53164.html','true',[],''],
		['PAGE','116',jdecode('Volunteering+Positions'),jdecode(''),'/15105/116.html','true',[],''],
		['PAGE','10103',jdecode('Voting+Page'),jdecode(''),'/15105/10103.html','true',[],''],
		['PAGE','5306',jdecode('Want+Ads%3A+Give+%26+Take+%28follow+up+page%29'),jdecode(''),'/15105/5306.html','false',[],''],
		['PAGE','2377',jdecode('Why+Church%3F'),jdecode(''),'/15105/2377.html','true',[],'']
	],''],
	['PAGE','1110',jdecode('Links+to+Useful+Sites'),jdecode(''),'/1110.html','true',[],''],
	['PAGE','638',jdecode('Mass+Obligations'),jdecode(''),'/638.html','true',[],''],
	['PAGE','584',jdecode('Mission+Statement'),jdecode(''),'/584.html','true',[],''],
	['PAGE','1333',jdecode('Office+Hours-Updated%21'),jdecode(''),'/1333.html','true',[],''],
	['PAGE','674',jdecode('School+Closings'),jdecode(''),'/674.html','true',[],''],
	['PAGE','2972',jdecode('Site+Map'),jdecode(''),'/2972.html','true',[],''],
	['PAGE','11032',jdecode('SPARE+Chapter+Activities'),jdecode(''),'/11032/index.html','true',[ 
		['PAGE','11180',jdecode('Grades+1+-+6'),jdecode(''),'/11032/11180.html','true',[],''],
		['PAGE','11189',jdecode('Grades+7+%26+8'),jdecode(''),'/11032/11189.html','true',[],'']
	],'']];
var siteelementCount=68;
theSitetree.topTemplateName='Pencil';
theSitetree.paletteFamily='2D3DA5';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10726';
theSitetree.graphicsetId='10514';
theSitetree.contentColor='2d3da5';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Pencil',
				paletteFamily: 	'2D3DA5',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10726',
				graphicsetId: 	'10514',
				contentColor: 	'2d3da5',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '32',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-489AHW050INXS8I']={
webappId:    '1002',
documentId:  '489',
internalId:  '489AHW050INXS8I',
customField: 'icq=false'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '804',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '816',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['1001']=webappMappings['1001-ahw050inxs8i1ab698020f665154']={
webappId:    '1001',
documentId:  '593',
internalId:  'ahw050inxs8i1ab698020f665154',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050inxs8i1ab698020f665154']={
webappId:    '1001',
documentId:  '981',
internalId:  'ahw050inxs8i1ab698020f665154',
customField: 'followUp'
};
webappMappings['1501']=webappMappings['1501-5273']={
webappId:    '1501',
documentId:  '32',
internalId:  '5273',
customField: '1501'
};
webappMappings['1001']=webappMappings['1001-ahw050inxs8i5804e7e633da7657']={
webappId:    '1001',
documentId:  '5306',
internalId:  'ahw050inxs8i5804e7e633da7657',
customField: 'followUp'
};
webappMappings['7005']=webappMappings['7005-13']={
webappId:    '7005',
documentId:  '638',
internalId:  '13',
customField: 'language:en;country:US;'
};
webappMappings['1010']=webappMappings['1010-_Ea_B_I_B_L_E__Acronyms']={
webappId:    '1010',
documentId:  '10177',
internalId:  '_Ea_B_I_B_L_E__Acronyms',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['7005']=webappMappings['7005-14']={
webappId:    '7005',
documentId:  '2377',
internalId:  '14',
customField: 'language:en;country:US;'
};
webappMappings['7005']=webappMappings['7005-15']={
webappId:    '7005',
documentId:  '8136',
internalId:  '15',
customField: 'language:en;country:US;'
};
webappMappings['7005']=webappMappings['7005-16']={
webappId:    '7005',
documentId:  '10103',
internalId:  '16',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-eadef129c2f483c69e412102902abdc8']={
webappId:    '7060',
documentId:  '2506',
internalId:  'eadef129c2f483c69e412102902abdc8',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-08631f727a741ce154df36de019c0a82']={
webappId:    '7060',
documentId:  '10460',
internalId:  '08631f727a741ce154df36de019c0a82',
customField: 'language:en;country:US;'
};
webappMappings['5003']=webappMappings['5003-tid:1;pid:WSCSYSSSSLYTC24G']={
webappId:    '5003',
documentId:  '32',
internalId:  'tid:1;pid:WSCSYSSSSLYTC24G',
customField: 'en:US:'
};
webappMappings['7050']=webappMappings['7050-43']={
webappId:    '7050',
documentId:  '33201',
internalId:  '43',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32',
internalId:  '',
customField: '20100217-075426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10286',
internalId:  '',
customField: '20081031-070640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2972',
internalId:  '',
customField: '20091206-212458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71',
internalId:  '',
customField: '20100208-070614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4027',
internalId:  '',
customField: '20100208-071146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51301',
internalId:  '',
customField: '20100208-073858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4018',
internalId:  '',
customField: '20091019-160431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15096',
internalId:  '',
customField: '20090609-062628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17197',
internalId:  '',
customField: '20100208-070603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '611',
internalId:  '',
customField: '20100208-085452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '906',
internalId:  '',
customField: '20100111-113420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2115',
internalId:  '',
customField: '20080922-084034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14278',
internalId:  '',
customField: '20090318-052208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '665',
internalId:  '',
customField: '20100208-085645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33201',
internalId:  '',
customField: '20081031-065333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '629',
internalId:  '',
customField: '20090724-175514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80',
internalId:  '',
customField: '20090803-121840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '683',
internalId:  '',
customField: '20080918-053417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89',
internalId:  '',
customField: '20080524-004735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11350',
internalId:  '',
customField: '20091019-161908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4087',
internalId:  '',
customField: '20091101-074231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98',
internalId:  '',
customField: '20100208-074029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2506',
internalId:  '',
customField: '20071106-111331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10177',
internalId:  '',
customField: '20080607-011436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10460',
internalId:  '',
customField: '20090724-190839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8136',
internalId:  '',
customField: '20100208-123726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11032',
internalId:  '',
customField: '20090928-065010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11180',
internalId:  '',
customField: '20071011-164315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11189',
internalId:  '',
customField: '20090928-070422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '602',
internalId:  '',
customField: '20100208-082102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6899',
internalId:  '',
customField: '20100217-075538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7053',
internalId:  '',
customField: '20091006-141904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '656',
internalId:  '',
customField: '20100208-083351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107',
internalId:  '',
customField: '20100208-083642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2817',
internalId:  '',
customField: '20100208-084305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7446',
internalId:  '',
customField: '20081024-174329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7455',
internalId:  '',
customField: '20081104-091841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '593',
internalId:  '',
customField: '20091006-143257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '981',
internalId:  '',
customField: '20070212-024654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6642',
internalId:  '',
customField: '20081104-074447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20071106-110956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15456',
internalId:  '',
customField: '20081025-113612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '489',
internalId:  '',
customField: '20070808-144855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '488',
internalId:  '',
customField: '20070727-134616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7120',
internalId:  '',
customField: '20100208-085808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53',
internalId:  '',
customField: '20080820-132434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62',
internalId:  '',
customField: '20100208-080543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '804',
internalId:  '',
customField: '20070804-005022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '816',
internalId:  '',
customField: '20061024-114055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8755',
internalId:  '',
customField: '20080415-172613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15105',
internalId:  '',
customField: '20081111-072653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116',
internalId:  '',
customField: '20100208-091825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10103',
internalId:  '',
customField: '20070830-030714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5306',
internalId:  '',
customField: '20070616-141954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2377',
internalId:  '',
customField: '20070808-213920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1110',
internalId:  '',
customField: '20091017-081923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '638',
internalId:  '',
customField: '20090911-212656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '584',
internalId:  '',
customField: '20070227-120108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1333',
internalId:  '',
customField: '20100111-114649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11892',
internalId:  '',
customField: '20081031-124057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '674',
internalId:  '',
customField: '20100111-114819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53101',
internalId:  '',
customField: '20081031-122630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53164',
internalId:  '',
customField: '20100208-091732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55601',
internalId:  '',
customField: '20081111-065619'
};
webappMappings['7060']=webappMappings['7060-de9701e5b1f5bcda029fbca2edb74549']={
webappId:    '7060',
documentId:  '71901',
internalId:  'de9701e5b1f5bcda029fbca2edb74549',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-85fcf102367259a384e2356a370e770f']={
webappId:    '7060',
documentId:  '71922',
internalId:  '85fcf102367259a384e2356a370e770f',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79301',
internalId:  '',
customField: '20090913-195459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71901',
internalId:  '',
customField: '20090724-191511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71922',
internalId:  '',
customField: '20100208-111358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89901',
internalId:  '',
customField: '20091206-212233'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INXS8I';
var companyName   = 'St+Philip+the+Apostle+Religious+Education';
var htmlTitle	  = 'St+Philip+the+Apostle+Religious+Education+492+Saddle+River+Road+Saddle+Brook+NJ+07663';
var metaKeywords  = 'religious+education++ccd++faith++Pat+Schauble++Saddle+Brook++altar+servers++bible+study+St.+Philip+Apostle++NJ++catholic++bible+camp++sunday+school++classes+children+ministry+church+homeschool+%28201%29+SPARE+Theesmas+faith+formation+new+registration+youtube+christian+rock+kids+SPYMIN+Justin+Aughey+facebook+youth+group+scouts+';
var metaContents  = 'Religious+Education+NJ+Program+Saddle+Brook+%28201%29+843-2240+St.+Philip++www.reled-stphilipsb.org+http%3A%2F%2Fwww.youtube.com%2FSPARE07663';
theSitetree.getById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		if (ar[i][POS_ID] == id){
			return ar[i];
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getParentById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {
			if (ar[i][POS_CHILDS][j][POS_ID] == id) {
				// child found
				return ar[i];
			}
			var result=this.getParentById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getName = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAME];
	}
	return null;
};

theSitetree.getNavigationText = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAVIGATIONTEXT];
	}
	return null;
};

theSitetree.getHREF = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_HREF];
	}
	return null;
};

theSitetree.getIsNavigation = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_ISNAVIGATION];
	}
	return null;
};

theSitetree.getTemplateName = function(id, lastTemplateName, ar) {
	if (typeof(lastTemplateName) == 'undefined'){
		lastTemplateName = this.topTemplateName;
	}
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		var actTemplateName = ar[i][POS_TEMPLATENAME];
		if (actTemplateName == ''){
			actTemplateName = lastTemplateName;
		}
		if (ar[i][POS_ID] == id) {
			return actTemplateName;
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};
