/* [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','1508',jdecode('%C3%9ALTIMAS'),jdecode(''),'/1508.html','true',[],''],
	['PAGE','39180',jdecode('ACONTECEU'),jdecode(''),'/39180/index.html','true',[ 
		['PAGE','277217',jdecode('2008'),jdecode(''),'/39180/277217.html','true',[],''],
		['PAGE','277238',jdecode('2007'),jdecode(''),'/39180/277238.html','true',[],''],
		['PAGE','277896',jdecode('2006'),jdecode(''),'/39180/277896.html','true',[],'']
	],''],
	['PAGE','15301',jdecode('OCRE'),jdecode(''),'/15301/index.html','true',[ 
		['PAGE','240096',jdecode('Apoios'),jdecode(''),'/15301/240096.html','true',[],''],
		['PAGE','15490',jdecode('A+Equipa'),jdecode(''),'/15301/15490.html','true',[],''],
		['PAGE','15463',jdecode('A+Sede'),jdecode(''),'/15301/15463.html','true',[],''],
		['PAGE','24830',jdecode('Hist%C3%B3ria+'),jdecode(''),'/15301/24830.html','true',[],''],
		['PAGE','15436',jdecode('Objectivos'),jdecode(''),'/15301/15436.html','true',[],''],
		['PAGE','24803',jdecode('%C3%93rg%C3%A3os+Sociais'),jdecode(''),'/15301/24803.html','true',[],''],
		['PAGE','26503',jdecode('Valores+'),jdecode(''),'/15301/26503.html','true',[],''],
		['PAGE','15382',jdecode('Vis%C3%A3o+e+Miss%C3%A3o'),jdecode(''),'/15301/15382.html','true',[],'']
	],''],
	['PAGE','15517',jdecode('ALTO+ALENTEJO'),jdecode(''),'/15517/index.html','true',[ 
		['PAGE','24857',jdecode('+Demografia'),jdecode(''),'/15517/24857.html','true',[],''],
		['PAGE','24884',jdecode('Economia'),jdecode(''),'/15517/24884.html','true',[],''],
		['PAGE','25019',jdecode('Retratos+Territoriais'),jdecode(''),'/15517/25019.html','true',[],''],
		['PAGE','132731',jdecode('Arronches'),jdecode(''),'/15517/132731.html','true',[],''],
		['PAGE','132596',jdecode('Castelo+de+Vide'),jdecode(''),'/15517/132596.html','true',[],''],
		['PAGE','132704',jdecode('Crato'),jdecode(''),'/15517/132704.html','true',[],''],
		['PAGE','132623',jdecode('Marv%C3%A3o'),jdecode(''),'/15517/132623.html','true',[],''],
		['PAGE','132677',jdecode('Nisa'),jdecode(''),'/15517/132677.html','true',[],''],
		['PAGE','132650',jdecode('Portalegre'),jdecode(''),'/15517/132650.html','true',[],'']
	],''],
	['PAGE','25046',jdecode('ESPA%C3%87O+OCRE'),jdecode(''),'/25046/index.html','true',[ 
		['PAGE','25127',jdecode('Inova%C3%A7%C3%A3o+e+Capital+Humano'),jdecode(''),'/25046/25127.html','true',[],''],
		['PAGE','25181',jdecode('Inclus%C3%A3o+social+e+territorial'),jdecode(''),'/25046/25181.html','true',[],'']
	],''],
	['PAGE','25235',jdecode('MOBILIDADE+JUVENIL'),jdecode(''),'/25235/index.html','true',[ 
		['PAGE','25316',jdecode('Iniciativas+Jovens'),jdecode(''),'/25235/25316.html','true',[],''],
		['PAGE','25262',jdecode('Interc%C3%A2mbios+e+Encontros'),jdecode(''),'/25235/25262.html','true',[],''],
		['PAGE','25343',jdecode('Parcerias+de+Aprendizagem'),jdecode(''),'/25235/25343.html','true',[],'']
	],''],
	['PAGE','25289',jdecode('SERVI%C3%87O+VOLUNT%C3%81RIO+EUROPEU'),jdecode(''),'/25289.html','true',[],''],
	['PAGE','15544',jdecode('PROJECTOS+E+AC%C3%87%C3%95ES++'),jdecode(''),'/15544/index.html','true',[ 
		['PAGE','25208',jdecode('Educa%C3%A7%C3%A3o+de+Adultos'),jdecode(''),'/15544/25208.html','true',[],''],
		['PAGE','256896',jdecode('Turismo'),jdecode(''),'/15544/256896.html','true',[],''],
		['PAGE','272096',jdecode('Programa+Escolhas'),jdecode(''),'/15544/272096.html','true',[],'']
	],''],
	['PAGE','25100',jdecode('TECNOLOGIAS+DE+INFORMA%C3%87%C3%83O'),jdecode(''),'/25100.html','true',[],''],
	['PAGE','202996',jdecode('COMUNICA%C3%87%C3%95ES'),jdecode(''),'/202996.html','true',[],''],
	['PAGE','25073',jdecode('VOLUNTARIADO'),jdecode(''),'/25073.html','true',[],''],
	['PAGE','25370',jdecode('ARTE+E+ENGENHO'),jdecode(''),'/25370/index.html','true',[ 
		['PAGE','25478',jdecode('%C3%81gua'),jdecode(''),'/25370/25478.html','true',[],''],
		['PAGE','25424',jdecode('Pedra'),jdecode(''),'/25370/25424.html','true',[],''],
		['PAGE','25505',jdecode('Energias'),jdecode(''),'/25370/25505.html','true',[],''],
		['PAGE','25451',jdecode('T%C3%A9cnicas+Construtivas'),jdecode(''),'/25370/25451.html','true',[],''],
		['PAGE','25397',jdecode('Tocadores'),jdecode(''),'/25370/25397.html','true',[],''],
		['PAGE','25532',jdecode('Gastronomia'),jdecode(''),'/25370/25532.html','true',[],'']
	],''],
	['PAGE','15571',jdecode('PARCERIAS+E+REDES'),jdecode(''),'/15571/index.html','true',[ 
		['PAGE','25559',jdecode('Parceiros+Locais%2C+Regionais'),jdecode(''),'/15571/25559.html','true',[],''],
		['PAGE','25586',jdecode('Parceiros+Nacionais'),jdecode(''),'/15571/25586.html','true',[],''],
		['PAGE','25613',jdecode('Redes+Transnacionais'),jdecode(''),'/15571/25613.html','true',[],'']
	],''],
	['PAGE','15598',jdecode('CULTURA%2C+LAZER%2C+DESPORTO'),jdecode(''),'/15598/index.html','true',[ 
		['PAGE','25640',jdecode('Campos+de+F%C3%A9rias'),jdecode(''),'/15598/25640.html','true',[],''],
		['PAGE','25667',jdecode('Oficinas+de+Tradi%C3%A7%C3%A3o'),jdecode(''),'/15598/25667.html','true',[],''],
		['PAGE','25694',jdecode('Outras+Ac%C3%A7%C3%B5es'),jdecode(''),'/15598/25694.html','true',[],''],
		['PAGE','25721',jdecode('Actividades+para+crian%C3%A7as'),jdecode(''),'/15598/25721.html','true',[],''],
		['PAGE','25775',jdecode('Fotografia+Pinhole'),jdecode(''),'/15598/25775.html','true',[],''],
		['PAGE','209996',jdecode('V%C3%B4o+Livre'),jdecode(''),'/15598/209996.html','true',[],'']
	],''],
	['PAGE','25802',jdecode('NOT%C3%81VEIS+AN%C3%93NIMOS'),jdecode(''),'/25802.html','true',[],''],
	['PAGE','15625',jdecode('CONTACTE-NOS'),jdecode(''),'/15625.html','true',[],''],
	['PAGE','199896',jdecode('MAPA+DO+ALENTEJO'),jdecode(''),'/199896.html','true',[],''],
	['PAGE','15652',jdecode('ARQUIVO'),jdecode(''),'/15652/index.html','true',[ 
		['PAGE','25829',jdecode('Documenta%C3%A7%C3%A3o+Ocre'),jdecode(''),'/15652/25829.html','true',[],''],
		['PAGE','25856',jdecode('De+Interesse+Geral'),jdecode(''),'/15652/25856.html','true',[],''],
		['PAGE','25883',jdecode('Hist%C3%B3rico'),jdecode(''),'/15652/25883.html','true',[],'']
	],''],
	['PAGE','15679',jdecode('LIGA%C3%87%C3%95ES'),jdecode(''),'/15679.html','true',[],''],
	['PAGE','21102',jdecode('LIVRO+DE+VISITAS'),jdecode(''),'/21102/index.html','true',[ 
		['PAGE','21103',jdecode('Entradas'),jdecode(''),'/21102/21103.html','true',[],'']
	],''],
	['PAGE','231196',jdecode('FOTOGRAFIAS'),jdecode(''),'/231196/index.html','true',[ 
		['PAGE','21202',jdecode('Clube+Minhoca'),jdecode(''),'/231196/21202.html','true',[],''],
		['PAGE','232196',jdecode('Jantares+Tem%C3%A1ticos'),jdecode(''),'/231196/232196.html','true',[],''],
		['PAGE','232396',jdecode('Forma%C3%A7%C3%B5es'),jdecode(''),'/231196/232396.html','true',[],''],
		['PAGE','232496',jdecode('Interc%C3%A2mbios'),jdecode(''),'/231196/232496.html','true',[],''],
		['PAGE','233596',jdecode('Semin%C3%A1rios'),jdecode(''),'/231196/233596.html','true',[],'']
	],'']];
var siteelementCount=73;
theSitetree.topTemplateName='Citadel';
theSitetree.paletteFamily='6C6C6C';
theSitetree.keyvisualId='8134';
theSitetree.keyvisualName='kv_8134.jpg';
theSitetree.fontsetId='17011';
theSitetree.graphicsetId='12401';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='6C6C6C';
var theTemplate={
				name: 			'Citadel',
				paletteFamily: 	'6C6C6C',
				keyvisualId: 	'8134',
				keyvisualName: 	'kv_8134.jpg',
				fontsetId: 		'17011',
				graphicsetId: 	'12401',
				contentColor: 	'FFFFFF',
				contentBGColor: '6C6C6C',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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'
			  };
var webappMappings = {};
webappMappings['1002']={
webappId:    '1002',
documentId:  '21102',
internalId:  '21102aam010inv9kj',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '21103',
internalId:  '21102aam010inv9kj',
customField: 'action=list'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '21202',
internalId:  '10afa9821fb',
customField: 'g.12lf5krij.646pi46rqmsqj.6rn80'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1508',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '1508',
internalId:  '7359208',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1508',
internalId:  '',
customField: '20100305-170903'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39180',
internalId:  '',
customField: '20100209-161929'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15652',
internalId:  '',
customField: '20070507-160433'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25856',
internalId:  '',
customField: '20070507-154702'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25802',
internalId:  '',
customField: '20070628-152450'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20090515-160555'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15382',
internalId:  '',
customField: '20060504-120825'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '26503',
internalId:  '',
customField: '20060504-172445'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15436',
internalId:  '',
customField: '20060503-165015'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24803',
internalId:  '',
customField: '20060905-125637'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15463',
internalId:  '',
customField: '20090216-121422'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15490',
internalId:  '',
customField: '20090213-112813'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24830',
internalId:  '',
customField: '20060504-122155'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15517',
internalId:  '',
customField: '20070702-110851'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24857',
internalId:  '',
customField: '20070702-175306'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '24884',
internalId:  '',
customField: '20070629-172411'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25019',
internalId:  '',
customField: '20070712-131458'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '132596',
internalId:  '',
customField: '20070712-133539'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '132623',
internalId:  '',
customField: '20070712-131650'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '132650',
internalId:  '',
customField: '20070712-133411'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '132677',
internalId:  '',
customField: '20070712-132112'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '132704',
internalId:  '',
customField: '20070712-132236'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '132731',
internalId:  '',
customField: '20070712-133315'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25046',
internalId:  '',
customField: '20080709-023619'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25073',
internalId:  '',
customField: '20070628-004053'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25100',
internalId:  '',
customField: '20090305-173237'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25127',
internalId:  '',
customField: '20080706-172857'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '202996',
internalId:  '',
customField: '20080709-022931'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25181',
internalId:  '',
customField: '20090218-114012'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15544',
internalId:  '',
customField: '20080706-015008'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25208',
internalId:  '',
customField: '20091215-125550'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25235',
internalId:  '',
customField: '20090623-110454'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25262',
internalId:  '',
customField: '20070626-164342'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25289',
internalId:  '',
customField: '20070507-163335'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25316',
internalId:  '',
customField: '20070507-163930'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25343',
internalId:  '',
customField: '20060512-173953'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25370',
internalId:  '',
customField: '20090211-124948'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25397',
internalId:  '',
customField: '20060504-133059'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25424',
internalId:  '',
customField: '20090212-102811'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25451',
internalId:  '',
customField: '20090216-111635'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25478',
internalId:  '',
customField: '20090212-171253'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25505',
internalId:  '',
customField: '20090213-135819'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25532',
internalId:  '',
customField: '20060504-133148'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15571',
internalId:  '',
customField: '20070703-212109'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25559',
internalId:  '',
customField: '20070629-190625'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25586',
internalId:  '',
customField: '20070726-171921'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25613',
internalId:  '',
customField: '20070703-214541'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15598',
internalId:  '',
customField: '20090216-170536'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25640',
internalId:  '',
customField: '20070629-211032'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25667',
internalId:  '',
customField: '20060529-105937'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25694',
internalId:  '',
customField: '20070717-192306'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25721',
internalId:  '',
customField: '20090216-161349'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25775',
internalId:  '',
customField: '20070629-211154'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15625',
internalId:  '',
customField: '20090703-112818'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25829',
internalId:  '',
customField: '20070507-155451'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '25883',
internalId:  '',
customField: '20060504-133503'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15679',
internalId:  '',
customField: '20090212-103359'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21102',
internalId:  '',
customField: '20060503-160920'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21103',
internalId:  '',
customField: '20060503-160920'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21202',
internalId:  '',
customField: '20090211-171616'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '209996',
internalId:  '',
customField: '20090216-170053'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '199896',
internalId:  '',
customField: '20081211-121734'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '232396',
internalId:  '',
customField: '20090211-171631'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '232196',
internalId:  '',
customField: '20090216-125222'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '231196',
internalId:  '',
customField: '20090220-153230'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '232196',
internalId:  '11f65f69246',
customField: 'g.13tiv6maj.48krbv1lcr.0'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '232396',
internalId:  '11f65f90b28',
customField: 'g.13tivdvnp.3pkogl76pg.0'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '232496',
internalId:  '11f65fe5829',
customField: 'g.13tivj3oi.3ppak9a9f.0'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '232496',
internalId:  '',
customField: '20090211-171650'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '233596',
internalId:  '11f66195c9a',
customField: 'g.13tj19ivm.el2udi6s20.0'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '233596',
internalId:  '',
customField: '20090211-171558'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '272096',
internalId:  '',
customField: '20091211-165115'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '240096',
internalId:  '',
customField: '20090303-160650'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '256896',
internalId:  '',
customField: '20090306-114308'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '277217',
internalId:  '',
customField: '20100209-140909'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '277238',
internalId:  '',
customField: '20100209-140825'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '277896',
internalId:  '',
customField: '20100209-140744'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010INV9KJ';
var companyName   = 'OCRE+-+Associa%C3%A7%C3%A3o+para+a+Valoriza%C3%A7%C3%A3o+do+Ambiente%2C+Cultura%2C+Patrim%C3%B3nio+e+Lazer';
var htmlTitle	  = 'OCRE+-Associacao';
var metaKeywords  = 'Ocre%2C+Castelo+de+vide%2C+Portalegre%2C+associa%C3%A7%C3%A3o%2C+ambiente%2C+cultura%2C+patrim%C3%B3nio%2C+lazer%2C+norte+alentejano';
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;                                                                     
	};                                                                               
/* EOF */					                                                            
