/* [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','1410',jdecode('HOME'),jdecode(''), jdecode('%2F1410.html'), 'true',[],'',''],
	['PAGE','23501',jdecode('MEMBERSHIP'),jdecode(''), jdecode('%2F23501.html'), 'true',[],'',''],
	['PAGE','5001',jdecode('OFFICERS+%26+JUDGES'),jdecode(''), jdecode('%2F5001.html'), 'true',[],'',''],
	['PAGE','5027',jdecode('HISTORY+OF+THE+CLUB'),jdecode(''), jdecode('%2F5027%2Findex.html'), 'true',[ 
		['PAGE','16701',jdecode('The+%22Hiram+Wakefield%22+Medal'),jdecode(''), jdecode('%2F5027%2F16701.html'), 'true',[],'',''],
		['PAGE','16901',jdecode('Bradford+Champ+Show+1914'),jdecode(''), jdecode('%2F5027%2F16901.html'), 'true',[],'',''],
		['PAGE','89312',jdecode('London+Championship+Show'),jdecode(''), jdecode('%2F5027%2F89312.html'), 'true',[],'',''],
		['PAGE','52201',jdecode('Jack+Smith+-+Elmdene+Stud'),jdecode(''), jdecode('%2F5027%2F52201.html'), 'true',[],'','']
	],'',''],
	['PAGE','5053',jdecode('ROLL+OF+HONOUR'),jdecode(''), jdecode('%2F5053%2Findex.html'), 'true',[ 
		['PAGE','33901',jdecode('Club+Champions'),jdecode(''), jdecode('%2F5053%2F33901.html'), 'true',[],'',''],
		['PAGE','33953',jdecode('Adult+Stock+Show'),jdecode(''), jdecode('%2F5053%2F33953.html'), 'true',[],'',''],
		['PAGE','33979',jdecode('Young+Stock+Show'),jdecode(''), jdecode('%2F5053%2F33979.html'), 'true',[],'',''],
		['PAGE','34005',jdecode('Northern+Area+Stock+Show'),jdecode(''), jdecode('%2F5053%2F34005.html'), 'true',[],'',''],
		['PAGE','34031',jdecode('Southern+Area+Stock+Show'),jdecode(''), jdecode('%2F5053%2F34031.html'), 'true',[],'',''],
		['PAGE','34057',jdecode('Midland+Area+Stock+Show'),jdecode(''), jdecode('%2F5053%2F34057.html'), 'true',[],'',''],
		['PAGE','34083',jdecode('Welsh+Area+Stock+Show'),jdecode(''), jdecode('%2F5053%2F34083.html'), 'true',[],'',''],
		['PAGE','162423',jdecode('Vic+Bailey+Memorial+Cup'),jdecode(''), jdecode('%2F5053%2F162423.html'), 'true',[],'',''],
		['PAGE','166623',jdecode('2012+Winners'),jdecode(''), jdecode('%2F5053%2F166623.html'), 'true',[],'',''],
		['PAGE','123812',jdecode('2011+Winners'),jdecode(''), jdecode('%2F5053%2F123812.html'), 'true',[],'',''],
		['PAGE','92312',jdecode('2010+Winners'),jdecode(''), jdecode('%2F5053%2F92312.html'), 'true',[],'',''],
		['PAGE','73412',jdecode('2009+Winners'),jdecode(''), jdecode('%2F5053%2F73412.html'), 'true',[],'',''],
		['PAGE','33927',jdecode('2008+Winners'),jdecode(''), jdecode('%2F5053%2F33927.html'), 'true',[],'','']
	],'',''],
	['PAGE','5079',jdecode('BREED+STANDARDS'),jdecode(''), jdecode('%2F5079%2Findex.html'), 'true',[ 
		['PAGE','14301',jdecode('The+Agouti'),jdecode(''), jdecode('%2F5079%2F14301.html'), 'true',[],'',''],
		['PAGE','14327',jdecode('The+Solid+Agouti'),jdecode(''), jdecode('%2F5079%2F14327.html'), 'true',[],'',''],
		['PAGE','25301',jdecode('The+Colours'),jdecode(''), jdecode('%2F5079%2F25301.html'), 'true',[],'',''],
		['PAGE','25327',jdecode('Unrecognised+Colours'),jdecode(''), jdecode('%2F5079%2F25327.html'), 'true',[],'','']
	],'',''],
	['PAGE','5105',jdecode('LIBRARY'),jdecode(''), jdecode('%2F5105%2Findex.html'), 'true',[ 
		['PAGE','12527',jdecode('Breeding+the+Agouti+Cavy'),jdecode(''), jdecode('%2F5105%2F12527.html'), 'true',[],'',''],
		['PAGE','12553',jdecode('Agouti+Genetics'),jdecode(''), jdecode('%2F5105%2F12553.html'), 'true',[],'',''],
		['PAGE','12579',jdecode('Agouti+Show+Preparation'),jdecode(''), jdecode('%2F5105%2F12579.html'), 'true',[],'',''],
		['PAGE','15501',jdecode('The+Golden+Agouti'),jdecode(''), jdecode('%2F5105%2F15501.html'), 'true',[],'',''],
		['PAGE','15527',jdecode('Agouti+Faults'),jdecode(''), jdecode('%2F5105%2F15527.html'), 'true',[],'',''],
		['PAGE','12501',jdecode('Vic+Bailey+-+%22The+Silver+King%22'),jdecode(''), jdecode('%2F5105%2F12501.html'), 'true',[],'',''],
		['PAGE','10101',jdecode('Jack+Smith+-+%22Elmdene+Stud%22'),jdecode(''), jdecode('%2F5105%2F10101.html'), 'true',[],'',''],
		['PAGE','56501',jdecode('Malcolm+Atkinson+-+What%26%23x27%3Bs+in+the+Shed%3F++'),jdecode(''), jdecode('%2F5105%2F56501.html'), 'true',[],'',''],
		['PAGE','56527',jdecode('Vic+Bailey+-+What%26%23x27%3Bs+in+the+Shed%3F+'),jdecode(''), jdecode('%2F5105%2F56527.html'), 'true',[],'',''],
		['PAGE','139712',jdecode('A+Few+Hints+on+Breeding+1922'),jdecode(''), jdecode('%2F5105%2F139712.html'), 'true',[],'',''],
		['PAGE','140512',jdecode('Golden+Agouti+Cavies+1922'),jdecode(''), jdecode('%2F5105%2F140512.html'), 'true',[],'',''],
		['PAGE','87112',jdecode('Brewer+Brothers+1921'),jdecode(''), jdecode('%2F5105%2F87112.html'), 'true',[],'','']
	],'',''],
	['PAGE','155623',jdecode('SHOWS+2012'),jdecode(''), jdecode('%2F155623.html'), 'true',[],'',''],
	['PAGE','5131',jdecode('SHOWS++2011'),jdecode(''), jdecode('%2F5131.html'), 'true',[],'',''],
	['PAGE','116512',jdecode('SCHEDULES'),jdecode(''), jdecode('%2F116512.html'), 'true',[],'',''],
	['PAGE','15901',jdecode('NEWSLETTERS'),jdecode(''), jdecode('%2F15901%2Findex.html'), 'true',[ 
		['PAGE','137012',jdecode('Spring+2011'),jdecode(''), jdecode('%2F15901%2F137012.html'), 'true',[],'',''],
		['PAGE','104712',jdecode('Autumn+2010'),jdecode(''), jdecode('%2F15901%2F104712.html'), 'true',[],'',''],
		['PAGE','73212',jdecode('Spring+2010'),jdecode(''), jdecode('%2F15901%2F73212.html'), 'true',[],'',''],
		['PAGE','52801',jdecode('Autumn+2009'),jdecode(''), jdecode('%2F15901%2F52801.html'), 'true',[],'',''],
		['PAGE','16001',jdecode('Spring+2009'),jdecode(''), jdecode('%2F15901%2F16001.html'), 'true',[],'','']
	],'',''],
	['PAGE','5157',jdecode('POINTS+COMPETITION'),jdecode(''), jdecode('%2F5157.html'), 'true',[],'',''],
	['PAGE','5183',jdecode('PHOTO+GALLERIES'),jdecode(''), jdecode('%2F5183%2Findex.html'), 'true',[ 
		['PAGE','164123',jdecode('2012'),jdecode(''), jdecode('%2F5183%2F164123.html'), 'true',[],'',''],
		['PAGE','120912',jdecode('2011'),jdecode(''), jdecode('%2F5183%2F120912.html'), 'true',[],'',''],
		['PAGE','65612',jdecode('2010'),jdecode(''), jdecode('%2F5183%2F65612.html'), 'true',[],'',''],
		['PAGE','19779',jdecode('2009'),jdecode(''), jdecode('%2F5183%2F19779.html'), 'true',[],'',''],
		['PAGE','19753',jdecode('2008'),jdecode(''), jdecode('%2F5183%2F19753.html'), 'true',[],'',''],
		['PAGE','22101',jdecode('2007'),jdecode(''), jdecode('%2F5183%2F22101.html'), 'true',[],'',''],
		['PAGE','30701',jdecode('2006'),jdecode(''), jdecode('%2F5183%2F30701.html'), 'true',[],'',''],
		['PAGE','19727',jdecode('2005'),jdecode(''), jdecode('%2F5183%2F19727.html'), 'true',[],'',''],
		['PAGE','30727',jdecode('2004'),jdecode(''), jdecode('%2F5183%2F30727.html'), 'true',[],'',''],
		['PAGE','19831',jdecode('2003'),jdecode(''), jdecode('%2F5183%2F19831.html'), 'true',[],'',''],
		['PAGE','79312',jdecode('2002'),jdecode(''), jdecode('%2F5183%2F79312.html'), 'true',[],'',''],
		['PAGE','19805',jdecode('2000'),jdecode(''), jdecode('%2F5183%2F19805.html'), 'true',[],'',''],
		['PAGE','82012',jdecode('1999'),jdecode(''), jdecode('%2F5183%2F82012.html'), 'true',[],'',''],
		['PAGE','75012',jdecode('1996'),jdecode(''), jdecode('%2F5183%2F75012.html'), 'true',[],'',''],
		['PAGE','19701',jdecode('1995'),jdecode(''), jdecode('%2F5183%2F19701.html'), 'true',[],'',''],
		['PAGE','56801',jdecode('1994'),jdecode(''), jdecode('%2F5183%2F56801.html'), 'true',[],'',''],
		['PAGE','30753',jdecode('1978'),jdecode(''), jdecode('%2F5183%2F30753.html'), 'true',[],'',''],
		['PAGE','129512',jdecode('1973'),jdecode(''), jdecode('%2F5183%2F129512.html'), 'true',[],'',''],
		['PAGE','76712',jdecode('1971'),jdecode(''), jdecode('%2F5183%2F76712.html'), 'true',[],'',''],
		['PAGE','105912',jdecode('1970'),jdecode(''), jdecode('%2F5183%2F105912.html'), 'true',[],'',''],
		['PAGE','21401',jdecode('1969'),jdecode(''), jdecode('%2F5183%2F21401.html'), 'true',[],'',''],
		['PAGE','108612',jdecode('1965'),jdecode(''), jdecode('%2F5183%2F108612.html'), 'true',[],'',''],
		['PAGE','108664',jdecode('1952'),jdecode(''), jdecode('%2F5183%2F108664.html'), 'true',[],'',''],
		['PAGE','108638',jdecode('1951'),jdecode(''), jdecode('%2F5183%2F108638.html'), 'true',[],'',''],
		['PAGE','59801',jdecode('1948'),jdecode(''), jdecode('%2F5183%2F59801.html'), 'true',[],'',''],
		['PAGE','57201',jdecode('1924'),jdecode(''), jdecode('%2F5183%2F57201.html'), 'true',[],'',''],
		['PAGE','141112',jdecode('1923'),jdecode(''), jdecode('%2F5183%2F141112.html'), 'true',[],'',''],
		['PAGE','122612',jdecode('1922'),jdecode(''), jdecode('%2F5183%2F122612.html'), 'true',[],'',''],
		['PAGE','52001',jdecode('1920'),jdecode(''), jdecode('%2F5183%2F52001.html'), 'true',[],'',''],
		['PAGE','60701',jdecode('1903'),jdecode(''), jdecode('%2F5183%2F60701.html'), 'true',[],'','']
	],'',''],
	['PAGE','34109',jdecode('STOCK+CENSUSES'),jdecode(''), jdecode('%2F34109.html'), 'true',[],'',''],
	['PAGE','5209',jdecode('BREEDERS%26%23x27%3B+DIRECTORY'),jdecode(''), jdecode('%2F5209.html'), 'true',[],'',''],
	['PAGE','38901',jdecode('ADVERTISEMENTS'),jdecode(''), jdecode('%2F38901.html'), 'true',[],'',''],
	['PAGE','38927',jdecode('LINKS'),jdecode(''), jdecode('%2F38927.html'), 'true',[],'',''],
	['PAGE','5235',jdecode('INTERNATIONAL+AGOUTIS'),jdecode(''), jdecode('%2F5235.html'), 'true',[],'',''],
	['PAGE','128212',jdecode('CAVY+WELFARE'),jdecode(''), jdecode('%2F128212.html'), 'true',[],'',''],
	['PAGE','5261',jdecode('GUESTBOOK'),jdecode(''), jdecode('%2F5261.html'), 'true',[],'','']];
var siteelementCount=88;
theSitetree.topTemplateName='Graduation';
theSitetree.paletteFamily='FFF6B7';
theSitetree.keyvisualId='10343';
theSitetree.keyvisualName='kv_10343.jpg';
theSitetree.fontsetId='21261';
theSitetree.graphicsetId='13338';
theSitetree.contentColor='43500F';
theSitetree.contentBGColor='F8EECB';
var localeDef={
  language: 'en',
  country: 'GB'
};
var prodDef={
  wl_name: 'easily_co_uk_ce',
  product: 'WSCSYSSSSLY0XKQS'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Graduation',
				paletteFamily: 	'FFF6B7',
				keyvisualId: 	'10343',
				keyvisualName: 	'kv_10343.jpg',
				fontsetId: 		'21261',
				graphicsetId: 	'13338',
				contentColor: 	'43500F',
				contentBGColor: 'F8EECB',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5183',
internalId:  '',
customField: '20110101-075730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5131',
internalId:  '',
customField: '20111220-105437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5157',
internalId:  '',
customField: '20111212-203443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5105',
internalId:  '',
customField: '20091202-140154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1410',
internalId:  '',
customField: '20120130-222548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20110414-202657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5027',
internalId:  '',
customField: '20110530-160536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5053',
internalId:  '',
customField: '20111220-102002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5079',
internalId:  '',
customField: '20100615-221950'
};
webappMappings['7002']=webappMappings['7002-2185']={
webappId:    '7002',
documentId:  '5261',
internalId:  '2185',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5209',
internalId:  '',
customField: '20110921-090049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5235',
internalId:  '',
customField: '20110923-185550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5261',
internalId:  '',
customField: '20090813-195738'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1410',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10101',
internalId:  '',
customField: '20100615-222933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20090628-213054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12527',
internalId:  '',
customField: '20100525-230354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14301',
internalId:  '',
customField: '20101231-212643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14327',
internalId:  '',
customField: '20101231-215539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12553',
internalId:  '',
customField: '20090628-212913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12579',
internalId:  '',
customField: '20090617-202902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15501',
internalId:  '',
customField: '20100525-223711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15527',
internalId:  '',
customField: '20100525-224243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25327',
internalId:  '',
customField: '20091110-142118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16001',
internalId:  '',
customField: '20090617-180438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20090627-224350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16901',
internalId:  '',
customField: '20101029-153907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19701',
internalId:  '',
customField: '20100901-132403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19727',
internalId:  '',
customField: '20100506-210632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19753',
internalId:  '',
customField: '20091202-230303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19779',
internalId:  '',
customField: '20110413-001024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19805',
internalId:  '',
customField: '20100420-221535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19831',
internalId:  '',
customField: '20100505-215506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15901',
internalId:  '',
customField: '20110101-080431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22101',
internalId:  '',
customField: '20101026-225237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21401',
internalId:  '',
customField: '20101026-223750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25301',
internalId:  '',
customField: '20101231-220335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23501',
internalId:  '',
customField: '20120113-164936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30727',
internalId:  '',
customField: '20100615-230103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30701',
internalId:  '',
customField: '20100505-221302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30753',
internalId:  '',
customField: '20090628-213536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33901',
internalId:  '',
customField: '20111220-103049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33927',
internalId:  '',
customField: '20100705-190404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33953',
internalId:  '',
customField: '20120130-215300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33979',
internalId:  '',
customField: '20110919-205322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34005',
internalId:  '',
customField: '20110412-235545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34031',
internalId:  '',
customField: '20110725-141451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34057',
internalId:  '',
customField: '20110628-085335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34083',
internalId:  '',
customField: '20111126-152059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34109',
internalId:  '',
customField: '20110206-222429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38901',
internalId:  '',
customField: '20100621-122959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38927',
internalId:  '',
customField: '20111109-175350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52001',
internalId:  '',
customField: '20100506-212320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52201',
internalId:  '',
customField: '20101026-225728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52801',
internalId:  '',
customField: '20100615-223438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56501',
internalId:  '',
customField: '20100704-224357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56527',
internalId:  '',
customField: '20100704-143850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56801',
internalId:  '',
customField: '20100615-224754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57201',
internalId:  '',
customField: '20100615-225158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59801',
internalId:  '',
customField: '20091208-185118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60701',
internalId:  '',
customField: '20091209-232131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65612',
internalId:  '',
customField: '20110413-000047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73212',
internalId:  '',
customField: '20100615-223336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73412',
internalId:  '',
customField: '20120130-220043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75012',
internalId:  '',
customField: '20110324-222654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76712',
internalId:  '',
customField: '20101109-150419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79312',
internalId:  '',
customField: '20100501-221043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82012',
internalId:  '',
customField: '20100506-192036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87112',
internalId:  '',
customField: '20100622-153120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89312',
internalId:  '',
customField: '20110615-195804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92312',
internalId:  '',
customField: '20120130-215959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104712',
internalId:  '',
customField: '20101002-180603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105912',
internalId:  '',
customField: '20101108-175902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108638',
internalId:  '',
customField: '20101108-175437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108612',
internalId:  '',
customField: '20101108-174006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108664',
internalId:  '',
customField: '20101108-174006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116512',
internalId:  '',
customField: '20110205-223621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120912',
internalId:  '',
customField: '20120112-213555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122612',
internalId:  '',
customField: '20110617-220847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123812',
internalId:  '',
customField: '20111126-152630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128212',
internalId:  '',
customField: '20110302-083218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129512',
internalId:  '',
customField: '20110324-223018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137012',
internalId:  '',
customField: '20110530-154933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139712',
internalId:  '',
customField: '20110617-212410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '140512',
internalId:  '',
customField: '20110617-220343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141112',
internalId:  '',
customField: '20110617-221643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155623',
internalId:  '',
customField: '20120130-222427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162423',
internalId:  '',
customField: '20111220-105351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164123',
internalId:  '',
customField: '20120130-225132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166623',
internalId:  '',
customField: '20120130-220646'
};
var webAppHostname = 'cgi.easily.co.uk:80';
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10INEHTJ';
var companyName   = '+National+Agouti+Cavy+Club';
var htmlTitle	  = 'National+Agouti+Cavy+Club';
var metaKeywords  = 'Agouti+Cavy+Cavies+Golden+Silver+Cinnamon+Lemon+Chocolate+Cream';
var metaContents  = 'The+club+promotes+the+care%2C+development+and+exhibition+of+pure-bred+Agouti+cavies+%28guinea+pigs%29.+Golden+Agouti%2C+Silver+Agouti%2C+Cinnamon+Agouti%2C+Lemon+Agouti%2C+Chocolate+Agouti%2C+Cream+Agouti.';
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();
};

