/* [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','4556',jdecode('INICIO'),jdecode(''),'/4556.html','true',[],'',''],
	['PAGE','42312',jdecode('VENUS'),jdecode(''),'/42312.html','true',[],'',''],
	['PAGE','136910',jdecode('HISTORIA'),jdecode(''),'/136910.html','true',[],'',''],
	['PAGE','42339',jdecode('NUESTRO+EQUIPO'),jdecode(''),'/42339.html','true',[],'',''],
	['PAGE','42366',jdecode('CURRICULUM'),jdecode(''),'/42366.html','true',[],'',''],
	['PAGE','42393',jdecode('SERVICIOS'),jdecode(''),'/42393.html','true',[],'',''],
	['PAGE','6821',jdecode('MODELOS'),jdecode(''),'/6821/index.html','true',[ 
		['PAGE','157279',jdecode('Mexico'),jdecode(''),'/6821/157279.html','true',[],'',''],
		['PAGE','157288',jdecode('Monterrey'),jdecode(''),'/6821/157288.html','true',[],'',''],
		['PAGE','157297',jdecode('Guadalajara'),jdecode(''),'/6821/157297.html','true',[],'',''],
		['PAGE','157306',jdecode('Tijuana'),jdecode(''),'/6821/157306.html','true',[],'','']
	],'',''],
	['PAGE','42420',jdecode('EDECANES+Y+GIOS'),jdecode(''),'/42420/index.html','true',[ 
		['PAGE','52318',jdecode('Monterrey'),jdecode(''),'/42420/52318.html','true',[],'',''],
		['PAGE','58512',jdecode('Guadalajara'),jdecode(''),'/42420/58512.html','true',[],'',''],
		['PAGE','56181',jdecode('Puebla'),jdecode(''),'/42420/56181.html','true',[],'',''],
		['PAGE','131410',jdecode('Veracruz'),jdecode(''),'/42420/131410.html','true',[],'',''],
		['PAGE','60112',jdecode('Leon+'),jdecode(''),'/42420/60112.html','true',[],'',''],
		['PAGE','139410',jdecode('Acapulco'),jdecode(''),'/42420/139410.html','true',[],'',''],
		['PAGE','111310',jdecode('Aguascalientes'),jdecode(''),'/42420/111310.html','true',[],'',''],
		['PAGE','133110',jdecode('Cd.+del+Carmen'),jdecode(''),'/42420/133110.html','true',[],'',''],
		['PAGE','63010',jdecode('Canc%C3%BAn'),jdecode(''),'/42420/63010.html','true',[],'',''],
		['PAGE','111337',jdecode('Celaya'),jdecode(''),'/42420/111337.html','true',[],'',''],
		['PAGE','137310',jdecode('Chihuahua'),jdecode(''),'/42420/137310.html','true',[],'',''],
		['PAGE','147310',jdecode('Coatzacoalcos'),jdecode(''),'/42420/147310.html','true',[],'',''],
		['PAGE','147364',jdecode('Cordoba'),jdecode(''),'/42420/147364.html','true',[],'',''],
		['PAGE','158706',jdecode('Cuernavaca'),jdecode(''),'/42420/158706.html','true',[],'',''],
		['PAGE','158251',jdecode('Durango'),jdecode(''),'/42420/158251.html','true',[],'',''],
		['PAGE','145610',jdecode('Los+Mochis'),jdecode(''),'/42420/145610.html','true',[],'',''],
		['PAGE','102410',jdecode('Merida'),jdecode(''),'/42420/102410.html','true',[],'',''],
		['PAGE','147418',jdecode('Mexico'),jdecode(''),'/42420/147418.html','true',[],'',''],
		['PAGE','113310',jdecode('Morelia+++++++++++++++++++++++++++++++++++++'),jdecode(''),'/42420/113310.html','true',[],'',''],
		['PAGE','147391',jdecode('Poza+Rica'),jdecode(''),'/42420/147391.html','true',[],'',''],
		['PAGE','138810',jdecode('Puerto+Vallarta'),jdecode(''),'/42420/138810.html','true',[],'',''],
		['PAGE','107910',jdecode('Queretaro'),jdecode(''),'/42420/107910.html','true',[],'',''],
		['PAGE','128410',jdecode('San+Luis+Potosi'),jdecode(''),'/42420/128410.html','true',[],'',''],
		['PAGE','105310',jdecode('Tijuana+y+Mexicali'),jdecode(''),'/42420/105310.html','true',[],'',''],
		['PAGE','112510',jdecode('Toluca'),jdecode(''),'/42420/112510.html','true',[],'',''],
		['PAGE','158260',jdecode('Zacatecas'),jdecode(''),'/42420/158260.html','true',[],'','']
	],'',''],
	['PAGE','42447',jdecode('FIESTAS+TEMA'),jdecode(''),'/42447.html','true',[],'',''],
	['PAGE','160173',jdecode('RENTA+DE+EQUIPO'),jdecode(''),'/160173.html','true',[],'',''],
	['PAGE','158595',jdecode('ARREGLOS'),jdecode(''),'/158595/index.html','true',[ 
		['PAGE','158604',jdecode('Graduaciones'),jdecode(''),'/158595/158604.html','true',[],'',''],
		['PAGE','158613',jdecode('Bodas+y+15+a%C3%B1os'),jdecode(''),'/158595/158613.html','true',[],'',''],
		['PAGE','158622',jdecode('Simposium+y+Conferencia'),jdecode(''),'/158595/158622.html','true',[],'','']
	],'',''],
	['PAGE','157315',jdecode('PUBLICIDAD'),jdecode(''),'/157315/index.html','true',[ 
		['PAGE','157333',jdecode('Botargas'),jdecode(''),'/157315/157333.html','true',[],'',''],
		['PAGE','157342',jdecode('Infantiles'),jdecode(''),'/157315/157342.html','true',[],'',''],
		['PAGE','157713',jdecode('Mimos'),jdecode(''),'/157315/157713.html','true',[],'',''],
		['PAGE','157722',jdecode('Zanqueros'),jdecode(''),'/157315/157722.html','true',[],'',''],
		['PAGE','157351',jdecode('Eleva+tus+Ventas'),jdecode(''),'/157315/157351.html','true',[],'','']
	],'',''],
	['PAGE','42474',jdecode('CONTACTANOS'),jdecode(''),'/42474/index.html','true',[ 
		['PAGE','63617',jdecode('CONTACTANOS+%28follow+up+page%29'),jdecode(''),'/42474/63617.html','true',[],'','']
	],'','']];
var siteelementCount=52;
theSitetree.topTemplateName='Elegant';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='32899';
theSitetree.graphicsetId='13971';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Elegant',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'32899',
				graphicsetId: 	'13971',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-78336']={
webappId:    '1501',
documentId:  '4556',
internalId:  '78336',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4556',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-16261']={
webappId:    '7008',
documentId:  '42474',
internalId:  '16261',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4556',
internalId:  '',
customField: '20090217-204903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42312',
internalId:  '',
customField: '20090122-212239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136910',
internalId:  '',
customField: '20100413-160138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42339',
internalId:  '',
customField: '20100413-160706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42366',
internalId:  '',
customField: '20100413-155802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42393',
internalId:  '',
customField: '20071210-172538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6821',
internalId:  '',
customField: '20090218-154442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157279',
internalId:  '',
customField: '20071210-121229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157288',
internalId:  '',
customField: '20070517-144930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157297',
internalId:  '',
customField: '20071210-205037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157306',
internalId:  '',
customField: '20070517-145326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42420',
internalId:  '',
customField: '20060303-151844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139410',
internalId:  '',
customField: '20070519-172250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111310',
internalId:  '',
customField: '20070519-180227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133110',
internalId:  '',
customField: '20050825-173622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63010',
internalId:  '',
customField: '20050321-181428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111337',
internalId:  '',
customField: '20050406-000029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137310',
internalId:  '',
customField: '20051111-105148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147310',
internalId:  '',
customField: '20060514-214542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147364',
internalId:  '',
customField: '20060515-004626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158706',
internalId:  '',
customField: '20070525-145251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158251',
internalId:  '',
customField: '20070524-195442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58512',
internalId:  '',
customField: '20071210-204435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60112',
internalId:  '',
customField: '20050404-162015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145610',
internalId:  '',
customField: '20060328-161534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102410',
internalId:  '',
customField: '20050404-163152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147418',
internalId:  '',
customField: '20070524-181146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113310',
internalId:  '',
customField: '20050409-151830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52318',
internalId:  '',
customField: '20090219-173140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147391',
internalId:  '',
customField: '20060514-204911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56181',
internalId:  '',
customField: '20070528-190257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138810',
internalId:  '',
customField: '20051111-110343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107910',
internalId:  '',
customField: '20051206-143448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128410',
internalId:  '',
customField: '20050808-181410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105310',
internalId:  '',
customField: '20050404-211628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112510',
internalId:  '',
customField: '20050527-165943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131410',
internalId:  '',
customField: '20090302-141354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158260',
internalId:  '',
customField: '20070524-192939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42447',
internalId:  '',
customField: '20060328-193625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160173',
internalId:  '',
customField: '20071210-175009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158595',
internalId:  '',
customField: '20070525-124957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158604',
internalId:  '',
customField: '20070525-185636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158613',
internalId:  '',
customField: '20070526-133309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158622',
internalId:  '',
customField: '20070529-162046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157315',
internalId:  '',
customField: '20071210-182006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157333',
internalId:  '',
customField: '20071210-181717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157342',
internalId:  '',
customField: '20071210-182857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157713',
internalId:  '',
customField: '20071210-183207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157722',
internalId:  '',
customField: '20070519-193342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157351',
internalId:  '',
customField: '20070526-144402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42474',
internalId:  '',
customField: '20050517-212820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63617',
internalId:  '',
customField: '20090317-210452'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INXXBU';
var companyName   = '';
var htmlTitle	  = 'Modelos+y+Edecanes';
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();
};

