/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','515',jdecode('Roll+of+Honour'),jdecode(''),'/515.html','true',[],'',''],
	['PAGE','11522',jdecode('Calendar'),jdecode(''),'/11522/index.html','true',[ 
		['PAGE','11543',jdecode('Other+Events'),jdecode(''),'/11522/11543.html','true',[],'','']
	],'',''],
	['PAGE','263401',jdecode('Winter+09%2F10'),jdecode(''),'/263401/index.html','true',[ 
		['PAGE','459445',jdecode('Fixture+List'),jdecode(''),'/263401/459445.html','true',[],'',''],
		['PAGE','274627',jdecode('Results+%26+Table'),jdecode(''),'/263401/274627.html','true',[],'',''],
		['PAGE','292201',jdecode('League+Player+Stats'),jdecode(''),'/263401/292201.html','true',[],'',''],
		['PAGE','457745',jdecode('Match+Sheet'),jdecode(''),'/263401/457745.html','true',[],'',''],
		['PAGE','327512',jdecode('SINGLES+KO+CUP'),jdecode(''),'/263401/327512.html','true',[],'',''],
		['PAGE','309401',jdecode('TEAM+CUP'),jdecode(''),'/263401/309401.html','true',[],'',''],
		['PAGE','314812',jdecode('Cup+Player+Stats'),jdecode(''),'/263401/314812.html','true',[],'',''],
		['PAGE','290701',jdecode('DOUBLES'),jdecode(''),'/263401/290701.html','true',[],'',''],
		['PAGE','289501',jdecode('Doubles+Info'),jdecode(''),'/263401/289501.html','true',[],'','']
	],'',''],
	['PAGE','459471',jdecode('Team+Directory'),jdecode(''),'/459471/index.html','true',[ 
		['PAGE','460745',jdecode('The+Clarence'),jdecode(''),'/459471/460745.html','true',[],'',''],
		['PAGE','460771',jdecode('The+Pineapple'),jdecode(''),'/459471/460771.html','true',[],'',''],
		['PAGE','460797',jdecode('JFK%26%23x27%3Bs'),jdecode(''),'/459471/460797.html','true',[],'',''],
		['PAGE','460823',jdecode('Rileys+Victoria+LSE'),jdecode(''),'/459471/460823.html','true',[],'',''],
		['PAGE','460849',jdecode('The+Jacks'),jdecode(''),'/459471/460849.html','true',[],'',''],
		['PAGE','460875',jdecode('Union+Jack'),jdecode(''),'/459471/460875.html','true',[],'',''],
		['PAGE','460901',jdecode('Nolans'),jdecode(''),'/459471/460901.html','true',[],'',''],
		['PAGE','460927',jdecode('JFK%26%23x27%3Bs+Allstars'),jdecode(''),'/459471/460927.html','true',[],'',''],
		['PAGE','460953',jdecode('Wooosh%21'),jdecode(''),'/459471/460953.html','true',[],'',''],
		['PAGE','460979',jdecode('Rileys+Victoria+A'),jdecode(''),'/459471/460979.html','true',[],'','']
	],'',''],
	['PAGE','168901',jdecode('Waterloo+KO%26%23x27%3Bs+2010'),jdecode(''),'/168901/index.html','true',[ 
		['PAGE','183401',jdecode('Current+Table'),jdecode(''),'/168901/183401.html','true',[],'',''],
		['PAGE','197001',jdecode('Event+2+Results'),jdecode(''),'/168901/197001.html','true',[],'',''],
		['PAGE','174043',jdecode('Event+1+Results'),jdecode(''),'/168901/174043.html','true',[],'',''],
		['PAGE','197022',jdecode('Event+3+Results'),jdecode(''),'/168901/197022.html','true',[],'',''],
		['PAGE','216401',jdecode('Event+4+Results'),jdecode(''),'/168901/216401.html','true',[],'',''],
		['PAGE','254801',jdecode('Event+5+Results'),jdecode(''),'/168901/254801.html','true',[],'',''],
		['PAGE','275401',jdecode('Event+6+Results'),jdecode(''),'/168901/275401.html','true',[],'',''],
		['PAGE','292227',jdecode('Event+7+Results'),jdecode(''),'/168901/292227.html','true',[],'','']
	],'',''],
	['PAGE','13595',jdecode('Interleague'),jdecode(''),'/13595/index.html','true',[ 
		['PAGE','467045',jdecode('Dr%26%23x27%3Bs+Surgery+Oct+09'),jdecode(''),'/13595/467045.html','true',[],'','']
	],'',''],
	['PAGE','162301',jdecode('Waterloo+-+2010'),jdecode(''),'/162301/index.html','true',[ 
		['PAGE','207401',jdecode('Interleague+Results'),jdecode(''),'/162301/207401.html','true',[],'',''],
		['PAGE','252701',jdecode('Team+Stats'),jdecode(''),'/162301/252701.html','true',[],'','']
	],'',''],
	['PAGE','162322',jdecode('Waterloo+2+-+2010'),jdecode(''),'/162322/index.html','true',[ 
		['PAGE','216453',jdecode('Interleague+Results'),jdecode(''),'/162322/216453.html','true',[],'',''],
		['PAGE','252727',jdecode('Team+Stats'),jdecode(''),'/162322/252727.html','true',[],'','']
	],'',''],
	['PAGE','523818',jdecode('Combined+Stats+%26%23x27%3B10'),jdecode(''),'/523818.html','true',[],'',''],
	['PAGE','578',jdecode('Player+News'),jdecode(''),'/578.html','true',[],'',''],
	['PAGE','536',jdecode('World+Rules'),jdecode(''),'/536/index.html','true',[ 
		['PAGE','24601',jdecode('Foul+Snookered%3F'),jdecode(''),'/536/24601.html','true',[],'','']
	],'',''],
	['PAGE','400123',jdecode('On+The+Loo'),jdecode(''),'/400123.html','true',[],'',''],
	['PAGE','620',jdecode('Contact+Us'),jdecode(''),'/620.html','true',[],'',''],
	['PAGE','388623',jdecode('Administration'),jdecode(''),'/388623/index.html','true',[ 
		['PAGE','403023',jdecode('AGM+Agenda%2C+Motions'),jdecode(''),'/388623/403023.html','true',[],'','']
	],'',''],
	['PAGE','425145',jdecode('Archives'),jdecode(''),'/425145/index.html','true',[ 
		['PAGE','407723',jdecode('Winter+08%2F09'),jdecode(''),'/425145/407723.html','true',[],'',''],
		['PAGE','239001',jdecode('Winter+07%2F08'),jdecode(''),'/425145/239001.html','true',[],'',''],
		['PAGE','238001',jdecode('Winter+06%2F07'),jdecode(''),'/425145/238001.html','true',[],'',''],
		['PAGE','419234',jdecode('Summer+2009'),jdecode(''),'/425145/419234.html','true',[],'',''],
		['PAGE','285901',jdecode('Summer+2008'),jdecode(''),'/425145/285901.html','true',[],'',''],
		['PAGE','240601',jdecode('Summer+2007'),jdecode(''),'/425145/240601.html','true',[],'',''],
		['PAGE','521418',jdecode('Waterloo+KO%26%23x27%3Bs+09'),jdecode(''),'/425145/521418.html','true',[],'',''],
		['PAGE','175501',jdecode('Waterloo+Stats+09'),jdecode(''),'/425145/175501.html','true',[],'',''],
		['PAGE','332912',jdecode('Waterloo+KO%26%23x27%3Bs+08'),jdecode(''),'/425145/332912.html','true',[],'',''],
		['PAGE','332938',jdecode('Waterloo+Stats+08'),jdecode(''),'/425145/332938.html','true',[],'',''],
		['PAGE','242601',jdecode('Waterloo+KO%26%23x27%3Bs+07'),jdecode(''),'/425145/242601.html','true',[],'',''],
		['PAGE','13889',jdecode('Waterloo+Stats+07'),jdecode(''),'/425145/13889.html','true',[],'',''],
		['PAGE','450245',jdecode('Interleague+09'),jdecode(''),'/425145/450245.html','true',[],'',''],
		['PAGE','346712',jdecode('Interleague+08'),jdecode(''),'/425145/346712.html','true',[],'',''],
		['PAGE','54101',jdecode('Interleague+07'),jdecode(''),'/425145/54101.html','true',[],'',''],
		['PAGE','545829',jdecode('Waterloo+-+2009'),jdecode(''),'/425145/545829.html','true',[],'',''],
		['PAGE','350412',jdecode('Waterloo+-+2008'),jdecode(''),'/425145/350412.html','true',[],'',''],
		['PAGE','13637',jdecode('Waterloo+-+2007'),jdecode(''),'/425145/13637.html','true',[],'',''],
		['PAGE','545855',jdecode('Waterloo+2+-+2009'),jdecode(''),'/425145/545855.html','true',[],'',''],
		['PAGE','350438',jdecode('Waterloo+2+-+2008'),jdecode(''),'/425145/350438.html','true',[],'',''],
		['PAGE','13763',jdecode('Waterloo+2+-+2007'),jdecode(''),'/425145/13763.html','true',[],'',''],
		['PAGE','374223',jdecode('Dr%26%23x27%3Bs+Surgery+Apr+09'),jdecode(''),'/425145/374223.html','true',[],'',''],
		['PAGE','281601',jdecode('Dr%26%23x27%3Bs+Surgery+Oct+08'),jdecode(''),'/425145/281601.html','true',[],'',''],
		['PAGE','202101',jdecode('Dr%26%23x27%3Bs+Surgery+Apr+08'),jdecode(''),'/425145/202101.html','true',[],'',''],
		['PAGE','83501',jdecode('Dr%26%23x27%3Bs+Surgery+Oct+07'),jdecode(''),'/425145/83501.html','true',[],'',''],
		['PAGE','268201',jdecode('Team+Details+Archive'),jdecode(''),'/425145/268201.html','true',[],'',''],
		['PAGE','125401',jdecode('Singles+Leagues'),jdecode(''),'/425145/125401.html','true',[],'',''],
		['PAGE','155801',jdecode('Prem+Div+Results+08'),jdecode(''),'/425145/155801.html','true',[],'',''],
		['PAGE','155822',jdecode('2nd+Div+Results+08'),jdecode(''),'/425145/155822.html','true',[],'',''],
		['PAGE','61701',jdecode('Region+7'),jdecode(''),'/425145/61701.html','true',[],'',''],
		['PAGE','439445',jdecode('Region+7+News'),jdecode(''),'/425145/439445.html','true',[],'','']
	],'',''],
	['PAGE','641',jdecode('Links'),jdecode(''),'/641.html','true',[],'','']];
