/* [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','401',jdecode('Home'),jdecode(''), jdecode('%2F401.html'), 'true',[],'',''],
	['PAGE','6401',jdecode('Presentacion'),jdecode(''), jdecode('%2F6401%2Findex.html'), 'true',[ 
		['PAGE','6422',jdecode('Servicio+a+Domicilio'),jdecode(''), jdecode('%2F6401%2F6422.html'), 'true',[],'','']
	],'',''],
	['PAGE','6443',jdecode('Menu+Fiesta+Mexicana'),jdecode(''), jdecode('%2F6443%2Findex.html'), 'true',[ 
		['PAGE','40801',jdecode('Nuestra+Carta+Men%C3%BA'),jdecode(''), jdecode('%2F6443%2F40801.html'), 'true',[],'',''],
		['PAGE','6569',jdecode('Menu+Mexicano+%28Tiempos%29'),jdecode(''), jdecode('%2F6443%2F6569.html'), 'true',[],'',''],
		['PAGE','6485',jdecode('Entremes'),jdecode(''), jdecode('%2F6443%2F6485.html'), 'true',[],'',''],
		['PAGE','6506',jdecode('Bebidas'),jdecode(''), jdecode('%2F6443%2F6506.html'), 'true',[],'',''],
		['PAGE','6527',jdecode('Postres'),jdecode(''), jdecode('%2F6443%2F6527.html'), 'true',[],'',''],
		['PAGE','6548',jdecode('Charolas+de+Bocadillos+Mexicanos'),jdecode(''), jdecode('%2F6443%2F6548.html'), 'true',[],'',''],
		['PAGE','6590',jdecode('Desayuno+Brunch+Mexicano'),jdecode(''), jdecode('%2F6443%2F6590.html'), 'true',[],'',''],
		['PAGE','6611',jdecode('Coffe+Break'),jdecode(''), jdecode('%2F6443%2F6611.html'), 'true',[],'',''],
		['PAGE','6632',jdecode('Box+Lunch'),jdecode(''), jdecode('%2F6443%2F6632.html'), 'true',[],'',''],
		['PAGE','6653',jdecode('Puestos+Tipo+Kermess'),jdecode(''), jdecode('%2F6443%2F6653.html'), 'true',[],'',''],
		['PAGE','6674',jdecode('Combinaciones+y+Sugerencias'),jdecode(''), jdecode('%2F6443%2F6674.html'), 'true',[],'',''],
		['PAGE','6695',jdecode('Mezcladores'),jdecode(''), jdecode('%2F6443%2F6695.html'), 'true',[],'',''],
		['PAGE','6716',jdecode('Servicio'),jdecode(''), jdecode('%2F6443%2F6716.html'), 'true',[],'','']
	],'',''],
	['PAGE','6737',jdecode('Nuestros+Montajes'),jdecode(''), jdecode('%2F6737%2Findex.html'), 'true',[ 
		['PAGE','6758',jdecode('Basico'),jdecode(''), jdecode('%2F6737%2F6758.html'), 'true',[],'',''],
		['PAGE','6779',jdecode('Basico+Ideal'),jdecode(''), jdecode('%2F6737%2F6779.html'), 'true',[],'',''],
		['PAGE','6800',jdecode('Ideal'),jdecode(''), jdecode('%2F6737%2F6800.html'), 'true',[],'',''],
		['PAGE','6821',jdecode('Rustico+Mexicano'),jdecode(''), jdecode('%2F6737%2F6821.html'), 'true',[],'',''],
		['PAGE','6842',jdecode('Mexicano'),jdecode(''), jdecode('%2F6737%2F6842.html'), 'true',[],'',''],
		['PAGE','6863',jdecode('Gala+Mexicano'),jdecode(''), jdecode('%2F6737%2F6863.html'), 'true',[],'',''],
		['PAGE','6884',jdecode('Colonial+Mexicano'),jdecode(''), jdecode('%2F6737%2F6884.html'), 'true',[],'',''],
		['PAGE','6905',jdecode('Cocktail+1'),jdecode(''), jdecode('%2F6737%2F6905.html'), 'true',[],'',''],
		['PAGE','6926',jdecode('Cocktail+2'),jdecode(''), jdecode('%2F6737%2F6926.html'), 'true',[],'',''],
		['PAGE','6947',jdecode('Lounoe'),jdecode(''), jdecode('%2F6737%2F6947.html'), 'true',[],'',''],
		['PAGE','6968',jdecode('Extras'),jdecode(''), jdecode('%2F6737%2F6968.html'), 'true',[],'','']
	],'',''],
	['PAGE','6989',jdecode('Servicios+Adicionales+a+su+Evento'),jdecode(''), jdecode('%2F6989%2Findex.html'), 'true',[ 
		['PAGE','7010',jdecode('Atracciones+Tipicas'),jdecode(''), jdecode('%2F6989%2F7010.html'), 'true',[],'',''],
		['PAGE','7031',jdecode('Musica+y+Audiovisual'),jdecode(''), jdecode('%2F6989%2F7031.html'), 'true',[],'',''],
		['PAGE','7052',jdecode('Alquiler+de+Equipo+Extra'),jdecode(''), jdecode('%2F6989%2F7052.html'), 'true',[],'',''],
		['PAGE','7073',jdecode('Decoracion'),jdecode(''), jdecode('%2F6989%2F7073.html'), 'true',[],'',''],
		['PAGE','7094',jdecode('Feria+Mexicana'),jdecode(''), jdecode('%2F6989%2F7094.html'), 'true',[],'','']
	],'',''],
	['PAGE','7115',jdecode('Lugares+para+Eventos'),jdecode(''), jdecode('%2F7115.html'), 'true',[],'',''],
	['PAGE','7136',jdecode('Fiesta+Kids'),jdecode(''), jdecode('%2F7136.html'), 'true',[],'',''],
	['PAGE','7157',jdecode('Vip+Eventos'),jdecode(''), jdecode('%2F7157.html'), 'true',[],'',''],
	['PAGE','7178',jdecode('Boda+Mexicana'),jdecode(''), jdecode('%2F7178.html'), 'true',[],'',''],
	['PAGE','7199',jdecode('Cotizaciones'),jdecode(''), jdecode('%2F7199%2Findex.html'), 'true',[ 
		['PAGE','32401',jdecode('Ejecutivo'),jdecode(''), jdecode('%2F7199%2F32401.html'), 'true',[],'','']
	],'',''],
	['PAGE','7220',jdecode('Contactenos'),jdecode(''), jdecode('%2F7220.html'), 'true',[],'',''],
	['PAGE','7241',jdecode('Algunos+Eventos'),jdecode(''), jdecode('%2F7241.html'), 'true',[],'',''],
	['PAGE','7262',jdecode('Receta+del+Mes'),jdecode(''), jdecode('%2F7262.html'), 'true',[],'',''],
	['PAGE','7283',jdecode('Links+que+Recomendamos'),jdecode(''), jdecode('%2F7283.html'), 'true',[],'',''],
	['PAGE','8006',jdecode('Libro+de+visitas'),jdecode(''), jdecode('%2F8006.html'), 'false',[],'',''],
	['PAGE','8001',jdecode('Leer+el+libro+de+Visitas'),jdecode(''), jdecode('%2F8001.html'), 'false',[],'','']];
var siteelementCount=47;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='FFD375';
theSitetree.keyvisualId='1990';
theSitetree.keyvisualName='strand.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='385';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'grp13-hostin',
  product: 'WSCSYSSSSLY0XJEZ'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stylus',
				paletteFamily: 	'FFD375',
				keyvisualId: 	'1990',
				keyvisualName: 	'strand.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'385',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFD375',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-8006avec10inxsfy']={
webappId:    '1002',
documentId:  '8006',
internalId:  '8006avec10inxsfy',
customField: 'icq=false'
};
webappMappings['1501']=webappMappings['1501-389913']={
webappId:    '1501',
documentId:  '401',
internalId:  '389913',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-2264']={
webappId:    '7008',
documentId:  '7199',
internalId:  '2264',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-2265']={
webappId:    '7008',
documentId:  '32401',
internalId:  '2265',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-2266']={
webappId:    '7008',
documentId:  '7262',
internalId:  '2266',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20060921-172135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6401',
internalId:  '',
customField: '20090202-152024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6422',
internalId:  '',
customField: '20090207-170930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6443',
internalId:  '',
customField: '20090207-151124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40801',
internalId:  '',
customField: '20090210-181635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6485',
internalId:  '',
customField: '20090210-182231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6506',
internalId:  '',
customField: '20090210-183704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6527',
internalId:  '',
customField: '20090210-183428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6548',
internalId:  '',
customField: '20090210-192106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6569',
internalId:  '',
customField: '20060912-102527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6590',
internalId:  '',
customField: '20090210-191826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6611',
internalId:  '',
customField: '20060912-103035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6632',
internalId:  '',
customField: '20060912-103311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6653',
internalId:  '',
customField: '20060912-103605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6674',
internalId:  '',
customField: '20060912-104213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6695',
internalId:  '',
customField: '20060912-104317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6716',
internalId:  '',
customField: '20060912-104411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6737',
internalId:  '',
customField: '20090209-142408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6758',
internalId:  '',
customField: '20060912-105207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6779',
internalId:  '',
customField: '20060912-110350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6800',
internalId:  '',
customField: '20060912-113947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6821',
internalId:  '',
customField: '20090209-142929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6842',
internalId:  '',
customField: '20060912-115304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6863',
internalId:  '',
customField: '20060912-124513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6884',
internalId:  '',
customField: '20060912-125620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6905',
internalId:  '',
customField: '20060912-130322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6926',
internalId:  '',
customField: '20060912-130537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6947',
internalId:  '',
customField: '20060912-131033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6968',
internalId:  '',
customField: '20060912-132903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6989',
internalId:  '',
customField: '20060913-091017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7010',
internalId:  '',
customField: '20090202-153330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7031',
internalId:  '',
customField: '20060912-152938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7052',
internalId:  '',
customField: '20060912-160827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7073',
internalId:  '',
customField: '20060912-161548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7094',
internalId:  '',
customField: '20060912-165233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7115',
internalId:  '',
customField: '20090130-171433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7136',
internalId:  '',
customField: '20090130-174042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7157',
internalId:  '',
customField: '20090130-173914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7178',
internalId:  '',
customField: '20090209-194436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7199',
internalId:  '',
customField: '20060913-085220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32401',
internalId:  '',
customField: '20060913-085416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7220',
internalId:  '',
customField: '20110425-020928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7241',
internalId:  '',
customField: '20110425-205858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7262',
internalId:  '',
customField: '20090211-124734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7283',
internalId:  '',
customField: '20090130-182449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8006',
internalId:  '',
customField: '20060911-151608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20060911-151608'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INXSFY';
var companyName   = 'Eventos+Tipicos+Fiesta+Mexicana';
var htmlTitle	  = '%3A%3A%3A%3A%3A%3A%3A+FIESTA+MEXICANA+%3A%3A%3A%3A%3A%3A%3A%3A';
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();
};

