/* [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 theSitetree=[ 
	['PAGE','701',jdecode('Home'),jdecode(''),'/701.html','true',[],''],
	['PAGE','22901',jdecode('Nobres+%2F+M.T'),jdecode(''),'/22901.html','true',[],''],
	['PAGE','22922',jdecode('Boiacross'),jdecode(''),'/22922.html','true',[],''],
	['PAGE','5801',jdecode('Passeio+de+Bote'),jdecode(''),'/5801.html','true',[],''],
	['PAGE','26901',jdecode('Salto+do+Tucum'),jdecode(''),'/26901.html','true',[],''],
	['PAGE','15501',jdecode('Cachoeira+da+Serra+Azul'),jdecode(''),'/15501.html','true',[],''],
	['PAGE','9543',jdecode('Cicloturismo'),jdecode(''),'/9543.html','true',[],''],
	['PAGE','9501',jdecode('Flutua%C3%A7%C3%A3o+Aquario+e+Rio+Salobra'),jdecode(''),'/9501.html','true',[],''],
	['PAGE','9522',jdecode('Flutua%C3%A7%C3%A3o+rio+Triste'),jdecode(''),'/9522.html','true',[],''],
	['PAGE','9564',jdecode('Lagoa+das+Araras'),jdecode(''),'/9564.html','true',[],''],
	['PAGE','11801',jdecode('Transporte+com+Motorista'),jdecode(''),'/11801.html','true',[],''],
	['PAGE','24601',jdecode('Contato'),jdecode(''),'/24601.html','true',[],''],
	['PAGE','18001',jdecode('Links+Favoritos'),jdecode(''),'/18001.html','true',[],''],
	['PAGE','35301',jdecode('Artesanato'),jdecode(''),'/35301.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Roadsign';
theSitetree.paletteFamily='FBFDC7';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10741';
theSitetree.graphicsetId='10497';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				name: 			'Roadsign',
				paletteFamily: 	'FBFDC7',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10741',
				graphicsetId: 	'10497',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'666666',
				e_color: 		'999999',
				f_color: 		'663300',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20080215-110739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22922',
internalId:  '',
customField: '20080601-211206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20080706-173630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22901',
internalId:  '',
customField: '20080215-110526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26901',
internalId:  '',
customField: '20080214-122602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15501',
internalId:  '',
customField: '20080214-122640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9543',
internalId:  '',
customField: '20080214-122721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9501',
internalId:  '',
customField: '20080214-122830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9522',
internalId:  '',
customField: '20080214-122918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9564',
internalId:  '',
customField: '20080214-122952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11801',
internalId:  '',
customField: '20080214-123149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24601',
internalId:  '',
customField: '20080801-085100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18001',
internalId:  '',
customField: '20090425-223458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35301',
internalId:  '',
customField: '20080402-104648'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INLFMV';
var companyName   = 'Aventuratur+Expedi%C3%A7%C3%B5es+%2F+Nobres+M.T';
var htmlTitle	  = 'Aventuratur+%2F+Nobres+M.T';
var metaKeywords  = '%28Nobres%2FM.T%29+%28Mato+Grossso%29+%28Flutua%C3%A7%C3%A3o%29+%28mergulho%29+%28+passeio+de+Bote%29+%28cachoeiras%29+%28Cachoeira+da+Serra+Azul%29+%28lagoa+das+Araras%29+%28transfers%29+++%28Bom+Jardim%29+%28vila+Bom+Jardim%29+%28cicloturismo%29+%28Ativa+rafting%29+%28Aventuratur%29++%28Aventuratur+Expedi%C3%A7%C3%B5es%29+%28rio+Salobra%29+%28rio+Triste%29+%28Recanto+Ecologico%29%28Chapada+dos+Guimaraes%29+%28Pantanal%29+%28Floresta+Amazonica%29+%28Brasil+Central%29+%28rio+Cuiabazinho%29+%28rio+Queb%C3%B3%29+%28cardumes%29+%28peixes%29+%28piraputangas%29+%28Expedi%C3%A7%C3%B5es%29+%28Ecoturismo%29+%28Guia%29+%28Guia+de+Ecoturismo%29+%28adventure%29+%28pousadas%29+%28Hot%C3%A9is%29+%28boiacross%29+%28nobres%29+%28nobres+m.t%29+';
var metaContents  = 'A+Aventuartur+%C3%A9+sua+agencia+e+operadora+de+turismo+em+Nobres+M.T+++Fasemos+transfers+em+toda+regiao+de+Nobres.++Venha+faser+Um+passeio+de+bote+pelo+rio+Cuiabazinho...';
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();
};
