/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','2222',jdecode('Quem+somos'),jdecode(''),'/2222/index.html','true',[ 
		['PAGE','2243',jdecode('Nossa+equipe'),jdecode(''),'/2222/2243.html','true',[],'','']
	],'',''],
	['PAGE','114912',jdecode('Apresenta%C3%A7%C3%A3o+N.+Claro'),jdecode(''),'/114912.html','true',[],'',''],
	['PAGE','39401',jdecode('Alegria+%26++Festa'),jdecode(''),'/39401/index.html','true',[ 
		['PAGE','56633',jdecode('+Decora%C3%A7%C3%A3o+para+Festas'),jdecode(''),'/39401/56633.html','true',[],'',''],
		['PAGE','109712',jdecode('Novidades'),jdecode(''),'/39401/109712.html','true',[],'',''],
		['PAGE','56654',jdecode('Linhas+Tem%C3%A1ticas'),jdecode(''),'/39401/56654.html','true',[],'',''],
		['PAGE','56675',jdecode('Linha+Brilho+Festa'),jdecode(''),'/39401/56675.html','true',[],'',''],
		['PAGE','85212',jdecode('Expositores'),jdecode(''),'/39401/85212.html','true',[],'','']
	],'',''],
	['PAGE','2285',jdecode('Aurimar'),jdecode(''),'/2285/index.html','true',[ 
		['PAGE','61512',jdecode('Lista+de+produtos'),jdecode(''),'/2285/61512.html','true',[],'',''],
		['PAGE','26001',jdecode('Linha+de+metal'),jdecode(''),'/2285/26001.html','true',[],'',''],
		['PAGE','7401',jdecode('Linha+pl%C3%A1stica'),jdecode(''),'/2285/7401.html','true',[],'',''],
		['PAGE','7422',jdecode('Sabonetes'),jdecode(''),'/2285/7422.html','true',[],'',''],
		['PAGE','7443',jdecode('Diversos'),jdecode(''),'/2285/7443.html','true',[],'','']
	],'',''],
	['PAGE','39301',jdecode('Daln%C3%B3x'),jdecode(''),'/39301/index.html','true',[ 
		['PAGE','93912',jdecode('Promo%C3%A7%C3%B5es'),jdecode(''),'/39301/93912.html','true',[],'','']
	],'',''],
	['PAGE','7464',jdecode('Dan%C3%BAbio'),jdecode(''),'/7464/index.html','true',[ 
		['PAGE','61712',jdecode('Produtos+-+fotos'),jdecode(''),'/7464/61712.html','true',[],'',''],
		['PAGE','7485',jdecode('Copos+Dan%C3%BAbio+'),jdecode(''),'/7464/7485.html','true',[],'',''],
		['PAGE','7506',jdecode('Copomais+%28+ABNT%29'),jdecode(''),'/7464/7506.html','true',[],'','']
	],'',''],
	['PAGE','60612',jdecode('Mondialmaxx'),jdecode(''),'/60612/index.html','true',[ 
		['PAGE','93612',jdecode('Promo%C3%A7%C3%B5es'),jdecode(''),'/60612/93612.html','true',[],'',''],
		['PAGE','107412',jdecode('Nova+p%C3%A1gina'),jdecode(''),'/60612/107412.html','true',[],'','']
	],'',''],
	['PAGE','111412',jdecode('Projohn'),jdecode(''),'/111412/index.html','true',[ 
		['PAGE','111433',jdecode('Ceras+e+Tratamento+pisos'),jdecode(''),'/111412/111433.html','true',[],'',''],
		['PAGE','111712',jdecode('Limpadores'),jdecode(''),'/111412/111712.html','true',[],'',''],
		['PAGE','111454',jdecode('Detergentes+'),jdecode(''),'/111412/111454.html','true',[],'',''],
		['PAGE','111475',jdecode('Desinfetantes'),jdecode(''),'/111412/111475.html','true',[],'',''],
		['PAGE','111496',jdecode('Sabonetes'),jdecode(''),'/111412/111496.html','true',[],'','']
	],'',''],
	['PAGE','107812',jdecode('RPEL'),jdecode(''),'/107812/index.html','true',[ 
		['PAGE','109812',jdecode('Guardanapos+fantasia'),jdecode(''),'/107812/109812.html','true',[],'',''],
		['PAGE','109833',jdecode('Saco+branco-+mono'),jdecode(''),'/107812/109833.html','true',[],'',''],
		['PAGE','109854',jdecode('Guardanapos+lisos'),jdecode(''),'/107812/109854.html','true',[],'',''],
		['PAGE','109875',jdecode('Papel+laminado'),jdecode(''),'/107812/109875.html','true',[],'',''],
		['PAGE','109896',jdecode('Fundo+bandeja'),jdecode(''),'/107812/109896.html','true',[],'','']
	],'',''],
	['PAGE','2264',jdecode('Fale+conosco'),jdecode(''),'/2264.html','true',[],'',''],
	['PAGE','11501',jdecode('Cota%C3%A7%C3%A3o+%2F+Pedido'),jdecode(''),'/11501.html','true',[],'',''],
	['PAGE','107512',jdecode('Pap%C3%A9is'),jdecode(''),'/107512.html','false',[],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Commander';
theSitetree.paletteFamily='2B25A2';
theSitetree.keyvisualId='2380';
theSitetree.keyvisualName='computerchips.jpg';
theSitetree.fontsetId='391';
theSitetree.graphicsetId='439';
theSitetree.contentColor='2B25A2';
theSitetree.contentBGColor='E0E0E0';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Commander',
				paletteFamily: 	'2B25A2',
				keyvisualId: 	'2380',
				keyvisualName: 	'computerchips.jpg',
				fontsetId: 		'391',
				graphicsetId: 	'439',
				contentColor: 	'2B25A2',
				contentBGColor: 'E0E0E0',
				a_color: 		'E0E0E0',
				b_color: 		'5762CA',
				c_color: 		'A1A4D2',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100906-150841'
};
webappMappings['7008']=webappMappings['7008-8237']={
webappId:    '7008',
documentId:  '2264',
internalId:  '8237',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2222',
internalId:  '',
customField: '20100825-105438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2264',
internalId:  '',
customField: '20080514-180344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2285',
internalId:  '',
customField: '20090603-161000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26001',
internalId:  '',
customField: '20090603-164838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56633',
internalId:  '',
customField: '20100329-100509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11501',
internalId:  '',
customField: '20090603-152227'
};
webappMappings['1501']=webappMappings['1501-13615912']={
webappId:    '1501',
documentId:  '401',
internalId:  '13615912',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2243',
internalId:  '',
customField: '20100824-162021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20090604-173653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7422',
internalId:  '',
customField: '20090603-174030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7443',
internalId:  '',
customField: '20090603-180542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7464',
internalId:  '',
customField: '20100205-082249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7485',
internalId:  '',
customField: '20100825-110603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7506',
internalId:  '',
customField: '20100721-081228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39301',
internalId:  '',
customField: '20100824-155026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39401',
internalId:  '',
customField: '20100825-174826'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-8264']={
webappId:    '7008',
documentId:  '11501',
internalId:  '8264',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85212',
internalId:  '',
customField: '20100329-104828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109712',
internalId:  '',
customField: '20100830-172405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107412',
internalId:  '',
customField: '20100824-121037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107812',
internalId:  '',
customField: '20100824-154804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56654',
internalId:  '',
customField: '20100830-171140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56675',
internalId:  '',
customField: '20100329-094308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93912',
internalId:  '',
customField: '20100611-080225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93612',
internalId:  '',
customField: '20100407-090827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60612',
internalId:  '',
customField: '20091215-083625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61512',
internalId:  '',
customField: '20091026-155957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61712',
internalId:  '',
customField: '20100721-163326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107512',
internalId:  '',
customField: '20100824-121908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111412',
internalId:  '',
customField: '20100830-150805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109812',
internalId:  '',
customField: '20100825-111653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109833',
internalId:  '',
customField: '20100825-111653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109854',
internalId:  '',
customField: '20100825-111653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109875',
internalId:  '',
customField: '20100825-111653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109896',
internalId:  '',
customField: '20100825-111653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111433',
internalId:  '',
customField: '20100830-145605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111712',
internalId:  '',
customField: '20100830-153031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111454',
internalId:  '',
customField: '20100830-145605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111475',
internalId:  '',
customField: '20100830-145605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111496',
internalId:  '',
customField: '20100830-145605'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '401',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '2222',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '2243',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '39401',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '56633',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '109712',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '56654',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '56675',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '85212',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '2285',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '61512',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '26001',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '7401',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '7422',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '7443',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '39301',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '93912',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '7464',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '61712',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '7485',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '7506',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '60612',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '93612',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '107412',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '111412',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '111433',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '111712',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '111454',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '111475',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '111496',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '107812',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '109812',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '109833',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '109854',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '109875',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '109896',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '2264',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '11501',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '107512',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114912',
internalId:  '',
customField: '20100906-163831'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INFGCY';
var companyName   = 'N.CLARO+-+Portal+de+neg%C3%B3cios';
var htmlTitle	  = 'N.Claro-+Portal+de+neg%C3%B3cios';
var metaKeywords  = 'copos+descartaveis%2C+copo%2C+copo+descartavel%2C+copo+Dan%C3%BAbio%2Ccopos+danubio%2C++copos+plasticos%2C+suporte+para+copos%2C+dispenser%2C+toalheiro%2C+porta+canudo%2C+porta+guardanapo%2C+porta+rol%C3%A3o%2C+saboneteira%2C+suporte+para+higienico%2C+papel+higienico%2C+toalha%2C+interfolhas%2C+copo+plastico%2C+Danubio%2C+ta%C3%A7a+plastica%2C+Dalnox%2C+Aurimar%2C+Pliss%2C+Papelmaxx%2C+Copa%2C+velas%2C+aniversario%2C+festa%2C+claro%2C+representante%2C+n.claro%2C+guardanapo%2C+colorido%2C+papel+frios%2C+fundo+de+bandeja%2C+saco+papel%2C+desinfetante%2C+cera%2C+c%C3%AAra%2C+sabonete%2C+espuma%2C+detergente%2C+removedor%2C+papel+para+frios';
var metaContents  = 'N.+Claro+representante.+Representamos+o+seguintes+produtos+%3A+Copos+descartaveis+Dan%C3%BAbio%2C+Suportes+para+copos+Daln%C3%B3x%2C+Toalheiros+e+suportes+para+papel+Aurimar%2C+Toalha+de+papel%2C+velas+de+aniversario%2C+artigos+de+festa%2C+guardanapos+colororidos%2C+guardanapos+personalizados%2C+papel+para+frios%2C+sabonete+espuma%2C+produtos+para+limpeza';
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();
};
