/* [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','4584',jdecode('Home'),jdecode(''),'/4584/index.html','true',[ 
		['PAGE','70429',jdecode('Historia+COSUTH'),jdecode(''),'/4584/70429.html','true',[],'','']
	],'',''],
	['PAGE','18403',jdecode('Carreras'),jdecode(''),'/18403/index.html','true',[ 
		['PAGE','18430',jdecode('Lic.+en+Turismo'),jdecode(''),'/18403/18430.html','true',[],'',''],
		['PAGE','18457',jdecode('Lic.+en+Gastronomia'),jdecode(''),'/18403/18457.html','true',[],'',''],
		['PAGE','18484',jdecode('Bachillerato+en+Turismo'),jdecode(''),'/18403/18484.html','true',[],'','']
	],'',''],
	['PAGE','70814',jdecode('Admisi%C3%B3n'),jdecode(''),'/70814.html','true',[],'',''],
	['PAGE','70447',jdecode('Extension+y+Vinculaci%C3%B3n'),jdecode(''),'/70447.html','true',[],'',''],
	['PAGE','18873',jdecode('Diplomados'),jdecode(''),'/18873.html','true',[],'',''],
	['PAGE','70474',jdecode('COSUTH+dia+a+dia'),jdecode(''),'/70474.html','true',[],'',''],
	['PAGE','70483',jdecode('Bolsa+de+Trabajo'),jdecode(''),'/70483.html','true',[],'',''],
	['PAGE','18538',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/18538.html','true',[],'',''],
	['PAGE','81723',jdecode('Platicas+Sabatinas'),jdecode(''),'/81723/index.html','true',[ 
		['PAGE','59655',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/81723/59655.html','false',[],'','']
	],'',''],
	['PAGE','78623',jdecode('D%C3%B3nde+encontrarnos'),jdecode(''),'/78623.html','true',[],'',''],
	['PAGE','88723',jdecode('Noticias'),jdecode(''),'/88723.html','true',[],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Natural';
theSitetree.paletteFamily='666699';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='154';
theSitetree.graphicsetId='168';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FCFCF4';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Natural',
				paletteFamily: 	'666699',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'154',
				graphicsetId: 	'168',
				contentColor: 	'000000',
				contentBGColor: 'FCFCF4',
				a_color: 		'666699',
				b_color: 		'91A5C1',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4584',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-44971']={
webappId:    '1501',
documentId:  '4584',
internalId:  '44971',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88723',
internalId:  '',
customField: '20100805-093818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78623',
internalId:  '',
customField: '20090703-083850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81723',
internalId:  '',
customField: '20100823-180329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4584',
internalId:  '',
customField: '20100823-180138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70429',
internalId:  '',
customField: '20100707-105843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18403',
internalId:  '',
customField: '20100707-105936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18430',
internalId:  '',
customField: '20100707-110009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18457',
internalId:  '',
customField: '20100707-110048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18484',
internalId:  '',
customField: '20100707-110117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70814',
internalId:  '',
customField: '20100707-110259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70447',
internalId:  '',
customField: '20070816-120841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18873',
internalId:  '',
customField: '20090123-134733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70474',
internalId:  '',
customField: '20090120-120418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70483',
internalId:  '',
customField: '20090120-123213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18538',
internalId:  '',
customField: '20090123-154117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59655',
internalId:  '',
customField: '20060130-130842'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INXXMI';
var companyName   = '26+Aniversario+del+Instituto+Cesar+Ritz';
var htmlTitle	  = 'EXCELENCIA+EDUCATIVA+GASTRONOMIA-TURISMO-+HOTELERIA';
var metaKeywords  = 'www.cosuth.com.mx+Gastronomia+Licenciatura+en+Turismo+Licenciatura+en+Gastronomia+Bachillerato++Bachillerato+en+turismo++Clases+de+gastronomia+diplomado+diplomados+gastronomicos+cosuth++gastronomia++turismo+prepa+administracion+de+empresas+turisticas++chef+hoteleria+cocina+cursos+diplomados+universidad+gastronomia+escuela+gastronomia+restaurante+hospedaje+hosteleria+hoteleria+alimentacion+gourmet+banquetes+';
var metaContents  = 'www.cosuth.com.mx+Gastronomia+Licenciatura+en+Turismo+Licenciatura+en+Gastronomia+Bachillerato++Bachillerato+en+turismo++Clases+de+gastronomia+diplomado+diplomados+gastronomicos+cosuth++gastronomia++turismo+prepa+administracion+de+empresas+turisticas++chef+hoteleria+cocina+cursos+diplomados+universidad+gastronomia+escuela+gastronomia+restaurante+hospedaje+hosteleria+hoteleria+alimentacion+gourmet+banquetes';
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();
};
