/* [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','4022',jdecode('INICIO'),jdecode(''),'/4022.html','true',[],'',''],
	['PAGE','88012',jdecode('NOVIAS+Y+XV+A%C3%91OS'),jdecode(''),'/88012.html','true',[],'',''],
	['PAGE','88033',jdecode('PARA+TUS+EVENTOS+ESPECIALES'),jdecode(''),'/88033.html','true',[],'',''],
	['PAGE','4264',jdecode('PRODUCTOS'),jdecode(''),'/4264.html','true',[],'',''],
	['PAGE','82012',jdecode('FOTOGRAFIA+PROFESIONAL'),jdecode(''),'/82012.html','true',[],'',''],
	['PAGE','4285',jdecode('OTROS+PROVEEDORES'),jdecode(''),'/4285.html','true',[],'',''],
	['PAGE','4306',jdecode('LIBRO+DE+VISITAS'),jdecode(''),'/4306.html','true',[],'',''],
	['PAGE','4327',jdecode('SOLICITA+TU+PRESUPUESTO'),jdecode(''),'/4327.html','true',[],'',''],
	['PAGE','85712',jdecode('ALBUM+DE+FOTOS'),jdecode(''),'/85712.html','true',[],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Elegant';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='32899';
theSitetree.graphicsetId='13971';
theSitetree.contentColor='cab397';
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: 	'cab397',
				contentBGColor: '000000',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85712',
internalId:  '',
customField: '20100809-105346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4022',
internalId:  '',
customField: '20100826-120220'
};
webappMappings['1002']=webappMappings['1002-4306avfl30inh7fx']={
webappId:    '1002',
documentId:  '4306',
internalId:  '4306avfl30inh7fx',
customField: 'icq=false'
};
webappMappings['7008']=webappMappings['7008-8208']={
webappId:    '7008',
documentId:  '4327',
internalId:  '8208',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82012',
internalId:  '',
customField: '20100826-002953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88033',
internalId:  '',
customField: '20100826-001827'
};
webappMappings['7060']=webappMappings['7060-3835b20b4340cdbacbbeac53e199a7bf']={
webappId:    '7060',
documentId:  '85712',
internalId:  '3835b20b4340cdbacbbeac53e199a7bf',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88012',
internalId:  '',
customField: '20100826-004131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4264',
internalId:  '',
customField: '20100513-090032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4285',
internalId:  '',
customField: '20100808-234850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4306',
internalId:  '',
customField: '20100512-124204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4327',
internalId:  '',
customField: '20100809-010324'
};
webappMappings['1501']=webappMappings['1501-13697706']={
webappId:    '1501',
documentId:  '4022',
internalId:  '13697706',
customField: '1501'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '4022',
internalId:  '1501',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4022',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INH7FX';
var companyName   = 'NORMA+BONITO++%22+MAKE+UP%2C+HAIR+%26+SPA';
var htmlTitle	  = 'NORMA+BONITO';
var metaKeywords  = 'Peinado+y+Maquillaje+para+Novias+Monterrey+con+servicio+a+domicilio%2C+Quincea%C3%B1eras%2C+Graduaciones%2C+Tratamientos+faciales%2C+masajes+de+relajaci%C3%B3n%2C+extensiones+de+pesta%C3%B1as%2C+extensiones+de+cabello+natural%2C+cortes+de+cabello%2C+tintes%2C+luces%2C+mechas%2C+cambios+de+look%2C+u%C3%B1as+de+acr%C3%ADlico%2C+pedicure+y+manicure+spa%2C+velo+%C3%B3+ba%C3%B1o+de+novia%2C+tratamentos+corporales%2C+chocoterapia%2C+chocolaterapia%2C+vinoterapia%2C+aromaterapia%2C+relajacion%2C+salud%2C+belleza%2C+spa%2C+bajar+de+peso%2C+cuidado+de+la+piel%2Cdise%C3%B1o+de+imagen%2C+phang+ma+goy+elixir%2C+image+radiant%2C+retilinien%2C+goyi%2C++goji%2C+productos+de+limpieza%2C+proveedores+de+novias%2C+quincea%C3%B1eras%2C+spa%2C++higiene+personal%2C+norma+bonito%2C+norma+alicia+garcia+bonito%2C+normagarciabonito.com%2C+swipe%2C+limpieza+hogar%2C+autom%C3%B3vil%2C+cuidados+de+la+piel%2C+Novias+a+Domicilio+en+Monterrey%2C+Quincea%C3%B1eras+a+Domicilio+en+Monterrey%2C+Peinado+y+Maquillaje+a+Domicilio+en+Monterrey%2C+Peinado+y+Maquillaje+Profesional+en+Monterrey%2C+Peinado+y+Maquillaje+Graduaciones+en+Monterrey';
var metaContents  = 'Peinado+y+Maquillaje+para+Novias+Monterrey+con+servicio+a+domicilio%2C+Quincea%C3%B1eras%2C+Graduaciones%2C+Tratamientos+faciales%2C+masajes+de+relajaci%C3%B3n%2C+extensiones+de+pesta%C3%B1as%2C+extensiones+de+cabello+natural%2C+cortes+de+cabello%2C+tintes%2C+luces%2C+mechas%2C+cambios+de+look%2C+u%C3%B1as+de+acr%C3%ADlico%2C+pedicure+y+manicure+spa%2C+velo+%C3%B3+ba%C3%B1o+de+novia%2C+tratamentos+corporales%2C+chocoterapia%2C+chocolaterapia%2C+vinoterapia%2C+aromaterapia%2C+relajacion%2C+salud%2C+belleza%2C+spa%2C+bajar+de+peso%2C+cuidado+de+la+piel%2Cdise%C3%B1o+de+imagen%2C+phang+ma+goy+elixir%2C+image+radiant%2C+retilinien%2C+goyi%2C++goji%2C+productos+de+limpieza%2C+proveedores+de+novias%2C+quincea%C3%B1eras%2C+spa%2C++higiene+personal%2C+norma+bonito%2C+norma+alicia+garcia+bonito%2C+normagarciabonito.com%2C+swipe%2C+limpieza+hogar%2C+autom%C3%B3vil%2C+cuidados+de+la+piel%2C+Novias+a+Domicilio+en+Monterrey%2C+Quincea%C3%B1eras+a+Domicilio+en+Monterrey%2C+Peinado+y+Maquillaje+a+Domicilio+en+Monterrey%2C+Peinado+y+Maquillaje+Profesional+en+Monterrey%2C+Peinado+y+Maquillaje+Graduaciones+en+Monterrey';
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();
};
