/* [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','1901',jdecode('Inicio'),jdecode(''),'/1901.html','true',[],'',''],
	['PAGE','56023',jdecode('QUIENES+SOMOS'),jdecode(''),'/56023.html','true',[],'',''],
	['PAGE','23301',jdecode('VENTAS+'),jdecode(''),'/23301.html','true',[],'',''],
	['PAGE','118137',jdecode('LO+MAS+NUEVO+Y+LO+MAS+INN'),jdecode(''),'/118137.html','true',[],'',''],
	['PAGE','74767',jdecode('BOLSAS+DE+MARCA'),jdecode(''),'/74767/index.html','true',[ 
		['PAGE','2036',jdecode('COACH+BOLSAS'),jdecode(''),'/74767/2036.html','true',[],'',''],
		['PAGE','19443',jdecode('LOUIS+VUITTON+BOLSAS'),jdecode(''),'/74767/19443.html','true',[],'',''],
		['PAGE','19422',jdecode('CHANEL+BOLSAS'),jdecode(''),'/74767/19422.html','true',[],'',''],
		['PAGE','2015',jdecode('TOUS+BOLSAS'),jdecode(''),'/74767/2015.html','true',[],'','']
	],'',''],
	['PAGE','29033',jdecode('+TOUS++PLATA'),jdecode(''),'/29033/index.html','true',[ 
		['PAGE','154570',jdecode('ARETES'),jdecode(''),'/29033/154570.html','true',[],'',''],
		['PAGE','154591',jdecode('ANILLOS'),jdecode(''),'/29033/154591.html','true',[],'',''],
		['PAGE','154612',jdecode('DIJES'),jdecode(''),'/29033/154612.html','true',[],'',''],
		['PAGE','154633',jdecode('PULSERAS'),jdecode(''),'/29033/154633.html','true',[],'',''],
		['PAGE','154654',jdecode('JUEGOS'),jdecode(''),'/29033/154654.html','true',[],'',''],
		['PAGE','184413',jdecode('MANCUERNILLAS'),jdecode(''),'/29033/184413.html','true',[],'',''],
		['PAGE','189313',jdecode('GARGANTILLAS'),jdecode(''),'/29033/189313.html','true',[],'','']
	],'',''],
	['PAGE','74788',jdecode('+BVLGARY+PLATA'),jdecode(''),'/74788/index.html','true',[ 
		['PAGE','194513',jdecode('ARETES+BVLGARYh'),jdecode(''),'/74788/194513.html','true',[],'',''],
		['PAGE','62623',jdecode('JUEGOS+BVLGARIh'),jdecode(''),'/74788/62623.html','true',[],'',''],
		['PAGE','65834',jdecode('PULSERAS+BVLGARIh'),jdecode(''),'/74788/65834.html','true',[],'',''],
		['PAGE','65855',jdecode('ANILLOS+BVLGARIh'),jdecode(''),'/74788/65855.html','true',[],'',''],
		['PAGE','75767',jdecode('DIJES+BVLAGRIH'),jdecode(''),'/74788/75767.html','true',[],'',''],
		['PAGE','75788',jdecode('MANCUERNILLAS+BVUL'),jdecode(''),'/74788/75788.html','true',[],'',''],
		['PAGE','194534',jdecode('GARGANTILLAS+BVLGARIh'),jdecode(''),'/74788/194534.html','true',[],'','']
	],'',''],
	['PAGE','74809',jdecode('CHANEL+PLATA'),jdecode(''),'/74809/index.html','true',[ 
		['PAGE','74830',jdecode('ARETES+CHANEL'),jdecode(''),'/74809/74830.html','true',[],'',''],
		['PAGE','74851',jdecode('ANILLOS+CHANEL'),jdecode(''),'/74809/74851.html','true',[],'',''],
		['PAGE','77467',jdecode('DIJES+CHANEL'),jdecode(''),'/74809/77467.html','true',[],'',''],
		['PAGE','77488',jdecode('JUEGOS+CHANEL'),jdecode(''),'/74809/77488.html','true',[],'','']
	],'',''],
	['PAGE','90667',jdecode('TIFFANY++BA%C3%91O+EN+PLATA'),jdecode(''),'/90667/index.html','true',[ 
		['PAGE','90688',jdecode('GARGANTILLAS'),jdecode(''),'/90667/90688.html','true',[],'',''],
		['PAGE','90709',jdecode('PULSERAS'),jdecode(''),'/90667/90709.html','true',[],'',''],
		['PAGE','90730',jdecode('JUEGOS'),jdecode(''),'/90667/90730.html','true',[],'',''],
		['PAGE','90772',jdecode('ARETES'),jdecode(''),'/90667/90772.html','true',[],'',''],
		['PAGE','189913',jdecode('MANCUERNILLAS'),jdecode(''),'/90667/189913.html','true',[],'',''],
		['PAGE','190613',jdecode('PORTA+BILLETES'),jdecode(''),'/90667/190613.html','true',[],'','']
	],'',''],
	['PAGE','77509',jdecode('TIFFANY+PLATA+'),jdecode(''),'/77509/index.html','true',[ 
		['PAGE','77530',jdecode('ARETES+TIFFANYh'),jdecode(''),'/77509/77530.html','true',[],'',''],
		['PAGE','77551',jdecode('ANILLOS+TIFFANYh'),jdecode(''),'/77509/77551.html','true',[],'',''],
		['PAGE','77572',jdecode('PULSERAS+TIFFANYh'),jdecode(''),'/77509/77572.html','true',[],'',''],
		['PAGE','79667',jdecode('JUEGOS+TIFFANYh'),jdecode(''),'/77509/79667.html','true',[],'',''],
		['PAGE','79688',jdecode('GARGANTILLAS+TIFFANYh'),jdecode(''),'/77509/79688.html','true',[],'',''],
		['PAGE','79709',jdecode('MANCUERNILLAS+TIFFANYh'),jdecode(''),'/77509/79709.html','true',[],'',''],
		['PAGE','125337',jdecode('DIJES+TIFFANYh'),jdecode(''),'/77509/125337.html','true',[],'','']
	],'',''],
	['PAGE','152570',jdecode('JOYERIA+Y+ACCESORIOS+COACH+'),jdecode(''),'/152570.html','true',[],'',''],
	['PAGE','190813',jdecode('JUICY+COUTURE'),jdecode(''),'/190813.html','true',[],'',''],
	['PAGE','130637',jdecode('DANIEL+ESPINOSA'),jdecode(''),'/130637/index.html','true',[ 
		['PAGE','130658',jdecode('LINEA+DE+DANIEL+ESPINOZA'),jdecode(''),'/130637/130658.html','true',[],'','']
	],'',''],
	['PAGE','185313',jdecode('LINEA+ACERO'),jdecode(''),'/185313/index.html','true',[ 
		['PAGE','185334',jdecode('ANILLOS'),jdecode(''),'/185313/185334.html','true',[],'',''],
		['PAGE','185355',jdecode('DIJES'),jdecode(''),'/185313/185355.html','true',[],'',''],
		['PAGE','185376',jdecode('PULSERAS+Y+BRAZALETES'),jdecode(''),'/185313/185376.html','true',[],'','']
	],'',''],
	['PAGE','99478',jdecode('EXHIBIDORES'),jdecode(''),'/99478.html','true',[],'',''],
	['PAGE','63223',jdecode('TENDENCIAS+Y+TIPS'),jdecode(''),'/63223/index.html','true',[ 
		['PAGE','49865',jdecode('CUIDADOS+PARA+TU+BOLSA+'),jdecode(''),'/63223/49865.html','true',[],'',''],
		['PAGE','49928',jdecode('CUIDADOS+PARA+TU+JOYERIA'),jdecode(''),'/63223/49928.html','true',[],'',''],
		['PAGE','82567',jdecode('COMO+SABER+LA+TALLA+DE+ANILLO'),jdecode(''),'/63223/82567.html','true',[],'','']
	],'',''],
	['PAGE','51423',jdecode('BLOG+DE+NEGOCIOS'),jdecode(''),'/51423.html','true',[],'','']];
var siteelementCount=59;
theSitetree.topTemplateName='Phase';
theSitetree.paletteFamily='E06CF9';
theSitetree.keyvisualId='12166';
theSitetree.keyvisualName='kv_12166.jpg';
theSitetree.fontsetId='33329';
theSitetree.graphicsetId='14198';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='888888';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Phase',
				paletteFamily: 	'E06CF9',
				keyvisualId: 	'12166',
				keyvisualName: 	'kv_12166.jpg',
				fontsetId: 		'33329',
				graphicsetId: 	'14198',
				contentColor: 	'FFFFFF',
				contentBGColor: '888888',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Tahoma, Geneva, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20100628-163152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23301',
internalId:  '',
customField: '20100619-005403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19443',
internalId:  '',
customField: '20100701-001256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2015',
internalId:  '',
customField: '20100318-133334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2036',
internalId:  '',
customField: '20100520-180436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185334',
internalId:  '',
customField: '20100520-172319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184413',
internalId:  '',
customField: '20100520-151507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19422',
internalId:  '',
customField: '20100219-165026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29033',
internalId:  '',
customField: '20100601-142703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154633',
internalId:  '',
customField: '20100623-205740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '194513',
internalId:  '',
customField: '20100607-205130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154570',
internalId:  '',
customField: '20100607-195002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154591',
internalId:  '',
customField: '20100623-205211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154612',
internalId:  '',
customField: '20100514-171629'
};
webappMappings['1501']=webappMappings['1501-14255403']={
webappId:    '1501',
documentId:  '1901',
internalId:  '14255403',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1901',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-11137']={
webappId:    '7008',
documentId:  '23301',
internalId:  '11137',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90688',
internalId:  '',
customField: '20100701-000937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90709',
internalId:  '',
customField: '20100630-235605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90667',
internalId:  '',
customField: '20100601-150431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '194534',
internalId:  '',
customField: '20100607-205412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49865',
internalId:  '',
customField: '20091003-180414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152570',
internalId:  '',
customField: '20100430-173733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154654',
internalId:  '',
customField: '20100623-203809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49928',
internalId:  '',
customField: '20091003-180620'
};
webappMappings['7050']=webappMappings['7050-3104']={
webappId:    '7050',
documentId:  '51423',
internalId:  '3104',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51423',
internalId:  '',
customField: '20091001-195855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56023',
internalId:  '',
customField: '20100513-140127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118137',
internalId:  '',
customField: '20100318-132110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63223',
internalId:  '',
customField: '20100129-192407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62623',
internalId:  '',
customField: '20100423-220422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74788',
internalId:  '',
customField: '20091031-160731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65855',
internalId:  '',
customField: '20100623-210033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65834',
internalId:  '',
customField: '20100607-205638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75767',
internalId:  '',
customField: '20091031-163458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75788',
internalId:  '',
customField: '20091031-164010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74809',
internalId:  '',
customField: '20100607-210638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74830',
internalId:  '',
customField: '20100607-212239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74851',
internalId:  '',
customField: '20100607-212418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77467',
internalId:  '',
customField: '20100607-213717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77488',
internalId:  '',
customField: '20100607-214834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77509',
internalId:  '',
customField: '20091125-162925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77530',
internalId:  '',
customField: '20100204-181142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77551',
internalId:  '',
customField: '20091031-190104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77572',
internalId:  '',
customField: '20100216-155651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79667',
internalId:  '',
customField: '20100204-183306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79688',
internalId:  '',
customField: '20100216-163734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74767',
internalId:  '',
customField: '20091201-150919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79709',
internalId:  '',
customField: '20091031-192623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82567',
internalId:  '',
customField: '20091201-150832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90730',
internalId:  '',
customField: '20091126-152828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90772',
internalId:  '',
customField: '20100427-030818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99478',
internalId:  '',
customField: '20100111-134136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185313',
internalId:  '',
customField: '20100520-172023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125337',
internalId:  '',
customField: '20100601-190219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185376',
internalId:  '',
customField: '20100520-165030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130637',
internalId:  '',
customField: '20100205-145215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130658',
internalId:  '',
customField: '20100204-190326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185355',
internalId:  '',
customField: '20100520-175745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189313',
internalId:  '',
customField: '20100601-150053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189913',
internalId:  '',
customField: '20100601-160934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190613',
internalId:  '',
customField: '20100601-164145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190813',
internalId:  '',
customField: '20100601-171929'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHYEB';
var companyName   = 'BYA+MAYOREO+Bolsas+y+Accesorios';
var htmlTitle	  = '';
var metaKeywords  = 'JOYERIA+Y+BOLSAS+TOUS+COACH+BVLGARY+TIFFANY+CHANEL';
var metaContents  = 'TOUS%2C+COACH%2CBVULGARY%2C+TIFFANY%2C+CHANEL%2C+JOYERIA+Y+BOLSAS+DE+LA+MEJOR+CALIDAD';
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();
};
