/* [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','2614',jdecode('Bienvenidos'),jdecode(''), jdecode('%2F2614.html'), 'true',[],'',''],
	['PAGE','7601',jdecode('Misi%C3%B3n'),jdecode(''), jdecode('%2F7601.html'), 'true',[],'',''],
	['PAGE','10601',jdecode('Visi%C3%B3n'),jdecode(''), jdecode('%2F10601.html'), 'true',[],'',''],
	['PAGE','13012',jdecode('Valores'),jdecode(''), jdecode('%2F13012.html'), 'true',[],'',''],
	['PAGE','10801',jdecode('Modelo+Educativo'),jdecode(''), jdecode('%2F10801.html'), 'true',[],'',''],
	['PAGE','14112',jdecode('C%C3%B3digo+de+%C3%89tica'),jdecode(''), jdecode('%2F14112.html'), 'true',[],'',''],
	['PAGE','14712',jdecode('Maestr%C3%ADa'),jdecode(''), jdecode('%2F14712.html'), 'true',[],'',''],
	['PAGE','15812',jdecode('Doctorado'),jdecode(''), jdecode('%2F15812.html'), 'true',[],'',''],
	['PAGE','41012',jdecode('Catalogos+de+las+Carreras'),jdecode(''), jdecode('%2F41012.html'), 'true',[],'',''],
	['PAGE','28812',jdecode('Testimonios'),jdecode(''), jdecode('%2F28812.html'), 'true',[],'',''],
	['PAGE','22212',jdecode('Daena+Journal'),jdecode(''), jdecode('%2F22212%2Findex.html'), 'true',[ 
		['PAGE','17912',jdecode('Descripci%C3%B3n'),jdecode(''), jdecode('%2F22212%2F17912.html'), 'true',[],'',''],
		['PAGE','20012',jdecode('Normas+Editoriales'),jdecode(''), jdecode('%2F22212%2F20012.html'), 'true',[],'',''],
		['PAGE','21212',jdecode('Comit%C3%A9+Editorial'),jdecode(''), jdecode('%2F22212%2F21212.html'), 'true',[],'',''],
		['PAGE','19712',jdecode('Volumen+5+N%C3%BAmero+2'),jdecode(''), jdecode('%2F22212%2F19712.html'), 'true',[],'',''],
		['PAGE','49612',jdecode('Volumen+6+N%C3%BAmero+1'),jdecode(''), jdecode('%2F22212%2F49612.html'), 'true',[],'',''],
		['PAGE','54912',jdecode('Volumen+6+Numero+2'),jdecode(''), jdecode('%2F22212%2F54912.html'), 'true',[],'',''],
		['PAGE','31212',jdecode('Archivos+Anteriores'),jdecode(''), jdecode('%2F22212%2F31212.html'), 'true',[],'',''],
		['PAGE','37454',jdecode('Volumen+5+N%C3%BAmero+1'),jdecode(''), jdecode('%2F22212%2F37454.html'), 'false',[],'',''],
		['PAGE','37433',jdecode('Volumen+4+N%C3%BAmero+2'),jdecode(''), jdecode('%2F22212%2F37433.html'), 'false',[],'',''],
		['PAGE','37412',jdecode('Volumen+4+N%C3%BAmero+1'),jdecode(''), jdecode('%2F22212%2F37412.html'), 'false',[],'',''],
		['PAGE','36812',jdecode('Volumen+3+N%C3%BAmero+2'),jdecode(''), jdecode('%2F22212%2F36812.html'), 'false',[],'',''],
		['PAGE','34812',jdecode('Volumen+3+N%C3%BAmero+1'),jdecode(''), jdecode('%2F22212%2F34812.html'), 'false',[],'',''],
		['PAGE','33812',jdecode('Volumen+2+N%C3%BAmero+2'),jdecode(''), jdecode('%2F22212%2F33812.html'), 'false',[],'',''],
		['PAGE','32812',jdecode('Volumen+2+N%C3%BAmero+1'),jdecode(''), jdecode('%2F22212%2F32812.html'), 'false',[],'',''],
		['PAGE','25412',jdecode('Volumen+1+N%C3%BAmero+1'),jdecode(''), jdecode('%2F22212%2F25412.html'), 'false',[],'','']
	],'',''],
	['PAGE','14412',jdecode('Sedes+%2F+Representantes'),jdecode(''), jdecode('%2F14412.html'), 'true',[],'',''],
	['PAGE','24812',jdecode('Contacto'),jdecode(''), jdecode('%2F24812.html'), 'true',[],'',''],
	['PAGE','46612',jdecode('Neuroeconomics+%28NRC%29'),jdecode(''), jdecode('%2F46612%2Findex.html'), 'true',[ 
		['PAGE','47812',jdecode('Board+Members+at+NRC'),jdecode(''), jdecode('%2F46612%2F47812.html'), 'true',[],'',''],
		['PAGE','48512',jdecode('Research+at+NRC'),jdecode(''), jdecode('%2F46612%2F48512.html'), 'true',[],'','']
	],'',''],
	['PAGE','52812',jdecode('Acreditaci%C3%B3n'),jdecode(''), jdecode('%2F52812.html'), 'true',[],'',''],
	['PAGE','52312',jdecode('Plataforma+Virtual+Spenta'),jdecode(''), jdecode('%2F52312.html'), 'true',[],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Angkor';
theSitetree.paletteFamily='879ED6';
theSitetree.keyvisualId='6863';
theSitetree.keyvisualName='kv_6863.jpg';
theSitetree.fontsetId='11211';
theSitetree.graphicsetId='12030';
theSitetree.contentColor='354B86';
theSitetree.contentBGColor='94AAE1';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'hps_testtown',
  product: 'WSCSYSSSSLY0XFEL'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Angkor',
				paletteFamily: 	'879ED6',
				keyvisualId: 	'6863',
				keyvisualName: 	'kv_6863.jpg',
				fontsetId: 		'11211',
				graphicsetId: 	'12030',
				contentColor: 	'354B86',
				contentBGColor: '94AAE1',
				a_color: 		'94AAE1',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2614',
internalId:  '',
customField: '20111025-094735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7601',
internalId:  '',
customField: '20101109-101227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10601',
internalId:  '',
customField: '20101109-101207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10801',
internalId:  '',
customField: '20101114-151345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13012',
internalId:  '',
customField: '20101109-101306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14112',
internalId:  '',
customField: '20110217-111217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14412',
internalId:  '',
customField: '20110217-111545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14712',
internalId:  '',
customField: '20101109-114745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15812',
internalId:  '',
customField: '20101109-114135'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2614',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17912',
internalId:  '',
customField: '20101109-170527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19712',
internalId:  '',
customField: '20110311-142437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20012',
internalId:  '',
customField: '20101109-170214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21212',
internalId:  '',
customField: '20110217-111506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22212',
internalId:  '',
customField: '20101124-183345'
};
webappMappings['7008']=webappMappings['7008-10043']={
webappId:    '7008',
documentId:  '24812',
internalId:  '10043',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24812',
internalId:  '',
customField: '20101119-162629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25412',
internalId:  '',
customField: '20101116-103320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28812',
internalId:  '',
customField: '20110217-111413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31212',
internalId:  '',
customField: '20101116-110124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32812',
internalId:  '',
customField: '20101116-105306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33812',
internalId:  '',
customField: '20101116-103638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34812',
internalId:  '',
customField: '20101116-103830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36812',
internalId:  '',
customField: '20101116-103911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37412',
internalId:  '',
customField: '20101121-134429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37433',
internalId:  '',
customField: '20101121-135530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37454',
internalId:  '',
customField: '20101116-104409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41012',
internalId:  '',
customField: '20101122-201235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46612',
internalId:  '',
customField: '20110316-102806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47812',
internalId:  '',
customField: '20110310-145923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48512',
internalId:  '',
customField: '20110310-145149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49612',
internalId:  '',
customField: '20111226-201241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52312',
internalId:  '',
customField: '20110906-130358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52812',
internalId:  '',
customField: '20110913-135258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54912',
internalId:  '',
customField: '20111226-222733'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INZPEE';
var companyName   = 'SPENTA+UNIVERSITY+MEXICO';
var htmlTitle	  = '';
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();
};

