/* [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','501',jdecode('HOME'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','6601',jdecode('Empresa'),jdecode(''),'/6601.html','true',[],'',''],
	['PAGE','6622',jdecode('Servi%C3%A7os'),jdecode(''),'/6622.html','true',[],'',''],
	['PAGE','6643',jdecode('Empresarial'),jdecode(''),'/6643.html','true',[],'',''],
	['PAGE','6664',jdecode('Clientes'),jdecode(''),'/6664.html','true',[],'',''],
	['PAGE','6685',jdecode('Casamento'),jdecode(''),'/6685.html','true',[],'',''],
	['PAGE','23701',jdecode('Formaturas'),jdecode(''),'/23701.html','true',[],'',''],
	['PAGE','6748',jdecode('Anivers%C3%A1rio+Infantil'),jdecode(''),'/6748.html','true',[],'',''],
	['PAGE','6706',jdecode('Making+Of'),jdecode(''),'/6706.html','true',[],'',''],
	['PAGE','6727',jdecode('Portif%C3%B3lio'),jdecode(''),'/6727.html','true',[],'',''],
	['PAGE','6769',jdecode('Wedding+Book'),jdecode(''),'/6769.html','true',[],'',''],
	['PAGE','55001',jdecode('Book+Fotogr%C3%A1fico'),jdecode(''),'/55001.html','true',[],'',''],
	['PAGE','6790',jdecode('Lembrancinhas+Personalizadas'),jdecode(''),'/6790.html','true',[],'',''],
	['PAGE','6811',jdecode('Exact+Indica'),jdecode(''),'/6811.html','true',[],'',''],
	['PAGE','23722',jdecode('Restaura%C3%A7%C3%A3o+fotografica'),jdecode(''),'/23722.html','true',[],'',''],
	['PAGE','6832',jdecode('Dicas'),jdecode(''),'/6832.html','true',[],'',''],
	['PAGE','30801',jdecode('Conhe%C3%A7a+a+Fotografia'),jdecode(''),'/30801.html','true',[],'',''],
	['PAGE','6979',jdecode('Contato'),jdecode(''),'/6979.html','true',[],'',''],
	['PAGE','7000',jdecode('Fa%C3%A7a+seu+Or%C3%A7amento'),jdecode(''),'/7000.html','true',[],'',''],
	['PAGE','20401',jdecode('ULTIMOS+EVENTOS'),jdecode(''),'/20401/index.html','true',[ 
		['PAGE','20422',jdecode('Carla+%26+Stuart'),jdecode(''),'/20401/20422.html','true',[],'',''],
		['PAGE','20443',jdecode('Karla+%26+Edwin'),jdecode(''),'/20401/20443.html','true',[],'',''],
		['PAGE','50101',jdecode('Daniela+%26+Eduardo'),jdecode(''),'/20401/50101.html','true',[],'',''],
		['PAGE','20464',jdecode('Emily+%26Luiz+Fernando'),jdecode(''),'/20401/20464.html','true',[],'',''],
		['PAGE','20485',jdecode('Fernanda+%26+Alfredo'),jdecode(''),'/20401/20485.html','true',[],'',''],
		['PAGE','20506',jdecode('Ursula+%26+Marco'),jdecode(''),'/20401/20506.html','true',[],'',''],
		['PAGE','20527',jdecode('Fabiane+%26+Rodolfo'),jdecode(''),'/20401/20527.html','true',[],'',''],
		['PAGE','20548',jdecode('Rachel+%26+Rafael'),jdecode(''),'/20401/20548.html','true',[],'',''],
		['PAGE','20569',jdecode('Lais+%26+Boaventura'),jdecode(''),'/20401/20569.html','true',[],'',''],
		['PAGE','20590',jdecode('Vanessa+%26+Camilo'),jdecode(''),'/20401/20590.html','true',[],'',''],
		['PAGE','20611',jdecode('15+anos+Camila'),jdecode(''),'/20401/20611.html','true',[],'',''],
		['PAGE','33901',jdecode('Nathalye+%26+Jean'),jdecode(''),'/20401/33901.html','true',[],'',''],
		['PAGE','42401',jdecode('Vanessa+%26+Welingthon'),jdecode(''),'/20401/42401.html','true',[],'',''],
		['PAGE','45601',jdecode('Luciene+%26+Ivan'),jdecode(''),'/20401/45601.html','true',[],'',''],
		['PAGE','48601',jdecode('Adriana+%26+Dineche'),jdecode(''),'/20401/48601.html','true',[],'',''],
		['PAGE','51101',jdecode('Rosemeire+%26+Marcos'),jdecode(''),'/20401/51101.html','true',[],'',''],
		['PAGE','59301',jdecode('Priscila+e+Clodoaldo'),jdecode(''),'/20401/59301.html','true',[],'',''],
		['PAGE','59322',jdecode('Ana+e+Wagner'),jdecode(''),'/20401/59322.html','true',[],'',''],
		['PAGE','60501',jdecode('Adriana+e+Alexandre'),jdecode(''),'/20401/60501.html','true',[],'',''],
		['PAGE','64801',jdecode('Vulkan+do+Brasil'),jdecode(''),'/20401/64801.html','true',[],'',''],
		['PAGE','66201',jdecode('Lislaine+%26+F%C3%A1bio'),jdecode(''),'/20401/66201.html','true',[],'',''],
		['PAGE','66222',jdecode('Silvia+%26+Seiti'),jdecode(''),'/20401/66222.html','true',[],'',''],
		['PAGE','72001',jdecode('Marcella+%26+Jos%C3%A9+Antonio'),jdecode(''),'/20401/72001.html','true',[],'',''],
		['PAGE','75401',jdecode('Isabela+%26+Victor'),jdecode(''),'/20401/75401.html','true',[],'',''],
		['PAGE','79301',jdecode('Gabriela+%26+Ricardo'),jdecode(''),'/20401/79301.html','true',[],'',''],
		['PAGE','82501',jdecode('Gerson+e+Aline'),jdecode(''),'/20401/82501.html','true',[],'',''],
		['PAGE','82522',jdecode('Giovanna+15+Anos'),jdecode(''),'/20401/82522.html','true',[],'',''],
		['PAGE','82543',jdecode('Isabela+1+Ano'),jdecode(''),'/20401/82543.html','true',[],'',''],
		['PAGE','91101',jdecode('Priscila+%26+Eduardo'),jdecode(''),'/20401/91101.html','true',[],'',''],
		['PAGE','91122',jdecode('Cibele+%26+Fabio'),jdecode(''),'/20401/91122.html','true',[],'',''],
		['PAGE','91143',jdecode('Aine+%26+Alexandre'),jdecode(''),'/20401/91143.html','true',[],'',''],
		['PAGE','101101',jdecode('Camila+%26+Sthepan'),jdecode(''),'/20401/101101.html','true',[],'',''],
		['PAGE','101122',jdecode('F%C3%A1tima+%26+Oscar'),jdecode(''),'/20401/101122.html','true',[],'',''],
		['PAGE','101143',jdecode('Adriana+e+Marcelo'),jdecode(''),'/20401/101143.html','true',[],'',''],
		['PAGE','109667',jdecode('Adriana+%26+Gustavo'),jdecode(''),'/20401/109667.html','true',[],'',''],
		['PAGE','118409',jdecode('Lilian+%26+Ivomar'),jdecode(''),'/20401/118409.html','true',[],'',''],
		['PAGE','118430',jdecode('Nat%C3%A1lia+%26+Eduardo'),jdecode(''),'/20401/118430.html','true',[],'',''],
		['PAGE','118451',jdecode('Vanessa+%26+Frederico'),jdecode(''),'/20401/118451.html','true',[],'',''],
		['PAGE','122307',jdecode('Juliane+e+Felipe'),jdecode(''),'/20401/122307.html','true',[],'',''],
		['PAGE','122328',jdecode('Liciane+e+Rafael'),jdecode(''),'/20401/122328.html','true',[],'',''],
		['PAGE','127918',jdecode('Luciana+%26+Marcelo'),jdecode(''),'/20401/127918.html','true',[],'',''],
		['PAGE','127939',jdecode('Rita+e+Alex'),jdecode(''),'/20401/127939.html','true',[],'',''],
		['PAGE','128918',jdecode('Gabriela+e+Fabiano'),jdecode(''),'/20401/128918.html','true',[],'',''],
		['PAGE','129818',jdecode('Paula+%26+Paulo'),jdecode(''),'/20401/129818.html','true',[],'',''],
		['PAGE','133818',jdecode('Fernanda+%26+Marcelo'),jdecode(''),'/20401/133818.html','true',[],'',''],
		['PAGE','130118',jdecode('Luciana+e+Marcelo'),jdecode(''),'/20401/130118.html','true',[],'','']
	],'',''],
	['PAGE','39506',jdecode('Livro+de+visitas'),jdecode(''),'/39506/index.html','true',[ 
		['PAGE','39501',jdecode('F%C3%B3rum'),jdecode(''),'/39506/39501.html','false',[],'','']
	],'',''],
	['PAGE','41801',jdecode('Area+Vip'),jdecode(''),'/41801.html','true',[],'','']];
var siteelementCount=69;
theSitetree.topTemplateName='Logg';
theSitetree.paletteFamily='96652B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='423';
theSitetree.graphicsetId='471';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='96652B';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Logg',
				paletteFamily: 	'96652B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'423',
				graphicsetId: 	'471',
				contentColor: 	'FFFFFF',
				contentBGColor: '96652B',
				a_color: 		'96652B',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-7937986']={
webappId:    '1501',
documentId:  '501',
internalId:  '7937986',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-1213']={
webappId:    '7008',
documentId:  '7000',
internalId:  '1213',
customField: 'language:pt;country:BR;'
};
webappMappings['1002']=webappMappings['1002-39506avec10inlh5u']={
webappId:    '1002',
documentId:  '39506',
internalId:  '39506avec10inlh5u',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-8fea4147281800bb10acfcbe9f91c2dc']={
webappId:    '7060',
documentId:  '41801',
internalId:  '8fea4147281800bb10acfcbe9f91c2dc',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100307-135504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6811',
internalId:  '',
customField: '20080215-103855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6706',
internalId:  '',
customField: '20090508-144056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20401',
internalId:  '',
customField: '20100310-180911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82501',
internalId:  '',
customField: '20090618-175217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82522',
internalId:  '',
customField: '20090127-164958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6727',
internalId:  '',
customField: '20090502-135214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48601',
internalId:  '',
customField: '20090130-150332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82543',
internalId:  '',
customField: '20090130-153229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39506',
internalId:  '',
customField: '20080110-124353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20071001-130105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6622',
internalId:  '',
customField: '20080922-143554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6643',
internalId:  '',
customField: '20071219-163009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6664',
internalId:  '',
customField: '20071009-131714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6685',
internalId:  '',
customField: '20080107-165722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23701',
internalId:  '',
customField: '20071029-091508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6748',
internalId:  '',
customField: '20080110-133733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6769',
internalId:  '',
customField: '20071206-174106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55001',
internalId:  '',
customField: '20090507-141742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6790',
internalId:  '',
customField: '20071211-103222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23722',
internalId:  '',
customField: '20071211-093918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6832',
internalId:  '',
customField: '20080110-124228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30801',
internalId:  '',
customField: '20071219-163941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6979',
internalId:  '',
customField: '20100226-152523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7000',
internalId:  '',
customField: '20071211-104335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20422',
internalId:  '',
customField: '20080225-190222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20443',
internalId:  '',
customField: '20080225-190438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50101',
internalId:  '',
customField: '20080225-165305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20464',
internalId:  '',
customField: '20071023-141537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20485',
internalId:  '',
customField: '20071023-143827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20506',
internalId:  '',
customField: '20071023-144848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20527',
internalId:  '',
customField: '20071031-083656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20548',
internalId:  '',
customField: '20080311-163357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20569',
internalId:  '',
customField: '20071031-093459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20590',
internalId:  '',
customField: '20071031-094957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20611',
internalId:  '',
customField: '20080107-165440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33901',
internalId:  '',
customField: '20080311-164131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42401',
internalId:  '',
customField: '20080311-162415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45601',
internalId:  '',
customField: '20080215-101805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51101',
internalId:  '',
customField: '20080225-173015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59301',
internalId:  '',
customField: '20080811-152717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59322',
internalId:  '',
customField: '20080812-183444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60501',
internalId:  '',
customField: '20080812-174852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64801',
internalId:  '',
customField: '20080812-192142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66201',
internalId:  '',
customField: '20080912-183130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66222',
internalId:  '',
customField: '20080912-190352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72001',
internalId:  '',
customField: '20080922-140515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75401',
internalId:  '',
customField: '20081002-145936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79301',
internalId:  '',
customField: '20081002-202410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39501',
internalId:  '',
customField: '20080110-124353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41801',
internalId:  '',
customField: '20080111-140137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91101',
internalId:  '',
customField: '20090429-161609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91122',
internalId:  '',
customField: '20090430-140608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91143',
internalId:  '',
customField: '20090429-152027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101101',
internalId:  '',
customField: '20090618-164535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101122',
internalId:  '',
customField: '20090618-173432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101143',
internalId:  '',
customField: '20090618-182357'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-45ffeccebef14b20b987904b07bf999c']={
webappId:    '7060',
documentId:  '109667',
internalId:  '45ffeccebef14b20b987904b07bf999c',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109667',
internalId:  '',
customField: '20090911-114839'
};
webappMappings['7060']=webappMappings['7060-6b71b53dc5d176e574472b3053ce8870']={
webappId:    '7060',
documentId:  '118409',
internalId:  '6b71b53dc5d176e574472b3053ce8870',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-03bb5b16d4083dd5f5fbd794f456bee3']={
webappId:    '7060',
documentId:  '118430',
internalId:  '03bb5b16d4083dd5f5fbd794f456bee3',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-4bdfac774da0e0202d4de40e4b6a25f9']={
webappId:    '7060',
documentId:  '118451',
internalId:  '4bdfac774da0e0202d4de40e4b6a25f9',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-3d09a4a3f0990dce917b1bcaf5806a76']={
webappId:    '7060',
documentId:  '122307',
internalId:  '3d09a4a3f0990dce917b1bcaf5806a76',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-3cacb04210958df9fb442e8ca139c73a']={
webappId:    '7060',
documentId:  '122328',
internalId:  '3cacb04210958df9fb442e8ca139c73a',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122307',
internalId:  '',
customField: '20090911-134828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118451',
internalId:  '',
customField: '20090911-135048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122328',
internalId:  '',
customField: '20100226-152046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118409',
internalId:  '',
customField: '20090911-135508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118430',
internalId:  '',
customField: '20090911-130425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128918',
internalId:  '',
customField: '20100226-151947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127918',
internalId:  '',
customField: '20091207-112159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127939',
internalId:  '',
customField: '20100307-131935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129818',
internalId:  '',
customField: '20100310-184519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130118',
internalId:  '',
customField: '20100307-194000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133818',
internalId:  '',
customField: '20100308-181139'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INLH5U';
var companyName   = 'EXACT+PRODU%C3%87%C3%95ES+Foto+%26+Video+Digital';
var htmlTitle	  = 'Exact+Produ%C3%A7%C3%B5es+fotografia+e+Filmagem+Digital';
var metaKeywords  = '';
var metaContents  = '';
theSitetree.getById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		if (ar[i][POS_ID] == id){
			return ar[i];
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getParentById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {
			if (ar[i][POS_CHILDS][j][POS_ID] == id) {
				// child found
				return ar[i];
			}
			var result=this.getParentById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getName = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAME];
	}
	return null;
};

theSitetree.getNavigationText = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAVIGATIONTEXT];
	}
	return null;
};

theSitetree.getHREF = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_HREF];
	}
	return null;
};

theSitetree.getIsNavigation = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_ISNAVIGATION];
	}
	return null;
};

theSitetree.getTemplateName = function(id, lastTemplateName, ar) {
	if (typeof(lastTemplateName) == 'undefined'){
		lastTemplateName = this.topTemplateName;
	}
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		var actTemplateName = ar[i][POS_TEMPLATENAME];
		if (actTemplateName == ''){
			actTemplateName = lastTemplateName;
		}
		if (ar[i][POS_ID] == id) {
			return actTemplateName;
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};
