/* [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','13',jdecode('In%C3%ADcio+%2F+Home'),jdecode(''),'/13.html','true',[],'',''],
	['PAGE','34',jdecode('Bijoux+%2F+Jewellery'),jdecode(''),'/34/index.html','true',[ 
		['PAGE','43',jdecode('Colares+%2F+Necklaces'),jdecode(''),'/34/43.html','true',[],'',''],
		['PAGE','1336',jdecode('Outras+belezas%2FOther+beauties'),jdecode(''),'/34/1336.html','true',[],'','']
	],'',''],
	['PAGE','37801',jdecode('Bolsas+%2F+Handbags'),jdecode(''),'/37801/index.html','true',[ 
		['PAGE','168001',jdecode('Acess%C3%B3rios+%2F+Accessories'),jdecode(''),'/37801/168001.html','true',[],'','']
	],'',''],
	['PAGE','162401',jdecode('Contato+%2F+Contact+us'),jdecode(''),'/162401.html','true',[],'',''],
	['PAGE','153301',jdecode('Imprensa+%26+parcerias'),jdecode(''),'/153301.html','true',[],'','']];
var siteelementCount=8;
theSitetree.topTemplateName='Elegant';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='32910';
theSitetree.graphicsetId='13971';
theSitetree.contentColor='cab397';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Elegant',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'32910',
				graphicsetId: 	'13971',
				contentColor: 	'cab397',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153301',
internalId:  '',
customField: '20091109-114757'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162401',
internalId:  '',
customField: '20091002-083354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13',
internalId:  '',
customField: '20100221-080234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34',
internalId:  '',
customField: '20091108-064158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43',
internalId:  '',
customField: '20091109-114538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1336',
internalId:  '',
customField: '20091109-105810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168001',
internalId:  '',
customField: '20090220-164245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37801',
internalId:  '',
customField: '20090309-112543'
};
webappMappings['7008']=webappMappings['7008-3161']={
webappId:    '7008',
documentId:  '162401',
internalId:  '3161',
customField: 'language:pt;country:BR;'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2B3G';
var companyName   = 'Alma+Feminina+Acess%C3%B3rios+e+Bijoux';
var htmlTitle	  = 'Alma+Feminina+Acess%C3%B3rios+e+Bijoux';
var metaKeywords  = 'bijoux+bijouteria+bijuteria+necklace+bracelet+earring+seeds+leather+couro+sementes+design+madrep%C3%A9rola+mother-of-pearl+cristal+crystal+swarovski+straw+brazilian+stone+qualidade+quality+murano+ceramics+cer%C3%A2mica+feminine+soul+anxious+unrest+cole%C3%A7%C3%A3o+collection+acess%C3%B3rios+acessory+bolsa+bordado+bordada+customizar+moda+fashion+diferenciado+frog+leather+customized+brinco+chaveiro+pulseira+earring+keyholder+bracelet+purse+bolsa+bordada+veludo+contas+velvet%2C+mi%C3%A7anga+vidrilho+couro+r%C3%A3+Attuale+atual+moderna+sand%C3%A1lia+hawaiana+havaiana+strass+seda+sarja+voil+tecido+estampado+estampa+floral+costura+moeda+porta-j%C3%B3ia+porta+j%C3%B3ia+acabamento+colar+pulseira+an%C3%A9is+anel+novidade+moda+fashion+bonito+delicado+arrojado+diferente+trabalho+artesanal+artesanato+bioj%C3%B3ia+bio-j%C3%B3ia+biojoia+bio-joia+abalone+concha+couro+peixe+fish+leather+VIP+chic+bom+gosto+fish+skin+pele+peixe+coconut+indian+indiano+coral+turquesa+biojewel+bio-+jewel+maxicolar+maxi-colar+maxi+colar';
var metaContents  = 'A+alma+feminina+%C3%A9+inquieta%2C+sempre+buscando+novos+caminhos.++Confeccionamos+nossas+pe%C3%A7as+com+essa+mesma+inquieta%C3%A7%C3%A3o.++A+beleza+de+nossas+pe%C3%A7as+voc%C3%AA+v%C3%AA+no+design+diferenciado+e+na+qualidade+dos+materiais+utilizados%3B+na+sofistica%C3%A7%C3%A3o+dos+cristais%2C+muranos+e+madrep%C3%A9rolas%2C+ou+na+simplicidade+e+bom+gosto+das+cer%C3%A2micas%2C+sementes%2C+couro%2C+palha%2C+madeira+e+outros+materiais+interessantes+combinados+com+pedras+brasileiras.++++++The+feminine+soul+is+anxious+and+unrest%2C+always+looking+for+more+excitement+and+new+challenges.++We+produce+our+pieces+with+the+same+spontaneity+and+freedom.++You+can+find+the+beauty+in+the+special+design+and+components+of+quality%3B+the+sophistication+of+the+crystals%2C+murano+beads+and+mother-of-pearls+or+in+the+simplicity+of+ceramics%2C+seeds%2C+leather%2C+straw%2C+wood+and+many+other+fascinating+materials+combined+with+the+beauty+of+brazilian+stones.+++++++bijoux+bijouteria+bijuteria+necklace+bracelet+earring+seeds+leather+couro+sementes+design+madrep%C3%A9rola+mother-of-pearl+cristal+crystal+swarovski+straw+brazilian+stone+qualidade+quality+murano+ceramics+cer%C3%A2mica+feminine+soul+anxious+unrest+cole%C3%A7%C3%A3o+collection+acess%C3%B3rios+acessory+bolsa+bordado+bordada+customizar+moda+fashion+diferenciado+frog+leather+customized+brinco+chaveiro+pulseira+earring+keyholder+bracelet+purse+bolsa+bordada+veludo+contas+velvet%2C+mi%C3%A7anga+vidrilho+couro+r%C3%A3+Attuale+atual+moderna+sand%C3%A1lia+hawaiana+havaiana+strass+seda+sarja+voil+tecido+estampado+estampa+floral+costura+moeda+porta-j%C3%B3ia+porta+j%C3%B3ia+acabamento+colar+pulseira+an%C3%A9is+anel+novidade+moda+fashion+bonito+delicado+arrojado+diferente+trabalho+artesanal+artesanato+bioj%C3%B3ia+bio-j%C3%B3ia+biojoia+bio-joia+abalone+concha+couro+peixe+fish+leather+VIP+chic+bom+gosto+fish+skin+pele+peixe+coconut+indian+indiano+coral+turquesa+biojewel+bio-+jewel+maxicolar+maxi-colar+maxi+colar';
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();
};
