/* [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','6322',jdecode('Accueil'),jdecode(''),'/6322.html','true',[],'',''],
	['PAGE','33501',jdecode('recherche'),jdecode(''),'/33501.html','true',[],'',''],
	['PAGE','20601',jdecode('aides+pour+l%26%23x27%3B%C3%A9tude'),jdecode(''),'/20601.html','true',[],'',''],
	['PAGE','34701',jdecode('%C3%A9coutez+en+ligne'),jdecode(''),'/34701/index.html','true',[ 
		['PAGE','34722',jdecode('Le+salut'),jdecode(''),'/34701/34722.html','true',[],'',''],
		['PAGE','40868',jdecode('l%26%23x27%3BEglise'),jdecode(''),'/34701/40868.html','true',[],'','']
	],'',''],
	['PAGE','13201',jdecode('trouvez+une+assembl%C3%A9e'),jdecode(''),'/13201.html','true',[],'',''],
	['PAGE','13401',jdecode('liens+utiles'),jdecode(''),'/13401/index.html','true',[ 
		['PAGE','44668',jdecode('newsletters'),jdecode(''),'/13401/44668.html','true',[],'','']
	],'',''],
	['PAGE','6601',jdecode('anciens+num%C3%A9ros'),jdecode(''),'/6601/index.html','true',[ 
		['PAGE','17201',jdecode('Vol+1%2C+No+1'),jdecode(''),'/6601/17201.html','true',[],'',''],
		['PAGE','17601',jdecode('Vol+1%2C+No+2'),jdecode(''),'/6601/17601.html','true',[],'',''],
		['PAGE','18201',jdecode('Vol+1%2C+No+3'),jdecode(''),'/6601/18201.html','true',[],'',''],
		['PAGE','18401',jdecode('Vol+1%2C+No+4'),jdecode(''),'/6601/18401.html','true',[],'',''],
		['PAGE','18801',jdecode('Vol+1%2C+No+5'),jdecode(''),'/6601/18801.html','true',[],'',''],
		['PAGE','19001',jdecode('Vol+1%2C+No+6'),jdecode(''),'/6601/19001.html','true',[],'',''],
		['PAGE','20101',jdecode('Vol+2%2C+No+1'),jdecode(''),'/6601/20101.html','true',[],'',''],
		['PAGE','20301',jdecode('Vol+2%2C+No+2'),jdecode(''),'/6601/20301.html','true',[],'',''],
		['PAGE','20501',jdecode('Vol+2%2C+No+3'),jdecode(''),'/6601/20501.html','true',[],'',''],
		['PAGE','21501',jdecode('Vol+2%2C+No+4'),jdecode(''),'/6601/21501.html','true',[],'',''],
		['PAGE','21701',jdecode('Vol+2%2C+No+5'),jdecode(''),'/6601/21701.html','true',[],'',''],
		['PAGE','21901',jdecode('Vol+2%2C+No+6'),jdecode(''),'/6601/21901.html','true',[],'',''],
		['PAGE','22401',jdecode('Vol+3%2C+No+1'),jdecode(''),'/6601/22401.html','true',[],'',''],
		['PAGE','22601',jdecode('Vol+3%2C+No+2'),jdecode(''),'/6601/22601.html','true',[],'',''],
		['PAGE','22801',jdecode('Vol+3%2C+No+3'),jdecode(''),'/6601/22801.html','true',[],'',''],
		['PAGE','23301',jdecode('Vol+3%2C+No+4'),jdecode(''),'/6601/23301.html','true',[],'',''],
		['PAGE','23322',jdecode('Vol+3+No+5'),jdecode(''),'/6601/23322.html','true',[],'',''],
		['PAGE','23343',jdecode('Vol+3%2C+No+6'),jdecode(''),'/6601/23343.html','true',[],'',''],
		['PAGE','24101',jdecode('Vol+4%2C+No+1'),jdecode(''),'/6601/24101.html','true',[],'',''],
		['PAGE','24301',jdecode('Vol+4%2C+No+2'),jdecode(''),'/6601/24301.html','true',[],'',''],
		['PAGE','24322',jdecode('Vol+4%2C+No+3'),jdecode(''),'/6601/24322.html','true',[],'',''],
		['PAGE','24343',jdecode('Vol+4%2C+No+4'),jdecode(''),'/6601/24343.html','true',[],'',''],
		['PAGE','25301',jdecode('Vol+4%2C+No+5'),jdecode(''),'/6601/25301.html','true',[],'',''],
		['PAGE','25322',jdecode('Vol+4%2C+No+6'),jdecode(''),'/6601/25322.html','true',[],'',''],
		['PAGE','25901',jdecode('Vol+5%2C+No+1'),jdecode(''),'/6601/25901.html','true',[],'',''],
		['PAGE','25922',jdecode('Vol+5%2C+No+2'),jdecode(''),'/6601/25922.html','true',[],'',''],
		['PAGE','25943',jdecode('Vol+5%2C+No+3'),jdecode(''),'/6601/25943.html','true',[],'',''],
		['PAGE','26601',jdecode('Vol+5%2C+No+4'),jdecode(''),'/6601/26601.html','true',[],'',''],
		['PAGE','26801',jdecode('Vol+5%2C+No+5'),jdecode(''),'/6601/26801.html','true',[],'',''],
		['PAGE','27301',jdecode('Vol+5%2C+No+6'),jdecode(''),'/6601/27301.html','true',[],'',''],
		['PAGE','27322',jdecode('Vol+6%2C+No+1'),jdecode(''),'/6601/27322.html','true',[],'',''],
		['PAGE','27343',jdecode('Vol+6%2C+No+2'),jdecode(''),'/6601/27343.html','true',[],'',''],
		['PAGE','27364',jdecode('Vol+6%2C+No+3'),jdecode(''),'/6601/27364.html','true',[],'',''],
		['PAGE','27385',jdecode('Vol+6%2C+No+4'),jdecode(''),'/6601/27385.html','true',[],'',''],
		['PAGE','27406',jdecode('Vol+6%2C+No+5'),jdecode(''),'/6601/27406.html','true',[],'',''],
		['PAGE','27427',jdecode('Vol+6%2C+No+6'),jdecode(''),'/6601/27427.html','true',[],'',''],
		['PAGE','28501',jdecode('Vol+7%2C+No+1'),jdecode(''),'/6601/28501.html','true',[],'',''],
		['PAGE','28522',jdecode('Vol+7%2C+No+2'),jdecode(''),'/6601/28522.html','true',[],'',''],
		['PAGE','28543',jdecode('Vol+7%2C+No3'),jdecode(''),'/6601/28543.html','true',[],'',''],
		['PAGE','28564',jdecode('Vol+7%2C+No4'),jdecode(''),'/6601/28564.html','true',[],'',''],
		['PAGE','28585',jdecode('Vol+7%2C+No+5'),jdecode(''),'/6601/28585.html','true',[],'',''],
		['PAGE','28606',jdecode('Vol+7%2C+No+6'),jdecode(''),'/6601/28606.html','true',[],'',''],
		['PAGE','29501',jdecode('Vol+8%2C+No1'),jdecode(''),'/6601/29501.html','true',[],'',''],
		['PAGE','29522',jdecode('Vol+8%2C+No+2'),jdecode(''),'/6601/29522.html','true',[],'',''],
		['PAGE','29543',jdecode('Vol+8%2C+No+3'),jdecode(''),'/6601/29543.html','true',[],'',''],
		['PAGE','29564',jdecode('Vol+8%2C+No+4'),jdecode(''),'/6601/29564.html','true',[],'',''],
		['PAGE','29585',jdecode('Vol+8%2C+No+5'),jdecode(''),'/6601/29585.html','true',[],'',''],
		['PAGE','29606',jdecode('Vol+8%2C+No+6'),jdecode(''),'/6601/29606.html','true',[],'',''],
		['PAGE','30901',jdecode('Vol+9%2C+No+1'),jdecode(''),'/6601/30901.html','true',[],'',''],
		['PAGE','30922',jdecode('Vol+9%2C+No+2'),jdecode(''),'/6601/30922.html','true',[],'',''],
		['PAGE','30943',jdecode('Vol+9%2C+No+3'),jdecode(''),'/6601/30943.html','true',[],'',''],
		['PAGE','30964',jdecode('Vol+9%2C+No+4'),jdecode(''),'/6601/30964.html','true',[],'',''],
		['PAGE','30985',jdecode('Vol+9%2C+No+5'),jdecode(''),'/6601/30985.html','true',[],'',''],
		['PAGE','31006',jdecode('Vol+9%2C+No+6'),jdecode(''),'/6601/31006.html','true',[],'',''],
		['PAGE','32501',jdecode('Vol+10%2C+No+1'),jdecode(''),'/6601/32501.html','true',[],'',''],
		['PAGE','32522',jdecode('Vol+10%2C+No+2'),jdecode(''),'/6601/32522.html','true',[],'',''],
		['PAGE','32543',jdecode('Vol+10%2C+No+3'),jdecode(''),'/6601/32543.html','true',[],'',''],
		['PAGE','32564',jdecode('Vol+10%2C+No+4'),jdecode(''),'/6601/32564.html','true',[],'',''],
		['PAGE','32585',jdecode('Vol+10%2C+No+5'),jdecode(''),'/6601/32585.html','true',[],'',''],
		['PAGE','32606',jdecode('Vol+10%2C+No+6'),jdecode(''),'/6601/32606.html','true',[],'',''],
		['PAGE','43268',jdecode('Vol+11%2C+No+1'),jdecode(''),'/6601/43268.html','true',[],'',''],
		['PAGE','43289',jdecode('Vol+11%2C+No+2'),jdecode(''),'/6601/43289.html','true',[],'','']
	],'','']];
var siteelementCount=72;
theSitetree.topTemplateName='Flat';
theSitetree.paletteFamily='669999';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16702';
theSitetree.graphicsetId='12238';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='9ABABA';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Flat',
				paletteFamily: 	'669999',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16702',
				graphicsetId: 	'12238',
				contentColor: 	'000000',
				contentBGColor: '9ABABA',
				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:  '6322',
internalId:  '',
customField: '20100422-120702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20100819-011037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17201',
internalId:  '',
customField: '20100419-061519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33501',
internalId:  '',
customField: '20100501-131153'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6322',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13201',
internalId:  '',
customField: '20100513-132009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13401',
internalId:  '',
customField: '20100415-233005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34701',
internalId:  '',
customField: '20100616-072826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20100419-061647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20100417-140330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20100417-141306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18801',
internalId:  '',
customField: '20100418-142604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19001',
internalId:  '',
customField: '20100419-010937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20101',
internalId:  '',
customField: '20100419-052519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20100419-054153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20601',
internalId:  '',
customField: '20100819-004939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20501',
internalId:  '',
customField: '20100419-061418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21501',
internalId:  '',
customField: '20100419-231615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21701',
internalId:  '',
customField: '20100419-232657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21901',
internalId:  '',
customField: '20100419-233745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22401',
internalId:  '',
customField: '20100420-133610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20100420-134732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22801',
internalId:  '',
customField: '20100420-135737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23343',
internalId:  '',
customField: '20100420-235655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23301',
internalId:  '',
customField: '20100420-232821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23322',
internalId:  '',
customField: '20100420-234122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24101',
internalId:  '',
customField: '20100421-092833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24301',
internalId:  '',
customField: '20100421-094206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24322',
internalId:  '',
customField: '20100422-004554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24343',
internalId:  '',
customField: '20100421-233349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25301',
internalId:  '',
customField: '20100422-010653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25322',
internalId:  '',
customField: '20100422-011456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25901',
internalId:  '',
customField: '20100422-123507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25922',
internalId:  '',
customField: '20100422-131228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25943',
internalId:  '',
customField: '20100423-022456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26601',
internalId:  '',
customField: '20100423-023200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26801',
internalId:  '',
customField: '20100423-024031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27301',
internalId:  '',
customField: '20100424-072720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27322',
internalId:  '',
customField: '20100424-074120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27343',
internalId:  '',
customField: '20100424-074820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27364',
internalId:  '',
customField: '20100424-075724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27385',
internalId:  '',
customField: '20100424-080238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27406',
internalId:  '',
customField: '20100424-081054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27427',
internalId:  '',
customField: '20100424-081924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28501',
internalId:  '',
customField: '20100426-131110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28522',
internalId:  '',
customField: '20100426-131923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28543',
internalId:  '',
customField: '20100426-152916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28564',
internalId:  '',
customField: '20100426-152145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28585',
internalId:  '',
customField: '20100426-153636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28606',
internalId:  '',
customField: '20100426-154950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29501',
internalId:  '',
customField: '20100426-160428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29522',
internalId:  '',
customField: '20100426-161228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29543',
internalId:  '',
customField: '20100428-161157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29564',
internalId:  '',
customField: '20100428-161821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29585',
internalId:  '',
customField: '20100428-163610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29606',
internalId:  '',
customField: '20100428-165320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30901',
internalId:  '',
customField: '20100429-152702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30922',
internalId:  '',
customField: '20100429-154005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30943',
internalId:  '',
customField: '20100430-153657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30964',
internalId:  '',
customField: '20100430-154612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30985',
internalId:  '',
customField: '20100429-151334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31006',
internalId:  '',
customField: '20100429-151334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32501',
internalId:  '',
customField: '20100501-112625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32522',
internalId:  '',
customField: '20100501-113414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32543',
internalId:  '',
customField: '20100501-115713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32564',
internalId:  '',
customField: '20100501-120558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32585',
internalId:  '',
customField: '20100501-125243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32606',
internalId:  '',
customField: '20100501-130647'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '33501',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34722',
internalId:  '',
customField: '20100508-153927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40868',
internalId:  '',
customField: '20100508-154843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43268',
internalId:  '',
customField: '20100819-010808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43289',
internalId:  '',
customField: '20100819-022144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44668',
internalId:  '',
customField: '20101230-224807'
};
var canonHostname = 'localhost';
var accountId     = 'ANFI20IN209Q';
var companyName   = 'Chemin+de+V%C3%A9rit%C3%A9';
var htmlTitle	  = 'Chemin+de+V%C3%A9rit%C3%A9';
var metaKeywords  = '';
var metaContents  = '';
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();
};

