/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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 theSitetree=[ 
	['PAGE','601',jdecode('Pr%C3%A9sentation'),jdecode(''),'/601.html','true',[],''],
	['PAGE','652',jdecode('La+Naturopathie'),jdecode(''),'/652.html','true',[],''],
	['PAGE','673',jdecode('Le+Coaching+Traditionnel'),jdecode(''),'/673.html','true',[],''],
	['PAGE','694',jdecode('Agenda'),jdecode(''),'/694.html','true',[],''],
	['PAGE','12201',jdecode('Dossier+du+Mois'),jdecode(''),'/12201/index.html','true',[ 
		['PAGE','715',jdecode('Mois+d%26%23x27%3BAo%C3%BBt+2008'),jdecode(''),'/12201/715.html','true',[],''],
		['PAGE','16801',jdecode('Mois+de+Septembre+2008'),jdecode(''),'/12201/16801.html','true',[],''],
		['PAGE','18501',jdecode('Mois+d%26%23x27%3BOctobre+2008'),jdecode(''),'/12201/18501.html','true',[],''],
		['PAGE','69801',jdecode('Mois+de+Novembre+2008'),jdecode(''),'/12201/69801.html','true',[],''],
		['PAGE','75501',jdecode('Mois+de+D%C3%A9cembre+2008'),jdecode(''),'/12201/75501.html','true',[],''],
		['PAGE','77201',jdecode('Mois+de+Janvier+2009'),jdecode(''),'/12201/77201.html','true',[],''],
		['PAGE','78201',jdecode('Mois+de+F%C3%A9vrier+2009'),jdecode(''),'/12201/78201.html','true',[],''],
		['PAGE','81501',jdecode('Mois+de+Mars+2009'),jdecode(''),'/12201/81501.html','true',[],''],
		['PAGE','85901',jdecode('Mois+d%26%23x27%3BAvril+2009'),jdecode(''),'/12201/85901.html','true',[],''],
		['PAGE','86301',jdecode('Mois+de+Mai+2009'),jdecode(''),'/12201/86301.html','true',[],''],
		['PAGE','94401',jdecode('Mois+de+Juin+2009'),jdecode(''),'/12201/94401.html','true',[],''],
		['PAGE','97501',jdecode('Mois+de+Juillet+2009'),jdecode(''),'/12201/97501.html','true',[],''],
		['PAGE','99801',jdecode('Mois+d%26%23x27%3BAout+2009'),jdecode(''),'/12201/99801.html','true',[],''],
		['PAGE','134401',jdecode('Mois+de+Septembre+2009'),jdecode(''),'/12201/134401.html','true',[],''],
		['PAGE','135901',jdecode('Mois+d%26%23x27%3BOctobre+2009'),jdecode(''),'/12201/135901.html','true',[],''],
		['PAGE','140701',jdecode('Mois+de+Novembre+2009'),jdecode(''),'/12201/140701.html','true',[],''],
		['PAGE','146601',jdecode('Mois+de+D%C3%A9cembre+2009'),jdecode(''),'/12201/146601.html','true',[],''],
		['PAGE','160601',jdecode('Mois+de+Janvier+2010'),jdecode(''),'/12201/160601.html','true',[],''],
		['PAGE','164201',jdecode('Mois+de+F%C3%A9vrier+2010'),jdecode(''),'/12201/164201.html','true',[],''],
		['PAGE','185401',jdecode('Mois+de+Mars+2010'),jdecode(''),'/12201/185401.html','true',[],''],
		['PAGE','187601',jdecode('Mois+d%26%23x27%3BAvril+2010'),jdecode(''),'/12201/187601.html','true',[],''],
		['PAGE','189801',jdecode('Mois+de+Mai+2010'),jdecode(''),'/12201/189801.html','true',[],''],
		['PAGE','194001',jdecode('Mois+de+Juin+2010'),jdecode(''),'/12201/194001.html','true',[],''],
		['PAGE','200101',jdecode('Mois+de+Juillet+2010'),jdecode(''),'/12201/200101.html','true',[],''],
		['PAGE','203701',jdecode('Mois+d%26%23x27%3BAout+2010'),jdecode(''),'/12201/203701.html','true',[],''],
		['PAGE','205801',jdecode('Mois+de+Septembre+2010'),jdecode(''),'/12201/205801.html','true',[],''],
		['PAGE','212101',jdecode('Mois+d%26%23x27%3BOctobre+2010'),jdecode(''),'/12201/212101.html','true',[],''],
		['PAGE','212122',jdecode('Mois+de+Novembre+2010'),jdecode(''),'/12201/212122.html','true',[],''],
		['PAGE','215101',jdecode('Mois+de+D%C3%A9cembre+2010'),jdecode(''),'/12201/215101.html','true',[],''],
		['PAGE','215601',jdecode('Mois+de+Janvier+2011'),jdecode(''),'/12201/215601.html','true',[],''],
		['PAGE','221501',jdecode('Mois+de+F%C3%A9vrier+2011'),jdecode(''),'/12201/221501.html','true',[],''],
		['PAGE','221522',jdecode('Mois+de+Mars+2011'),jdecode(''),'/12201/221522.html','true',[],''],
		['PAGE','235401',jdecode('Mois+d%26%23x27%3BAvril+2011'),jdecode(''),'/12201/235401.html','true',[],''],
		['PAGE','237901',jdecode('Mois+de+Mai+2011'),jdecode(''),'/12201/237901.html','true',[],''],
		['PAGE','237922',jdecode('Mois+de+Juin+2011'),jdecode(''),'/12201/237922.html','true',[],''],
		['PAGE','237943',jdecode('Mois+de+Juillet+2011'),jdecode(''),'/12201/237943.html','true',[],''],
		['PAGE','238901',jdecode('Mois+d%26%23x27%3BAout+2011'),jdecode(''),'/12201/238901.html','true',[],''],
		['PAGE','238922',jdecode('Mois+de+Septembre+2011'),jdecode(''),'/12201/238922.html','true',[],''],
		['PAGE','238943',jdecode('Mois+d%26%23x27%3BOctobre+2011'),jdecode(''),'/12201/238943.html','true',[],''],
		['PAGE','240301',jdecode('Mois+de+Novembre+2011'),jdecode(''),'/12201/240301.html','true',[],''],
		['PAGE','256601',jdecode('Mois+de+D%C3%A9cembre+2011'),jdecode(''),'/12201/256601.html','true',[],''],
		['PAGE','257201',jdecode('Mois+de+Janvier+2012'),jdecode(''),'/12201/257201.html','true',[],'']
	],''],
	['PAGE','736',jdecode('Contact+%2F+Activit%C3%A9s.'),jdecode(''),'/736.html','true',[],''],
	['PAGE','20501',jdecode('Le+Coaching+Nutritionnel'),jdecode(''),'/20501.html','true',[],''],
	['PAGE','230501',jdecode('Les+secrets+de+l%26%23x27%3Bamincissement+durable'),jdecode(''),'/230501.html','true',[],''],
	['PAGE','45701',jdecode('Photos'),jdecode(''),'/45701.html','true',[],''],
	['PAGE','68101',jdecode('Partenariat+et+liens'),jdecode(''),'/68101.html','true',[],''],
	['PAGE','78701',jdecode('Les+livres+d%26%23x27%3BEric+Darche.'),jdecode(''),'/78701.html','true',[],''],
	['PAGE','163201',jdecode('Emissions+de+Radio'),jdecode(''),'/163201.html','true',[],''],
	['PAGE','201501',jdecode('Vid%C3%A9o-+Conf%C3%A9rence+Extrait.'),jdecode(''),'/201501.html','true',[],''],
	['PAGE','207701',jdecode('Vid%C3%A9os+%22R%C3%A9cr%C3%A9ation.%22'),jdecode(''),'/207701.html','true',[],''],
	['PAGE','241801',jdecode('Vid%C3%A9os+%22alerte%2Fdanger%2Fsant%C3%A9.%22'),jdecode(''),'/241801.html','true',[],''],
	['PAGE','244101',jdecode('Vid%C3%A9o+du+Centre+Ressource'),jdecode(''),'/244101.html','true',[],''],
	['PAGE','247501',jdecode('Vid%C3%A9o+Maigrir+naturellement'),jdecode(''),'/247501.html','true',[],''],
	['PAGE','250101',jdecode('Vid%C3%A9o+La+digestion+cl%C3%A9+de+notre+sant%C3%A9.'),jdecode(''),'/250101.html','true',[],''],
	['PAGE','251301',jdecode('Vid%C3%A9o+L%26%23x27%3Balimentation+id%C3%A9ale+des+jeunes'),jdecode(''),'/251301.html','true',[],''],
	['PAGE','252901',jdecode('Vid%C3%A9o+Se+pr%C3%A9parer+aux+f%C3%AAtes+de+fin+d%26%23x27%3Bann%C3%A9e.'),jdecode(''),'/252901.html','true',[],''],
	['PAGE','253601',jdecode('Vid%C3%A9o+Le+jus+d%26%23x27%3Bherbe+d%26%23x27%3Borge'),jdecode(''),'/253601.html','true',[],''],
	['PAGE','255401',jdecode('Vid%C3%A9o+Optimisez+votre+sant%C3%A9+mentale.'),jdecode(''),'/255401.html','true',[],''],
	['PAGE','257901',jdecode('Vid%C3%A9o+Les+boissons+%C3%A9nerg%C3%A9tiques.'),jdecode(''),'/257901.html','true',[],'']];
