/* [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','601',jdecode('Home'),jdecode(''),'/601/index.html','true',[ 
		['PAGE','32401',jdecode('Quem+Somos+'),jdecode(''),'/601/32401.html','true',[],'','']
	],'',''],
	['PAGE','12401',jdecode('Casamentos'),jdecode(''),'/12401.html','true',[],'',''],
	['PAGE','15001',jdecode('Corporativo'),jdecode(''),'/15001.html','true',[],'',''],
	['PAGE','163612',jdecode('Assinatura+Floral'),jdecode(''),'/163612.html','true',[],'',''],
	['PAGE','86901',jdecode('Casa+%26Jardim'),jdecode(''),'/86901/index.html','false',[ 
		['PAGE','110501',jdecode('Jardinagem%2FDelivery'),jdecode(''),'/86901/110501.html','true',[],'','']
	],'',''],
	['PAGE','38301',jdecode('Especiais'),jdecode(''),'/38301/index.html','false',[ 
		['PAGE','133901',jdecode('Cestas+%26+Surpresas'),jdecode(''),'/38301/133901.html','true',[],'',''],
		['PAGE','14401',jdecode('Decora%C3%A7%C3%A3o+%C3%8Dntima'),jdecode(''),'/38301/14401.html','true',[],'',''],
		['PAGE','12801',jdecode('+La%C3%A7os+Gigantes+%2F+Natal'),jdecode(''),'/38301/12801.html','true',[],'',''],
		['PAGE','59801',jdecode('Montagem'),jdecode(''),'/38301/59801.html','true',[],'',''],
		['PAGE','40301',jdecode('Piscinas%2C+Ofur%C3%B4s+%26+Cia.+'),jdecode(''),'/38301/40301.html','true',[],'',''],
		['PAGE','101722',jdecode('Pres.%26+Embalagens+'),jdecode(''),'/38301/101722.html','true',[],'',''],
		['PAGE','101701',jdecode('Shows+de+Dan%C3%A7a'),jdecode(''),'/38301/101701.html','true',[],'','']
	],'',''],
	['PAGE','163633',jdecode('Parceiros'),jdecode(''),'/163633/index.html','true',[ 
		['PAGE','146012',jdecode('Casa+Gersal+'),jdecode(''),'/163633/146012.html','true',[],'',''],
		['PAGE','137301',jdecode('Espa%C3%A7o+GAP'),jdecode(''),'/163633/137301.html','true',[],'',''],
		['PAGE','195076',jdecode('Assessoria'),jdecode(''),'/163633/195076.html','true',[],'','']
	],'',''],
	['PAGE','33101',jdecode('FOTOS'),jdecode(''),'/33101/index.html','true',[ 
		['PAGE','226834',jdecode('Casamentos+%26+Eventos+Sociais'),jdecode(''),'/33101/226834.html','true',[],'',''],
		['PAGE','226855',jdecode('Eventos+Corporativos'),jdecode(''),'/33101/226855.html','true',[],'','']
	],'',''],
	['PAGE','11901',jdecode('Contato'),jdecode(''),'/11901.html','true',[],'',''],
	['PAGE','128701',jdecode('%C3%81lbum+Bouquets+Noivas'),jdecode(''),'/128701.html','false',[],'',''],
	['PAGE','227534',jdecode('%C3%81lbum+S%C3%A3o+Camilo'),jdecode(''),'/227534.html','false',[],'',''],
	['PAGE','227555',jdecode('%C3%81lbum+Leopolldo+P%C3%A1ralamas'),jdecode(''),'/227555.html','false',[],'',''],
	['PAGE','227576',jdecode('%C3%81lbum+Leopolldo+Lopes'),jdecode(''),'/227576.html','false',[],'',''],
	['PAGE','227597',jdecode('%C3%81lbum+Gap+L%C3%ADvia+Vermelho'),jdecode(''),'/227597.html','false',[],'',''],
	['PAGE','227618',jdecode('%C3%81lbum+Gap+Mafe+Rosa+Lil%C3%A1s'),jdecode(''),'/227618.html','false',[],'',''],
	['PAGE','227639',jdecode('%C3%81lbum+Gap+Danone'),jdecode(''),'/227639.html','false',[],'',''],
	['PAGE','227660',jdecode('%C3%81lbum+Gap+Aniv.Lil%C3%A1s'),jdecode(''),'/227660.html','false',[],'',''],
	['PAGE','227681',jdecode('%C3%81lbum+Colonial+Josye'),jdecode(''),'/227681.html','false',[],'',''],
	['PAGE','227702',jdecode('%C3%81lbum+Colonial+Vanessa'),jdecode(''),'/227702.html','false',[],'',''],
	['PAGE','227723',jdecode('%C3%81lbum+Spac+Cec%C3%ADlia'),jdecode(''),'/227723.html','false',[],'',''],
	['PAGE','227744',jdecode('%C3%81lbum+Spac+Victoria'),jdecode(''),'/227744.html','false',[],'',''],
	['PAGE','227765',jdecode('%C3%81lbum+%C3%81rv.Franc+e+M.Amor'),jdecode(''),'/227765.html','false',[],'',''],
	['PAGE','227786',jdecode('%C3%81lbum+Memorial+Congresso'),jdecode(''),'/227786.html','false',[],'',''],
	['PAGE','227807',jdecode('%C3%81lbum+Panasonic'),jdecode(''),'/227807.html','false',[],'',''],
	['PAGE','227828',jdecode('%C3%81lbum+Citybank+Hall+Focus'),jdecode(''),'/227828.html','false',[],'',''],
	['PAGE','227849',jdecode('%C3%81lbum+Daslu'),jdecode(''),'/227849.html','false',[],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Fields';
theSitetree.paletteFamily='FEFEFE';
theSitetree.keyvisualId='11296';
theSitetree.keyvisualName='kv_11296.jpg';
theSitetree.fontsetId='31968';
theSitetree.graphicsetId='13807';
theSitetree.contentColor='464D2F';
theSitetree.contentBGColor='FEFEFE';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Fields',
				paletteFamily: 	'FEFEFE',
				keyvisualId: 	'11296',
				keyvisualName: 	'kv_11296.jpg',
				fontsetId: 		'31968',
				graphicsetId: 	'13807',
				contentColor: 	'464D2F',
				contentBGColor: 'FEFEFE',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163612',
internalId:  '',
customField: '20100504-150616'
};
webappMappings['7060']=webappMappings['7060-e5a11284842fe33598db48171bc3cd0e']={
webappId:    '7060',
documentId:  '227681',
internalId:  'e5a11284842fe33598db48171bc3cd0e',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-3b399f14ff1d4cad8106a0f8cd5b2606']={
webappId:    '7060',
documentId:  '227702',
internalId:  '3b399f14ff1d4cad8106a0f8cd5b2606',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-1391c8c24e65660e7bcc1313fe31d1b1']={
webappId:    '7060',
documentId:  '227723',
internalId:  '1391c8c24e65660e7bcc1313fe31d1b1',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '601',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '32401',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '12401',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '15001',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '86901',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '110501',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '40301',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '14401',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100506-012154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32401',
internalId:  '',
customField: '20100504-154455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20100504-154619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20100509-205303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227681',
internalId:  '',
customField: '20100519-092945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227534',
internalId:  '',
customField: '20100514-233205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40301',
internalId:  '',
customField: '20091101-035304'
};
webappMappings['7060']=webappMappings['7060-e7a56d385c1b0a7e9dcd606e261cf2f8']={
webappId:    '7060',
documentId:  '227660',
internalId:  'e7a56d385c1b0a7e9dcd606e261cf2f8',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110501',
internalId:  '',
customField: '20091108-022715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14401',
internalId:  '',
customField: '20091101-034729'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '59801',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '12801',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86901',
internalId:  '',
customField: '20100504-150616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101722',
internalId:  '',
customField: '20091101-035049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101701',
internalId:  '',
customField: '20091101-035348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59801',
internalId:  '',
customField: '20091101-035447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12801',
internalId:  '',
customField: '20090215-210738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38301',
internalId:  '',
customField: '20091128-112847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227576',
internalId:  '',
customField: '20100514-233209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227597',
internalId:  '',
customField: '20100514-233211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227555',
internalId:  '',
customField: '20100514-233207'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '101701',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33101',
internalId:  '',
customField: '20100518-150424'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '101722',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '33101',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-11b630e556306666a77c200262ad4237']={
webappId:    '7060',
documentId:  '227639',
internalId:  '11b630e556306666a77c200262ad4237',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146012',
internalId:  '',
customField: '20100504-150616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227639',
internalId:  '',
customField: '20100514-233214'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '146012',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '11901',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20100512-195545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227660',
internalId:  '',
customField: '20100514-233215'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '38301',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '133901',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133901',
internalId:  '',
customField: '20091101-035139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163633',
internalId:  '',
customField: '20100119-010545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227618',
internalId:  '',
customField: '20100519-092846'
};
webappMappings['7060']=webappMappings['7060-af1b5806e07e574e6f4cc80ef179fc64']={
webappId:    '7060',
documentId:  '128701',
internalId:  'af1b5806e07e574e6f4cc80ef179fc64',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-2b37dca69a60a591584da1cc9165ff58']={
webappId:    '7060',
documentId:  '227597',
internalId:  '2b37dca69a60a591584da1cc9165ff58',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-65724400dd086bdb75fcf83d405d8c5a']={
webappId:    '7060',
documentId:  '227534',
internalId:  '65724400dd086bdb75fcf83d405d8c5a',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128701',
internalId:  '',
customField: '20100519-092616'
};
webappMappings['7060']=webappMappings['7060-fa9dc26a47ca322c58b43d0dc61e233b']={
webappId:    '7060',
documentId:  '227618',
internalId:  'fa9dc26a47ca322c58b43d0dc61e233b',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '137301',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '128701',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137301',
internalId:  '',
customField: '20100504-155003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '226855',
internalId:  '',
customField: '20100519-093259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '226834',
internalId:  '',
customField: '20100519-093152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227702',
internalId:  '',
customField: '20100519-093034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195076',
internalId:  '',
customField: '20100504-155358'
};
webappMappings['7060']=webappMappings['7060-a639506501c07b68875ffbd2a2653abc']={
webappId:    '7060',
documentId:  '227555',
internalId:  'a639506501c07b68875ffbd2a2653abc',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-46cb6cec5f3523114215afa919717178']={
webappId:    '7060',
documentId:  '227576',
internalId:  '46cb6cec5f3523114215afa919717178',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-39016741a9316998b44347b9067e854d']={
webappId:    '7060',
documentId:  '227828',
internalId:  '39016741a9316998b44347b9067e854d',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-45ba75364b022d7659341dd6e42c4655']={
webappId:    '7060',
documentId:  '227849',
internalId:  '45ba75364b022d7659341dd6e42c4655',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-605b526dba47e6f3d5c9a7a57b25e4dc']={
webappId:    '7060',
documentId:  '227744',
internalId:  '605b526dba47e6f3d5c9a7a57b25e4dc',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-996390e66da7ba5617fb4e83b2b3d8e2']={
webappId:    '7060',
documentId:  '227765',
internalId:  '996390e66da7ba5617fb4e83b2b3d8e2',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-4b5caa1493143cf17d9e17149d734753']={
webappId:    '7060',
documentId:  '227786',
internalId:  '4b5caa1493143cf17d9e17149d734753',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-5f527f9c50af43e069d147edde13600d']={
webappId:    '7060',
documentId:  '227807',
internalId:  '5f527f9c50af43e069d147edde13600d',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227723',
internalId:  '',
customField: '20100514-233221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227744',
internalId:  '',
customField: '20100514-233223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227765',
internalId:  '',
customField: '20100514-233224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227786',
internalId:  '',
customField: '20100514-233226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227807',
internalId:  '',
customField: '20100514-233227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227828',
internalId:  '',
customField: '20100514-233229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227849',
internalId:  '',
customField: '20100514-233230'
};
webappMappings['1501']=webappMappings['1501-14249767']={
webappId:    '1501',
documentId:  '601',
internalId:  '14249767',
customField: '1501'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INPWI3';
var companyName   = '';
var htmlTitle	  = 'Decoraflor%21+Flores+%26+Decora%C3%A7%C3%A3o+para+Eventos';
var metaKeywords  = 'decoraflor+decora%C3%A7%C3%A3o+em+flores+decorador+eventos+casamentos+anivers%C3%A1rios+empresa+festas+flores+paisagismo+stands+feiras+cenografia+cen%C3%A1rios+velas+tecidos+lycra+tensionados+montagem+tendas+bouquets+de+pirulito+buqu%C3%AAs+de+pirulito+buqu%C3%AAs+de+ma%C3%A7%C3%A3+do+amor+lembrancinhas+brindes+la%C3%A7os+gigantes+concession%C3%A1rias+autos+motos+natal+luzes+plantas+loca%C3%A7%C3%A3o+flores+aluguel+pirulito+buqu%C3%AA+daminhas+espa%C3%A7o+gap+gap+noivas+casamentos+cestas+almofadinhas+pra+alian%C3%A7as+noivosnoivinhos+';
var metaContents  = 'decoraflor+decora%C3%A7%C3%A3o+em+flores+decorador+eventos+casamentos+anivers%C3%A1rios+empresa+festas+flores+paisagismo+stands+feiras+cenografia+cen%C3%A1rios+velas+tecidos+lycra+tensionados+montagem+tendas+bouquets+de+pirulito+buqu%C3%AAs+de+pirulito+buqu%C3%AAs+de+ma%C3%A7%C3%A3+do+amor+lembrancinhas+brindes+la%C3%A7os+gigantes+concession%C3%A1rias+autos+motos+natal+luzes+plantas+loca%C3%A7%C3%A3o+flores+aluguel+pirulito+buqu%C3%AA+daminhas+espa%C3%A7o+gap+gap+noivas+casamentos+cestas+almofadinhas+pra+alian%C3%A7as+noivosnoivinhos+';
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();
};
