/* [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','4701',jdecode('HOME'),jdecode(''),'/4701.html','true',[],'',''],
	['PAGE','72101',jdecode('HORTIFRUTI'),jdecode(''),'/72101/index.html','true',[ 
		['PAGE','73701',jdecode('Considera%C3%A7%C3%B5es'),jdecode(''),'/72101/73701.html','true',[],'','']
	],'',''],
	['PAGE','37601',jdecode('SERVI%C3%87OS+DE+BALSA'),jdecode(''),'/37601/index.html','true',[ 
		['PAGE','37622',jdecode('Parque+das+Rosas'),jdecode(''),'/37601/37622.html','true',[],'',''],
		['PAGE','37664',jdecode('Costa+Blanca+e+outros'),jdecode(''),'/37601/37664.html','true',[],'',''],
		['PAGE','45301',jdecode('Amapluc'),jdecode(''),'/37601/45301.html','true',[],'','']
	],'',''],
	['PAGE','71001',jdecode('CICLOVIA+P.+ROSAS'),jdecode(''),'/71001/index.html','true',[ 
		['PAGE','88412',jdecode('M%C3%81+EDUCA%C3%87%C3%83O'),jdecode(''),'/71001/88412.html','true',[],'',''],
		['PAGE','88512',jdecode('MANUTEN%C3%87%C3%83O+E+RECUPERA%C3%87%C3%83O'),jdecode(''),'/71001/88512.html','true',[],'',''],
		['PAGE','90112',jdecode('LIXO+ENCONTRADO'),jdecode(''),'/71001/90112.html','true',[],'',''],
		['PAGE','90133',jdecode('EX+-LAGOA+DE+ESGOTO'),jdecode(''),'/71001/90133.html','true',[],'','']
	],'',''],
	['PAGE','88533',jdecode('BLOG+DA+CICLOVIA'),jdecode(''),'/88533.html','true',[],'',''],
	['PAGE','4815',jdecode('ECOTURISMO'),jdecode(''),'/4815.html','true',[],'',''],
	['PAGE','4773',jdecode('BARCOS+DE+SERVI%C3%87OS'),jdecode(''),'/4773.html','true',[],'',''],
	['PAGE','4794',jdecode('P%C3%8DERES+FLUTUANTES'),jdecode(''),'/4794.html','true',[],'',''],
	['PAGE','48101',jdecode('CLIENTES+ATENDIDOS'),jdecode(''),'/48101.html','true',[],'',''],
	['PAGE','32701',jdecode('LINKS+INTERESSANTES'),jdecode(''),'/32701.html','true',[],'',''],
	['PAGE','94623',jdecode('RECLAMA%C3%87%C3%95ES'),jdecode(''),'/94623.html','true',[],'',''],
	['PAGE','95023',jdecode('SUGEST%C3%95ES'),jdecode(''),'/95023.html','true',[],'',''],
	['PAGE','4857',jdecode('CONTATO'),jdecode(''),'/4857.html','true',[],'',''],
	['PAGE','37811',jdecode('ALBUM+DE+FOTOS'),jdecode(''),'/37811/index.html','true',[ 
		['PAGE','45364',jdecode('Por+do+sol'),jdecode(''),'/37811/45364.html','true',[],'',''],
		['PAGE','91712',jdecode('FAUNA+'),jdecode(''),'/37811/91712.html','true',[],'',''],
		['PAGE','45385',jdecode('Lagoa+de+Marapendi'),jdecode(''),'/37811/45385.html','true',[],'',''],
		['PAGE','45406',jdecode('Barra+da+Tijuca'),jdecode(''),'/37811/45406.html','true',[],'',''],
		['PAGE','74801',jdecode('Canal+de+Marapendi'),jdecode(''),'/37811/74801.html','true',[],'',''],
		['PAGE','92712',jdecode('Restinga'),jdecode(''),'/37811/92712.html','true',[],'',''],
		['PAGE','92733',jdecode('Lagoa+da+Tijuca'),jdecode(''),'/37811/92733.html','true',[],'','']
	],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='Draft';
theSitetree.paletteFamily='2D50A1';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10399';
theSitetree.graphicsetId='10611';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='2D50A1';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Draft',
				paletteFamily: 	'2D50A1',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10399',
				graphicsetId: 	'10611',
				contentColor: 	'FFFFFF',
				contentBGColor: '2D50A1',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D09868',
				e_color: 		'9E9E9F',
				f_color: 		'051E56',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4701',
internalId:  '',
customField: '20100113-050003'
};
webappMappings['7060']=webappMappings['7060-3c142e51080e32f1ae525831cb616ca5']={
webappId:    '7060',
documentId:  '45385',
internalId:  '3c142e51080e32f1ae525831cb616ca5',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-97bffa6b64853aff17709263f73c3f6a']={
webappId:    '7060',
documentId:  '45406',
internalId:  '97bffa6b64853aff17709263f73c3f6a',
customField: 'language:pt;country:BR;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45301',
internalId:  '',
customField: '20100221-040755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4773',
internalId:  '',
customField: '20090207-184522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4794',
internalId:  '',
customField: '20090207-190228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4815',
internalId:  '',
customField: '20090320-192349'
};
webappMappings['7060']=webappMappings['7060-5f23f20357cc56a878c29822bf9c5c3a']={
webappId:    '7060',
documentId:  '88412',
internalId:  '5f23f20357cc56a878c29822bf9c5c3a',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32701',
internalId:  '',
customField: '20100211-181341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4857',
internalId:  '',
customField: '20100120-144412'
};
webappMappings['7060']=webappMappings['7060-0677aeeafc166f58cbefc1c45c882b2e']={
webappId:    '7060',
documentId:  '45364',
internalId:  '0677aeeafc166f58cbefc1c45c882b2e',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37601',
internalId:  '',
customField: '20100120-143813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37622',
internalId:  '',
customField: '20090627-101042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72101',
internalId:  '',
customField: '20100227-053827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37664',
internalId:  '',
customField: '20100221-040656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48101',
internalId:  '',
customField: '20090126-095547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45406',
internalId:  '',
customField: '20100120-171438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71001',
internalId:  '',
customField: '20100129-041135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45364',
internalId:  '',
customField: '20100129-041353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45385',
internalId:  '',
customField: '20100120-163756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37811',
internalId:  '',
customField: '20100129-041258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74801',
internalId:  '',
customField: '20100120-162348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73701',
internalId:  '',
customField: '20100123-143350'
};
webappMappings['7060']=webappMappings['7060-84dc4c5f7652591c166710ab54cfa3ed']={
webappId:    '7060',
documentId:  '74801',
internalId:  '84dc4c5f7652591c166710ab54cfa3ed',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-4424b9f0ce73f950493ce8895e772a90']={
webappId:    '7060',
documentId:  '88512',
internalId:  '4424b9f0ce73f950493ce8895e772a90',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88412',
internalId:  '',
customField: '20100127-003409'
};
webappMappings['7050']=webappMappings['7050-3941']={
webappId:    '7050',
documentId:  '88533',
internalId:  '3941',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88512',
internalId:  '',
customField: '20100127-002421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88533',
internalId:  '',
customField: '20100217-051453'
};
webappMappings['7060']=webappMappings['7060-ecaacd8351a33d124c67f9490cd74e1b']={
webappId:    '7060',
documentId:  '90112',
internalId:  'ecaacd8351a33d124c67f9490cd74e1b',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-96457737080fba3ecf45aad30abea22b']={
webappId:    '7060',
documentId:  '90133',
internalId:  '96457737080fba3ecf45aad30abea22b',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90112',
internalId:  '',
customField: '20100128-185353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90133',
internalId:  '',
customField: '20100128-193349'
};
webappMappings['7060']=webappMappings['7060-85d0d228b12a4aa2f8fe65c3a20b8757']={
webappId:    '7060',
documentId:  '91712',
internalId:  '85d0d228b12a4aa2f8fe65c3a20b8757',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91712',
internalId:  '',
customField: '20100129-041549'
};
webappMappings['7060']=webappMappings['7060-a923b9d707991c6123ece9f683406443']={
webappId:    '7060',
documentId:  '92712',
internalId:  'a923b9d707991c6123ece9f683406443',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-64188878ae53f8aef7ab42ef237410e6']={
webappId:    '7060',
documentId:  '92733',
internalId:  '64188878ae53f8aef7ab42ef237410e6',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92712',
internalId:  '',
customField: '20100131-033446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92733',
internalId:  '',
customField: '20100131-033447'
};
webappMappings['7008']=webappMappings['7008-14898']={
webappId:    '7008',
documentId:  '94623',
internalId:  '14898',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94623',
internalId:  '',
customField: '20100211-175832'
};
webappMappings['7008']=webappMappings['7008-14900']={
webappId:    '7008',
documentId:  '95023',
internalId:  '14900',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95023',
internalId:  '',
customField: '20100211-173823'
};
webappMappings['7008']=webappMappings['7008-14905']={
webappId:    '7008',
documentId:  '4857',
internalId:  '14905',
customField: 'language:pt;country:BR;'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INPGFS';
var companyName   = 'SEA+POINT';
var htmlTitle	  = 'SERVI%C3%87OS+DE+BALSA';
var metaKeywords  = 'p%C3%ADeres%3B+flutuantes%3B+balsas%3B+p%C3%ADeres+flutuantes%3B+marinas%3B+projetos+de+marinas%3Bfloat+marinas%3B+projetos+de+marinas%3Bcatamar%C3%A3s%3B+trimar%C3%A3s%3B+HORTIFRUTI';
var metaContents  = 'Servi%C3%A7os+de+balsa%3B+p%C3%ADeres+flutuantes%3B+balsas%3B+cais+flutuantes%3B+projetos+de+marinas%2C+catamar%C3%A3s%2C+BALSA+HORTIFRUTI%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();
};
