/* [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','701',jdecode('Home'),jdecode(''),'/701.html','true',[],'',''],
	['PAGE','752',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''),'/752/index.html','true',[ 
		['PAGE','815',jdecode('Estatutos'),jdecode(''),'/752/815.html','true',[],'',''],
		['PAGE','836',jdecode('Visi%C3%B3n+Filosofica'),jdecode(''),'/752/836.html','true',[],'',''],
		['PAGE','899',jdecode('Equipo+de+Trabajo'),jdecode(''),'/752/899.html','true',[],'','']
	],'',''],
	['PAGE','43401',jdecode('Pro+Playas'),jdecode(''),'/43401/index.html','true',[ 
		['PAGE','43422',jdecode('Como+Integrarse'),jdecode(''),'/43401/43422.html','true',[],'',''],
		['PAGE','43443',jdecode('Taller+Playas+Capurgana%2FBogota'),jdecode(''),'/43401/43443.html','true',[],'','']
	],'',''],
	['PAGE','43485',jdecode('Vida+Marina'),jdecode(''),'/43485/index.html','true',[ 
		['PAGE','43527',jdecode('Centro+de+Recuperaci%C3%B3n'),jdecode(''),'/43485/43527.html','true',[],'',''],
		['PAGE','43548',jdecode('Formato+de+Avistamientos'),jdecode(''),'/43485/43548.html','true',[],'',''],
		['PAGE','43569',jdecode('Investigaci%C3%B3n'),jdecode(''),'/43485/43569.html','true',[],'',''],
		['PAGE','76301',jdecode('Cachalote+Fotos'),jdecode(''),'/43485/76301.html','true',[],'','']
	],'',''],
	['PAGE','43590',jdecode('Iniciativas'),jdecode(''),'/43590/index.html','true',[ 
		['PAGE','68201',jdecode('Monitoreo+Marino+Costero'),jdecode(''),'/43590/68201.html','true',[],'',''],
		['PAGE','104201',jdecode('TurboyelAgua'),jdecode(''),'/43590/104201.html','true',[],'',''],
		['PAGE','69201',jdecode('Manejo+Integrado+de+Playas'),jdecode(''),'/43590/69201.html','true',[],'',''],
		['PAGE','69222',jdecode('Conservaci%C3%B3n+Fauna+Marina'),jdecode(''),'/43590/69222.html','true',[],'',''],
		['PAGE','69243',jdecode('Erosi%C3%B3n+Costera'),jdecode(''),'/43590/69243.html','true',[],'',''],
		['PAGE','69264',jdecode('CERT%26%23x27%3BS'),jdecode(''),'/43590/69264.html','true',[],'',''],
		['PAGE','69285',jdecode('Ecoturismo'),jdecode(''),'/43590/69285.html','true',[],'',''],
		['PAGE','69306',jdecode('Energias+Alternativas+'),jdecode(''),'/43590/69306.html','true',[],'',''],
		['PAGE','69327',jdecode('Educaci%C3%B3n'),jdecode(''),'/43590/69327.html','true',[],'','']
	],'',''],
	['PAGE','42601',jdecode('Cursos+y+Eventos'),jdecode(''),'/42601/index.html','true',[ 
		['PAGE','65501',jdecode('Proximos+a+Desarrollar'),jdecode(''),'/42601/65501.html','true',[],'',''],
		['PAGE','81901',jdecode('Taller+Playas+Cartagena'),jdecode(''),'/42601/81901.html','true',[],'',''],
		['PAGE','95301',jdecode('Resultados+Taller+Cartagena'),jdecode(''),'/42601/95301.html','true',[],'',''],
		['PAGE','97201',jdecode('Documentos'),jdecode(''),'/42601/97201.html','true',[],'',''],
		['PAGE','95322',jdecode('Presentaciones+Taller+Cartagena'),jdecode(''),'/42601/95322.html','true',[],'',''],
		['PAGE','82201',jdecode('Formulario+Inscripcion'),jdecode(''),'/42601/82201.html','true',[],'',''],
		['PAGE','58001',jdecode('Taller+Playas+Bogota'),jdecode(''),'/42601/58001.html','true',[],'','']
	],'',''],
	['PAGE','40601',jdecode('Golfo+de+Urab%C3%A1-Dari%C3%A9n'),jdecode(''),'/40601.html','true',[],'',''],
	['PAGE','65522',jdecode('Noticias'),jdecode(''),'/65522.html','true',[],'',''],
	['PAGE','65573',jdecode('Como+apoyarnos'),jdecode(''),'/65573/index.html','true',[ 
		['PAGE','91601',jdecode('Linea+de+Productos+%22CONSCIENCIA+MARINA%22'),jdecode(''),'/65573/91601.html','true',[],'',''],
		['PAGE','102401',jdecode('Pixy'),jdecode(''),'/65573/102401.html','true',[],'','']
	],'',''],
	['PAGE','82222',jdecode('Formulario+de+contacto'),jdecode(''),'/82222.html','true',[],'',''],
	['PAGE','65594',jdecode('Gracias%21%21'),jdecode(''),'/65594.html','true',[],'',''],
	['PAGE','962',jdecode('Alianzas+'),jdecode(''),'/962.html','true',[],'',''],
	['PAGE','5422',jdecode('Contactenos'),jdecode(''),'/5422.html','true',[],'',''],
	['PAGE','67901',jdecode('ENGLISH+VERSION'),jdecode(''),'/67901/index.html','true',[ 
		['PAGE','73701',jdecode('MARINE-COASTAL+++'),jdecode(''),'/67901/73701.html','true',[],'',''],
		['PAGE','73722',jdecode('THEMES+OF+ACTIVITY'),jdecode(''),'/67901/73722.html','true',[],'',''],
		['PAGE','73743',jdecode('PROPLAYAS'),jdecode(''),'/67901/73743.html','true',[],'',''],
		['PAGE','73764',jdecode('INTERNATIONAL+COOPERATION'),jdecode(''),'/67901/73764.html','true',[],'',''],
		['PAGE','73785',jdecode('ACTIVITIES'),jdecode(''),'/67901/73785.html','true',[],'',''],
		['PAGE','73806',jdecode('SUPPORT+US'),jdecode(''),'/67901/73806.html','true',[],'','']
	],'','']];
var siteelementCount=47;
theSitetree.topTemplateName='Intense';
theSitetree.paletteFamily='66956C';
theSitetree.keyvisualId='3513';
theSitetree.keyvisualName='kv_3513.jpg';
theSitetree.fontsetId='10654';
theSitetree.graphicsetId='10800';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='B3D0B7';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'grp13-hosti3',
  product: 'WSCSYSSSSLY0XJEL'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Intense',
				paletteFamily: 	'66956C',
				keyvisualId: 	'3513',
				keyvisualName: 	'kv_3513.jpg',
				fontsetId: 		'10654',
				graphicsetId: 	'10800',
				contentColor: 	'000000',
				contentBGColor: 'B3D0B7',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'AD401A',
				e_color: 		'727171',
				f_color: 		'3F3F3F',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82222',
internalId:  '',
customField: '20091013-082013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20100925-001139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20090705-070848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '815',
internalId:  '',
customField: '20080613-173009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '836',
internalId:  '',
customField: '20100918-135549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65522',
internalId:  '',
customField: '20090516-223144'
};
webappMappings['7005']=webappMappings['7005-698']={
webappId:    '7005',
documentId:  '65522',
internalId:  '698',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '899',
internalId:  '',
customField: '20090705-070913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43401',
internalId:  '',
customField: '20080922-104857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43443',
internalId:  '',
customField: '20091013-080156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82201',
internalId:  '',
customField: '20091114-012039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43422',
internalId:  '',
customField: '20091114-014739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43485',
internalId:  '',
customField: '20080302-100627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43527',
internalId:  '',
customField: '20091111-034551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69201',
internalId:  '',
customField: '20090522-095400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43548',
internalId:  '',
customField: '20080301-140131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43569',
internalId:  '',
customField: '20080301-140131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43590',
internalId:  '',
customField: '20090517-011423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68201',
internalId:  '',
customField: '20090520-115341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67901',
internalId:  '',
customField: '20090525-214757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42601',
internalId:  '',
customField: '20100201-100733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58001',
internalId:  '',
customField: '20090516-143559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40601',
internalId:  '',
customField: '20080301-131058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5422',
internalId:  '',
customField: '20090715-143437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '962',
internalId:  '',
customField: '20100825-024828'
};
webappMappings['7008']=webappMappings['7008-7690']={
webappId:    '7008',
documentId:  '5422',
internalId:  '7690',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65501',
internalId:  '',
customField: '20090516-235556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65573',
internalId:  '',
customField: '20100722-033822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65594',
internalId:  '',
customField: '20090705-071124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69222',
internalId:  '',
customField: '20090522-095510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69243',
internalId:  '',
customField: '20090522-095757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69264',
internalId:  '',
customField: '20090522-095912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69285',
internalId:  '',
customField: '20090522-100020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69306',
internalId:  '',
customField: '20090721-083515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69327',
internalId:  '',
customField: '20090522-101250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102401',
internalId:  '',
customField: '20100723-045845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73701',
internalId:  '',
customField: '20090529-160516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73722',
internalId:  '',
customField: '20090525-222645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73743',
internalId:  '',
customField: '20090525-224230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73764',
internalId:  '',
customField: '20090525-223351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73785',
internalId:  '',
customField: '20090525-223726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73806',
internalId:  '',
customField: '20090525-220206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76301',
internalId:  '',
customField: '20090609-112305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81901',
internalId:  '',
customField: '20100306-135735'
};
webappMappings['7008']=webappMappings['7008-11979']={
webappId:    '7008',
documentId:  '82201',
internalId:  '11979',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-11980']={
webappId:    '7008',
documentId:  '82222',
internalId:  '11980',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-11994']={
webappId:    '7008',
documentId:  '43422',
internalId:  '11994',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91601',
internalId:  '',
customField: '20091030-230014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95322',
internalId:  '',
customField: '20100130-041856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95301',
internalId:  '',
customField: '20100129-110136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97201',
internalId:  '',
customField: '20100302-062859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104201',
internalId:  '',
customField: '20100924-062927'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INF0A9';
var companyName   = 'CORPORACION+AMBIENTAL+BIOMUNICIPIOS';
var htmlTitle	  = 'Corporaci%C3%B3n+Ambiental+Biomunicipios';
var metaKeywords  = '';
var metaContents  = '';
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();
};

