/* [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','33501',jdecode('Latest+News'),jdecode(''),'/33501.html','true',[],'',''],
	['PAGE','14401',jdecode('Practice+History'),jdecode(''),'/14401.html','true',[],'',''],
	['PAGE','14427',jdecode('Surgery+Locations'),jdecode(''),'/14427/index.html','true',[ 
		['PAGE','14453',jdecode('Walnut+Tree+Hospital'),jdecode(''),'/14427/14453.html','true',[],'',''],
		['PAGE','14479',jdecode('Stoke+Road'),jdecode(''),'/14427/14479.html','true',[],'',''],
		['PAGE','14557',jdecode('Stony+Stratford'),jdecode(''),'/14427/14557.html','true',[],'',''],
		['PAGE','14531',jdecode('Whaddon+Way'),jdecode(''),'/14427/14531.html','true',[],'',''],
		['PAGE','14505',jdecode('Willen'),jdecode(''),'/14427/14505.html','true',[],'','']
	],'',''],
	['PAGE','19401',jdecode('Staff'),jdecode(''),'/19401/index.html','true',[ 
		['PAGE','19427',jdecode('Veterinary+Surgeons'),jdecode(''),'/19401/19427.html','true',[],'',''],
		['PAGE','19453',jdecode('Veterinary+Nurses'),jdecode(''),'/19401/19453.html','true',[],'',''],
		['PAGE','19479',jdecode('Receptionists'),jdecode(''),'/19401/19479.html','true',[],'',''],
		['PAGE','19505',jdecode('Practice+Management'),jdecode(''),'/19401/19505.html','true',[],'','']
	],'',''],
	['PAGE','19531',jdecode('Facilities'),jdecode(''),'/19531/index.html','true',[ 
		['PAGE','27901',jdecode('Reception+Area'),jdecode(''),'/19531/27901.html','true',[],'',''],
		['PAGE','27927',jdecode('Wards'),jdecode(''),'/19531/27927.html','true',[],'',''],
		['PAGE','27953',jdecode('Preparation+Room'),jdecode(''),'/19531/27953.html','true',[],'',''],
		['PAGE','27979',jdecode('Operating+Theatres'),jdecode(''),'/19531/27979.html','true',[],'',''],
		['PAGE','30301',jdecode('Anaesthesia'),jdecode(''),'/19531/30301.html','true',[],'',''],
		['PAGE','28005',jdecode('Cardiology'),jdecode(''),'/19531/28005.html','true',[],'',''],
		['PAGE','28031',jdecode('Dentistry'),jdecode(''),'/19531/28031.html','true',[],'',''],
		['PAGE','28057',jdecode('Dermatology'),jdecode(''),'/19531/28057.html','true',[],'',''],
		['PAGE','28083',jdecode('Imaging'),jdecode(''),'/19531/28083.html','true',[],'',''],
		['PAGE','28109',jdecode('Laboratory'),jdecode(''),'/19531/28109.html','true',[],'',''],
		['PAGE','28135',jdecode('Medicine'),jdecode(''),'/19531/28135.html','true',[],'',''],
		['PAGE','28161',jdecode('Ophthalmology'),jdecode(''),'/19531/28161.html','true',[],'',''],
		['PAGE','28187',jdecode('Surgery'),jdecode(''),'/19531/28187.html','true',[],'','']
	],'',''],
	['PAGE','19557',jdecode('Fees'),jdecode(''),'/19557/index.html','true',[ 
		['PAGE','26301',jdecode('Consultations'),jdecode(''),'/19557/26301.html','true',[],'',''],
		['PAGE','26327',jdecode('Dog+Vaccinations'),jdecode(''),'/19557/26327.html','true',[],'',''],
		['PAGE','26353',jdecode('Cat+Vaccinations'),jdecode(''),'/19557/26353.html','true',[],'',''],
		['PAGE','27101',jdecode('Rabbit+Vaccinations'),jdecode(''),'/19557/27101.html','true',[],'',''],
		['PAGE','27127',jdecode('Neutering'),jdecode(''),'/19557/27127.html','true',[],'','']
	],'',''],
	['PAGE','53201',jdecode('News+from+our+Nurses'),jdecode(''),'/53201/index.html','true',[ 
		['PAGE','53227',jdecode('Nurse+extra+1'),jdecode(''),'/53201/53227.html','false',[],'',''],
		['PAGE','53253',jdecode('Nurse+extra+2'),jdecode(''),'/53201/53253.html','false',[],'',''],
		['PAGE','53279',jdecode('Nurse+extra+3'),jdecode(''),'/53201/53279.html','false',[],'',''],
		['PAGE','53305',jdecode('Nurse+extra+4'),jdecode(''),'/53201/53305.html','false',[],'',''],
		['PAGE','53331',jdecode('Nurse+extra+5'),jdecode(''),'/53201/53331.html','false',[],'','']
	],'',''],
	['PAGE','19583',jdecode('Client+Information'),jdecode(''),'/19583/index.html','true',[ 
		['PAGE','57901',jdecode('Cruciate+Ligament'),jdecode(''),'/19583/57901.html','true',[],'',''],
		['PAGE','68812',jdecode('Ophthalmology'),jdecode(''),'/19583/68812.html','true',[],'','']
	],'',''],
	['PAGE','19609',jdecode('FAQ%26%23x27%3Bs'),jdecode(''),'/19609.html','true',[],'',''],
	['PAGE','14901',jdecode('Repeat+Prescriptions'),jdecode(''),'/14901.html','true',[],'',''],
	['PAGE','52401',jdecode('Register'),jdecode(''),'/52401.html','true',[],'',''],
	['PAGE','19661',jdecode('Update+Details'),jdecode(''),'/19661.html','true',[],'',''],
	['PAGE','19635',jdecode('Useful+Links'),jdecode(''),'/19635.html','true',[],'',''],
	['PAGE','37701',jdecode('Contact+Us'),jdecode(''),'/37701.html','true',[],'',''],
	['PAGE','70712',jdecode('Job+Vacancies'),jdecode(''),'/70712.html','false',[],'',''],
	['PAGE','65812',jdecode('TPLO'),jdecode(''),'/65812.html','false',[],'',''],
	['PAGE','22001',jdecode('Veterinary+Qualifications'),jdecode(''),'/22001.html','false',[],'',''],
	['PAGE','33579',jdecode('Payment+Terms'),jdecode(''),'/33579.html','false',[],'',''],
	['PAGE','33605',jdecode('Vets+Now'),jdecode(''),'/33605.html','false',[],'',''],
	['PAGE','36401',jdecode('PETS'),jdecode(''),'/36401.html','false',[],'',''],
	['PAGE','33527',jdecode('worming'),jdecode(''),'/33527.html','false',[],'',''],
	['PAGE','33553',jdecode('specific+vet'),jdecode(''),'/33553.html','false',[],'',''],
	['PAGE','33631',jdecode('Home+visits'),jdecode(''),'/33631.html','false',[],'',''],
	['PAGE','33657',jdecode('2nd+opinions'),jdecode(''),'/33657.html','false',[],'',''],
	['PAGE','33683',jdecode('Hospital+Visit'),jdecode(''),'/33683.html','false',[],'',''],
	['PAGE','33901',jdecode('Need+Appointment'),jdecode(''),'/33901.html','false',[],'',''],
	['PAGE','33927',jdecode('Worming'),jdecode(''),'/33927.html','false',[],'',''],
	['PAGE','33953',jdecode('Do+In+emergency'),jdecode(''),'/33953.html','false',[],'',''],
	['PAGE','34201',jdecode('Insurance'),jdecode(''),'/34201.html','false',[],'',''],
	['PAGE','39001',jdecode('Discounts'),jdecode(''),'/39001.html','false',[],'',''],
	['PAGE','48101',jdecode('Why+choose+us'),jdecode(''),'/48101.html','false',[],'',''],
	['PAGE','50901',jdecode('Referrals'),jdecode(''),'/50901.html','false',[],'',''],
	['PAGE','51201',jdecode('Qualifications+2'),jdecode(''),'/51201.html','false',[],'',''],
	['PAGE','55201',jdecode('Vaccines+required'),jdecode(''),'/55201.html','false',[],'',''],
	['PAGE','56601',jdecode('Surrounding+villages'),jdecode(''),'/56601.html','false',[],'',''],
	['PAGE','65412',jdecode('Cruciate+picture'),jdecode(''),'/65412.html','false',[],'',''],
	['PAGE','68838',jdecode('Ophthal+1'),jdecode(''),'/68838.html','false',[],'',''],
	['PAGE','68864',jdecode('Ophthal+2'),jdecode(''),'/68864.html','false',[],'','']];
var siteelementCount=73;
theSitetree.topTemplateName='Ragtime';
theSitetree.paletteFamily='B3CA99';
theSitetree.keyvisualId='3575';
theSitetree.keyvisualName='kv_3575.jpg';
theSitetree.fontsetId='10452';
theSitetree.graphicsetId='10852';
theSitetree.contentColor='5D6B55';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Ragtime',
				paletteFamily: 	'B3CA99',
				keyvisualId: 	'3575',
				keyvisualName: 	'kv_3575.jpg',
				fontsetId: 		'10452',
				graphicsetId: 	'10852',
				contentColor: 	'5D6B55',
				contentBGColor: 'FFFFFF',
				a_color: 		'B3CA99',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'747475',
				e_color: 		'899D75',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20091029-130613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14427',
internalId:  '',
customField: '20091028-192149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14453',
internalId:  '',
customField: '20091025-170054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14401',
internalId:  '',
customField: '20091028-192053'
};
webappMappings['7008']=webappMappings['7008-5898']={
webappId:    '7008',
documentId:  '14901',
internalId:  '5898',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19401',
internalId:  '',
customField: '20091101-121544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19427',
internalId:  '',
customField: '20091120-143020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14901',
internalId:  '',
customField: '20091106-001355'
};
webappMappings['7008']=webappMappings['7008-5902']={
webappId:    '7008',
documentId:  '19661',
internalId:  '5902',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19661',
internalId:  '',
customField: '20091102-194306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22001',
internalId:  '',
customField: '20091105-115320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19583',
internalId:  '',
customField: '20091123-123842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14479',
internalId:  '',
customField: '20091028-192207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14505',
internalId:  '',
customField: '20091028-192357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14531',
internalId:  '',
customField: '20091028-192321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14557',
internalId:  '',
customField: '20091028-193917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19453',
internalId:  '',
customField: '20091124-133103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19479',
internalId:  '',
customField: '20100207-133307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19505',
internalId:  '',
customField: '20091120-094200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19531',
internalId:  '',
customField: '20091028-194046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19557',
internalId:  '',
customField: '20091027-213933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19609',
internalId:  '',
customField: '20091106-202133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19635',
internalId:  '',
customField: '20091028-193437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26301',
internalId:  '',
customField: '20100105-132125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26327',
internalId:  '',
customField: '20100105-132213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26353',
internalId:  '',
customField: '20100105-132256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27101',
internalId:  '',
customField: '20100105-132332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27127',
internalId:  '',
customField: '20100105-132744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27901',
internalId:  '',
customField: '20091024-145954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27927',
internalId:  '',
customField: '20091025-090025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27953',
internalId:  '',
customField: '20091028-193032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27979',
internalId:  '',
customField: '20091028-193055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28083',
internalId:  '',
customField: '20091031-190237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28005',
internalId:  '',
customField: '20091025-172430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28161',
internalId:  '',
customField: '20091028-193126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28187',
internalId:  '',
customField: '20091031-184945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30301',
internalId:  '',
customField: '20091025-172554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28031',
internalId:  '',
customField: '20091024-163453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28057',
internalId:  '',
customField: '20091124-212429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28109',
internalId:  '',
customField: '20091025-173355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28135',
internalId:  '',
customField: '20091031-184320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33631',
internalId:  '',
customField: '20091106-201728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33501',
internalId:  '',
customField: '20100103-105259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33579',
internalId:  '',
customField: '20091025-150008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33605',
internalId:  '',
customField: '20091025-114759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33527',
internalId:  '',
customField: '20091025-181250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33553',
internalId:  '',
customField: '20091025-124735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33657',
internalId:  '',
customField: '20091025-122508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33683',
internalId:  '',
customField: '20091025-115130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33901',
internalId:  '',
customField: '20091025-102816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33927',
internalId:  '',
customField: '20091025-092426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33953',
internalId:  '',
customField: '20091025-113516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34201',
internalId:  '',
customField: '20091025-121540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36401',
internalId:  '',
customField: '20091031-222209'
};
webappMappings['7008']=webappMappings['7008-5925']={
webappId:    '7008',
documentId:  '37701',
internalId:  '5925',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37701',
internalId:  '',
customField: '20091027-125950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39001',
internalId:  '',
customField: '20091109-121825'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48101',
internalId:  '',
customField: '20091031-222945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50901',
internalId:  '',
customField: '20091101-125820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51201',
internalId:  '',
customField: '20091101-130120'
};
webappMappings['7008']=webappMappings['7008-5991']={
webappId:    '7008',
documentId:  '52401',
internalId:  '5991',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52401',
internalId:  '',
customField: '20091102-194148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53201',
internalId:  '',
customField: '20100127-212500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53227',
internalId:  '',
customField: '20091103-135436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53253',
internalId:  '',
customField: '20091106-154758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53279',
internalId:  '',
customField: '20091103-135538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53305',
internalId:  '',
customField: '20091103-135608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53331',
internalId:  '',
customField: '20091103-135636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55201',
internalId:  '',
customField: '20091111-124452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56601',
internalId:  '',
customField: '20091109-214403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57901',
internalId:  '',
customField: '20091124-191954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65412',
internalId:  '',
customField: '20091124-192156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65812',
internalId:  '',
customField: '20091124-134812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68812',
internalId:  '',
customField: '20091124-134054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68838',
internalId:  '',
customField: '20091124-134119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68864',
internalId:  '',
customField: '20091124-134146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70712',
internalId:  '',
customField: '20091210-151234'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10IN34J7';
var companyName   = 'Milton+Keynes+Veterinary+Group';
var htmlTitle	  = 'Milton+Keynes+Veterinary+Group';
var metaKeywords  = 'Veterinary%2C+Animal%2C+Hospital%2C+Surgery%2C+Small%2C+Pets%2C+Cats%2C+Dogs%2C+Birds%2C+Avian%2C+Canine%2C+Feline%2C+RCVS%2C+Royal%2C+College%2C+Surgeons%2C+Medical%2C+Surgical%2C+Medicine%2C+Surgery%2C+Dermatology%2C+Anaesthetic%2C+Anaesthesia%2C+Friendly%2C+Professional%2C+Caring%2C+Experienced%2C+Vet%2C+Nurse%2C+Nursing%2C+Equipment%2C+Trained%2C+Buckingham%2C+Buckinghamshire%2C+Bletchley%2C+MIlton+Keynes%2C+Newport+Pagnell%2C+Walnut+Tree%2Cveterinary+hospital%2C+animal+hospital%2C+veterinary+surgery%2C+veterinary+surgeons%2Cpet+hospital%2C+pet+doctor';
var metaContents  = 'Milton+Keynes+Veterinary+Group+offers+a+high+level+of+professional+service+to+small+animal+pets++from+our+RCVS+approved+Veterinary+Hospital+and+conveniently+located+Branch+Surgeries+around+the+City.++We+have+experienced+veterinary+surgeons+across+many+disciplines+including+RCVS+Certificate+Holders.';
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();
};
