/* [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','601',jdecode('P%C3%A1gina+inicial'),jdecode(''),'/601.html','true',[],'',''],
	['PAGE','1072',jdecode('QUEM+SOMOS'),jdecode(''),'/1072.html','true',[],'',''],
	['PAGE','17201',jdecode('ONDE+ESTAMOS'),jdecode(''),'/17201.html','true',[],'',''],
	['PAGE','89601',jdecode('AG%C3%8ANCIA+DE+TURISMO'),jdecode(''),'/89601.html','true',[],'',''],
	['PAGE','15764',jdecode('GUIA+DE+TURISMO'),jdecode(''),'/15764.html','true',[],'',''],
	['PAGE','673',jdecode('GRUPOS'),jdecode(''),'/673.html','true',[],'',''],
	['PAGE','207701',jdecode('CONSULTORIA'),jdecode(''),'/207701.html','true',[],'',''],
	['PAGE','207722',jdecode('CURSOS'),jdecode(''),'/207722.html','true',[],'',''],
	['PAGE','694',jdecode('EVENTOS'),jdecode(''),'/694.html','true',[],'',''],
	['PAGE','19143',jdecode('PASSEIOS+NA+SERRA+GA%C3%9ACHA'),jdecode(''),'/19143/index.html','true',[ 
		['PAGE','195001',jdecode('Tour+1+-+CONHE%C3%87A+S%C3%83O+FRANCISCO+DE+PAULA%2FRS'),jdecode(''),'/19143/195001.html','false',[],'',''],
		['PAGE','195022',jdecode('Tour+2+-++UM+DIA+NA+FAZENDA'),jdecode(''),'/19143/195022.html','false',[],'',''],
		['PAGE','195043',jdecode('Tour+3+-+PASSEIO+DE+BARCO+NA+BARRAGEM+DO+SALTO'),jdecode(''),'/19143/195043.html','false',[],'',''],
		['PAGE','195064',jdecode('Tour+4+-+ECOTURISMO+PASSEIO+A+CAVALO+NA+NATUREZA'),jdecode(''),'/19143/195064.html','false',[],'',''],
		['PAGE','195085',jdecode('Tour+5+-+PASSEIO+A+CAMBAR%C3%81+DO+SUL+E+C%C3%82NIONS'),jdecode(''),'/19143/195085.html','false',[],'',''],
		['PAGE','195106',jdecode('Tour+6+-+GRAMADO+E+CANELA'),jdecode(''),'/19143/195106.html','false',[],'',''],
		['PAGE','195301',jdecode('Tour+7+-+GRAMADO%2C+CANELA+E+NOVA+PETR%C3%93POLIS'),jdecode(''),'/19143/195301.html','false',[],'',''],
		['PAGE','195322',jdecode('Tour+8+-+ROTA+DO+COURO+E+DAS++MALHAS%2C+TEMPLO+BUDISTA%2C+IGREJINHA+E+TR%C3%8AS+COROAS'),jdecode(''),'/19143/195322.html','false',[],'',''],
		['PAGE','195343',jdecode('Tour+9+-+RAFTING+EM+TR%C3%8AS+COROAS'),jdecode(''),'/19143/195343.html','false',[],'',''],
		['PAGE','195364',jdecode('Tour+10+-+UVA+E+VINHO-+FERROVIA+DO+VINHO'),jdecode(''),'/19143/195364.html','false',[],'',''],
		['PAGE','195385',jdecode('Tour+11+-+CAXIAS+DO+SUL'),jdecode(''),'/19143/195385.html','false',[],'',''],
		['PAGE','195406',jdecode('Tour+12++CAXIAS+DO+SUL+E+FLORES+DA+CUNHA'),jdecode(''),'/19143/195406.html','false',[],'',''],
		['PAGE','195427',jdecode('Tour+13++VERAN%C3%93POLIS+%E2%80%9CA+TERRA+DA+LONGEVIDADE%E2%80%9D'),jdecode(''),'/19143/195427.html','false',[],'',''],
		['PAGE','195448',jdecode('+Tour+14++++S%C3%83O+JOS%C3%89+DOS+AUSENTES+E+BOM+JESUS'),jdecode(''),'/19143/195448.html','false',[],'','']
	],'',''],
	['PAGE','15743',jdecode('CONHE%C3%87A+O+RGS'),jdecode(''),'/15743.html','true',[],'',''],
	['PAGE','15785',jdecode('IN+COMPANY'),jdecode(''),'/15785.html','true',[],'',''],
	['PAGE','736',jdecode('HOL%C3%8DSTICO+E+M%C3%8DSTICO'),jdecode(''),'/736/index.html','true',[ 
		['PAGE','200701',jdecode('Novos+cursos'),jdecode(''),'/736/200701.html','false',[],'',''],
		['PAGE','15722',jdecode('Trabalhadores+da+luz'),jdecode(''),'/736/15722.html','true',[],'',''],
		['PAGE','68743',jdecode('Lugares+M%C3%A1gicos'),jdecode(''),'/736/68743.html','true',[],'',''],
		['PAGE','191322',jdecode('medicina+chinesa'),jdecode(''),'/736/191322.html','false',[],'','']
	],'',''],
	['PAGE','68764',jdecode('PARCEIROS'),jdecode(''),'/68764.html','true',[],'',''],
	['PAGE','105401',jdecode('O+GA%C3%9ACHO'),jdecode(''),'/105401/index.html','true',[ 
		['PAGE','105422',jdecode('conceitos'),jdecode(''),'/105401/105422.html','true',[],'',''],
		['PAGE','105443',jdecode('Chimarr%C3%A3o'),jdecode(''),'/105401/105443.html','true',[],'',''],
		['PAGE','105464',jdecode('Cavalo'),jdecode(''),'/105401/105464.html','true',[],'',''],
		['PAGE','105485',jdecode('Indument%C3%A1ria'),jdecode(''),'/105401/105485.html','true',[],'','']
	],'',''],
	['PAGE','105506',jdecode('SIMBOLOS+GA%C3%9ACHOS'),jdecode(''),'/105506.html','true',[],'',''],
	['PAGE','841',jdecode('CONTATOS'),jdecode(''),'/841.html','true',[],'',''],
	['PAGE','24001',jdecode('SUGEST%C3%95ES'),jdecode(''),'/24001.html','true',[],'',''],
	['PAGE','6206',jdecode('Livro+de+visitas%2FF%C3%B3rum'),jdecode(''),'/6206.html','true',[],'','']];
var siteelementCount=41;
theSitetree.topTemplateName='Vita02';
theSitetree.paletteFamily='88A6B5';
theSitetree.keyvisualId='11281';
theSitetree.keyvisualName='kv_11281.jpg';
theSitetree.fontsetId='32116';
theSitetree.graphicsetId='13936';
theSitetree.contentColor='3C3D3C';
theSitetree.contentBGColor='F6FBFE';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Vita02',
				paletteFamily: 	'88A6B5',
				keyvisualId: 	'11281',
				keyvisualName: 	'kv_11281.jpg',
				fontsetId: 		'32116',
				graphicsetId: 	'13936',
				contentColor: 	'3C3D3C',
				contentBGColor: 'F6FBFE',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207722',
internalId:  '',
customField: '20100717-214810'
};
webappMappings['1002']=webappMappings['1002-6206avec10inf4qz']={
webappId:    '1002',
documentId:  '6206',
internalId:  '6206avec10inf4qz',
customField: 'icq=false'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1072',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-965']={
webappId:    '7008',
documentId:  '841',
internalId:  '965',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '17201',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-966']={
webappId:    '7008',
documentId:  '24001',
internalId:  '966',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100712-221617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1072',
internalId:  '',
customField: '20100717-211737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17201',
internalId:  '',
customField: '20100717-205957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89601',
internalId:  '',
customField: '20100717-212450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195022',
internalId:  '',
customField: '20100422-140551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19143',
internalId:  '',
customField: '20100717-205034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15743',
internalId:  '',
customField: '20090221-100929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '694',
internalId:  '',
customField: '20100717-204817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20100717-213528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15785',
internalId:  '',
customField: '20090208-132142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '736',
internalId:  '',
customField: '20100717-205744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15722',
internalId:  '',
customField: '20090208-181711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68743',
internalId:  '',
customField: '20090208-182722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68764',
internalId:  '',
customField: '20100706-215821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15764',
internalId:  '',
customField: '20100717-213033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105401',
internalId:  '',
customField: '20100717-212028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105422',
internalId:  '',
customField: '20090208-183405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105443',
internalId:  '',
customField: '20090208-183555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105464',
internalId:  '',
customField: '20090208-183734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105485',
internalId:  '',
customField: '20090208-183923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105506',
internalId:  '',
customField: '20090208-184050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '841',
internalId:  '',
customField: '20090625-115525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24001',
internalId:  '',
customField: '20100405-170830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6206',
internalId:  '',
customField: '20090208-184432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195406',
internalId:  '',
customField: '20100426-104857'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '601',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '89601',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195427',
internalId:  '',
customField: '20100426-105455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195001',
internalId:  '',
customField: '20100422-134155'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '19143',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '15743',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '694',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '673',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '15785',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '736',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207701',
internalId:  '',
customField: '20100717-201056'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '15722',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '68743',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '68764',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '15764',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '105401',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '105422',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '105443',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '105464',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '105485',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '105506',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '841',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '24001',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '6206',
internalId:  '',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195448',
internalId:  '',
customField: '20100426-110416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195301',
internalId:  '',
customField: '20100423-075211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '191322',
internalId:  '',
customField: '20100512-151847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195043',
internalId:  '',
customField: '20100422-142214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195064',
internalId:  '',
customField: '20100422-160334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195085',
internalId:  '',
customField: '20100423-073438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195106',
internalId:  '',
customField: '20100423-074046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '200701',
internalId:  '',
customField: '20100628-214735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195322',
internalId:  '',
customField: '20100423-081804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195343',
internalId:  '',
customField: '20100423-083606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195364',
internalId:  '',
customField: '20100423-202049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195385',
internalId:  '',
customField: '20100426-104254'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INF4QZ';
var companyName   = 'MOMENTOS+M%C3%81GICOS+TURISMO+%26+EVENTOS+';
var htmlTitle	  = 'MOMENTOS+M%C3%81GICOS+TURISMO++EVENTOS';
var metaKeywords  = 'In+Company++Projetos+Sociais++Equil%C3%ADbrio+Pessoal++Comemora%C3%A7%C3%A3o+de+anivers%C3%A1rio++Lista+de+noivos++Confraterniza%C3%A7%C3%B5es++Turismo+Hol%C3%ADstico++Turismo+M%C3%ADstico++Trilhas++Turismo+na+Serra++Viagens++Rio+Grande+do+Sul++Porto+Alegre++S%C3%A3o+Francisco+de+Paula++Passeios++Hot%C3%A9is++Pousadas++Lago+S%C3%A3o+Bernardo++Serra+Ga%C3%BAcha++Beto+Carreiro++C%C3%A2nnions++Eco+Turismo++Cavalgada++Sul++Brasil+++Serra+Ga%C3%BAcha+Turismo+++Bariloche+Turismo+Nacional++Turismo+Internacional++Esporte+Radical++Santa+Catarina++Florian%C3%B3polis++Rio+de+Janeiro++S%C3%A3o+Paulo++Buenos+Aires++Chile++Argentina++Peru++Pontos+Tur%C3%ADsticos++Porto+Alegre+++Rio+Grande+do+Sul+++Rafting+++Templo+Budista+++Tr%C3%AAs+Coroas+++Hot%C3%A9is+++Pousadas+++++Foz+do+Iguasul+++Brasil+++';
var metaContents  = 'Conhe%C3%A7a+o+RGS++Programa%C3%A7%C3%A3o+hol%C3%ADstica++Eventos+corporativos++Treinamentos+de+equipes++Reservas+nacionais+e+internacionais++Receptivos++Loca%C3%A7%C3%A3o+de+Ve%C3%ADculos++Lua+de+Mel++S%C3%A3o+Francisco+de+Paula';
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();
};
