/* [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(''),'/1410/index.html','true',[ 
		['PAGE','23501',jdecode('Membership'),jdecode(''),'/1410/23501.html','true',[],'','']
	],'',''],
	['PAGE','5001',jdecode('Officers+and+Judges'),jdecode(''),'/5001.html','true',[],'',''],
	['PAGE','5027',jdecode('History+of+the+Club'),jdecode(''),'/5027/index.html','true',[ 
		['PAGE','16701',jdecode('The+%22Hiram+Wakefield%22+Medal'),jdecode(''),'/5027/16701.html','true',[],'',''],
		['PAGE','16901',jdecode('Bradford+Championship+Show+1914.'),jdecode(''),'/5027/16901.html','true',[],'',''],
		['PAGE','89312',jdecode('London+Championship+Show'),jdecode(''),'/5027/89312.html','true',[],'',''],
		['PAGE','52201',jdecode('Jack+Smith+-+Elmdene+Stud'),jdecode(''),'/5027/52201.html','true',[],'','']
	],'',''],
	['PAGE','5053',jdecode('Roll+of+Honour'),jdecode(''),'/5053/index.html','true',[ 
		['PAGE','33901',jdecode('Club+Champions'),jdecode(''),'/5053/33901.html','true',[],'',''],
		['PAGE','92312',jdecode('2010+Winners'),jdecode(''),'/5053/92312.html','true',[],'',''],
		['PAGE','73412',jdecode('2009+Winners'),jdecode(''),'/5053/73412.html','true',[],'',''],
		['PAGE','33927',jdecode('2008+Winners'),jdecode(''),'/5053/33927.html','true',[],'',''],
		['PAGE','33953',jdecode('Adult+Stock+Show'),jdecode(''),'/5053/33953.html','true',[],'',''],
		['PAGE','33979',jdecode('Young+Stock+Show'),jdecode(''),'/5053/33979.html','true',[],'',''],
		['PAGE','34005',jdecode('Northern+Area+Stock+Show'),jdecode(''),'/5053/34005.html','true',[],'',''],
		['PAGE','34031',jdecode('Southern+Area+Stock+Show'),jdecode(''),'/5053/34031.html','true',[],'',''],
		['PAGE','34057',jdecode('Midland+Area+Stock+Show'),jdecode(''),'/5053/34057.html','true',[],'',''],
		['PAGE','34083',jdecode('Welsh+Area+Stock+Show'),jdecode(''),'/5053/34083.html','true',[],'','']
	],'',''],
	['PAGE','5079',jdecode('Breed+Standards'),jdecode(''),'/5079/index.html','true',[ 
		['PAGE','14301',jdecode('The+Agouti'),jdecode(''),'/5079/14301.html','true',[],'',''],
		['PAGE','14327',jdecode('The+Solid+Agouti'),jdecode(''),'/5079/14327.html','true',[],'',''],
		['PAGE','25301',jdecode('The+Colours'),jdecode(''),'/5079/25301.html','true',[],'',''],
		['PAGE','25327',jdecode('Unrecognised+Colours'),jdecode(''),'/5079/25327.html','true',[],'','']
	],'',''],
	['PAGE','5105',jdecode('LIBRARY'),jdecode(''),'/5105/index.html','true',[ 
		['PAGE','12527',jdecode('Breeding+the+Agouti+Cavy'),jdecode(''),'/5105/12527.html','true',[],'',''],
		['PAGE','12553',jdecode('Agouti+Genetics'),jdecode(''),'/5105/12553.html','true',[],'',''],
		['PAGE','12579',jdecode('Agouti+Show+Preparation'),jdecode(''),'/5105/12579.html','true',[],'',''],
		['PAGE','15501',jdecode('The+Golden+Agouti'),jdecode(''),'/5105/15501.html','true',[],'',''],
		['PAGE','15527',jdecode('Agouti+Faults'),jdecode(''),'/5105/15527.html','true',[],'',''],
		['PAGE','12501',jdecode('Vic+Bailey+-+%22The+Silver+King%22'),jdecode(''),'/5105/12501.html','true',[],'',''],
		['PAGE','10101',jdecode('Jack+Smith+-+%22Elmdene+Stud%22'),jdecode(''),'/5105/10101.html','true',[],'',''],
		['PAGE','56501',jdecode('What%26%23x27%3Bs+in+the+Shed%3F+-+Malcolm+Atkinson'),jdecode(''),'/5105/56501.html','true',[],'',''],
		['PAGE','56527',jdecode('What%26%23x27%3Bs+in+the+Shed%3F+-+Vic+Bailey'),jdecode(''),'/5105/56527.html','true',[],'',''],
		['PAGE','87112',jdecode('Brewer+Brothers+1921'),jdecode(''),'/5105/87112.html','true',[],'','']
	],'',''],
	['PAGE','5131',jdecode('Show+Dates'),jdecode(''),'/5131.html','true',[],'',''],
	['PAGE','15901',jdecode('Newsletters'),jdecode(''),'/15901/index.html','true',[ 
		['PAGE','73212',jdecode('Spring+2010'),jdecode(''),'/15901/73212.html','true',[],'',''],
		['PAGE','52801',jdecode('Autumn+2009'),jdecode(''),'/15901/52801.html','true',[],'',''],
		['PAGE','16001',jdecode('Spring+2009'),jdecode(''),'/15901/16001.html','true',[],'','']
	],'',''],
	['PAGE','5157',jdecode('Points+Competition'),jdecode(''),'/5157.html','true',[],'',''],
	['PAGE','5183',jdecode('PHOTO+GALLERIES'),jdecode(''),'/5183/index.html','true',[ 
		['PAGE','65612',jdecode('2010'),jdecode(''),'/5183/65612.html','true',[],'',''],
		['PAGE','19779',jdecode('2009'),jdecode(''),'/5183/19779.html','true',[],'',''],
		['PAGE','19753',jdecode('2008'),jdecode(''),'/5183/19753.html','true',[],'',''],
		['PAGE','22101',jdecode('2007'),jdecode(''),'/5183/22101.html','true',[],'',''],
		['PAGE','30701',jdecode('2006'),jdecode(''),'/5183/30701.html','true',[],'',''],
		['PAGE','19727',jdecode('2005'),jdecode(''),'/5183/19727.html','true',[],'',''],
		['PAGE','30727',jdecode('2004'),jdecode(''),'/5183/30727.html','true',[],'',''],
		['PAGE','19831',jdecode('2003'),jdecode(''),'/5183/19831.html','true',[],'',''],
		['PAGE','79312',jdecode('2002'),jdecode(''),'/5183/79312.html','true',[],'',''],
		['PAGE','19805',jdecode('2000'),jdecode(''),'/5183/19805.html','true',[],'',''],
		['PAGE','82012',jdecode('1999'),jdecode(''),'/5183/82012.html','true',[],'',''],
		['PAGE','75012',jdecode('1996'),jdecode(''),'/5183/75012.html','true',[],'',''],
		['PAGE','19701',jdecode('1995'),jdecode(''),'/5183/19701.html','true',[],'',''],
		['PAGE','56801',jdecode('1994'),jdecode(''),'/5183/56801.html','true',[],'',''],
		['PAGE','30753',jdecode('1978'),jdecode(''),'/5183/30753.html','true',[],'',''],
		['PAGE','76712',jdecode('1971'),jdecode(''),'/5183/76712.html','true',[],'',''],
		['PAGE','21401',jdecode('1969'),jdecode(''),'/5183/21401.html','true',[],'',''],
		['PAGE','59801',jdecode('1948'),jdecode(''),'/5183/59801.html','true',[],'',''],
		['PAGE','57201',jdecode('1924'),jdecode(''),'/5183/57201.html','true',[],'',''],
		['PAGE','52001',jdecode('1920'),jdecode(''),'/5183/52001.html','true',[],'',''],
		['PAGE','60701',jdecode('1903'),jdecode(''),'/5183/60701.html','true',[],'','']
	],'',''],
	['PAGE','34109',jdecode('Stock+Censuses'),jdecode(''),'/34109.html','true',[],'',''],
	['PAGE','5209',jdecode('Breeders%26%23x27%3B+Directory'),jdecode(''),'/5209.html','true',[],'',''],
	['PAGE','38901',jdecode('Advertisements'),jdecode(''),'/38901.html','true',[],'',''],
	['PAGE','38927',jdecode('Links'),jdecode(''),'/38927.html','true',[],'',''],
	['PAGE','5235',jdecode('International+Agoutis'),jdecode(''),'/5235.html','true',[],'',''],
	['PAGE','5261',jdecode('Guestbook'),jdecode(''),'/5261.html','true',[],'','']];
var siteelementCount=69;
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 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: '20100228-090706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5131',
internalId:  '',
customField: '20100604-200916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5157',
internalId:  '',
customField: '20100826-184005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5105',
internalId:  '',
customField: '20091202-140154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1410',
internalId:  '',
customField: '20100901-081338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20100901-094330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5027',
internalId:  '',
customField: '20091110-144743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5053',
internalId:  '',
customField: '20100705-212622'
};
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: '20100615-223800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5235',
internalId:  '',
customField: '20100315-161322'
};
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: '20100615-222318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14327',
internalId:  '',
customField: '20100901-094504'
};
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: '20100704-175125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19701',
internalId:  '',
customField: '20100506-205640'
};
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: '20100326-205642'
};
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: '20091110-173746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22101',
internalId:  '',
customField: '20091202-224633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21401',
internalId:  '',
customField: '20100704-234537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25301',
internalId:  '',
customField: '20091203-150611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23501',
internalId:  '',
customField: '20091110-171516'
};
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: '20100809-095839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33927',
internalId:  '',
customField: '20100705-190404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33953',
internalId:  '',
customField: '20100615-221437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33979',
internalId:  '',
customField: '20100615-221603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34005',
internalId:  '',
customField: '20100615-221205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34031',
internalId:  '',
customField: '20100901-064324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34057',
internalId:  '',
customField: '20100615-221641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34083',
internalId:  '',
customField: '20100318-163232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34109',
internalId:  '',
customField: '20100621-205310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38901',
internalId:  '',
customField: '20100621-122959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38927',
internalId:  '',
customField: '20100810-224137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52001',
internalId:  '',
customField: '20100506-212320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52201',
internalId:  '',
customField: '20100615-220428'
};
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: '20100901-080709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73212',
internalId:  '',
customField: '20100615-223336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73412',
internalId:  '',
customField: '20100705-211523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75012',
internalId:  '',
customField: '20100501-203928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76712',
internalId:  '',
customField: '20100420-222414'
};
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: '20100704-232027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92312',
internalId:  '',
customField: '20100828-221328'
};
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();
};
