/* [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','301',jdecode('*+PRINCIPAL'),jdecode(''),'/301.html','true',[],'',''],
	['PAGE','373',jdecode('*+A+CIDADE'),jdecode(''),'/373/index.html','true',[ 
		['PAGE','265245',jdecode('Hist%C3%B3ria'),jdecode(''),'/373/265245.html','true',[],'',''],
		['PAGE','265266',jdecode('Aspectos+geogr%C3%A1ficos'),jdecode(''),'/373/265266.html','true',[],'',''],
		['PAGE','277645',jdecode('FOTOS+ANTIGAS'),jdecode(''),'/373/277645.html','true',[],'',''],
		['PAGE','14201',jdecode('FOTOS+ATUAIS'),jdecode(''),'/373/14201.html','true',[],'',''],
		['PAGE','265287',jdecode('Telefones+%C3%BAteis'),jdecode(''),'/373/265287.html','true',[],'',''],
		['PAGE','265308',jdecode('Mapas'),jdecode(''),'/373/265308.html','true',[],'','']
	],'',''],
	['PAGE','152012',jdecode('*+ARTIGOS'),jdecode(''),'/152012/index.html','true',[ 
		['PAGE','424954',jdecode('Andr%C3%A9+Vin%C3%ADcius'),jdecode(''),'/152012/424954.html','true',[],'',''],
		['PAGE','421654',jdecode('Cec%C3%ADlia+Ben%C3%ADcio'),jdecode(''),'/152012/421654.html','true',[],'',''],
		['PAGE','137812',jdecode('Marilandes+R.+Braga'),jdecode(''),'/152012/137812.html','true',[],'',''],
		['PAGE','339389',jdecode('Maria+das+Gra%C3%A7as+P.+Zuany'),jdecode(''),'/152012/339389.html','true',[],'','']
	],'',''],
	['PAGE','436',jdecode('*+CLASSIFICADOS'),jdecode(''),'/436.html','true',[],'',''],
	['PAGE','110801',jdecode('*+COLUNA+SOCIAL'),jdecode(''),'/110801/index.html','true',[ 
		['PAGE','126212',jdecode('Entrevistas'),jdecode(''),'/110801/126212.html','true',[],'','']
	],'',''],
	['PAGE','370300',jdecode('*+CR%C3%94NICAS+E+CONTOS'),jdecode(''),'/370300/index.html','false',[ 
		['PAGE','370321',jdecode('Arquivos+anteriores'),jdecode(''),'/370300/370321.html','true',[],'','']
	],'',''],
	['PAGE','98701',jdecode('*+CULTURA+%26+TURISMO'),jdecode(''),'/98701/index.html','true',[ 
		['PAGE','142412',jdecode('Desafio+Cultural'),jdecode(''),'/98701/142412.html','true',[],'',''],
		['PAGE','143012',jdecode('Formul%C3%A1rio+de+Respostas'),jdecode(''),'/98701/143012.html','true',[],'','']
	],'',''],
	['PAGE','223834',jdecode('*+DOWNLOADS'),jdecode(''),'/223834/index.html','true',[ 
		['PAGE','224234',jdecode('Acad%C3%AAmico'),jdecode(''),'/223834/224234.html','true',[],'',''],
		['PAGE','265329',jdecode('Hist%C3%B3ria+de+Alegre'),jdecode(''),'/223834/265329.html','true',[],'',''],
		['PAGE','244745',jdecode('Imagens'),jdecode(''),'/223834/244745.html','true',[],'',''],
		['PAGE','344089',jdecode('MP3'),jdecode(''),'/223834/344089.html','true',[],'',''],
		['PAGE','323978',jdecode('Programas'),jdecode(''),'/223834/323978.html','true',[],'','']
	],'',''],
	['PAGE','76601',jdecode('*+EDUCA%C3%87%C3%83O'),jdecode(''),'/76601.html','true',[],'',''],
	['PAGE','48301',jdecode('*+EMPREGOS'),jdecode(''),'/48301.html','true',[],'',''],
	['PAGE','153112',jdecode('*+ENQUETES'),jdecode(''),'/153112/index.html','true',[ 
		['PAGE','230234',jdecode('Resultados'),jdecode(''),'/153112/230234.html','true',[],'','']
	],'',''],
	['PAGE','81501',jdecode('*+ENTRETENIMENTO'),jdecode(''),'/81501/index.html','true',[ 
		['PAGE','114401',jdecode('CINEMA'),jdecode(''),'/81501/114401.html','true',[],'',''],
		['PAGE','147912',jdecode('PIADAS'),jdecode(''),'/81501/147912.html','true',[],'','']
	],'',''],
	['PAGE','90201',jdecode('*+ESPORTE+%26+SA%C3%9ADE'),jdecode(''),'/90201/index.html','true',[ 
		['PAGE','73101',jdecode('Dicas+para+qualidade+de+vida'),jdecode(''),'/90201/73101.html','true',[],'',''],
		['PAGE','90222',jdecode('Hidrogin%C3%A1stica'),jdecode(''),'/90201/90222.html','true',[],'',''],
		['PAGE','134712',jdecode('Not%C3%ADcias+Esportivas'),jdecode(''),'/90201/134712.html','true',[],'','']
	],'',''],
	['PAGE','25022',jdecode('*+FESTAS+%26+EVENTOS'),jdecode(''),'/25022.html','true',[],'',''],
	['PAGE','89201',jdecode('*+GRUPOS+MUSICAIS'),jdecode(''),'/89201/index.html','true',[ 
		['PAGE','300056',jdecode('Grupo+Poesis'),jdecode(''),'/89201/300056.html','true',[],'','']
	],'',''],
	['PAGE','148212',jdecode('*+JORNAIS'),jdecode(''),'/148212/index.html','true',[ 
		['PAGE','170012',jdecode('A+PALAVRA'),jdecode(''),'/148212/170012.html','true',[],'','']
	],'',''],
	['PAGE','316267',jdecode('*+LISTA+TELEF%C3%94NICA'),jdecode(''),'/316267.html','true',[],'',''],
	['PAGE','177312',jdecode('*+NOT%C3%8DCIAS'),jdecode(''),'/177312.html','true',[],'',''],
	['PAGE','289745',jdecode('*+POESIAS'),jdecode(''),'/289745.html','true',[],'',''],
	['PAGE','344889',jdecode('*+RECEITAS'),jdecode(''),'/344889.html','true',[],'',''],
	['PAGE','294056',jdecode('*+RELIGI%C3%83O'),jdecode(''),'/294056/index.html','true',[ 
		['PAGE','294656',jdecode('Par%C3%B3quia+Nossa+Senhora+da+Penha'),jdecode(''),'/294056/294656.html','true',[],'',''],
		['PAGE','425254',jdecode('Testemunha+de+Jeov%C3%A1'),jdecode(''),'/294056/425254.html','true',[],'','']
	],'',''],
	['PAGE','32701',jdecode('*+SERVI%C3%87OS'),jdecode(''),'/32701/index.html','true',[ 
		['PAGE','32722',jdecode('CONSULTORIA'),jdecode(''),'/32701/32722.html','true',[],'','']
	],'',''],
	['PAGE','94301',jdecode('*+TECNOLOGIA'),jdecode(''),'/94301.html','true',[],'',''],
	['PAGE','455291',jdecode('*+UTILIDADE+P%C3%9ABLICA'),jdecode(''),'/455291.html','true',[],'',''],
	['PAGE','248645',jdecode('***+CADASTRO+***'),jdecode(''),'/248645.html','true',[],'',''],
	['PAGE','321578',jdecode('***+CONTATO+***'),jdecode(''),'/321578.html','true',[],'',''],
	['PAGE','128912',jdecode('***+EQUIPE+***'),jdecode(''),'/128912/index.html','true',[ 
		['PAGE','129412',jdecode('Nilton+Rodrigues+Ribeiro'),jdecode(''),'/128912/129412.html','true',[],'','']
	],'',''],
	['PAGE','216139',jdecode('*+LIVRO+DE+VISITAS'),jdecode(''),'/216139/index.html','true',[ 
		['PAGE','216134',jdecode('Recados'),jdecode(''),'/216139/216134.html','false',[],'','']
	],'',''],
	['PAGE','304567',jdecode('Produtos+Solicitados'),jdecode(''),'/304567.html','true',[],'','']];
var siteelementCount=61;
theSitetree.topTemplateName='NewYork';
theSitetree.paletteFamily='FFCC33';
theSitetree.keyvisualId='1007';
theSitetree.keyvisualName='strasse.jpg';
theSitetree.fontsetId='166';
theSitetree.graphicsetId='199';
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: 			'NewYork',
				paletteFamily: 	'FFCC33',
				keyvisualId: 	'1007',
				keyvisualName: 	'strasse.jpg',
				fontsetId: 		'166',
				graphicsetId: 	'199',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000066',
				b_color: 		'FFCC33',
				c_color: 		'000000',
				d_color: 		'406BC0',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '344089',
internalId:  '',
customField: '20091115-125614'
};
webappMappings['7060']=webappMappings['7060-391ad2d62124c2cd72dc9efe7f037853']={
webappId:    '7060',
documentId:  '14201',
internalId:  '391ad2d62124c2cd72dc9efe7f037853',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '339389',
internalId:  '',
customField: '20090624-205402'
};
webappMappings['7008']=webappMappings['7008-459']={
webappId:    '7008',
documentId:  '143012',
internalId:  '459',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-460']={
webappId:    '7008',
documentId:  '248645',
internalId:  '460',
customField: 'language:pt;country:BR;'
};
webappMappings['1002']=webappMappings['1002-216139avec10inlpqb']={
webappId:    '1002',
documentId:  '216139',
internalId:  '216139avec10inlpqb',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-f84388d91f731dba3a0ad796203bbc1c']={
webappId:    '7060',
documentId:  '277645',
internalId:  'f84388d91f731dba3a0ad796203bbc1c',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '323978',
internalId:  '',
customField: '20100407-052316'
};
webappMappings['7008']=webappMappings['7008-462']={
webappId:    '7008',
documentId:  '143012',
internalId:  '462',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-463']={
webappId:    '7008',
documentId:  '248645',
internalId:  '463',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20100903-211130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '373',
internalId:  '',
customField: '20100810-064041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '265245',
internalId:  '',
customField: '20081019-141427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '265266',
internalId:  '',
customField: '20100810-064301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '277645',
internalId:  '',
customField: '20081006-221319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14201',
internalId:  '',
customField: '20081006-221357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '265287',
internalId:  '',
customField: '20080923-082729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '265308',
internalId:  '',
customField: '20080930-215739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152012',
internalId:  '',
customField: '20100830-112519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137812',
internalId:  '',
customField: '20090324-115451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '436',
internalId:  '',
customField: '20100827-194813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110801',
internalId:  '',
customField: '20081028-205659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126212',
internalId:  '',
customField: '20081030-074940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98701',
internalId:  '',
customField: '20080721-170806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142412',
internalId:  '',
customField: '20080325-141732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143012',
internalId:  '',
customField: '20080310-092125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '223834',
internalId:  '',
customField: '20090528-080823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '224234',
internalId:  '',
customField: '20090219-060850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '265329',
internalId:  '',
customField: '20081021-080854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '244745',
internalId:  '',
customField: '20090212-211546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76601',
internalId:  '',
customField: '20080903-045455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48301',
internalId:  '',
customField: '20100903-200527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153112',
internalId:  '',
customField: '20090821-211552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '230234',
internalId:  '',
customField: '20081005-183419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81501',
internalId:  '',
customField: '20100830-112544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114401',
internalId:  '',
customField: '20100903-203457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147912',
internalId:  '',
customField: '20090311-125837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90201',
internalId:  '',
customField: '20080615-193106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73101',
internalId:  '',
customField: '20081012-200150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90222',
internalId:  '',
customField: '20080224-202609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134712',
internalId:  '',
customField: '20090916-130910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25022',
internalId:  '',
customField: '20100405-152813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148212',
internalId:  '',
customField: '20100513-135348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170012',
internalId:  '',
customField: '20100806-164930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89201',
internalId:  '',
customField: '20100626-193357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '300056',
internalId:  '',
customField: '20081127-204545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177312',
internalId:  '',
customField: '20100903-202052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '289745',
internalId:  '',
customField: '20081105-221858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '294056',
internalId:  '',
customField: '20100719-112442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '294656',
internalId:  '',
customField: '20100807-084235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32701',
internalId:  '',
customField: '20100614-184836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32722',
internalId:  '',
customField: '20090311-125836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94301',
internalId:  '',
customField: '20100802-100652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '248645',
internalId:  '',
customField: '20080902-115224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '321578',
internalId:  '',
customField: '20090311-142743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128912',
internalId:  '',
customField: '20100328-230322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129412',
internalId:  '',
customField: '20080217-214021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '216139',
internalId:  '',
customField: '20081210-134153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '216134',
internalId:  '',
customField: '20080721-080310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '304567',
internalId:  '',
customField: '20100702-143719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '316267',
internalId:  '',
customField: '20090404-121421'
};
webappMappings['7008']=webappMappings['7008-5355']={
webappId:    '7008',
documentId:  '321578',
internalId:  '5355',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '344889',
internalId:  '',
customField: '20100816-063713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '370300',
internalId:  '',
customField: '20091214-215653'
};
webappMappings['7005']=webappMappings['7005-1018']={
webappId:    '7005',
documentId:  '153112',
internalId:  '1018',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '370321',
internalId:  '',
customField: '20090914-174000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '421654',
internalId:  '',
customField: '20100516-192027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '424954',
internalId:  '',
customField: '20100601-092602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '425254',
internalId:  '',
customField: '20100827-204137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '455291',
internalId:  '',
customField: '20100903-211039'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INLPQB';
var companyName   = '*+Seja+Bem-Vindo%21';
var htmlTitle	  = '%5BAlegreOnLine%5D+-+Alegre-ES+-+Cultura+.+Not%C3%ADcias+.+Entrevistas+.+Entretenimento+.+Artigos+.+Fotos+.+Sa%C3%BAde+.+Educa%C3%A7%C3%A3o';
var metaKeywords  = 'Alegre%2C+Classificados%2C+Festival+de+Alegre%2C+Alegre-ES%2C+empresas%2C+servi%C3%A7os%2C+not%C3%ADcias%2C+eventos%2C+festas%2C+Festival+de+Alegre.';
var metaContents  = 'Alegre-ES%2C+Entretenimento%2C+sa%C3%BAde%2C+educa%C3%A7%C3%A3o%2C+festas%2C+fotos%2C+cultura%2C+esportes%2C+Festival+de+Alegre+e+muito+mais.+.+.';
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();
};