var siteelementCount=65;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='AC2323';
theSitetree.keyvisualId='1749';
theSitetree.keyvisualName='funsport.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='356';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='AC2323';
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'AC2323',
				keyvisualId: 	'1749',
				keyvisualName: 	'funsport.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'356',
				contentColor: 	'FFFFFF',
				contentBGColor: 'AC2323',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'AC2323',
				b_color: 		'480F0F',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20111210-225151'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20120130-153250'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '694',
internalId:  '',
customField: '20120129-083349'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20110504-150028'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '715',
internalId:  '',
customField: '20110308-010426'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '736',
internalId:  '',
customField: '20111211-121609'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '736',
internalId:  '3285789',
customField: 'fr:FR:'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12201',
internalId:  '',
customField: '20120122-101323'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16801',
internalId:  '',
customField: '20110308-010455'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18501',
internalId:  '',
customField: '20110308-010521'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '20501',
internalId:  '',
customField: '20110309-084516'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '45701',
internalId:  '',
customField: '20110308-003418'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '68101',
internalId:  '',
customField: '20111112-093441'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '69801',
internalId:  '',
customField: '20110308-010542'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '75501',
internalId:  '',
customField: '20110308-010612'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '77201',
internalId:  '',
customField: '20110308-010633'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78201',
internalId:  '',
customField: '20110308-010656'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '78701',
internalId:  '',
customField: '20111106-095714'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '81501',
internalId:  '',
customField: '20110308-011253'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '94401',
internalId:  '',
customField: '20110308-010836'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '86301',
internalId:  '',
customField: '20110308-010816'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '85901',
internalId:  '',
customField: '20110308-010755'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '97501',
internalId:  '',
customField: '20110308-010905'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '99801',
internalId:  '',
customField: '20110308-010932'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '601',
internalId:  '5834073',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '134401',
internalId:  '',
customField: '20110308-010958'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '135901',
internalId:  '',
customField: '20110308-011026'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '140701',
internalId:  '',
customField: '20110308-011105'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '146601',
internalId:  '',
customField: '20110308-011131'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '160601',
internalId:  '',
customField: '20110308-011159'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '163201',
internalId:  '',
customField: '20110423-234717'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '164201',
internalId:  '',
customField: '20110308-011228'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '185401',
internalId:  '',
customField: '20110308-011335'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '187601',
internalId:  '',
customField: '20110308-011401'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '189801',
internalId:  '',
customField: '20110308-011436'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '194001',
internalId:  '',
customField: '20110308-011505'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '200101',
internalId:  '',
customField: '20110308-011531'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '201501',
internalId:  '',
customField: '20110309-084731'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '203701',
internalId:  '',
customField: '20110308-011558'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '205801',
internalId:  '',
customField: '20110308-011627'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '207701',
internalId:  '',
customField: '20111206-175029'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '212101',
internalId:  '',
customField: '20110308-011708'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '212122',
internalId:  '',
customField: '20110308-011737'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '215101',
internalId:  '',
customField: '20110308-011808'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '215601',
internalId:  '',
customField: '20110308-011837'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '221501',
internalId:  '',
customField: '20110308-011902'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '221522',
internalId:  '',
customField: '20110308-011940'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '230501',
internalId:  '',
customField: '20110320-124630'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '235401',
internalId:  '',
customField: '20110504-153123'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '237901',
internalId:  '',
customField: '20110630-174113'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '237922',
internalId:  '',
customField: '20110630-180101'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '237943',
internalId:  '',
customField: '20111030-003501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '238901',
internalId:  '',
customField: '20111030-001203'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '238922',
internalId:  '',
customField: '20111029-235744'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '238943',
internalId:  '',
customField: '20111029-234728'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '240301',
internalId:  '',
customField: '20111104-214058'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '241801',
internalId:  '',
customField: '20111107-153945'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '244101',
internalId:  '',
customField: '20111112-192238'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '247501',
internalId:  '',
customField: '20111206-191255'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '250101',
internalId:  '',
customField: '20111223-085045'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '251301',
internalId:  '',
customField: '20111223-085015'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '252901',
internalId:  '',
customField: '20111223-084941'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '253601',
internalId:  '',
customField: '20120110-204752'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '255401',
internalId:  '',
customField: '20120122-095842'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '256601',
internalId:  '',
customField: '20120122-101122'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '257201',
internalId:  '',
customField: '20120122-101433'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '257901',
internalId:  '',
customField: '20120130-153339'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INLZNL';
var companyName   = 'Naturopathie+et+Coaching';
var htmlTitle	  = 'Eric+Darche%2C+Naturopathe%2C+conseiller+en+nutrition%2C+consultant+en+strat%C3%A9gie+comportementale';
var metaKeywords  = 'eric+darche%2C+darche%2C+naturopathie%2C+naturopathe%2C+coaching%2C+sant%C3%A9%2C+alimentation%2C+bien-%C3%AAtre+%2Cconseiller+en+nutrition%2C+hi%C3%A9gi%C3%A8niste%2C+conseiller+en+di%C3%A9t%C3%A9tique%2C+strat%C3%A9gie+comportementale%2C+mon+alimentation+mon+meilleur+medecin%2C+m%C3%A9decine+douce%2C+compl%C3%A9ment+alimentaire%2C+oligo-%C3%A9l%C3%A9ment%2C+apport+nutritionnel%2C+sant%C3%A9+saine%2C+biologique%2C+nutrition%2C+amincissement%2C+maigrir%2C+naturopathe%2C+accompagnement%2C+accompagn%C3%A9%2C+strat%C3%A9gie+comportemental%2C+vitamines%2C+min%C3%A9raux%2C+oligo-%C3%A9l%C3%A9ment%2C+enzymes%2C+acides+gras+polyinsatur%C3%A9s%2C+nutriment%2C+hormones%2C+r%C3%B4le+de+certaines+hormones+dans+la+r%C3%A9gulation+du+poids%2C++oestrog%C3%A8ne%2C+testost%C3%A9rone%2C+signature+hormonale%2C+hygi%C3%A8nisme%2C+hygi%C3%A8ne%2C+cofacteurs%2C+glucides%2C+lipides%2C+protides%2C+jeune%2C+di%C3%A9te%2C+plante%2C+m%C3%A9decine+parral%C3%A8le%2C+mincir%2C+kilos+kilos+en+trop%2C+r%C3%A9gime%2C+poids%2C+jeune%2C+beaut%C3%A9%2C+peau%2C+sommeil%2C+heureux%2C+heureuse%2C+joie%2C+enthousiasme%2C+plante%2C+m%C3%A9decine%2C+femme%2C+homme%2C+gar%C3%A7on%2C+fille%2C+malade%2C+gu%C3%A9rison%2C+vie%2C+mort%2C+hormone%2C+glande%2C+sexuel%2C+sexe%2C+contraception%2C+pillule%2C+contraceptive%2C+capote%2C+sperme%2C+ovule%2C+spermatozo%C3%AFde%2C+plaisir.';
var metaContents  = 'Eric+DARCHE%2C++NATUROPATHE+CONSEILLER+EN+NUTRITION%2C++CONSULTANT+EN+STRATEGIE+COMPORTEMENTALE%2C++COACHING%2C+DOSSIER+DU+MOIS%2C+JANVIER+FEVRIER%2C+MARS%2C+AVRIL%2C+MAI%2C+JUIN%2C+JUILLET%2C+AOUT%2C+SEPTEMBRE%2C+OCTOBRE%2C+NOVENMBRE%2C+DECEMBRE.+2008%2C+2009%2C+2010%2C+2011%2C+2012%2C+etc.';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            

