/* [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','4606',jdecode('Inicio'),jdecode(''),'/4606/index.html','true',[ 
		['PAGE','26301',jdecode('Visi%C3%B3n+y+Misi%C3%B3n'),jdecode(''),'/4606/26301.html','true',[],'','']
	],'',''],
	['PAGE','4663',jdecode('Collares'),jdecode(''),'/4663.html','true',[],'',''],
	['PAGE','4690',jdecode('Pulseras'),jdecode(''),'/4690.html','true',[],'',''],
	['PAGE','4717',jdecode('Aretes'),jdecode(''),'/4717.html','true',[],'',''],
	['PAGE','4771',jdecode('Tocados+'),jdecode(''),'/4771.html','true',[],'',''],
	['PAGE','41436',jdecode('Pasarelas'),jdecode(''),'/41436.html','true',[],'',''],
	['PAGE','52901',jdecode('Tendencias'),jdecode(''),'/52901.html','true',[],'',''],
	['PAGE','30102',jdecode('Joyer%C3%ADa+del+Mundo'),jdecode(''),'/30102.html','true',[],'',''],
	['PAGE','25502',jdecode('Libro+de+visitas'),jdecode(''),'/25502/index.html','true',[ 
		['PAGE','25503',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/25502/25503.html','false',[],'','']
	],'',''],
	['PAGE','26002',jdecode('Cat%C3%A1logo'),jdecode(''),'/26002.html','true',[],'',''],
	['PAGE','5306',jdecode('Contacto'),jdecode(''),'/5306/index.html','true',[ 
		['PAGE','6402',jdecode('Cont%C3%A1cto+%28follow+up+page%29'),jdecode(''),'/5306/6402.html','false',[],'','']
	],'',''],
	['PAGE','38001',jdecode('Biograf%C3%ADa'),jdecode(''),'/38001.html','true',[],'',''],
	['PAGE','42123',jdecode('Agradecimientos'),jdecode(''),'/42123.html','true',[],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Seasons_fall';
theSitetree.paletteFamily='DA3C87';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='21083';
theSitetree.graphicsetId='13181';
theSitetree.contentColor='2E2E2E';
theSitetree.contentBGColor='DA3C87';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Seasons_fall',
				paletteFamily: 	'DA3C87',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'21083',
				graphicsetId: 	'13181',
				contentColor: 	'2E2E2E',
				contentBGColor: 'DA3C87',
				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:  '4606',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4606',
internalId:  '',
customField: '20100828-183443'
};
webappMappings['1002']=webappMappings['1002-25502AVEC10INX24M']={
webappId:    '1002',
documentId:  '25502',
internalId:  '25502AVEC10INX24M',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-ec58708990f9be7e9a639deff9e99af3']={
webappId:    '7060',
documentId:  '26002',
internalId:  'ec58708990f9be7e9a639deff9e99af3',
customField: 'language:es;country:ES;'
};
webappMappings['7060']=webappMappings['7060-3b2e65cbd67061265b5d6fd10d499fd6']={
webappId:    '7060',
documentId:  '30102',
internalId:  '3b2e65cbd67061265b5d6fd10d499fd6',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52901',
internalId:  '',
customField: '20100718-191420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38001',
internalId:  '',
customField: '20100127-200946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26301',
internalId:  '',
customField: '20080329-194046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4663',
internalId:  '',
customField: '20100828-183827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4690',
internalId:  '',
customField: '20070528-120934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4717',
internalId:  '',
customField: '20100718-190947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4771',
internalId:  '',
customField: '20100828-184002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41436',
internalId:  '',
customField: '20100301-221030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30102',
internalId:  '',
customField: '20060501-182444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25502',
internalId:  '',
customField: '20050704-102204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25503',
internalId:  '',
customField: '20050530-100233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26002',
internalId:  '',
customField: '20050704-102330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5306',
internalId:  '',
customField: '20050704-102446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6402',
internalId:  '',
customField: '20050523-105614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42123',
internalId:  '',
customField: '20081106-191347'
};
webappMappings['7008']=webappMappings['7008-10195']={
webappId:    '7008',
documentId:  '5306',
internalId:  '10195',
customField: 'language:es;country:ES;'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INX24M';
var companyName   = 'Collares%2C+pulseras%2C+aretes+y+tocados.';
var htmlTitle	  = 'www.alita.com.mx';
var metaKeywords  = 'Quincea%C3%B1eras+collares+pulseras+aretes+anillos+accesorios+joyeria+tendencias+de+moda+2007+novias+pasarelas+dise%C3%B1adores+bisuteria';
var metaContents  = 'Quincea%C3%B1eras+Collares+pulseras+tocados+aretes+tendencias+de+moda+2007+accesorios+pasarelas';
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();
};
