/* [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','4556',jdecode('Home'),jdecode(''),'/4556.html','true',[],'',''],
	['PAGE','4613',jdecode('Dise%C3%B1o+'),jdecode(''),'/4613.html','true',[],'',''],
	['PAGE','24601',jdecode('Collares'),jdecode(''),'/24601.html','true',[],'',''],
	['PAGE','24628',jdecode('Aretes'),jdecode(''),'/24628.html','true',[],'',''],
	['PAGE','24655',jdecode('Tendencias+'),jdecode(''),'/24655.html','true',[],'',''],
	['PAGE','4721',jdecode('Pasarelas+'),jdecode(''),'/4721.html','true',[],'',''],
	['PAGE','4748',jdecode('Reconocimientos'),jdecode(''),'/4748.html','true',[],'',''],
	['PAGE','62896',jdecode('Publicaciones'),jdecode(''),'/62896.html','true',[],'',''],
	['PAGE','31702',jdecode('Libro+de+visitas'),jdecode(''),'/31702/index.html','true',[ 
		['PAGE','31703',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/31702/31703.html','false',[],'','']
	],'',''],
	['PAGE','4640',jdecode('Biograf%C3%ADa'),jdecode(''),'/4640.html','true',[],'',''],
	['PAGE','26701',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/26701/index.html','true',[ 
		['PAGE','28802',jdecode('Cont%C3%A1ctenos+%28follow+up+page%29'),jdecode(''),'/26701/28802.html','false',[],'','']
	],'',''],
	['PAGE','48802',jdecode('Agradecimientos'),jdecode(''),'/48802.html','true',[],'','']];
var siteelementCount=14;
theSitetree.topTemplateName='Padma';
theSitetree.paletteFamily='006699';
theSitetree.keyvisualId='1026';
theSitetree.keyvisualName='blumen.jpg';
theSitetree.fontsetId='178';
theSitetree.graphicsetId='216';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='9E9D90';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Padma',
				paletteFamily: 	'006699',
				keyvisualId: 	'1026',
				keyvisualName: 	'blumen.jpg',
				fontsetId: 		'178',
				graphicsetId: 	'216',
				contentColor: 	'DDDDDD',
				contentBGColor: '9E9D90',
				a_color: 		'006699',
				b_color: 		'003366',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4556',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4613',
internalId:  '',
customField: '20090827-100450'
};
webappMappings['1002']=webappMappings['1002-31702AVEC10INXZD4']={
webappId:    '1002',
documentId:  '31702',
internalId:  '31702AVEC10INXZD4',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4556',
internalId:  '',
customField: '20100109-112340'
};
webappMappings['7008']=webappMappings['7008-7131']={
webappId:    '7008',
documentId:  '26701',
internalId:  '7131',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24601',
internalId:  '',
customField: '20090915-104729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24628',
internalId:  '',
customField: '20080829-202958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24655',
internalId:  '',
customField: '20091229-160852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4721',
internalId:  '',
customField: '20091219-151801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4748',
internalId:  '',
customField: '20091210-173434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62896',
internalId:  '',
customField: '20090811-103803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31702',
internalId:  '',
customField: '20060511-202443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31703',
internalId:  '',
customField: '20060511-202443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4640',
internalId:  '',
customField: '20090412-171433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26701',
internalId:  '',
customField: '20060714-195715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28802',
internalId:  '',
customField: '20060509-085052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48802',
internalId:  '',
customField: '20090529-152541'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INXZD4';
var companyName   = 'Dise%C3%B1o+de+Accesorios+para+Novias%2C+XV+y+Pasarela';
var htmlTitle	  = 'www.alejandraaceves.com';
var metaKeywords  = 'boda%2C+novias%2C+accesorios+novia%2C+collares+boda%2C+aretes%2C+pulseras%2C+tocados%2C+pasarelas%2C+vestidos+de+novia%2C+expo+club+nupcial%2C+expo+tu+boda%2C+dise%C3%B1o+de+accesorios%2C+tendencias+2007%2C+propuesta%2C+moda%2C+collares%2C+gargantillas%2C+pasarelas%2C+pasarela+expo+tu+boda%2C+desfiles+de+moda%2Cmoda+oto%C3%B1o+invierno+2007+2008%2C+joyeria+mexicana+contemporanea';
var metaContents  = 'Joyeria+novias%2C+joyeria+bodas%2C+pasarelas+expo+club+nupcial%2C+accesorios%2C+collares%2C+pulseras%2C+aretes%2C+tendencias%2C+propuestas%2C+moda+bodas%2C+desfile+de+moda%2C+diseno+joyeria%2C+tocados%2C+oto%C3%B1o+invierno+2007+2008%2C+gargantillas%2C+desfiles+de+moda%2C+expo+tu+boda%2C+pasarelas%2C+joyeria+mexicana+contemporanea';
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();
};
