/* [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','452',jdecode('Associa%C3%A7%C3%A3o++CUMBE'),jdecode(''),'/452.html','true',[],'',''],
	['PAGE','5501',jdecode('Espectaculo+Brasile%C3%B1o'),jdecode(''),'/5501.html','true',[],'',''],
	['PAGE','5522',jdecode('Tienda'),jdecode(''),'/5522.html','true',[],'',''],
	['PAGE','5543',jdecode('Clases'),jdecode(''),'/5543.html','true',[],'',''],
	['PAGE','473',jdecode('Noticias+'),jdecode(''),'/473.html','true',[],'',''],
	['PAGE','33301',jdecode('Informacion'),jdecode(''),'/33301.html','true',[],'',''],
	['PAGE','578',jdecode('Galer%C3%ADa+-+Videos'),jdecode(''),'/578.html','true',[],'',''],
	['PAGE','557',jdecode('Curr%C3%ADculum'),jdecode(''),'/557.html','true',[],'',''],
	['PAGE','21901',jdecode('Memorias+Cumbe'),jdecode(''),'/21901.html','true',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='3E6E72';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='290';
theSitetree.graphicsetId='354';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='3E6E72';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'3E6E72',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'290',
				graphicsetId: 	'354',
				contentColor: 	'FFFFFF',
				contentBGColor: '3E6E72',
				a_color: 		'3E6E72',
				b_color: 		'101C1D',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '452',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-743947']={
webappId:    '1501',
documentId:  '452',
internalId:  '743947',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20090611-205537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100602-141514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21901',
internalId:  '',
customField: '20090115-213846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20090622-202355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5522',
internalId:  '',
customField: '20090112-195848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5543',
internalId:  '',
customField: '20100602-144554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33301',
internalId:  '',
customField: '20081105-114852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '578',
internalId:  '',
customField: '20100615-125829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20090112-211132'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2R5P';
var companyName   = 'Associa%C3%A7%C3%A3o+de+Capoeira+CUMBE';
var htmlTitle	  = 'Associa%C3%A7%C3%A3o+de+Capoeira+CUMBE%2C+Mestre+Magayver%2C+a+Capoeira+da+Bahia+en+Mexico';
var metaKeywords  = 'clases+de+capoeira+en+mexico%2C+clasesdecapoeiraenmexico%2C+Associa%C3%A7ao+de+Capoeira+cumbe+mestre+maestro+magayver+el+mejor+mestre+de+capoeira+certificado+reconocido+autorizado+apoyado+por+la+embajada+de+brasil+forte+da+capoeira+mestre+boa+gente+nacido+en+salvador+bahia+brasil+historia+de+la+capoeira+regional+angola+jogo+jinga+musica+de+capoeira+dvd+de+capoeira+videos+cd+discos+olodum+las+mejores+clases+de+capoeira+en+mexico+clases+de+samba+en+mexico+clases+de+jiujitsu+en+mexico+espectaculo+brasile%C3%B1o+en+mexico+show+brasile%C3%B1o+en+mexico+batucadas+en+mexico+mulatas+bailarinas+samberas+brasile%C3%B1as+musicos+brasile%C3%B1os+venta+de+articulos+brasile%C3%B1os+de+capoeira+ropa+de+capoeira+abada+berimbau+birimbao+caxixi+baqueta+atabaque+tambor+tambores+olodum+pandero+panderos+cuero+sintetico+fiesta+brasile%C3%B1a+deporte+brasile%C3%B1o+danza+brasile%C3%B1a+dan%C3%A7a+guerrera+guerreira+axe+salve+mestre+bimba+usa+capoeira+of+unites+states+venezuela+colombia+caracas+rio+de+janeiro+carnaval+de+rio+copa+cabana+comida+brasile%C3%B1a+muestra+gastronomica+caipiri%C3%B1a+capeta+batida+guarana+maracuya+verde+amarelo+feijoada+muqueca+samba+embaixada+cursos+talleres+graduacion+corda+cordao+batizado+bautizado+troca+viva+meu+mestre+camarada+batucada+maculele+danza+brasile%C3%B1a+baile+arte+marcial+brasile%C3%B1a+defenza+personal+ataque+dieta+baja+de+peso++brasil+en+mexico+forte+da+capoeira+videos+capoeira+videos+de+capoeira%2C+show+brasile%C3%B1o';
var metaContents  = 'CLases+de+Capoeira+en+Mexico%2C+Show+brasile%C3%B1o.+Informacion+de+la+disciplina+afrobrasile%C3%B1a%2C+deporte%2C+terapia%2C+danza%2C+lucha+CAPOEIRA.++Espectaculo+Brasile%C3%B1o.+Articulos+brasile%C3%B1os.+Comida+Brasile%C3%B1a.';
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();
};
