/* [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('Inicio'),jdecode(''),'/4598.html','true',[],'',''],
	['PAGE','13103',jdecode('%C2%BFQui%C3%A9nes+somos%3F'),jdecode(''),'/13103.html','true',[],'',''],
	['PAGE','45722',jdecode('Como+comprar+'),jdecode(''),'/45722.html','true',[],'',''],
	['PAGE','13130',jdecode('Productos+y+Servicios'),jdecode(''),'/13130.html','true',[],'',''],
	['PAGE','58601',jdecode('Abanicos+Bautizo+%C3%B3+Presentaci%C3%B3n+'),jdecode(''),'/58601.html','true',[],'',''],
	['PAGE','47401',jdecode('Abanicos+toda+ocasi%C3%B2n'),jdecode(''),'/47401.html','true',[],'',''],
	['PAGE','80601',jdecode('Abanicos+ENTREGA+INMEDIATA'),jdecode(''),'/80601.html','true',[],'',''],
	['PAGE','4682',jdecode('Alimentos'),jdecode(''),'/4682.html','true',[],'',''],
	['PAGE','4709',jdecode('Baby+Shower+'),jdecode(''),'/4709/index.html','true',[ 
		['PAGE','18828',jdecode('Detalles+para+el+Bebe'),jdecode(''),'/4709/18828.html','true',[],'','']
	],'',''],
	['PAGE','26501',jdecode('Boda+recuerdos+'),jdecode(''),'/26501.html','true',[],'',''],
	['PAGE','12038',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/12038.html','true',[],'',''],
	['PAGE','4763',jdecode('Decoraci%C3%B3n+con+Globos'),jdecode(''),'/4763.html','true',[],'',''],
	['PAGE','4736',jdecode('Despedida+de+soltera'),jdecode(''),'/4736.html','true',[],'',''],
	['PAGE','19754',jdecode('Fiestas+Infantiles+'),jdecode(''),'/19754.html','true',[],'',''],
	['PAGE','88222',jdecode('Pantuflas+'),jdecode(''),'/88222.html','true',[],'',''],
	['PAGE','88201',jdecode('Pkte+abanicos%2C+sandalias+y+toalla'),jdecode(''),'/88201.html','true',[],'',''],
	['PAGE','75701',jdecode('Primera+Comuni%C3%B2n+'),jdecode(''),'/75701.html','true',[],'',''],
	['PAGE','88301',jdecode('Productos+10+dde+Mayo'),jdecode(''),'/88301.html','true',[],'',''],
	['PAGE','77501',jdecode('Recuerdos+en+toalla'),jdecode(''),'/77501.html','true',[],'',''],
	['PAGE','19763',jdecode('Recuerdos+todo+tipo+de+eventos'),jdecode(''),'/19763/index.html','true',[ 
		['PAGE','12202',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/19763/12202.html','false',[],'','']
	],'',''],
	['PAGE','81701',jdecode('Sandalias+y+toallas'),jdecode(''),'/81701.html','true',[],'',''],
	['PAGE','71301',jdecode('Velas+todo+tipo+de+EVENTO'),jdecode(''),'/71301.html','true',[],'',''],
	['PAGE','39222',jdecode('Promociones'),jdecode(''),'/39222.html','true',[],'',''],
	['PAGE','16102',jdecode('Galer%C3%ADa+de+Fotos'),jdecode(''),'/16102.html','true',[],'','']];
var siteelementCount=26;
theSitetree.topTemplateName='Herzchen';
theSitetree.paletteFamily='FFC0E1';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='-1';
theSitetree.graphicsetId='12487';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Herzchen',
				paletteFamily: 	'FFC0E1',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'-1',
				graphicsetId: 	'12487',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'E64446',
				e_color: 		'FFC0E1',
				f_color: 		'F5B4B5',
				hasCustomLogo: 	'false',
				contentFontFace:'',
				contentFontSize:'-1',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-238759']={
webappId:    '1501',
documentId:  '4598',
internalId:  '238759',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-47a0d367451ca994a13cde549377ac79']={
webappId:    '7060',
documentId:  '16102',
internalId:  '47a0d367451ca994a13cde549377ac79',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81701',
internalId:  '',
customField: '20100401-233527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80601',
internalId:  '',
customField: '20090623-230539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20090314-220200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13103',
internalId:  '',
customField: '20080720-155934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45722',
internalId:  '',
customField: '20080127-155104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13130',
internalId:  '',
customField: '20071103-181944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4682',
internalId:  '',
customField: '20060817-213209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4709',
internalId:  '',
customField: '20090413-223739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18828',
internalId:  '',
customField: '20061017-184558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4736',
internalId:  '',
customField: '20090413-222954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19754',
internalId:  '',
customField: '20080127-155314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4763',
internalId:  '',
customField: '20080720-155153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58601',
internalId:  '',
customField: '20090314-233625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47401',
internalId:  '',
customField: '20090922-231925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19763',
internalId:  '',
customField: '20090314-235528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12202',
internalId:  '',
customField: '20060703-150839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26501',
internalId:  '',
customField: '20090202-192958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71301',
internalId:  '',
customField: '20090119-003356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39222',
internalId:  '',
customField: '20100402-004458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12038',
internalId:  '',
customField: '20080826-080508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16102',
internalId:  '',
customField: '20060712-113851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75701',
internalId:  '',
customField: '20090314-232621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77501',
internalId:  '',
customField: '20090901-120304'
};
webappMappings['7008']=webappMappings['7008-7015']={
webappId:    '7008',
documentId:  '12038',
internalId:  '7015',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88222',
internalId:  '',
customField: '20100401-215800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88301',
internalId:  '',
customField: '20100401-222516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88201',
internalId:  '',
customField: '20100402-002708'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INXZ9G';
var companyName   = 'FESTEJOS';
var htmlTitle	  = 'festejos.com.mx';
var metaKeywords  = 'despedidas+de+soltera%2C+baby+shower%2C+cumplea%C3%B1os';
var metaContents  = 'festejos+para+toda+clase+de+festejos';
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();
};
