/* [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 POS_TARGET=8;
var theSitetree=[ 
	['PAGE','5001',jdecode('Home'),jdecode(''),'/5001.html','true',[],'',''],
	['PAGE','14001',jdecode('Who+am+I%3F'),jdecode(''),'/14001.html','true',[],'',''],
	['PAGE','14053',jdecode('Services+'),jdecode(''),'/14053.html','true',[],'',''],
	['PAGE','91512',jdecode('What+children+%26+teachers+think'),jdecode(''),'/91512/index.html','true',[ 
		['PAGE','122723',jdecode('What+teachers+think+'),jdecode(''),'/91512/122723.html','true',[],'','']
	],'',''],
	['PAGE','46001',jdecode('Fun+Food+Chef+Out+%26+About'),jdecode(''),'/46001/index.html','true',[ 
		['PAGE','64712',jdecode('Town+Lane+Infants'),jdecode(''),'/46001/64712.html','false',[],'',''],
		['PAGE','52901',jdecode('Prenton+Primary+School'),jdecode(''),'/46001/52901.html','false',[],'',''],
		['PAGE','46101',jdecode('Barnston+Buddies'),jdecode(''),'/46001/46101.html','false',[],'',''],
		['PAGE','58512',jdecode('Barnston+Primary+School'),jdecode(''),'/46001/58512.html','false',[],'',''],
		['PAGE','35501',jdecode('Busy+Nought+To+Fives'),jdecode(''),'/46001/35501.html','false',[],'',''],
		['PAGE','73612',jdecode('The+Grange'),jdecode(''),'/46001/73612.html','false',[],'',''],
		['PAGE','79112',jdecode('Daresbury+Primary'),jdecode(''),'/46001/79112.html','false',[],'',''],
		['PAGE','99412',jdecode('Pensby+High'),jdecode(''),'/46001/99412.html','true',[],'',''],
		['PAGE','87012',jdecode('7th+Bebington+Brownies'),jdecode(''),'/46001/87012.html','false',[],'',''],
		['PAGE','91212',jdecode('Christ+the+King'),jdecode(''),'/46001/91212.html','false',[],'',''],
		['PAGE','95112',jdecode('Cole+Street'),jdecode(''),'/46001/95112.html','false',[],'',''],
		['PAGE','99312',jdecode('Ashton+Hayes'),jdecode(''),'/46001/99312.html','false',[],'',''],
		['PAGE','123523',jdecode('Huxley'),jdecode(''),'/46001/123523.html','false',[],'',''],
		['PAGE','105112',jdecode('St+John%26%23x27%3Bs'),jdecode(''),'/46001/105112.html','false',[],'',''],
		['PAGE','110223',jdecode('Moorfield'),jdecode(''),'/46001/110223.html','false',[],'',''],
		['PAGE','118423',jdecode('Astmoor'),jdecode(''),'/46001/118423.html','false',[],'',''],
		['PAGE','111923',jdecode('Grange+Junior'),jdecode(''),'/46001/111923.html','false',[],'',''],
		['PAGE','114923',jdecode('Ashton+Hayes+2'),jdecode(''),'/46001/114923.html','false',[],'',''],
		['PAGE','117423',jdecode('Lyndale+School'),jdecode(''),'/46001/117423.html','false',[],'',''],
		['PAGE','118223',jdecode('Greenleas'),jdecode(''),'/46001/118223.html','false',[],'',''],
		['PAGE','58412',jdecode('Birkenhead+Prep'),jdecode(''),'/46001/58412.html','false',[],'',''],
		['PAGE','125323',jdecode('Gayton'),jdecode(''),'/46001/125323.html','true',[],'',''],
		['PAGE','128223',jdecode('Thingwall'),jdecode(''),'/46001/128223.html','false',[],'',''],
		['PAGE','129923',jdecode('Simms+Cross'),jdecode(''),'/46001/129923.html','false',[],'',''],
		['PAGE','132023',jdecode('Huxley+2'),jdecode(''),'/46001/132023.html','false',[],'',''],
		['PAGE','134723',jdecode('Ditton'),jdecode(''),'/46001/134723.html','false',[],'',''],
		['PAGE','136123',jdecode('Pewithall'),jdecode(''),'/46001/136123.html','false',[],'',''],
		['PAGE','140223',jdecode('Moorfield'),jdecode(''),'/46001/140223.html','false',[],'',''],
		['PAGE','150123',jdecode('Kingsley'),jdecode(''),'/46001/150123.html','false',[],'',''],
		['PAGE','151823',jdecode('Shocklach'),jdecode(''),'/46001/151823.html','false',[],'',''],
		['PAGE','153923',jdecode('St+Benedicts'),jdecode(''),'/46001/153923.html','false',[],'',''],
		['PAGE','153949',jdecode('Moorfield'),jdecode(''),'/46001/153949.html','false',[],'',''],
		['PAGE','154723',jdecode('Pensby'),jdecode(''),'/46001/154723.html','false',[],'',''],
		['PAGE','160362',jdecode('Liscard'),jdecode(''),'/46001/160362.html','false',[],'',''],
		['PAGE','164390',jdecode('Woodslee'),jdecode(''),'/46001/164390.html','false',[],'',''],
		['PAGE','164416',jdecode('Town+lane'),jdecode(''),'/46001/164416.html','false',[],'',''],
		['PAGE','167304',jdecode('Somerville'),jdecode(''),'/46001/167304.html','false',[],'',''],
		['PAGE','170632',jdecode('Pewithall'),jdecode(''),'/46001/170632.html','true',[],'',''],
		['PAGE','177560',jdecode('Ashley'),jdecode(''),'/46001/177560.html','true',[],'','']
	],'',''],
	['PAGE','59512',jdecode('Press+Release'),jdecode(''),'/59512.html','true',[],'',''],
	['PAGE','26001',jdecode('Event+Catering+'),jdecode(''),'/26001.html','true',[],'',''],
	['PAGE','55264',jdecode('Recipes'),jdecode(''),'/55264/index.html','true',[ 
		['PAGE','82912',jdecode('Granola+Topping'),jdecode(''),'/55264/82912.html','true',[],'',''],
		['PAGE','55212',jdecode('Pizza'),jdecode(''),'/55264/55212.html','true',[],'',''],
		['PAGE','55238',jdecode('Burger'),jdecode(''),'/55264/55238.html','false',[],'',''],
		['PAGE','14079',jdecode('Drinks'),jdecode(''),'/55264/14079.html','false',[],'',''],
		['PAGE','78112',jdecode('Bread'),jdecode(''),'/55264/78112.html','false',[],'',''],
		['PAGE','178260',jdecode('Greek+Meatballs+'),jdecode(''),'/55264/178260.html','true',[],'','']
	],'',''],
	['PAGE','15201',jdecode('Useful+Links'),jdecode(''),'/15201/index.html','true',[ 
		['PAGE','66712',jdecode('Non+Food+Suppliers'),jdecode(''),'/15201/66712.html','true',[],'','']
	],'',''],
	['PAGE','16601',jdecode('Order+Wormery+'),jdecode(''),'/16601.html','false',[],'',''],
	['PAGE','14027',jdecode('Contact'),jdecode(''),'/14027.html','true',[],'',''],
	['PAGE','26901',jdecode('The+Fun+Food+Chef+and+the+environment'),jdecode(''),'/26901.html','false',[],'',''],
	['PAGE','84512',jdecode('Competition'),jdecode(''),'/84512.html','false',[],'',''],
	['PAGE','67912',jdecode('Competition'),jdecode(''),'/67912.html','false',[],'',''],
	['PAGE','21501',jdecode('Special+Days'),jdecode(''),'/21501.html','false',[],'',''],
	['PAGE','80912',jdecode('Special+Days'),jdecode(''),'/80912.html','false',[],'',''],
	['PAGE','104612',jdecode('Special+Days'),jdecode(''),'/104612.html','true',[],'',''],
	['PAGE','88612',jdecode('National+Doing+Nothing+Day'),jdecode(''),'/88612.html','false',[],'',''],
	['PAGE','103212',jdecode('Competition'),jdecode(''),'/103212.html','false',[],'',''],
	['PAGE','120723',jdecode('development'),jdecode(''),'/120723.html','false',[],'',''],
	['PAGE','121523',jdecode('Guest+Book'),jdecode(''),'/121523.html','false',[],'',''],
	['PAGE','138323',jdecode('The+Big+Lunch'),jdecode(''),'/138323.html','true',[],'',''],
	['PAGE','141223',jdecode('Pass+it+On'),jdecode(''),'/141223.html','true',[],'',''],
	['PAGE','157834',jdecode('Healthy+Schools+Competition'),jdecode(''),'/157834.html','true',[],'',''],
	['PAGE','167330',jdecode('Fun+Food+Chef+Shop'),jdecode(''),'/167330.html','false',[],'','']];
var siteelementCount=72;
theSitetree.topTemplateName='Liveliness';
theSitetree.paletteFamily='D74343';
theSitetree.keyvisualId='3269';
theSitetree.keyvisualName='kv_3269.jpg';
theSitetree.fontsetId='10424';
theSitetree.graphicsetId='10731';
theSitetree.contentColor='BE9A5B';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Liveliness',
				paletteFamily: 	'D74343',
				keyvisualId: 	'3269',
				keyvisualName: 	'kv_3269.jpg',
				fontsetId: 		'10424',
				graphicsetId: 	'10731',
				contentColor: 	'BE9A5B',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D74343',
				e_color: 		'BCBCBC',
				f_color: 		'737373',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20100408-062142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20091207-113502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14027',
internalId:  '',
customField: '20090220-064746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14053',
internalId:  '',
customField: '20091207-202301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14079',
internalId:  '',
customField: '20090223-065119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15201',
internalId:  '',
customField: '20091207-100543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16601',
internalId:  '',
customField: '20080608-134821'
};
webappMappings['1501']=webappMappings['1501-6045495']={
webappId:    '1501',
documentId:  '5001',
internalId:  '6045495',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21501',
internalId:  '',
customField: '20090902-114211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26001',
internalId:  '',
customField: '20090515-110731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26901',
internalId:  '',
customField: '20081027-112330'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '5001',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '14001',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '14053',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '14079',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '16601',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '15201',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '21501',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '14027',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '26001',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '26901',
internalId:  '',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35501',
internalId:  '',
customField: '20080730-114545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46001',
internalId:  '',
customField: '20100513-085355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46101',
internalId:  '',
customField: '20080903-090951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52901',
internalId:  '',
customField: '20080919-135949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55212',
internalId:  '',
customField: '20090223-065520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55264',
internalId:  '',
customField: '20100428-065907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55238',
internalId:  '',
customField: '20090216-095255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58412',
internalId:  '',
customField: '20081019-142356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58512',
internalId:  '',
customField: '20090128-124806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59512',
internalId:  '',
customField: '20091022-121739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64712',
internalId:  '',
customField: '20081119-125113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66712',
internalId:  '',
customField: '20090129-115506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67912',
internalId:  '',
customField: '20090219-181644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132023',
internalId:  '',
customField: '20090708-085535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73612',
internalId:  '',
customField: '20090123-075426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78112',
internalId:  '',
customField: '20090216-095152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79112',
internalId:  '',
customField: '20090708-083618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80912',
internalId:  '',
customField: '20100112-093000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82912',
internalId:  '',
customField: '20090223-065005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84512',
internalId:  '',
customField: '20090501-051326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87012',
internalId:  '',
customField: '20090306-063114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88612',
internalId:  '',
customField: '20100112-091800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91212',
internalId:  '',
customField: '20090306-153751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91512',
internalId:  '',
customField: '20090812-113843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95112',
internalId:  '',
customField: '20090313-150444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99312',
internalId:  '',
customField: '20090423-141740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99412',
internalId:  '',
customField: '20090516-165835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103212',
internalId:  '',
customField: '20090527-060043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104612',
internalId:  '',
customField: '20100428-104136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110223',
internalId:  '',
customField: '20090521-133354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105112',
internalId:  '',
customField: '20090507-141051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111923',
internalId:  '',
customField: '20090521-110801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151823',
internalId:  '',
customField: '20090922-082824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150123',
internalId:  '',
customField: '20090915-135909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114923',
internalId:  '',
customField: '20090603-073138'
};
webappMappings['7060']=webappMappings['7060-cfd321675e0ca59478b59dab393bffbe']={
webappId:    '7060',
documentId:  '117423',
internalId:  'cfd321675e0ca59478b59dab393bffbe',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117423',
internalId:  '',
customField: '20090608-073733'
};
webappMappings['7060']=webappMappings['7060-ba306524a72e746d60b7eae3fe3437e4']={
webappId:    '7060',
documentId:  '118223',
internalId:  'ba306524a72e746d60b7eae3fe3437e4',
customField: 'language:en;country:GB;'
};
webappMappings['7060']=webappMappings['7060-c89cec6a1911c4cc9ef96aac1530ed33']={
webappId:    '7060',
documentId:  '118423',
internalId:  'c89cec6a1911c4cc9ef96aac1530ed33',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118223',
internalId:  '',
customField: '20090610-065709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118423',
internalId:  '',
customField: '20090612-060144'
};
webappMappings['1002']=webappMappings['1002-121523anbt20in2snv']={
webappId:    '1002',
documentId:  '121523',
internalId:  '121523anbt20in2snv',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120723',
internalId:  '',
customField: '20090613-223252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121523',
internalId:  '',
customField: '20090615-065416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122723',
internalId:  '',
customField: '20091208-113641'
};
webappMappings['7060']=webappMappings['7060-83fab05d8d04c6602f779157acc8b1d8']={
webappId:    '7060',
documentId:  '138323',
internalId:  '83fab05d8d04c6602f779157acc8b1d8',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123523',
internalId:  '',
customField: '20090619-093616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125323',
internalId:  '',
customField: '20090626-230031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128223',
internalId:  '',
customField: '20090630-225913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129923',
internalId:  '',
customField: '20090708-071738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134723',
internalId:  '',
customField: '20090709-182447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136123',
internalId:  '',
customField: '20090716-080236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138323',
internalId:  '',
customField: '20090721-133851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140223',
internalId:  '',
customField: '20090722-074444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141223',
internalId:  '',
customField: '20091022-122201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153949',
internalId:  '',
customField: '20090929-065812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153923',
internalId:  '',
customField: '20090929-065812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154723',
internalId:  '',
customField: '20091008-103944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157834',
internalId:  '',
customField: '20091022-121521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160362',
internalId:  '',
customField: '20091210-080322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164416',
internalId:  '',
customField: '20091210-071048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164390',
internalId:  '',
customField: '20091210-084118'
};
webappMappings['4001']=webappMappings['4001-11041210']={
webappId:    '4001',
documentId:  '167330',
internalId:  '11041210',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167304',
internalId:  '',
customField: '20100114-203030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167330',
internalId:  '',
customField: '20100112-055429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170632',
internalId:  '',
customField: '20100211-053146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177560',
internalId:  '',
customField: '20100408-062331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '178260',
internalId:  '',
customField: '20100428-065844'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT20IN2SNV';
var companyName   = 'Helping+your+children+eat+healthier';
var htmlTitle	  = '';
var metaKeywords  = 'Pat+Oakes+barbecue+funfoodchef+fun+food+chef+wirral+pat+oakes+wormery+heswall+educational+healthy+5+a+day+ecm';
var metaContents  = 'The+Fun+Food+Chef+is+a+Wirral+based+company+that+brings+the+theatre+of+cooking+to+your+classroom+or+event.+We+now+offer+the+new+Elite+barbecue+service%2C+you+choose+the+guests+and+we+do+the+rest.++';
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();
};
