/* [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','18',jdecode('Home'),jdecode(''),'/18.html','true',[],'',''],
	['PAGE','39',jdecode('P%C3%A1gina+inicial'),jdecode(''),'/39.html','true',[],'',''],
	['PAGE','48',jdecode('Onde+estamos'),jdecode(''),'/48.html','true',[],'',''],
	['PAGE','66',jdecode('Pisos+Laminados'),jdecode(''),'/66/index.html','true',[ 
		['PAGE','75',jdecode('Durafloor'),jdecode(''),'/66/75.html','true',[],'',''],
		['PAGE','84',jdecode('Eucafloor'),jdecode(''),'/66/84.html','true',[],'',''],
		['PAGE','93',jdecode('Poliface'),jdecode(''),'/66/93.html','true',[],'',''],
		['PAGE','42401',jdecode('Voc%C3%AA+precisa+saber+disso'),jdecode(''),'/66/42401.html','true',[],'','']
	],'',''],
	['PAGE','165',jdecode('Synteko%2FBona'),jdecode(''),'/165/index.html','true',[ 
		['PAGE','6292',jdecode('D%C3%BAvidas+Frequentes'),jdecode(''),'/165/6292.html','true',[],'',''],
		['PAGE','174',jdecode('Synteko'),jdecode(''),'/165/174.html','true',[],'',''],
		['PAGE','183',jdecode('Bona%2FVitta'),jdecode(''),'/165/183.html','true',[],'',''],
		['PAGE','192',jdecode('Poliuretanos'),jdecode(''),'/165/192.html','true',[],'',''],
		['PAGE','201',jdecode('Ceras'),jdecode(''),'/165/201.html','true',[],'',''],
		['PAGE','210',jdecode('Osmocolor'),jdecode(''),'/165/210.html','true',[],'',''],
		['PAGE','6301',jdecode('Conserva%C3%A7%C3%A3o'),jdecode(''),'/165/6301.html','true',[],'','']
	],'',''],
	['PAGE','111',jdecode('Madeira+Natural'),jdecode(''),'/111/index.html','true',[ 
		['PAGE','6224',jdecode('Fotos+Assoalhos+Tacos'),jdecode(''),'/111/6224.html','true',[],'',''],
		['PAGE','34401',jdecode('Tipos+de+Madeira'),jdecode(''),'/111/34401.html','true',[],'',''],
		['PAGE','120',jdecode('Assoalhos'),jdecode(''),'/111/120.html','true',[],'',''],
		['PAGE','129',jdecode('Tacos'),jdecode(''),'/111/129.html','true',[],'',''],
		['PAGE','138',jdecode('Parquet'),jdecode(''),'/111/138.html','true',[],'',''],
		['PAGE','147',jdecode('Deck'),jdecode(''),'/111/147.html','true',[],'',''],
		['PAGE','156',jdecode('Piso+Pronto'),jdecode(''),'/111/156.html','true',[],'','']
	],'',''],
	['PAGE','54701',jdecode('Bamboo'),jdecode(''),'/54701.html','true',[],'',''],
	['PAGE','219',jdecode('Pisos+Vin%C3%ADlicos'),jdecode(''),'/219/index.html','true',[ 
		['PAGE','60101',jdecode('Ambienta'),jdecode(''),'/219/60101.html','true',[],'',''],
		['PAGE','15968',jdecode('Absolute'),jdecode(''),'/219/15968.html','true',[],'',''],
		['PAGE','15883',jdecode('Decorflex'),jdecode(''),'/219/15883.html','true',[],'',''],
		['PAGE','15874',jdecode('Paviflex'),jdecode(''),'/219/15874.html','true',[],'',''],
		['PAGE','15959',jdecode('Pavifloor'),jdecode(''),'/219/15959.html','true',[],'',''],
		['PAGE','15977',jdecode('Traffic+ELS'),jdecode(''),'/219/15977.html','true',[],'','']
	],'',''],
	['PAGE','53001',jdecode('Pedras+Naturais+e+Cia'),jdecode(''),'/53001.html','true',[],'',''],
	['PAGE','228',jdecode('Carpetes+Nylon'),jdecode(''),'/228.html','true',[],'',''],
	['PAGE','16048',jdecode('Forra%C3%A7%C3%A3o+'),jdecode(''),'/16048.html','true',[],'',''],
	['PAGE','237',jdecode('Persianas'),jdecode(''),'/237/index.html','true',[ 
		['PAGE','246',jdecode('Vertical'),jdecode(''),'/237/246.html','true',[],'',''],
		['PAGE','255',jdecode('Horizontal'),jdecode(''),'/237/255.html','true',[],'',''],
		['PAGE','264',jdecode('Rol%C3%B4'),jdecode(''),'/237/264.html','true',[],'',''],
		['PAGE','273',jdecode('Painel'),jdecode(''),'/237/273.html','true',[],'',''],
		['PAGE','282',jdecode('Natural'),jdecode(''),'/237/282.html','true',[],'',''],
		['PAGE','3764',jdecode('Silhouette'),jdecode(''),'/237/3764.html','true',[],'',''],
		['PAGE','3773',jdecode('Designer'),jdecode(''),'/237/3773.html','true',[],'',''],
		['PAGE','3782',jdecode('Madeira'),jdecode(''),'/237/3782.html','true',[],'','']
	],'',''],
	['PAGE','291',jdecode('Cortinas'),jdecode(''),'/291/index.html','true',[ 
		['PAGE','6120',jdecode('fotos+de+cortinas'),jdecode(''),'/291/6120.html','true',[],'','']
	],'',''],
	['PAGE','300',jdecode('Box%2C+espelhos+e+Cia'),jdecode(''),'/300/index.html','true',[ 
		['PAGE','7468',jdecode('Tipos+de+Box'),jdecode(''),'/300/7468.html','true',[],'',''],
		['PAGE','70401',jdecode('tipos+de+vidro'),jdecode(''),'/300/70401.html','true',[],'',''],
		['PAGE','50201',jdecode('Manuten%C3%A7%C3%A3o'),jdecode(''),'/300/50201.html','true',[],'',''],
		['PAGE','47601',jdecode('Espelhos'),jdecode(''),'/300/47601.html','true',[],'',''],
		['PAGE','47622',jdecode('Fechamento+de+%C3%81rea'),jdecode(''),'/300/47622.html','true',[],'','']
	],'',''],
	['PAGE','309',jdecode('Lambri-Paredes'),jdecode(''),'/309.html','true',[],'',''],
	['PAGE','69101',jdecode('DryWall+-+Paredes+e+Forros'),jdecode(''),'/69101.html','true',[],'',''],
	['PAGE','69201',jdecode('Pain%C3%A9is+e+Mobili%C3%A1rio'),jdecode(''),'/69201.html','true',[],'',''],
	['PAGE','318',jdecode('Papel+de+Parede'),jdecode(''),'/318/index.html','true',[ 
		['PAGE','7971',jdecode('fotos+papel+de+parede'),jdecode(''),'/318/7971.html','true',[],'','']
	],'',''],
	['PAGE','327',jdecode('Ofertas'),jdecode(''),'/327/index.html','true',[ 
		['PAGE','336',jdecode('Pisos+de+madeira'),jdecode(''),'/327/336.html','true',[],'',''],
		['PAGE','345',jdecode('Cortinas'),jdecode(''),'/327/345.html','true',[],'','']
	],'',''],
	['PAGE','354',jdecode('Antes+e+depois'),jdecode(''),'/354.html','true',[],'',''],
	['PAGE','381',jdecode('Refer%C3%AAncias'),jdecode(''),'/381.html','true',[],'',''],
	['PAGE','399',jdecode('Dicas+e+truques'),jdecode(''),'/399.html','true',[],'',''],
	['PAGE','417',jdecode('Contatos'),jdecode(''),'/417/index.html','true',[ 
		['PAGE','8056',jdecode('Contatos+%28p%C3%A1gina+seguir%29'),jdecode(''),'/417/8056.html','true',[],'','']
	],'',''],
	['PAGE','6424',jdecode('Direitos+Autorais'),jdecode(''),'/6424.html','true',[],'',''],
	['PAGE','426',jdecode('Imprensa'),jdecode(''),'/426.html','true',[],'','']];
var siteelementCount=67;
theSitetree.topTemplateName='Arena';
theSitetree.paletteFamily='7F98E2';
theSitetree.keyvisualId='1530';
theSitetree.keyvisualName='agentur.jpg';
theSitetree.fontsetId='1';
theSitetree.graphicsetId='2';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Arena',
				paletteFamily: 	'7F98E2',
				keyvisualId: 	'1530',
				keyvisualName: 	'agentur.jpg',
				fontsetId: 		'1',
				graphicsetId: 	'2',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'7F98E2',
				b_color: 		'4267D6',
				c_color: 		'000000',
				d_color: 		'7792E2',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '18',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69101',
internalId:  '',
customField: '20091206-172827'
};
webappMappings['7005']=webappMappings['7005-355']={
webappId:    '7005',
documentId:  '18',
internalId:  '355',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70401',
internalId:  '',
customField: '20091205-093317'
};
webappMappings['7060']=webappMappings['7060-0b2129fa6f78a902e4d7b022a75974b3']={
webappId:    '7060',
documentId:  '6120',
internalId:  '0b2129fa6f78a902e4d7b022a75974b3',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-6ac90f410ddf56c9a3534f15a90e7ccd']={
webappId:    '7060',
documentId:  '6224',
internalId:  '6ac90f410ddf56c9a3534f15a90e7ccd',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-15db12e7e3271163fefcc13850de9d9b']={
webappId:    '7060',
documentId:  '7971',
internalId:  '15db12e7e3271163fefcc13850de9d9b',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69201',
internalId:  '',
customField: '20091206-173034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18',
internalId:  '',
customField: '20100622-121201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39',
internalId:  '',
customField: '20100616-073335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48',
internalId:  '',
customField: '20100622-113521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66',
internalId:  '',
customField: '20080301-121730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75',
internalId:  '',
customField: '20080129-173711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84',
internalId:  '',
customField: '20060903-115759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93',
internalId:  '',
customField: '20090220-155403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42401',
internalId:  '',
customField: '20071018-085628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165',
internalId:  '',
customField: '20060904-164311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6292',
internalId:  '',
customField: '20060918-081849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174',
internalId:  '',
customField: '20091204-170241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183',
internalId:  '',
customField: '20091204-172806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '192',
internalId:  '',
customField: '20060903-144756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201',
internalId:  '',
customField: '20060903-145504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '210',
internalId:  '',
customField: '20060903-142256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20060911-091214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111',
internalId:  '',
customField: '20071127-073415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6224',
internalId:  '',
customField: '20071127-133402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34401',
internalId:  '',
customField: '20061111-154001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120',
internalId:  '',
customField: '20071127-074431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129',
internalId:  '',
customField: '20061111-154145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138',
internalId:  '',
customField: '20060902-102743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147',
internalId:  '',
customField: '20080913-103715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156',
internalId:  '',
customField: '20060902-102743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54701',
internalId:  '',
customField: '20080425-153510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '219',
internalId:  '',
customField: '20070828-154346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15874',
internalId:  '',
customField: '20070828-154724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15883',
internalId:  '',
customField: '20070828-155040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15959',
internalId:  '',
customField: '20070828-155248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15968',
internalId:  '',
customField: '20070828-155400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15977',
internalId:  '',
customField: '20090119-064304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53001',
internalId:  '',
customField: '20080913-101617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228',
internalId:  '',
customField: '20060927-105816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16048',
internalId:  '',
customField: '20070828-161206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '237',
internalId:  '',
customField: '20070828-162947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '246',
internalId:  '',
customField: '20060911-173123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '255',
internalId:  '',
customField: '20060911-173750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '264',
internalId:  '',
customField: '20060911-175036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273',
internalId:  '',
customField: '20060911-174926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '282',
internalId:  '',
customField: '20060911-175413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3764',
internalId:  '',
customField: '20060911-175728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3773',
internalId:  '',
customField: '20060911-180107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3782',
internalId:  '',
customField: '20060911-180740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '291',
internalId:  '',
customField: '20060906-155952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6120',
internalId:  '',
customField: '20070828-163448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '300',
internalId:  '',
customField: '20090406-074934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7468',
internalId:  '',
customField: '20080228-194139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50201',
internalId:  '',
customField: '20080301-123705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47601',
internalId:  '',
customField: '20080301-112137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47622',
internalId:  '',
customField: '20080301-121312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '309',
internalId:  '',
customField: '20070211-125659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '318',
internalId:  '',
customField: '20060915-101807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7971',
internalId:  '',
customField: '20060915-121805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '327',
internalId:  '',
customField: '20090403-084743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '336',
internalId:  '',
customField: '20060902-102745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '345',
internalId:  '',
customField: '20060902-102746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '354',
internalId:  '',
customField: '20060902-102746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '381',
internalId:  '',
customField: '20070417-125649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '399',
internalId:  '',
customField: '20060915-115042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '417',
internalId:  '',
customField: '20100622-113557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8056',
internalId:  '',
customField: '20060919-151359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6424',
internalId:  '',
customField: '20060911-181626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '426',
internalId:  '',
customField: '20060905-170502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60101',
internalId:  '',
customField: '20090119-083923'
};
webappMappings['7008']=webappMappings['7008-6813']={
webappId:    '7008',
documentId:  '417',
internalId:  '6813',
customField: 'language:pt;country:BR;'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2U60';
var companyName   = 'Mega+Pisos+2976+9022+2977+8830';
var htmlTitle	  = 'Mega+Pisos';
var metaKeywords  = 'Assoalhos%2C+Synteko%2C+Bona%2C+Blindex%2C+Luxaflex%2C+Durafloor%2C+Poliface%2C+Paviflex%2C++Espelhos%2C+Assoalhos+';
var metaContents  = 'Acabamentos+como%3A+pisos+de+madeira%2C+bona%2C+vinilicos+paviflex%2C+cortinas+e+persianas%2C+carpetes%2C+box+para+banheiros+e+espelhos.';
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();
};
