/* [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','801',jdecode('OPERADORA'),jdecode(''), jdecode('%2F801.html'), 'true',[],'',''],
	['PAGE','362839',jdecode('Viagens+de+1+Dia'),jdecode(''), jdecode('%2F362839.html'), 'true',[],'',''],
	['PAGE','7285',jdecode('A+Partir+2+Dias'),jdecode(''), jdecode('%2F7285.html'), 'true',[],'',''],
	['PAGE','463294',jdecode('Receptivo+Tem%C3%A1tico'),jdecode(''), jdecode('%2F463294.html'), 'false',[],'',''],
	['PAGE','451272',jdecode('*CARNAVAL*'),jdecode(''), jdecode('%2F451272.html'), 'false',[],'',''],
	['PAGE','434572',jdecode('By+Night+Natalino'),jdecode(''), jdecode('%2F434572.html'), 'false',[],'',''],
	['PAGE','8522',jdecode('Pacotes+Nacionais'),jdecode(''), jdecode('%2F8522.html'), 'true',[],'',''],
	['PAGE','436272',jdecode('Internacionais'),jdecode(''), jdecode('%2F436272.html'), 'true',[],'',''],
	['PAGE','8101',jdecode('Fotos+Viagens'),jdecode(''), jdecode('%2F8101.html'), 'true',[],'',''],
	['PAGE','460883',jdecode('Roteiro+em+Destaque'),jdecode(''), jdecode('%2F460883.html'), 'false',[],'',''],
	['PAGE','150856',jdecode('Destino+Destaque+'),jdecode(''), jdecode('%2F150856.html'), 'false',[],'',''],
	['PAGE','364761',jdecode('Programa%C3%A7%C3%A3o'),jdecode(''), jdecode('%2F364761.html'), 'false',[],'',''],
	['PAGE','311128',jdecode('AG%C3%8ANCIA'),jdecode(''), jdecode('%2F311128.html'), 'true',[],'',''],
	['PAGE','7243',jdecode('Passagens+A%C3%A9reas'),jdecode(''), jdecode('%2F7243.html'), 'true',[],'',''],
	['PAGE','447472',jdecode('Passagens+Rodovi%C3%A1rias'),jdecode(''), jdecode('%2F447472.html'), 'false',[],'',''],
	['PAGE','8501',jdecode('Hot%C3%A9is'),jdecode(''), jdecode('%2F8501.html'), 'true',[],'',''],
	['PAGE','10022',jdecode('Pacotes+Internacionais'),jdecode(''), jdecode('%2F10022.html'), 'false',[],'',''],
	['PAGE','456983',jdecode('C%C3%A2mbio'),jdecode(''), jdecode('%2F456983.html'), 'false',[],'',''],
	['PAGE','7411',jdecode('Cruzeiros'),jdecode(''), jdecode('%2F7411.html'), 'true',[],'',''],
	['PAGE','8564',jdecode('Corporativo'),jdecode(''), jdecode('%2F8564.html'), 'true',[],'',''],
	['PAGE','7369',jdecode('Viagens+de+Incentivo'),jdecode(''), jdecode('%2F7369.html'), 'false',[],'',''],
	['PAGE','535671',jdecode('Viagens+Lua+de+Mel'),jdecode(''), jdecode('%2F535671.html'), 'true',[],'',''],
	['PAGE','241143',jdecode('Viagens+Escolares'),jdecode(''), jdecode('%2F241143.html'), 'false',[],'',''],
	['PAGE','117945',jdecode('Ecoturismo'),jdecode(''), jdecode('%2F117945.html'), 'true',[],'',''],
	['PAGE','102234',jdecode('Receptivo'),jdecode(''), jdecode('%2F102234.html'), 'true',[],'',''],
	['PAGE','7390',jdecode('Seguro+Viagem'),jdecode(''), jdecode('%2F7390.html'), 'true',[],'',''],
	['PAGE','363861',jdecode('Eventos+em+S%C3%A3o+Paulo'),jdecode(''), jdecode('%2F363861.html'), 'false',[],'',''],
	['PAGE','244722',jdecode('Rodtur+na+M%C3%ADdia+'),jdecode(''), jdecode('%2F244722.html'), 'false',[],'',''],
	['PAGE','82101',jdecode('Dicas+Viagem'),jdecode(''), jdecode('%2F82101.html'), 'true',[],'',''],
	['PAGE','78901',jdecode('Monte+Sua+Viagem'),jdecode(''), jdecode('%2F78901.html'), 'true',[],'',''],
	['PAGE','79601',jdecode('Newsletter'),jdecode(''), jdecode('%2F79601.html'), 'false',[],'',''],
	['PAGE','44601',jdecode('Fale+conosco'),jdecode(''), jdecode('%2F44601.html'), 'true',[],'',''],
	['PAGE','5601',jdecode('Quem+Somos+'),jdecode(''), jdecode('%2F5601.html'), 'true',[],'',''],
	['PAGE','7201',jdecode('Nossa+Equipe'),jdecode(''), jdecode('%2F7201.html'), 'true',[],'',''],
	['PAGE','7222',jdecode('Onde+Estamos'),jdecode(''), jdecode('%2F7222.html'), 'true',[],'','']];
var siteelementCount=35;
theSitetree.topTemplateName='Unity';
theSitetree.paletteFamily='3A79C9';
theSitetree.keyvisualId='11825';
theSitetree.keyvisualName='kv_11825.jpg';
theSitetree.fontsetId='33133';
theSitetree.graphicsetId='14076';
theSitetree.contentColor='a6a7a7';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var prodDef={
  wl_name: 'brazilprod',
  product: 'WSCSYSSSSLY0X9A9'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Unity',
				paletteFamily: 	'3A79C9',
				keyvisualId: 	'11825',
				keyvisualName: 	'kv_11825.jpg',
				fontsetId: 		'33133',
				graphicsetId: 	'14076',
				contentColor: 	'a6a7a7',
				contentBGColor: 'FFFFFF',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '363861',
internalId:  '',
customField: '20111104-153541'
};
webappMappings['7008']=webappMappings['7008-261']={
webappId:    '7008',
documentId:  '78901',
internalId:  '261',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-262']={
webappId:    '7008',
documentId:  '44601',
internalId:  '262',
customField: 'language:pt;country:BR;'
};
webappMappings['7008']=webappMappings['7008-263']={
webappId:    '7008',
documentId:  '79601',
internalId:  '263',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20111223-104115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20111206-074633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20120201-120720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102234',
internalId:  '',
customField: '20111206-071048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117945',
internalId:  '',
customField: '20111206-070759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10022',
internalId:  '',
customField: '20110221-084427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7285',
internalId:  '',
customField: '20120126-062914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '362839',
internalId:  '',
customField: '20120202-084023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7243',
internalId:  '',
customField: '20111201-084612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8501',
internalId:  '',
customField: '20111201-084647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8522',
internalId:  '',
customField: '20101006-133118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7411',
internalId:  '',
customField: '20111206-070421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8564',
internalId:  '',
customField: '20111206-070612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7369',
internalId:  '',
customField: '20100409-073908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '463294',
internalId:  '',
customField: '20111101-095127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7390',
internalId:  '',
customField: '20111206-071841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150856',
internalId:  '',
customField: '20110831-144739'
};
webappMappings['7008']=webappMappings['7008-27796']={
webappId:    '7008',
documentId:  '535671',
internalId:  '27796',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82101',
internalId:  '',
customField: '20111206-072423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78901',
internalId:  '',
customField: '20081215-064617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79601',
internalId:  '',
customField: '20081215-064638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44601',
internalId:  '',
customField: '20110211-144604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7222',
internalId:  '',
customField: '20111206-075959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8101',
internalId:  '',
customField: '20120202-080419'
};
webappMappings['7060']=webappMappings['7060-d6516a2e694f08b6fbd5890212c62f2c']={
webappId:    '7060',
documentId:  '8101',
internalId:  'd6516a2e694f08b6fbd5890212c62f2c',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '311128',
internalId:  '',
customField: '20111201-084521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '535671',
internalId:  '',
customField: '20111122-180959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '241143',
internalId:  '',
customField: '20100409-073814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '244722',
internalId:  '',
customField: '20110223-115640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '364761',
internalId:  '',
customField: '20111201-084429'
};
webappMappings['7008']=webappMappings['7008-16176']={
webappId:    '7008',
documentId:  '364761',
internalId:  '16176',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '434572',
internalId:  '',
customField: '20101213-140925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '436272',
internalId:  '',
customField: '20111201-084335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '447472',
internalId:  '',
customField: '20101203-123456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '451272',
internalId:  '',
customField: '20101217-134012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '456983',
internalId:  '',
customField: '20110112-142636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460883',
internalId:  '',
customField: '20110113-145201'
};
webappMappings['7008']=webappMappings['7008-27795']={
webappId:    '7008',
documentId:  '535671',
internalId:  '27795',
customField: 'language:pt;country:BR;'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INPGVS';
var companyName   = 'Central+de+Reservas+%2811%29+5093-5958';
var htmlTitle	  = 'Operadora+Especializada+na+Melhor+Idade+e+Ag%C3%AAncia+de+Viagens+e+Turismo+em+Moema%2C+S%C3%A3o+Paulo+-+SP.';
var metaKeywords  = 'PACOTES+NACIONAIS+E+INTERNACIONAIS+RESERVAS+PASSAGENS+%C3%81EREAS+VIAGENS++AG%C3%8ANCIA+DE+TURISMO+MOEMA++SEGURO+VIAGEM+VISTO+DISNEY+BUENOS+AIRES+CHILE++CRUZEIROS+++ECOTURISMO+RECEPTIVO+EM+S%C3%83O+PAULO+CITY+TOUR+EM+S%C3%83O+PAULO++F%C3%89RIAS++CARNAVAL+++FERIADOS+Turismo+S%C3%A3o+Paulo++Gramado+Luz++Viagens+e+Turismo++S%C3%A3o+Paulo++Pacotes+Tur%C3%ADsticos++CVC++Queensberry++Moema++Excurs%C3%B5es+Rodovi%C3%A1rias++Excurs%C3%B5es+A%C3%A9reas++Viagens+em+Grupo++Viagens+Turismo+S%C3%A3o+Paulo++Terceira+Idade++Passagem+a%C3%A9reas+++Atendimento+Corporativo++Reservas+de+Hot%C3%A9is+e+Resorts++Loca%C3%A7%C3%A3o+de+Ve%C3%ADculos++Turismo+Terceira+Idade++Receptivo+S%C3%A3o+Paulo++City+Tour+S%C3%A3o+Paulo++S%C3%A3o+Roque++Sul+Espetacular++Po%C3%A7os+de+Caldas++Moema+Rua+Mucaja%C3%AD++Aparecida+do+Norte++Gramado+Luz++By+Night+Terceira+Idade++Noite+Iluminada+de+Natal+S%C3%A3o+Paulo+TURISMO+TERCEIRA+IDADE';
var metaContents  = 'Viagens+Para+a+Melhor+Idade++++++++++++Hot%C3%A9is+e+Resorts++++++++++++++++++++++++Pacotes+Nacionais+e+%0D%0APassagens+A%C3%A9reas++++++++++++++++++++++++++++Loca%C3%A7%C3%A3o+de+Ve%C3%ADculos+++++++++++++++++++Internacionais+';
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();
};

