/* [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','573',jdecode('A+Pousada'),jdecode(''),'/573/index.html','true',[ 
		['PAGE','615',jdecode('O+restaurante'),jdecode(''),'/573/615.html','true',[],'',''],
		['PAGE','657',jdecode('Servi%C3%A7o'),jdecode(''),'/573/657.html','true',[],'','']
	],'',''],
	['PAGE','50401',jdecode('Caf%C3%A9+da+manh%C3%A3'),jdecode(''),'/50401.html','true',[],'',''],
	['PAGE','501',jdecode('+Para%C3%ADso+intocado'),jdecode(''),'/501.html','false',[],'',''],
	['PAGE','522',jdecode('Localiza%C3%A7%C3%A3o'),jdecode(''),'/522.html','true',[],'',''],
	['PAGE','699',jdecode('Contato'),jdecode(''),'/699.html','true',[],'',''],
	['PAGE','12101',jdecode('Tarif%C3%A1rio+e+Pacotes'),jdecode(''),'/12101.html','true',[],'',''],
	['PAGE','8601',jdecode('Fotos+da+Pousada'),jdecode(''),'/8601.html','false',[],'',''],
	['PAGE','36901',jdecode('hor%C3%A1rios+de+barco'),jdecode(''),'/36901.html','true',[],'',''],
	['PAGE','38906',jdecode('Livro+de+visitas%2FF%C3%B3rum'),jdecode(''),'/38906/index.html','false',[ 
		['PAGE','38901',jdecode('Servi%C3%A7o+de+bilhetes'),jdecode(''),'/38906/38901.html','false',[],'','']
	],'',''],
	['PAGE','41501',jdecode('Fotos'),jdecode(''),'/41501.html','false',[],'',''],
	['PAGE','43501',jdecode('Blog'),jdecode(''),'/43501.html','false',[],'','']];
var siteelementCount=14;
theSitetree.topTemplateName='Vienna';
theSitetree.paletteFamily='D6D2C5';
theSitetree.keyvisualId='11878';
theSitetree.keyvisualName='kv_11878.jpg';
theSitetree.fontsetId='33180';
theSitetree.graphicsetId='14088';
theSitetree.contentColor='696146';
theSitetree.contentBGColor='ebe8df';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Vienna',
				paletteFamily: 	'D6D2C5',
				keyvisualId: 	'11878',
				keyvisualName: 	'kv_11878.jpg',
				fontsetId: 		'33180',
				graphicsetId: 	'14088',
				contentColor: 	'696146',
				contentBGColor: 'ebe8df',
				a_color: 		'EBE8DF',
				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['7060']=webappMappings['7060-a47350dee3a9c4be878b43f9b9a1dd6b']={
webappId:    '7060',
documentId:  '8601',
internalId:  'a47350dee3a9c4be878b43f9b9a1dd6b',
customField: 'language:pt;country:BR;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '573',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-38906avec10in3tx6']={
webappId:    '1002',
documentId:  '38906',
internalId:  '38906avec10in3tx6',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-1b05927247c6a067c480a255d9b351cf']={
webappId:    '7060',
documentId:  '41501',
internalId:  '1b05927247c6a067c480a255d9b351cf',
customField: 'language:pt;country:BR;'
};
webappMappings['7050']=webappMappings['7050-163']={
webappId:    '7050',
documentId:  '43501',
internalId:  '163',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20090109-091035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20100217-101341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20071105-112133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20090108-150404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50401',
internalId:  '',
customField: '20090109-093151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20071023-214120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8601',
internalId:  '',
customField: '20071022-122933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41501',
internalId:  '',
customField: '20081207-192805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '522',
internalId:  '',
customField: '20090121-081447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20080807-190340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36901',
internalId:  '',
customField: '20091203-105220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38906',
internalId:  '',
customField: '20080326-100329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38901',
internalId:  '',
customField: '20080326-100329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43501',
internalId:  '',
customField: '20081212-075813'
};
webappMappings['1501']=webappMappings['1501-15298483']={
webappId:    '1501',
documentId:  '573',
internalId:  '15298483',
customField: '1501'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN3TX6';
var companyName   = 'Pousada+Marhesias';
var htmlTitle	  = 'POUSADA+MARHESIAS+ALGODOAL';
var metaKeywords  = 'meta+name%3Dverify-v1+content%3DW8dQ7IAuK36w%2BJfzdBe4zdGU20UjQnrrAkdxGjq6aQI%3D+%2Famazonia%2C+hospedagem+em+algodoal%2C+pousada+maresias%2C+bel%C3%A9m%2C+par%C3%A1%2C+eco+turismo%2C+APA+de+algodoal+maiandeua%2C+algodoal%2C+chal%C3%A9s+confortaveis%2C+restaurante+marhesias%2C+';
var metaContents  = 'meta+name%3Dverify-v1+content%3DW8dQ7IAuK36w%2BJfzdBe4zdGU20UjQnrrAkdxGjq6aQI%3D+%2Fpousadas+em+algodoal%2C+hotel+em+algodoal%2C+pousada+marhesias%2C+maresias%2C++fica+localizada+a+nordeste+do+estado+do+par%C3%A1+na+regi%C3%A3o+da+amazonia+atlantica.+chal%C3%A9s+em+algodoal%2C+informa%C3%A7%C3%B5es+sobre+a+praia+de+algodoal%2C++fotos%2C+como+chegar+em+algodoal+%2Chospedagem+em+algodoal%2C+isla+de+algodoal%2C+island+algodoal%2C+';
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();
};
