/* [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','1801',jdecode('Lojas+Afrodis%C3%ADaco'),jdecode(''),'/1801.html','true',[],'',''],
	['PAGE','8901',jdecode('Moda+Feminina'),jdecode(''),'/8901.html','true',[],'',''],
	['PAGE','54601',jdecode('Livro+de+Visitas'),jdecode(''),'/54601.html','true',[],'',''],
	['PAGE','2167',jdecode('Promo%C3%A7%C3%B5es'),jdecode(''),'/2167.html','true',[],'',''],
	['PAGE','183445',jdecode('Bolsas'),jdecode(''),'/183445.html','true',[],'',''],
	['PAGE','229077',jdecode('Bijouterias'),jdecode(''),'/229077.html','true',[],'',''],
	['PAGE','71201',jdecode('Meias+7%2F8+e+outras'),jdecode(''),'/71201.html','true',[],'',''],
	['PAGE','39801',jdecode('Fitness'),jdecode(''),'/39801.html','true',[],'',''],
	['PAGE','21401',jdecode('Calcinhas%2FTangas'),jdecode(''),'/21401.html','true',[],'',''],
	['PAGE','1978',jdecode('Langerie+Dia+e+Noite'),jdecode(''),'/1978.html','true',[],'',''],
	['PAGE','153045',jdecode('Modelador%2FCinta-cal%C3%A7a'),jdecode(''),'/153045.html','true',[],'',''],
	['PAGE','21901',jdecode('Brincadeiras'),jdecode(''),'/21901.html','true',[],'',''],
	['PAGE','2125',jdecode('Sado%2FAcess%C3%B3rios'),jdecode(''),'/2125.html','true',[],'',''],
	['PAGE','2083',jdecode('Cuecas'),jdecode(''),'/2083.html','true',[],'',''],
	['PAGE','8943',jdecode('Biquinis'),jdecode(''),'/8943.html','true',[],'',''],
	['PAGE','8964',jdecode('Sungas'),jdecode(''),'/8964.html','true',[],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Handy';
theSitetree.paletteFamily='CF07FF';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='91';
theSitetree.graphicsetId='110';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Handy',
				paletteFamily: 	'CF07FF',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'91',
				graphicsetId: 	'110',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'CF07FF',
				b_color: 		'FF3081',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2167',
internalId:  '',
customField: '20100719-113500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20100719-134219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20100719-134819'
};
webappMappings['1501']=webappMappings['1501-11538810']={
webappId:    '1501',
documentId:  '1801',
internalId:  '11538810',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2083',
internalId:  '',
customField: '20100719-122922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8964',
internalId:  '',
customField: '20100521-121208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8943',
internalId:  '',
customField: '20100304-155556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1978',
internalId:  '',
customField: '20100222-140012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2125',
internalId:  '',
customField: '20100518-175640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '229077',
internalId:  '',
customField: '20100719-142104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21401',
internalId:  '',
customField: '20100518-173024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21901',
internalId:  '',
customField: '20100719-123101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71201',
internalId:  '',
customField: '20100222-133329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39801',
internalId:  '',
customField: '20100518-172650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153045',
internalId:  '',
customField: '20100719-125259'
};
webappMappings['1002']=webappMappings['1002-54601avec10inptbi']={
webappId:    '1002',
documentId:  '54601',
internalId:  '54601avec10inptbi',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54601',
internalId:  '',
customField: '20100201-114412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183445',
internalId:  '',
customField: '20100719-140019'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1801',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INPTBI';
var companyName   = '%2847%29+3344-0037++-+Centro+-+Itajai+';
var htmlTitle	  = 'AFRODISIACO';
var metaKeywords  = 'afrodisiaco+moda+intima+langerie+Moda+feminina%2C++fitness%2C+biquinis%2C+shortes%2C+bermudas%2C+blusas%2C+camisetas%2C+regatas%2C+cal%C3%A7as%2C+legging%2C+moda+praia%2C+soutiens%2C+cal%C3%A7inhas%2C+tanga%2C+fio%2C+bijouteria%2C+cuecas%2C+samba+can%C3%A7%C3%A3o%2C+cueca+boxer%2C+pijamas%2C+bolsas%2C+%C3%B3culos%2C+caerteiras%2C+promo%C3%A7%C3%B5es%2C+liquida%C3%A7%C3%A3o%2C+cal%C3%A7a+jeans%2C+saruel%2C+vestidos%2C+chapeus%2C+Mash%2C+Sacala%2C+Denuncia%2C+Universe+teen%2C+xiquita+bacana%2C+Linda+z%2C+duloren%2C+sol+e+energia%2C+sunga%2C+boa+forma%2C';
var metaContents  = 'afrodisiaco+moda+feminana+intima%2C+moda+intima%2C+langerie%2C+fitness%2C+biquinis%2C+shortes%2C+bermudas%2C+blusas%2C+camisetas%2C+regatas%2C+cal%C3%A7as%2C+legging%2C+moda+praia%2C+soutiens%2C+cal%C3%A7inhas%2C+tanga%2C+fio%2C+bijouteria%2C+cuecas%2C+samba+can%C3%A7%C3%A3o%2C+cueca+boxer%2C+pijamas%2C+bolsas%2C+%C3%B3culos%2C+carteiras%2C+promo%C3%A7%C3%B5es%2C+liquida%C3%A7%C3%A3o%2C+cal%C3%A7a+jeans%2C+saruel%2C+vestidos%2C+chapeus%2C+Mash%2C+Sacala%2C+Rep%C3%BAblica%2C+emporio%2C++Universe+teen%2C+xiquita+bacana%2C+Linda+z%2C+duloren%2C+sol+e+energia%2C+sunga%2C+boa+forma%2C';
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();
};
