/* [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','6201',jdecode('LA+E.S.I.T.'),jdecode(''),'/6201/index.html','true',[ 
		['PAGE','7301',jdecode('Historia'),jdecode(''),'/6201/7301.html','true',[],'',''],
		['PAGE','7322',jdecode('Misi%C3%B3n'),jdecode(''),'/6201/7322.html','true',[],'',''],
		['PAGE','7343',jdecode('Visi%C3%B3n'),jdecode(''),'/6201/7343.html','true',[],'',''],
		['PAGE','7364',jdecode('Valores'),jdecode(''),'/6201/7364.html','true',[],'',''],
		['PAGE','7385',jdecode('Nuestros+Alumnos'),jdecode(''),'/6201/7385.html','true',[],'',''],
		['PAGE','7406',jdecode('Nuestros+Egresados'),jdecode(''),'/6201/7406.html','true',[],'','']
	],'',''],
	['PAGE','7427',jdecode('OFERTA+ACAD%C3%89MICA'),jdecode(''),'/7427/index.html','true',[ 
		['PAGE','7448',jdecode('Bachillerato+con+I.T.'),jdecode(''),'/7427/7448.html','true',[],'',''],
		['PAGE','14901',jdecode('Plan+Estudios+Bachillerato'),jdecode(''),'/7427/14901.html','true',[],'',''],
		['PAGE','7469',jdecode('Cursos+de+Ingl%C3%A9s'),jdecode(''),'/7427/7469.html','true',[],'',''],
		['PAGE','7490',jdecode('Cursos+Especiales'),jdecode(''),'/7427/7490.html','true',[],'',''],
		['PAGE','7511',jdecode('TOEFL+IBT'),jdecode(''),'/7427/7511.html','true',[],'',''],
		['PAGE','7532',jdecode('TOEFL+ITP'),jdecode(''),'/7427/7532.html','true',[],'',''],
		['PAGE','7574',jdecode('TRADUM%C3%81TICA+%28Traducci%C3%B3n%29'),jdecode(''),'/7427/7574.html','true',[],'',''],
		['PAGE','22301',jdecode('ORATORIA+y+COMUNICACI%C3%93N'),jdecode(''),'/7427/22301.html','true',[],'','']
	],'',''],
	['PAGE','7595',jdecode('BOLSA+DE+TRABAJO'),jdecode(''),'/7595/index.html','true',[ 
		['PAGE','7616',jdecode('Alumnos'),jdecode(''),'/7595/7616.html','true',[],'',''],
		['PAGE','19001',jdecode('Consultar+Vacantes'),jdecode(''),'/7595/19001.html','true',[],'',''],
		['PAGE','7637',jdecode('Empresas'),jdecode(''),'/7595/7637.html','true',[],'','']
	],'',''],
	['PAGE','17301',jdecode('EXALUMNOS'),jdecode(''),'/17301/index.html','true',[ 
		['PAGE','17322',jdecode('Actualizaci%C3%B3n+de+Informaci%C3%B3n'),jdecode(''),'/17301/17322.html','true',[],'',''],
		['PAGE','17343',jdecode('Historias+de+Satisfacci%C3%B3n'),jdecode(''),'/17301/17343.html','true',[],'','']
	],'',''],
	['PAGE','7658',jdecode('ACUERDOS+y+VINCULACI%C3%93N'),jdecode(''),'/7658.html','true',[],'',''],
	['PAGE','7679',jdecode('CONTACTO'),jdecode(''),'/7679.html','true',[],'','']];
var siteelementCount=25;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B0CBD6';
theSitetree.keyvisualId='1961';
theSitetree.keyvisualName='agentur.jpg';
theSitetree.fontsetId='330';
theSitetree.graphicsetId='383';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stylus',
				paletteFamily: 	'B0CBD6',
				keyvisualId: 	'1961',
				keyvisualName: 	'agentur.jpg',
				fontsetId: 		'330',
				graphicsetId: 	'383',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'B0CBD6',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6201',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-2919']={
webappId:    '7008',
documentId:  '7679',
internalId:  '2919',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-2920']={
webappId:    '7008',
documentId:  '7616',
internalId:  '2920',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-2921']={
webappId:    '7008',
documentId:  '17322',
internalId:  '2921',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6201',
internalId:  '',
customField: '20081105-211213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20080710-185339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7322',
internalId:  '',
customField: '20080710-190213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7343',
internalId:  '',
customField: '20080710-190238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7364',
internalId:  '',
customField: '20080710-191101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7385',
internalId:  '',
customField: '20080710-191141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7406',
internalId:  '',
customField: '20080710-192206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7427',
internalId:  '',
customField: '20080731-124938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7448',
internalId:  '',
customField: '20080811-131825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14901',
internalId:  '',
customField: '20080731-124356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7469',
internalId:  '',
customField: '20090701-190531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7490',
internalId:  '',
customField: '20080731-131103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7511',
internalId:  '',
customField: '20090819-165938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7532',
internalId:  '',
customField: '20080730-171849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7574',
internalId:  '',
customField: '20090701-190056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22301',
internalId:  '',
customField: '20090117-141709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7595',
internalId:  '',
customField: '20080710-194334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7616',
internalId:  '',
customField: '20080811-173110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19001',
internalId:  '',
customField: '20081118-195429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7637',
internalId:  '',
customField: '20080813-145205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17301',
internalId:  '',
customField: '20080812-123849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17322',
internalId:  '',
customField: '20080812-124410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17343',
internalId:  '',
customField: '20091127-135728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7658',
internalId:  '',
customField: '20080710-193149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7679',
internalId:  '',
customField: '20080714-173345'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INPCGY';
var companyName   = '%C2%A1BIENVENIDOS+A+ESIT%21';
var htmlTitle	  = 'ESCUELA+SUPERIOR+DE+INT%C3%89RPRETES+TRADUCTORES+E+IDIOMAS';
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();
};