var siteelementCount=83;
theSitetree.topTemplateName='Match';
theSitetree.paletteFamily='8FB7DA';
theSitetree.keyvisualId='2697';
theSitetree.keyvisualName='kv_2697.jpg';
theSitetree.fontsetId='10701';
theSitetree.graphicsetId='10632';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CDE4F7';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Match',
				paletteFamily: 	'8FB7DA',
				keyvisualId: 	'2697',
				keyvisualName: 	'kv_2697.jpg',
				fontsetId: 		'10701',
				graphicsetId: 	'10632',
				contentColor: 	'000000',
				contentBGColor: 'CDE4F7',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'EE0202',
				e_color: 		'707070',
				f_color: 		'707070',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100306-133621'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-2143321']={
webappId:    '1501',
documentId:  '401',
internalId:  '2143321',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20100222-164820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20100301-040318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '403023',
internalId:  '',
customField: '20090506-165249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20070615-175245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '350412',
internalId:  '',
customField: '20090219-191243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13595',
internalId:  '',
customField: '20091021-112300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20090716-153304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '641',
internalId:  '',
customField: '20090602-010228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460953',
internalId:  '',
customField: '20090928-235749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11522',
internalId:  '',
customField: '20100303-133241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11543',
internalId:  '',
customField: '20100301-034636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '274627',
internalId:  '',
customField: '20100303-133144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '275401',
internalId:  '',
customField: '20100206-170714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '292227',
internalId:  '',
customField: '20100206-170922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '281601',
internalId:  '',
customField: '20080929-150634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '467045',
internalId:  '',
customField: '20091001-002005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '545829',
internalId:  '',
customField: '20100304-141113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '314812',
internalId:  '',
customField: '20100223-002319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '521418',
internalId:  '',
customField: '20100206-170103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '268201',
internalId:  '',
customField: '20090902-164806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460927',
internalId:  '',
customField: '20090928-233727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '419234',
internalId:  '',
customField: '20090902-195319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '216453',
internalId:  '',
customField: '20100304-173705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13637',
internalId:  '',
customField: '20090219-140300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168901',
internalId:  '',
customField: '20100129-184156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460901',
internalId:  '',
customField: '20090928-235723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '400123',
internalId:  '',
customField: '20090428-224219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174043',
internalId:  '',
customField: '20100303-200215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13763',
internalId:  '',
customField: '20080719-164032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '252701',
internalId:  '',
customField: '20100303-215930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '252727',
internalId:  '',
customField: '20100304-151947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '254801',
internalId:  '',
customField: '20100206-170419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '407723',
internalId:  '',
customField: '20090528-204731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13889',
internalId:  '',
customField: '20080309-223940'
};
webappMappings['7008']=webappMappings['7008-255']={
webappId:    '7008',
documentId:  '620',
internalId:  '255',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '459471',
internalId:  '',
customField: '20090928-213408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460745',
internalId:  '',
customField: '20100304-123300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '450245',
internalId:  '',
customField: '20090902-192709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460771',
internalId:  '',
customField: '20090928-233604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460797',
internalId:  '',
customField: '20090928-233703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24601',
internalId:  '',
customField: '20070614-191901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54101',
internalId:  '',
customField: '20080719-135528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '263401',
internalId:  '',
customField: '20090928-230042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '239001',
internalId:  '',
customField: '20080729-143833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61701',
internalId:  '',
customField: '20090212-120401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '439445',
internalId:  '',
customField: '20090811-143343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83501',
internalId:  '',
customField: '20080329-121011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460875',
internalId:  '',
customField: '20090928-234648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460823',
internalId:  '',
customField: '20090928-234422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460849',
internalId:  '',
customField: '20090928-234608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '242601',
internalId:  '',
customField: '20080718-184419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '425145',
internalId:  '',
customField: '20090716-152552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '374223',
internalId:  '',
customField: '20090319-230245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '240601',
internalId:  '',
customField: '20081005-144330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125401',
internalId:  '',
customField: '20090114-180515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '332912',
internalId:  '',
customField: '20090214-165658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '523818',
internalId:  '',
customField: '20100303-204416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '332938',
internalId:  '',
customField: '20100201-023241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '350438',
internalId:  '',
customField: '20090219-210720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '545855',
internalId:  '',
customField: '20100304-173523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '388623',
internalId:  '',
customField: '20090716-152934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '285901',
internalId:  '',
customField: '20090222-175559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155801',
internalId:  '',
customField: '20080503-004353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '327512',
internalId:  '',
customField: '20100210-144241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155822',
internalId:  '',
customField: '20080826-093156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162301',
internalId:  '',
customField: '20100303-215210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162322',
internalId:  '',
customField: '20100303-221021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175501',
internalId:  '',
customField: '20100201-023534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183401',
internalId:  '',
customField: '20100303-202901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197001',
internalId:  '',
customField: '20100303-200243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197022',
internalId:  '',
customField: '20100201-044348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202101',
internalId:  '',
customField: '20080929-143447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207401',
internalId:  '',
customField: '20100304-135514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '459445',
internalId:  '',
customField: '20100303-131553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '457745',
internalId:  '',
customField: '20090924-120449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '216401',
internalId:  '',
customField: '20100201-044740'
};
webappMappings['7050']=webappMappings['7050-2271']={
webappId:    '7050',
documentId:  '400123',
internalId:  '2271',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '292201',
internalId:  '',
customField: '20100304-000311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460979',
internalId:  '',
customField: '20090928-234447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '309401',
internalId:  '',
customField: '20100217-103206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '346712',
internalId:  '',
customField: '20090214-201701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '289501',
internalId:  '',
customField: '20091019-194214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '290701',
internalId:  '',
customField: '20091217-221019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238001',
internalId:  '',
customField: '20080729-135353'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10IN21IB';
var companyName   = 'Waterloo+Pool+League';
var htmlTitle	  = 'Waterloo+Pool+League';
var metaKeywords  = 'waterloopoolleague.co.uk%2Cwaterloo%2Cpool%2C8ballpool%2Ccountypool%2Clondon%2Cwaterloo%2CJFKs%2CJFKs%2Csouth+london+pool%2Cpool+in+south+london%2Cpool+leagues%2Cpool+tournaments%2Clondon+pool+league%2Clondon+pool+leagues%2Clondon+pool%2Cpool+in+london%2Cpool+london%2C8+ball+pool%2C8+ball+pool+in+london%2C';
var metaContents  = 'The+conclusive+site+covering+Waterloo+Pool+League%2C+London+Interleague%2C+London+County+and+everything+else+related+to+8-ball+Pool+in+London+and+nationally.+All+things+to+all+pool+playing+men+%28and+women%29.+';
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();
};
