/* [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','14',jdecode('Home'),jdecode(''), jdecode('%2F14.html'), 'true',[],'',''],
	['PAGE','236712',jdecode('Lembran%C3%A7as+de+Nascimento'),jdecode(''), jdecode('%2F236712%2Findex.html'), 'true',[ 
		['PAGE','236912',jdecode('Sach%C3%AAs'),jdecode(''), jdecode('%2F236712%2F236912.html'), 'true',[],'',''],
		['PAGE','329051',jdecode('Cristal'),jdecode(''), jdecode('%2F236712%2F329051.html'), 'true',[],'',''],
		['PAGE','238929',jdecode('Caixinhas+de+acrilico'),jdecode(''), jdecode('%2F236712%2F238929.html'), 'true',[],'',''],
		['PAGE','236733',jdecode('Latinhas+Personalizadas'),jdecode(''), jdecode('%2F236712%2F236733.html'), 'true',[],'',''],
		['PAGE','236754',jdecode('Garrafinhas+Personalizadas'),jdecode(''), jdecode('%2F236712%2F236754.html'), 'true',[],'',''],
		['PAGE','236775',jdecode('Potinhos+decorados'),jdecode(''), jdecode('%2F236712%2F236775.html'), 'true',[],'',''],
		['PAGE','236796',jdecode('Potinhos+Personalizados'),jdecode(''), jdecode('%2F236712%2F236796.html'), 'true',[],'','']
	],'',''],
	['PAGE','271740',jdecode('Lembran%C3%A7as+de+Natal'),jdecode(''), jdecode('%2F271740%2Findex.html'), 'true',[ 
		['PAGE','273340',jdecode('Latinhas+personalizadas'),jdecode(''), jdecode('%2F271740%2F273340.html'), 'true',[],'',''],
		['PAGE','273361',jdecode('Garrafinhas+personalizadas'),jdecode(''), jdecode('%2F271740%2F273361.html'), 'true',[],'','']
	],'',''],
	['PAGE','239640',jdecode('Lembran%C3%A7as+de+Batizado'),jdecode(''), jdecode('%2F239640.html'), 'true',[],'',''],
	['PAGE','185501',jdecode('Lembran%C3%A7as+de+Debutante'),jdecode(''), jdecode('%2F185501.html'), 'true',[],'',''],
	['PAGE','185701',jdecode('Lembran%C3%A7as+de+Casamento'),jdecode(''), jdecode('%2F185701%2Findex.html'), 'true',[ 
		['PAGE','326051',jdecode('Garrafinhas+personalizadas'),jdecode(''), jdecode('%2F185701%2F326051.html'), 'true',[],'',''],
		['PAGE','253640',jdecode('Porcelana+e+Cristal'),jdecode(''), jdecode('%2F185701%2F253640.html'), 'true',[],'',''],
		['PAGE','314151',jdecode('Lembran%C3%A7as+de+Biscuit'),jdecode(''), jdecode('%2F185701%2F314151.html'), 'true',[],'',''],
		['PAGE','245740',jdecode('Latinhas+personalizadas'),jdecode(''), jdecode('%2F185701%2F245740.html'), 'true',[],'',''],
		['PAGE','253240',jdecode('Acrilico'),jdecode(''), jdecode('%2F185701%2F253240.html'), 'true',[],'',''],
		['PAGE','257240',jdecode('Vidro'),jdecode(''), jdecode('%2F185701%2F257240.html'), 'true',[],'',''],
		['PAGE','269840',jdecode('Outros+modelos'),jdecode(''), jdecode('%2F185701%2F269840.html'), 'true',[],'','']
	],'',''],
	['PAGE','227901',jdecode('Lembran%C3%A7as+de+Anivers%C3%A1rio'),jdecode(''), jdecode('%2F227901%2Findex.html'), 'true',[ 
		['PAGE','228201',jdecode('Garrafinhas+Personalizadas'),jdecode(''), jdecode('%2F227901%2F228201.html'), 'true',[],'',''],
		['PAGE','228222',jdecode('Latinhas+Personalizadas'),jdecode(''), jdecode('%2F227901%2F228222.html'), 'true',[],'',''],
		['PAGE','228243',jdecode('Potinhos'),jdecode(''), jdecode('%2F227901%2F228243.html'), 'true',[],'',''],
		['PAGE','233612',jdecode('Potinhos+Personalizados'),jdecode(''), jdecode('%2F227901%2F233612.html'), 'true',[],'',''],
		['PAGE','228264',jdecode('Porta+Recados'),jdecode(''), jdecode('%2F227901%2F228264.html'), 'true',[],'',''],
		['PAGE','228285',jdecode('Outros+Modelos'),jdecode(''), jdecode('%2F227901%2F228285.html'), 'true',[],'','']
	],'',''],
	['PAGE','307951',jdecode('Acess%C3%B3rios+p%2Flembran%C3%A7as'),jdecode(''), jdecode('%2F307951%2Findex.html'), 'true',[ 
		['PAGE','264740',jdecode('Garrafinhas'),jdecode(''), jdecode('%2F307951%2F264740.html'), 'true',[],'',''],
		['PAGE','264761',jdecode('Latinhas'),jdecode(''), jdecode('%2F307951%2F264761.html'), 'true',[],'',''],
		['PAGE','264782',jdecode('Caixas+de+acrilico'),jdecode(''), jdecode('%2F307951%2F264782.html'), 'true',[],'',''],
		['PAGE','295672',jdecode('Potinhos'),jdecode(''), jdecode('%2F307951%2F295672.html'), 'true',[],'',''],
		['PAGE','247140',jdecode('Frascos+pet'),jdecode(''), jdecode('%2F307951%2F247140.html'), 'true',[],'','']
	],'',''],
	['PAGE','289951',jdecode('Porta+Maternidade'),jdecode(''), jdecode('%2F289951.html'), 'false',[],'',''],
	['PAGE','292751',jdecode('Porta+Fraldas'),jdecode(''), jdecode('%2F292751.html'), 'false',[],'',''],
	['PAGE','293751',jdecode('Porta+Higi%C3%AAnico'),jdecode(''), jdecode('%2F293751.html'), 'false',[],'',''],
	['PAGE','295651',jdecode('Abajur'),jdecode(''), jdecode('%2F295651.html'), 'false',[],'',''],
	['PAGE','241540',jdecode('Lembran%C3%A7as+de+ch%C3%A1+de+Panela'),jdecode(''), jdecode('%2F241540.html'), 'true',[],'',''],
	['PAGE','208701',jdecode('Presentes'),jdecode(''), jdecode('%2F208701.html'), 'false',[],'',''],
	['PAGE','162101',jdecode('Or%C3%A7amento'),jdecode(''), jdecode('%2F162101.html'), 'true',[],'',''],
	['PAGE','5130',jdecode('Contato'),jdecode(''), jdecode('%2F5130.html'), 'false',[],'',''],
	['PAGE','161501',jdecode('Formul%C3%A1rio+de+Entrega'),jdecode(''), jdecode('%2F161501.html'), 'true',[],'',''],
	['PAGE','224501',jdecode('Cart%C3%A3o+de+credito'),jdecode(''), jdecode('%2F224501.html'), 'false',[],'',''],
	['PAGE','313951',jdecode('Lembran%C3%A7as+de+Biscuit'),jdecode(''), jdecode('%2F313951.html'), 'true',[],'','']];
var siteelementCount=46;
theSitetree.topTemplateName='Roses';
theSitetree.paletteFamily='FFE5E5';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10444';
theSitetree.graphicsetId='10825';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFE5E5';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var prodDef={
  wl_name: 'brazilprod',
  product: 'WSCSYSSSSLY0X9A9'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Roses',
				paletteFamily: 	'FFE5E5',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10444',
				graphicsetId: 	'10825',
				contentColor: 	'000000',
				contentBGColor: 'FFE5E5',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'787878',
				e_color: 		'9D584B',
				f_color: 		'9D584B',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-1269']={
webappId:    '7008',
documentId:  '161501',
internalId:  '1269',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-1270']={
webappId:    '7008',
documentId:  '162101',
internalId:  '1270',
customField: 'language:pt;country:BR;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '14',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185501',
internalId:  '',
customField: '20120111-110649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14',
internalId:  '',
customField: '20120101-163028'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '14',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '247140',
internalId:  '',
customField: '20120101-162311'
};
webappMappings['1501']=webappMappings['1501-1129045']={
webappId:    '1501',
documentId:  '14',
internalId:  '1129045',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-1272']={
webappId:    '7008',
documentId:  '5130',
internalId:  '1272',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '295672',
internalId:  '',
customField: '20110926-143800'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '228201',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236712',
internalId:  '',
customField: '20110901-130453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '233612',
internalId:  '',
customField: '20101123-123438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236733',
internalId:  '',
customField: '20101123-124407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236754',
internalId:  '',
customField: '20101123-124624'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '227901',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '292751',
internalId:  '',
customField: '20101123-135958'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '228285',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '253240',
internalId:  '',
customField: '20110319-143956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '253640',
internalId:  '',
customField: '20101112-132117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236775',
internalId:  '',
customField: '20110630-130046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '257240',
internalId:  '',
customField: '20101125-113001'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '236712',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185701',
internalId:  '',
customField: '20111102-121559'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '233612',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236796',
internalId:  '',
customField: '20120111-153616'
};
webappMappings['7008']=webappMappings['7008-14835']={
webappId:    '7008',
documentId:  '224501',
internalId:  '14835',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162101',
internalId:  '',
customField: '20081122-170534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161501',
internalId:  '',
customField: '20091120-131323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '245740',
internalId:  '',
customField: '20101112-132411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5130',
internalId:  '',
customField: '20110105-145651'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '257240',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-5507234b8d8eed10dd944b864849c2bd']={
webappId:    '7060',
documentId:  '208701',
internalId:  '5507234b8d8eed10dd944b864849c2bd',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '208701',
internalId:  '',
customField: '20100202-162336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238929',
internalId:  '',
customField: '20110630-121137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236912',
internalId:  '',
customField: '20110628-124553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '293751',
internalId:  '',
customField: '20101123-143623'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '228243',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '228222',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '224501',
internalId:  '',
customField: '20100209-182332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '295651',
internalId:  '',
customField: '20101125-112423'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '228264',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '241540',
internalId:  '',
customField: '20100531-145753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227901',
internalId:  '',
customField: '20101119-143315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228201',
internalId:  '',
customField: '20101123-122234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228222',
internalId:  '',
customField: '20101123-122655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228243',
internalId:  '',
customField: '20101123-123200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228264',
internalId:  '',
customField: '20101123-123657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228285',
internalId:  '',
customField: '20101123-123937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '239640',
internalId:  '',
customField: '20110901-131559'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '236912',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '238929',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '236733',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '236754',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '236775',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '236796',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '239640',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '241540',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '247140',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '208701',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '289951',
internalId:  '',
customField: '20101123-133735'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '185701',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '253640',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '245740',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '253240',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '185501',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '162101',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '5130',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '161501',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '224501',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '264761',
internalId:  '',
customField: '20110901-124849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '264740',
internalId:  '',
customField: '20110926-175709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '264782',
internalId:  '',
customField: '20110926-181154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '269840',
internalId:  '',
customField: '20110630-125610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '271740',
internalId:  '',
customField: '20101116-122917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273340',
internalId:  '',
customField: '20101123-122025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273361',
internalId:  '',
customField: '20111104-130627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '307951',
internalId:  '',
customField: '20120101-162723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '314151',
internalId:  '',
customField: '20110411-111258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '313951',
internalId:  '',
customField: '20110411-104802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '329051',
internalId:  '',
customField: '20110901-131528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '326051',
internalId:  '',
customField: '20110709-141519'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN26GC';
var companyName   = 'BETH+BISCUIT';
var htmlTitle	  = 'Beth+Biscuit';
var metaKeywords  = 'lembrancinhas%2C+lembrancinha%2C+lembran%C3%A7a%2C+lembran%C3%A7as%2C+garrafinhas%2C+garrafinha%2C+frascos%2C+pet%2C+biscuit%2C+casamento%2C+anivers%C3%A1rio%2C+nascimento%2C+maternidade%2C+lembrancinhas+de+casamento%2C+lembrancinhas+de+anivers%C3%A1rio%2C+lembrancinhas+de+nascimento%2C+infantil%2C+kit+higienico%2C+';
var metaContents  = 'Lembrancinhas+de+casamento%2C+lembrancinhas+de+nascimento%2C+lembrancinhas+de+aniversario%2C+lembrancinhas+de+batizado%2C+lembrancinhas%2C+garrafinhas%2C+caixinhas+de+acrilico%2C+frascos+pet%2C+porta+maternidade%2C+kits+higienicos+para+maternidade%2C+lembrancinhas+de+ch%C3%A1+de+cozinha%2C+lembrancas.';
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();
};

