/* [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','4598',jdecode('%C2%BFQUIENES+SOMOS%3F'),jdecode(''), jdecode('%2F4598.html'), 'true',[],'',''],
	['PAGE','18803',jdecode('CERTIFICADOS+Y+PROM.'),jdecode(''), jdecode('%2F18803.html'), 'true',[],'',''],
	['PAGE','119866',jdecode('PAQUETES%2FESTRES%2FNOV'),jdecode(''), jdecode('%2F119866.html'), 'true',[],'',''],
	['PAGE','16503',jdecode('SERVICIOS+Y+PRECIOS'),jdecode(''), jdecode('%2F16503.html'), 'true',[],'',''],
	['PAGE','4709',jdecode('UBICACION+Y+CONTACTO'),jdecode(''), jdecode('%2F4709.html'), 'true',[],'',''],
	['PAGE','62301',jdecode('MASAJES'),jdecode(''), jdecode('%2F62301.html'), 'true',[],'',''],
	['PAGE','52201',jdecode('FACIALES'),jdecode(''), jdecode('%2F52201.html'), 'true',[],'',''],
	['PAGE','6230',jdecode('TEMAZCAL+'),jdecode(''), jdecode('%2F6230.html'), 'true',[],'',''],
	['PAGE','197341',jdecode('CORPORALES'),jdecode(''), jdecode('%2F197341.html'), 'true',[],'',''],
	['PAGE','154683',jdecode('BIOFEEDBACK'),jdecode(''), jdecode('%2F154683.html'), 'true',[],'',''],
	['PAGE','6284',jdecode('DISE%C3%91O+DE+IMAGEN+'),jdecode(''), jdecode('%2F6284.html'), 'true',[],'',''],
	['PAGE','31534',jdecode('U%C3%91AS'),jdecode(''), jdecode('%2F31534.html'), 'true',[],'',''],
	['PAGE','31744',jdecode('DEPILACION'),jdecode(''), jdecode('%2F31744.html'), 'true',[],'',''],
	['PAGE','4682',jdecode('INSTALACIONES'),jdecode(''), jdecode('%2F4682.html'), 'true',[],'',''],
	['PAGE','56901',jdecode('VIDEOS+DE+SERVICIOS+E+INST.'),jdecode(''), jdecode('%2F56901.html'), 'true',[],'','']];
var siteelementCount=15;
theSitetree.topTemplateName='Fields';
theSitetree.paletteFamily='0D0D0D';
theSitetree.keyvisualId='11286';
theSitetree.keyvisualName='kv_11286.jpg';
theSitetree.fontsetId='31968';
theSitetree.graphicsetId='13806';
theSitetree.contentColor='82BDD5';
theSitetree.contentBGColor='0D0D0D';
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: 			'Fields',
				paletteFamily: 	'0D0D0D',
				keyvisualId: 	'11286',
				keyvisualName: 	'kv_11286.jpg',
				fontsetId: 		'31968',
				graphicsetId: 	'13806',
				contentColor: 	'82BDD5',
				contentBGColor: '0D0D0D',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-116581']={
webappId:    '1501',
documentId:  '4598',
internalId:  '116581',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18803',
internalId:  '',
customField: '20111117-164712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20111124-110722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16503',
internalId:  '',
customField: '20100102-160045'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '197341',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6230',
internalId:  '',
customField: '20100530-140520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62301',
internalId:  '',
customField: '20091029-153809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154683',
internalId:  '',
customField: '20100415-172802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52201',
internalId:  '',
customField: '20110424-112441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6284',
internalId:  '',
customField: '20100415-162903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31534',
internalId:  '',
customField: '20110424-104208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31744',
internalId:  '',
customField: '20100126-130137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4682',
internalId:  '',
customField: '20090908-000258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4709',
internalId:  '',
customField: '20110803-231104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56901',
internalId:  '',
customField: '20100423-012058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119866',
internalId:  '',
customField: '20110426-225853'
};
webappMappings['7008']=webappMappings['7008-6757']={
webappId:    '7008',
documentId:  '4709',
internalId:  '6757',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '56901',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '4709',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197341',
internalId:  '',
customField: '20110427-223453'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '4682',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '31744',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '31534',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '6284',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '52201',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '62301',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '154683',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '6230',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '16503',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '119866',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '18803',
internalId:  '',
customField: 'language:es;country:ES;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '4598',
internalId:  '',
customField: 'language:es;country:ES;'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INX2FW';
var companyName   = 'ACCUA+SPA+Centro+de+Relajacion+y+Belleza';
var htmlTitle	  = 'accua+spa+centro++relajaci%C3%B3n+y+belleza';
var metaKeywords  = 'meta+name%3Dverify-v1+content%3D0sslWENAM1Q%2B2P46KIpsfQRSYWWua9F3Cy7sxW3sGEs%3D+%2FACCUASPA%2C+promocion+spa%2C+%2Cspa%2C+spa+mexico%2C+spa+d..f.%2Cday+spa%2Cspa+estetica%2C+spa++d%C3%ADa%2C+spa+medico%2C+spa+ciudad++mexico%2C+spa+urbano%2C+centro++relajaci%C3%B3n++belleza%2C+certificados+regalo%2C+certificados+regalo+internet++regalo+novias%2Cregalo+damas%2Cregalo+caballeros%2C+masajes%2C+masajes+relajantes%2C+masajes++piedras+calientes%2C+masaje+ayurveda%2C++masaje+a+cuatro+manos+%2C+shiatsu%2C+drenaje+linf%C3%A1tico%2C+masaje+desintoxicante%2C+reiki%2Cterapias+relajantes%2C+terapias+antiestr%C3%A9s+%2C+masaje+sueco%2C+reflexolog%C3%ADa%2C+masaje+holistico%2C+%2C+paquetes+spa%2C+sauna%2C+hidroterapia+relajante%2C+hidroterapia+tonificante%2C+medicina+cuantica%2C+biofeedback%2C+c%C3%A9lulas%2C+scio%2C+diagnostico++estr%C3%A9s%2C+an%C3%A1lisis+estr%C3%A9s%2C+manejo+estr%C3%A9s%2C+%2Ctratamientos+faciales%2C+acne%2C+ros%C3%A1cea%2C+hiperpigmentacion%2C++lifting+facial%2C++reafirmante%2C+facial+reafirmante%2C++microdermoabrasi%C3%B3n%2C+arrugas%2C+eliminaci%C3%B3n+arrugas%2C+rejuvenecimiento+facial%2C+limpieza+facial%2C+++tratamiento+antiarrugas%2C+levantamiento+facial%2C+reactivaci%C3%B3n+celular+facial%2C+estimulaci%C3%B3n+celular+facial%2C+reactivaci%C3%B3n+celular%2C+estimulaci%C3%B3n+celular%2C+hidrataci%C3%B3n+facial%2C+piel+seca%2C++piel+grasa%2C++mesoterapia%2C+implantes%2C+botox%2C+moldeado+corporal%2C+control+de+peso%2C+tratamientos+reafirmantes%2C+tratamientos+reductivos%2C+reducci%C3%B3n+de+talla%2C++reafirmaci%C3%B3n++tejido%2C+reduce+talla%2Creafirma+tejido%2C+modela++cuerpo+%2C+modela%2C+reduce+grasa%2C+moldea+cuerpo%2C+moldea++abdomen+%2C++moldea++cuerpo%2C+dise%C3%B1o++imagen%2C+est%C3%A9tica%2C+corte+de+cabello%2C+tintes%2C+rayos%2C+tratamientos+capilares%2C+u%C3%B1as%2C+u%C3%B1as+resina%2C+u%C3%B1as+acr%C3%ADlico%2C+manicure%2C+pedicure%2C++manicure+spa%2C+pedicure+spa%2C+decoraci%C3%B3n+u%C3%B1as%2Crizado+pesta%C3%B1as%2C+planchado+ceja%2C+temazcal%2C+temazcal+tolteca%2C+ba%C3%B1o+temazcal%2C+ritual+temazcal%2C+temazcal+relajante%2C+reflexi%C3%B3n++temazcal%2C+relajaci%C3%B3n+temazcal%2C+temazcal++mexico%2C+temazcal++mexico+d.f.%2C+temazcal+d.f.%2C+temazcal++sur++d.f.%2C+temazcal+sur++ciudad%2C+sanaci%C3%B3n+temazcal%2C+armonizaci%C3%B3n+cuerpo-mente-esp%C3%ADritu%2C+hol%C3%ADstica+temazcal%2C+aromaterapia++fitoterapia+termoterapia+e+hidroterapia%2C+Bronceado+%2Ccentro+bronceado%2C+bronceado+express%2C+bronceado+con+aer%C3%B3grafo%2C+bronceado+inmediato%2C+bronceado+sin+riesgo%2C+bronceado++instant%C3%A1neo%2C+bronceado+california+tan%2C+bronceado++sin+radiaci%C3%B3n+u.v.%2C+bronceado+para+eventos%2C+bronceado+perfecto%2C+california+tan%2C+express+tan.';
var metaContents  = 'promocion+spa%2Cspa%2C+spa+estetica%2C+spa+mexico%2C+spa+d..f.%2Cday+spa%2C+spa+de+d%C3%ADa%2C+spa+medico%2C+spa+ciudad+de+mexico%2C+spas+masajes%2C+spa+urbano%2C+centro+de+relajaci%C3%B3n+belleza%2C+certificados+regalo%2C+certificados+regalo+novias%2C++masajes%2C+masajes+relajantes%2C+masaje+piedras+calientes%2C+masaje+ayurveda%2C+masaje+relajante%2C+masaje+con+envoltura+corporal%2C++masaje+cuatro+manos%2C+shiatsu%2C++drenaje+linf%C3%A1tico%2C+masaje+desintoxicante%2C+reiki%2C++terapias+relajantes%2C+masaje+sueco%2C+reflexolog%C3%ADa+%2Cmasaje+holistico%2C+paquetes+antiestr%C3%A9s%2C+paquetes+spa%2C+%2C+paquetes+novias%2C+paquetes+quincea%C3%B1eras%2C+paquetes+novios%2C+paquetes+damas%2C+sauna%2C+hidroterapia+relajante%2C+hidroterapia+tonificante%2C+medicina+cuantica%2C+biofeedback%2C+evaluaci%C3%B3n+magn%C3%A9tica+%C3%B3rganos%2C+evaluaci%C3%B3n+el%C3%A9ctrica++c%C3%A9lulas%2C+scio%2C+diagnostico++estr%C3%A9s%2C+an%C3%A1lisis+estr%C3%A9s%2C+manejo+estr%C3%A9s%2C+control+estr%C3%A9s+%2Ctratamientos+faciales%2C+acne%2C+ros%C3%A1cea%2C+hiperpigmentacion%2C++lifting%2C++reafirmante%2C+facial+reafirmante%2C+facial+estimulante%2C+microdermoabrasi%C3%B3n%2C+arrugas%2C+desvanecimiento+arrugas%2C+rejuvenecimiento+facial%2C+limpieza+facial%2C+exfoliaci%C3%B2n+facial%2C++tratamiento+antiarrugas%2C++reactivaci%C3%B3n+celular+facial%2C+estimulaci%C3%B3n+celular+facial%2C+reactivaci%C3%B3n+celular%2C+estimulaci%C3%B3n+celular%2C+hidrataci%C3%B3n+facial%2C+piel+grasa%2C+piel+seca%2C++piel+grasa%2C+medicina+est%C3%A9tica%2C+mesoterapia%2C+implantes%2C+botox%2C+moldeado+corporal%2C+control+de+peso%2C+tratamientos+reductivos+y+reafirmantes+%2C+reducci%C3%B3n+de+talla+y+reafirmaci%C3%B3n+de+tejido%2C++modela+cuerpo+%2C+reduce+grasa%2C+moldea+cuerpo%2C+moldea+abdomen+%2C+moldea+vientre%2C+moldea+cuerpo%2C+dise%C3%B1o+de+imagen%2C+est%C3%A9tica%2C+corte+de+cabello%2C+tintes%2C+rayos%2C+tratamientos+capilares%2C+u%C3%B1as%2C+u%C3%B1as+resina%2C+u%C3%B1as+acr%C3%ADlico%2C+manicure%2C+pedicure%2C++manicure+spa%2C+pedicure+spa%2C+decoraci%C3%B3n+u%C3%B1as%2C+reparaci%C3%B3n+u%C3%B1as%2C+rizado+pesta%C3%B1as%2C+planchado+ceja%2C+temazcal%2C+temazcal+tolteca%2C+ba%C3%B1o+temazcal%2C+ritual+temazcal%2C+temazcal+relajante%2C+reflexi%C3%B3n++temazcal%2C+relajaci%C3%B3n+temazcal%2C+temazcal+en+mexico%2C+temazcal+en+mexico+d.f.%2C+temazcal+d.f.%2C+temazcal+al+sur+del+d.f.%2C+temazcal+al+sur+de+la+ciudad%2C+sanaci%C3%B3n+con+el+temazcal%2C+armonizaci%C3%B3n+cuerpo-mente-esp%C3%ADritu%2C+terapia+hol%C3%ADstica+temazcal%2C+aromaterapia++fitoterapia+termoterapia+e+hidroterapia%2C+Bronceado+%2Ccentro+bronceado%2C+bronceado+express%2C+bronceado+con+aer%C3%B3grafo%2C+bronceado+inmediato%2C+bronceado+sin+riesgo%2C+bronceado++instant%C3%A1neo%2C+bronceado+california+tan%2C+bronceado++sin+radiaci%C3%B3n+u.v.%2C+bronceado+para+eventos%2C+%2Cbronceado+perfecto%2C+express+tan.';
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();
};

