/* [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','4555',jdecode('Home'),jdecode(''),'/4555.html','true',[],'',''],
	['PAGE','4612',jdecode('Quienes+Somos%3F'),jdecode(''),'/4612.html','true',[],'',''],
	['PAGE','4666',jdecode('Rinc%C3%B3n+Real+C.'),jdecode(''),'/4666/index.html','true',[ 
		['PAGE','110801',jdecode('Paquetes'),jdecode(''),'/4666/110801.html','true',[],'',''],
		['PAGE','145366',jdecode('Paquetes+Plus'),jdecode(''),'/4666/145366.html','true',[],'',''],
		['PAGE','111601',jdecode('Contacto'),jdecode(''),'/4666/111601.html','true',[],'','']
	],'',''],
	['PAGE','141166',jdecode('Nuestro+Sal%C3%B3n'),jdecode(''),'/141166.html','true',[],'',''],
	['PAGE','42275',jdecode('Lugares'),jdecode(''),'/42275/index.html','true',[ 
		['PAGE','142566',jdecode('Paquetes+externos'),jdecode(''),'/42275/142566.html','true',[],'',''],
		['PAGE','116101',jdecode('Jard%C3%ADn+Azteca'),jdecode(''),'/42275/116101.html','true',[],'',''],
		['PAGE','116122',jdecode('Jard%C3%ADn+Cracovia'),jdecode(''),'/42275/116122.html','true',[],'',''],
		['PAGE','116143',jdecode('Jardin+Cantera'),jdecode(''),'/42275/116143.html','true',[],'',''],
		['PAGE','116164',jdecode('Principal+Club+Japon%C3%A9s'),jdecode(''),'/42275/116164.html','true',[],'',''],
		['PAGE','116185',jdecode('Contem.+C.Japon%C3%A9s'),jdecode(''),'/42275/116185.html','true',[],'',''],
		['PAGE','116206',jdecode('Chico+Club+Japon%C3%A9s'),jdecode(''),'/42275/116206.html','true',[],'',''],
		['PAGE','124087',jdecode('Hda+del+R%C3%ADo'),jdecode(''),'/42275/124087.html','true',[],'',''],
		['PAGE','124108',jdecode('Desierto'),jdecode(''),'/42275/124108.html','true',[],'','']
	],'',''],
	['PAGE','4693',jdecode('Museos+y+Salones'),jdecode(''),'/4693/index.html','true',[ 
		['PAGE','116227',jdecode('Jos%C3%A9+Luis+Cuevas'),jdecode(''),'/4693/116227.html','true',[],'',''],
		['PAGE','116248',jdecode('Exconvento+de+Regina'),jdecode(''),'/4693/116248.html','true',[],'',''],
		['PAGE','116269',jdecode('San+Hipolito'),jdecode(''),'/4693/116269.html','true',[],'',''],
		['PAGE','124150',jdecode('Club+de+Period%C3%ADstas'),jdecode(''),'/4693/124150.html','true',[],'',''],
		['PAGE','132666',jdecode('Bar+San+Jacinto'),jdecode(''),'/4693/132666.html','true',[],'',''],
		['PAGE','132687',jdecode('Polyforum+Siqueiros'),jdecode(''),'/4693/132687.html','true',[],'','']
	],'',''],
	['PAGE','42663',jdecode('Jardines+Morelos'),jdecode(''),'/42663/index.html','true',[ 
		['PAGE','116290',jdecode('Partenon'),jdecode(''),'/42663/116290.html','true',[],'',''],
		['PAGE','116311',jdecode('Las+Velas'),jdecode(''),'/42663/116311.html','true',[],'',''],
		['PAGE','116332',jdecode('Gallaecia'),jdecode(''),'/42663/116332.html','true',[],'',''],
		['PAGE','116353',jdecode('La+Estancia'),jdecode(''),'/42663/116353.html','true',[],'',''],
		['PAGE','124171',jdecode('Hda.+de+Temixco'),jdecode(''),'/42663/124171.html','true',[],'',''],
		['PAGE','124192',jdecode('Los+Naranjos'),jdecode(''),'/42663/124192.html','true',[],'',''],
		['PAGE','124213',jdecode('Jard%C3%ADn+de+Cort%C3%A9s'),jdecode(''),'/42663/124213.html','true',[],'',''],
		['PAGE','124234',jdecode('Rinc%C3%B3n+Dorado'),jdecode(''),'/42663/124234.html','true',[],'','']
	],'',''],
	['PAGE','141217',jdecode('Serv.+Extras'),jdecode(''),'/141217.html','true',[],'',''],
	['PAGE','4801',jdecode('Nuestros+Logros'),jdecode(''),'/4801.html','true',[],'',''],
	['PAGE','4828',jdecode('Ubicacion'),jdecode(''),'/4828/index.html','true',[ 
		['PAGE','4855',jdecode('Haz+en+contacto'),jdecode(''),'/4828/4855.html','true',[],'',''],
		['PAGE','15682',jdecode('Formas+de+Pago'),jdecode(''),'/4828/15682.html','true',[],'','']
	],'',''],
	['PAGE','141238',jdecode('Plan+de+Franquicias'),jdecode(''),'/141238.html','true',[],'','']];
var siteelementCount=39;
theSitetree.topTemplateName='Daily';
theSitetree.paletteFamily='D0D3D4';
theSitetree.keyvisualId='7287';
theSitetree.keyvisualName='kv_7287.jpg';
theSitetree.fontsetId='16461';
theSitetree.graphicsetId='12154';
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: 			'Daily',
				paletteFamily: 	'D0D3D4',
				keyvisualId: 	'7287',
				keyvisualName: 	'kv_7287.jpg',
				fontsetId: 		'16461',
				graphicsetId: 	'12154',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				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['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '141166',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141166',
internalId:  '',
customField: '20100719-172512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4555',
internalId:  '',
customField: '20100818-121047'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '141166',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4693',
internalId:  '',
customField: '20091124-213127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4612',
internalId:  '',
customField: '20090315-160116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4666',
internalId:  '',
customField: '20100602-173021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42275',
internalId:  '',
customField: '20100602-201220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42663',
internalId:  '',
customField: '20090325-121127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111601',
internalId:  '',
customField: '20100818-123601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20090315-225747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4828',
internalId:  '',
customField: '20100818-121924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4855',
internalId:  '',
customField: '20100721-200010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15682',
internalId:  '',
customField: '20090220-224143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110801',
internalId:  '',
customField: '20100603-113144'
};
webappMappings['7008']=webappMappings['7008-5467']={
webappId:    '7008',
documentId:  '111601',
internalId:  '5467',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141238',
internalId:  '',
customField: '20100602-170944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142566',
internalId:  '',
customField: '20100602-201133'
};
webappMappings['1501']=webappMappings['1501-69684']={
webappId:    '1501',
documentId:  '141166',
internalId:  '69684',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145366',
internalId:  '',
customField: '20100818-183104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141217',
internalId:  '',
customField: '20100818-123428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116101',
internalId:  '',
customField: '20090316-203909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116122',
internalId:  '',
customField: '20090316-203649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116143',
internalId:  '',
customField: '20090316-204801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116164',
internalId:  '',
customField: '20090317-105348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116185',
internalId:  '',
customField: '20090317-105914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116206',
internalId:  '',
customField: '20090317-110427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116227',
internalId:  '',
customField: '20090317-111656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116248',
internalId:  '',
customField: '20090317-113328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116269',
internalId:  '',
customField: '20090317-115225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116290',
internalId:  '',
customField: '20090317-120422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116311',
internalId:  '',
customField: '20090317-123110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116332',
internalId:  '',
customField: '20090324-215020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116353',
internalId:  '',
customField: '20090325-094532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124087',
internalId:  '',
customField: '20090325-100857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124108',
internalId:  '',
customField: '20090325-101637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132666',
internalId:  '',
customField: '20091124-223540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124150',
internalId:  '',
customField: '20090325-103227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124171',
internalId:  '',
customField: '20090325-104431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124192',
internalId:  '',
customField: '20090325-113313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124213',
internalId:  '',
customField: '20090325-114810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124234',
internalId:  '',
customField: '20090325-120449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132687',
internalId:  '',
customField: '20091124-225232'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INXXJW';
var companyName   = 'RINCON+REAL+COYOACAN';
var htmlTitle	  = 'RINCON+REAL+COYOACAN';
var metaKeywords  = 'boda%2C+fiestas%2C+xv+a%C3%B1os%2C+cumplea%C3%B1os%2C+conferencia%2C+jardines%2C+lounge%2C+mesas%2C+sillas%2C+renta+de+sal%C3%B3n%2C+sal%C3%B3n+de+fiestas%2C+sal%C3%B3n+para+cumplea%C3%B1os%2C+formal%2C+bodas%2C+jardines%2C+museos%2C+morelos%2Ccomida%2C+canapes+';
var metaContents  = 'Informaci%C3%B3n+de+Banquetes+y+eventos+sociales';
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();
};
