/* [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','4593',jdecode('Home'),jdecode(''), jdecode('%2F4593.html'), 'true',[],'',''],
	['PAGE','6391',jdecode('Our+Products'),jdecode(''), jdecode('%2F6391.html'), 'true',[],'',''],
	['PAGE','14723',jdecode('Top+Ten'),jdecode(''), jdecode('%2F14723.html'), 'true',[],'',''],
	['PAGE','19501',jdecode('What%C2%B4s+New%3F'),jdecode(''), jdecode('%2F19501.html'), 'true',[],'',''],
	['PAGE','5455',jdecode('How+to+pay+%3F'),jdecode(''), jdecode('%2F5455.html'), 'true',[],'',''],
	['PAGE','4731',jdecode('Contact'),jdecode(''), jdecode('%2F4731.html'), 'true',[],'',''],
	['PAGE','8301',jdecode('Alebrijes'),jdecode(''), jdecode('%2F8301.html'), 'true',[],'',''],
	['PAGE','34901',jdecode('Ayates'),jdecode(''), jdecode('%2F34901.html'), 'true',[],'',''],
	['PAGE','14183',jdecode('Black+Clay'),jdecode(''), jdecode('%2F14183.html'), 'true',[],'',''],
	['PAGE','14210',jdecode('Cane+Material'),jdecode(''), jdecode('%2F14210.html'), 'true',[],'',''],
	['PAGE','14291',jdecode('Cotton'),jdecode(''), jdecode('%2F14291.html'), 'true',[],'',''],
	['PAGE','14318',jdecode('Ixtle'),jdecode(''), jdecode('%2F14318%2Findex.html'), 'true',[ 
		['PAGE','14696',jdecode('Sapupe'),jdecode(''), jdecode('%2F14318%2F14696.html'), 'true',[],'','']
	],'',''],
	['PAGE','77601',jdecode('Leather'),jdecode(''), jdecode('%2F77601%2Findex.html'), 'true',[ 
		['PAGE','14561',jdecode('Back+Packs'),jdecode(''), jdecode('%2F77601%2F14561.html'), 'true',[],'',''],
		['PAGE','14399',jdecode('Belts'),jdecode(''), jdecode('%2F77601%2F14399.html'), 'true',[],'',''],
		['PAGE','14615',jdecode('Briefcases'),jdecode(''), jdecode('%2F77601%2F14615.html'), 'true',[],'',''],
		['PAGE','14453',jdecode('Hats+%26+Caps'),jdecode(''), jdecode('%2F77601%2F14453.html'), 'true',[],'',''],
		['PAGE','14507',jdecode('Keyrings'),jdecode(''), jdecode('%2F77601%2F14507.html'), 'true',[],'',''],
		['PAGE','14426',jdecode('Knife+Tool+Cover'),jdecode(''), jdecode('%2F77601%2F14426.html'), 'true',[],'',''],
		['PAGE','14345',jdecode('Lady+Purses'),jdecode(''), jdecode('%2F77601%2F14345.html'), 'true',[],'',''],
		['PAGE','14588',jdecode('Shoulder+Bags'),jdecode(''), jdecode('%2F77601%2F14588.html'), 'true',[],'',''],
		['PAGE','14372',jdecode('Teen+Purses'),jdecode(''), jdecode('%2F77601%2F14372.html'), 'true',[],'',''],
		['PAGE','14156',jdecode('Wallets'),jdecode(''), jdecode('%2F77601%2F14156.html'), 'true',[],'','']
	],'',''],
	['PAGE','14642',jdecode('Shawls'),jdecode(''), jdecode('%2F14642.html'), 'true',[],'',''],
	['PAGE','14264',jdecode('Straw'),jdecode(''), jdecode('%2F14264%2Findex.html'), 'true',[ 
		['PAGE','78201',jdecode('Straw+Purses'),jdecode(''), jdecode('%2F14264%2F78201.html'), 'true',[],'',''],
		['PAGE','14534',jdecode('Place+Mates'),jdecode(''), jdecode('%2F14264%2F14534.html'), 'true',[],'','']
	],'',''],
	['PAGE','14480',jdecode('Tin+Plate'),jdecode(''), jdecode('%2F14480%2Findex.html'), 'true',[ 
		['PAGE','92301',jdecode('Cats'),jdecode(''), jdecode('%2F14480%2F92301.html'), 'true',[],'',''],
		['PAGE','90701',jdecode('Magnets'),jdecode(''), jdecode('%2F14480%2F90701.html'), 'true',[],'',''],
		['PAGE','98301',jdecode('Heart+Magnets'),jdecode(''), jdecode('%2F14480%2F98301.html'), 'true',[],'','']
	],'',''],
	['PAGE','14129',jdecode('Wood'),jdecode(''), jdecode('%2F14129%2Findex.html'), 'true',[ 
		['PAGE','14237',jdecode('Traditional+Toys'),jdecode(''), jdecode('%2F14129%2F14237.html'), 'true',[],'','']
	],'',''],
	['PAGE','55201',jdecode('Oaxaca+Today'),jdecode(''), jdecode('%2F55201%2Findex.html'), 'true',[ 
		['PAGE','77901',jdecode('The+Day+of+the+Deaths+2007'),jdecode(''), jdecode('%2F55201%2F77901.html'), 'true',[],'',''],
		['PAGE','59501',jdecode('Radishes+Night+2006'),jdecode(''), jdecode('%2F55201%2F59501.html'), 'true',[],'','']
	],'',''],
	['PAGE','86201',jdecode('Earings'),jdecode(''), jdecode('%2F86201%2Findex.html'), 'true',[ 
		['PAGE','86222',jdecode('Skeletons'),jdecode(''), jdecode('%2F86201%2F86222.html'), 'true',[],'',''],
		['PAGE','86243',jdecode('Fridha'),jdecode(''), jdecode('%2F86201%2F86243.html'), 'true',[],'',''],
		['PAGE','86264',jdecode('Guadalupe+Virgen'),jdecode(''), jdecode('%2F86201%2F86264.html'), 'true',[],'','']
	],'',''],
	['PAGE','55222',jdecode('Edicion+en+Espa%C3%B1ol'),jdecode(''), jdecode('%2F55222.html'), 'true',[],'',''],
	['PAGE','19522',jdecode('Links'),jdecode(''), jdecode('%2F19522.html'), 'true',[],'',''],
	['PAGE','56206',jdecode('Libro+de+visitas'),jdecode(''), jdecode('%2F56206%2Findex.html'), 'true',[ 
		['PAGE','56201',jdecode('Leer+el+libro+de+Visitas'),jdecode(''), jdecode('%2F56206%2F56201.html'), 'false',[],'','']
	],'',''],
	['PAGE','76201',jdecode('Tienda+online'),jdecode(''), jdecode('%2F76201.html'), 'true',[],'','']];
var siteelementCount=46;
theSitetree.topTemplateName='Seasons_fall';
theSitetree.paletteFamily='ECE1CC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='21084';
theSitetree.graphicsetId='13182';
theSitetree.contentColor='2E2E2E';
theSitetree.contentBGColor='ECE1CC';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'grp13-hostin',
  product: 'WSCSYSSSSLY0XJEZ'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Seasons_fall',
				paletteFamily: 	'ECE1CC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'21084',
				graphicsetId: 	'13182',
				contentColor: 	'2E2E2E',
				contentBGColor: 'ECE1CC',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4593',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-56206avec10inxst4']={
webappId:    '1002',
documentId:  '56206',
internalId:  '56206avec10inxst4',
customField: 'icq=false'
};
webappMappings['4001']=webappMappings['4001-7198514']={
webappId:    '4001',
documentId:  '76201',
internalId:  '7198514',
customField: 'language:es;country:ES;'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INXST4';
var companyName   = '+---+EL+FOLKLORE+---';
var htmlTitle	  = 'Artesanias+de+Mexico+-+El+Folklore';
var metaKeywords  = 'artesanias+mexicanas%2C+oaxaca%2C+mexico%2C+handicrafts%2C+handmade+products%2C+folklore%2C+culturas%2C+mayoreo%2C+turismo%2C+mexican+handcrafts%2C+wholesale%2C+packing%2C+worldwide+shipping%2C+export%2C+retail%2C+import%2C+export%2C+history%2C+productos+artesanales';
var metaContents  = 'Artesanias+de+Oaxaca%2C+Mexico.+Mexican+Handicrafts+-+Wholesale+Retail.+Amplia+variedad+en+articulos+de+piel%2C+ixtle%2C+palma%2C+algodon+y+madera...+mayoreo+y+menudeo.';
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();
};

