/* [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('INICIAL'),jdecode(''), jdecode('%2F1901.html'), 'true',[],'',''],
	['PAGE','101384',jdecode('FITA+PRENSADA'),jdecode(''), jdecode('%2F101384.html'), 'true',[],'',''],
	['PAGE','90184',jdecode('FITAS+DE+CETIM'),jdecode(''), jdecode('%2F90184.html'), 'true',[],'',''],
	['PAGE','94384',jdecode('Fita+de+Poa'),jdecode(''), jdecode('%2F94384.html'), 'true',[],'',''],
	['PAGE','91784',jdecode('Fitas+de+Voal'),jdecode(''), jdecode('%2F91784.html'), 'true',[],'',''],
	['PAGE','100284',jdecode('Saquinho+de+Organza'),jdecode(''), jdecode('%2F100284.html'), 'true',[],'',''],
	['PAGE','91184',jdecode('PISTOLAS+'),jdecode(''), jdecode('%2F91184.html'), 'true',[],'',''],
	['PAGE','97884',jdecode('VARIEDADES'),jdecode(''), jdecode('%2F97884.html'), 'true',[],'',''],
	['PAGE','98884',jdecode('flor+papel+aramada'),jdecode(''), jdecode('%2F98884.html'), 'true',[],'',''],
	['PAGE','5801',jdecode('La%C3%A7o+00+diversos'),jdecode(''), jdecode('%2F5801.html'), 'true',[],'',''],
	['PAGE','37633',jdecode('La%C3%A7o+c%2FEstampas'),jdecode(''), jdecode('%2F37633.html'), 'true',[],'',''],
	['PAGE','5843',jdecode('La%C3%A7o+02+e+Flor+02'),jdecode(''), jdecode('%2F5843.html'), 'true',[],'',''],
	['PAGE','85984',jdecode('LA%C3%87O+02+PRENSADO'),jdecode(''), jdecode('%2F85984.html'), 'true',[],'',''],
	['PAGE','102084',jdecode('LA%C3%87O+5+VOAL+E+POA'),jdecode(''), jdecode('%2F102084.html'), 'true',[],'',''],
	['PAGE','37791',jdecode('La%C3%A7o+05+diversos'),jdecode(''), jdecode('%2F37791.html'), 'true',[],'',''],
	['PAGE','16622',jdecode('Al%C3%A7as+de+Silicone'),jdecode(''), jdecode('%2F16622.html'), 'true',[],'',''],
	['PAGE','30801',jdecode('Cord%C3%A3o+JC3'),jdecode(''), jdecode('%2F30801.html'), 'true',[],'',''],
	['PAGE','25601',jdecode('Flor+Diversas'),jdecode(''), jdecode('%2F25601.html'), 'true',[],'',''],
	['PAGE','81762',jdecode('FLOR+PRENSADA'),jdecode(''), jdecode('%2F81762.html'), 'true',[],'',''],
	['PAGE','76251',jdecode('flor+e+la%C3%A7o+Organza'),jdecode(''), jdecode('%2F76251.html'), 'true',[],'',''],
	['PAGE','25643',jdecode('Prega+machos'),jdecode(''), jdecode('%2F25643.html'), 'true',[],'',''],
	['PAGE','73651',jdecode('Prega+lateral'),jdecode(''), jdecode('%2F73651.html'), 'true',[],'',''],
	['PAGE','23101',jdecode('FA%C3%87A+SEU+PEDIDO'),jdecode(''), jdecode('%2F23101.html'), 'true',[],'',''],
	['ITEM','23701',jdecode('ligue+gratis'),jdecode(''), jdecode('http%3A%2F%2Fapps.ct.tesatelecom.com%2F%3F9771F55A8A8489E809E3B4931FF8A131'), 'true',[],'','_blank']];
var siteelementCount=24;
theSitetree.topTemplateName='Trade';
theSitetree.paletteFamily='EF6219';
theSitetree.keyvisualId='12107';
theSitetree.keyvisualName='kv_12107.jpg';
theSitetree.fontsetId='33299';
theSitetree.graphicsetId='14172';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var prodDef={
  wl_name: 'brazilprod',
  product: 'WSCSYSSSSLY0X9A9'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Trade',
				paletteFamily: 	'EF6219',
				keyvisualId: 	'12107',
				keyvisualName: 	'kv_12107.jpg',
				fontsetId: 		'33299',
				graphicsetId: 	'14172',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20111017-073637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20111005-095529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90184',
internalId:  '',
customField: '20111005-095409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5843',
internalId:  '',
customField: '20111005-095632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100284',
internalId:  '',
customField: '20111004-075615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98884',
internalId:  '',
customField: '20111003-152424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16622',
internalId:  '',
customField: '20110914-080454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94384',
internalId:  '',
customField: '20111003-084729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97884',
internalId:  '',
customField: '20111006-122000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23101',
internalId:  '',
customField: '20100203-171333'
};
webappMappings['7008']=webappMappings['7008-14708']={
webappId:    '7008',
documentId:  '23101',
internalId:  '14708',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101384',
internalId:  '',
customField: '20111006-123359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91184',
internalId:  '',
customField: '20110927-152001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25601',
internalId:  '',
customField: '20111005-101640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73651',
internalId:  '',
customField: '20111005-103305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25643',
internalId:  '',
customField: '20111005-103236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91784',
internalId:  '',
customField: '20111003-131040'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76251',
internalId:  '',
customField: '20111005-103148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30801',
internalId:  '',
customField: '20111005-101607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102084',
internalId:  '',
customField: '20111006-131848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37633',
internalId:  '',
customField: '20111005-095601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37791',
internalId:  '',
customField: '20111005-100429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81762',
internalId:  '',
customField: '20111005-101954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85984',
internalId:  '',
customField: '20111005-095921'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I7C40G';
var companyName   = 'J%C3%94+LA%C3%87OS';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
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();
};

