/* [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('Home'),jdecode(''),'/13.html','true',[],'',''],
	['PAGE','34',jdecode('EPIS'),jdecode(''),'/34/index.html','true',[ 
		['PAGE','43',jdecode('%C3%93culos%2FProt.+Auricular'),jdecode(''),'/34/43.html','true',[],'',''],
		['PAGE','52',jdecode('Luvas'),jdecode(''),'/34/52.html','true',[],'',''],
		['PAGE','70',jdecode('Material+Raspa'),jdecode(''),'/34/70.html','true',[],'',''],
		['PAGE','88',jdecode('Bota+PVC%2FBot.+Seg.'),jdecode(''),'/34/88.html','true',[],'',''],
		['PAGE','61',jdecode('Diversos'),jdecode(''),'/34/61.html','true',[],'','']
	],'',''],
	['PAGE','97',jdecode('Pe%C3%A7as+Especiais'),jdecode(''),'/97/index.html','true',[ 
		['PAGE','106',jdecode('Veda%C3%A7%C3%B5es'),jdecode(''),'/97/106.html','true',[],'',''],
		['PAGE','124',jdecode('Desenhos+Especiais'),jdecode(''),'/97/124.html','true',[],'',''],
		['PAGE','133',jdecode('Perfis%2FCord%C3%B5es'),jdecode(''),'/97/133.html','true',[],'','']
	],'',''],
	['PAGE','142',jdecode('Manut.+Industrial'),jdecode(''),'/142/index.html','true',[ 
		['PAGE','151',jdecode('Correias'),jdecode(''),'/142/151.html','true',[],'',''],
		['PAGE','160',jdecode('Mangueiras'),jdecode(''),'/142/160.html','true',[],'',''],
		['PAGE','1557',jdecode('placas%2Ftarugos'),jdecode(''),'/142/1557.html','true',[],'','']
	],'',''],
	['PAGE','223',jdecode('Promo%C3%A7%C3%B5es'),jdecode(''),'/223.html','true',[],'',''],
	['PAGE','232',jdecode('Contato'),jdecode(''),'/232/index.html','true',[ 
		['PAGE','1212',jdecode('Contato+%28p%C3%A1gina+seguir%29'),jdecode(''),'/232/1212.html','false',[],'','']
	],'','']];
var siteelementCount=18;
theSitetree.topTemplateName='Filofax';
theSitetree.paletteFamily='003333';
theSitetree.keyvisualId='468';
theSitetree.keyvisualName='elektriker.jpg';
theSitetree.fontsetId='61';
theSitetree.graphicsetId='63';
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: 			'Filofax',
				paletteFamily: 	'003333',
				keyvisualId: 	'468',
				keyvisualName: 	'elektriker.jpg',
				fontsetId: 		'61',
				graphicsetId: 	'63',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'003333',
				b_color: 		'33CCCC',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34',
internalId:  '',
customField: '20061004-121640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13',
internalId:  '',
customField: '20080403-063836'
};
webappMappings['7008']=webappMappings['7008-7831']={
webappId:    '7008',
documentId:  '232',
internalId:  '7831',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43',
internalId:  '',
customField: '20061003-162540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52',
internalId:  '',
customField: '20061004-122155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70',
internalId:  '',
customField: '20061004-122304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88',
internalId:  '',
customField: '20061004-122419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61',
internalId:  '',
customField: '20061004-122459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97',
internalId:  '',
customField: '20061004-122628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106',
internalId:  '',
customField: '20061004-122802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124',
internalId:  '',
customField: '20061004-115805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133',
internalId:  '',
customField: '20061004-122957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142',
internalId:  '',
customField: '20061003-161532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151',
internalId:  '',
customField: '20061004-123130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160',
internalId:  '',
customField: '20061004-123216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1557',
internalId:  '',
customField: '20061004-123416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '223',
internalId:  '',
customField: '20090521-080816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232',
internalId:  '',
customField: '20061004-121000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1212',
internalId:  '',
customField: '20061004-101059'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN226H';
var companyName   = 'MILLI-BOR+ARTEFATOS+DE+BORRACHA';
var htmlTitle	  = 'MILLI-BOR+TRABALHANDO+PARA+VOC%C3%8A';
var metaKeywords  = 'Oculos%2C+luva%2C+luvas%2C+protetor%2C+auricular%2C+plug%2C+concha%2C+jaguar%2C+rio%2C+janeiro%2C+seguran%C3%A7a%2C+equipamento%2C+prote%C3%A7%C3%A3o%2C+tricotada%2C+algod%C3%A3o%2C+4%2C+fios%2C+pigmentada%2C+nitrilica%2C+raspa%2C+neoprene%2C+latex%2C+avental%2C+aventais%2C+pvc%2C+mangote%2C+perneira%2C+punho%2C+capacete%2C+capacetes%2C+facial%2C+semi%2C+mascara%2C+mascaras%2C+descartavel%2C+p1%2C+poeiras%2C+vapores%2C+organico%2C+quimico%2C+quimicos%2C+capa%2C+morcego%2C+capas%2C+bota%2C+botas%2C+frigorifica%2C+botina%2C+botinas%2C+bico%2C+a%C3%A7o%2C+amarrar%2C+el%C3%A1stico%2C+vaqueta%2C+monodensidade%2C+sola%2C+solado%2C+arruela%2C+arruelas%2C+gaxeta%2C+gaxetas%2C+coxim%2C+coxins%2C+retentor%2C+retentores%2C+cal%C3%A7o%2C+cal%C3%A7os%2C+borracha%2C+borrachas%2C+natural%2C+nitrilico%2C+nitrilica%2C+neoprene%2C+epdm%2C+silicone%2C+viton%2C+perfil%2C+guarni%C3%A7%C3%A3o%2C+solido%2C+solidos%2C+esponjoso%2C+esponjosos%2C+pe%C3%A7a%2C+pe%C3%A7as%2C+tubos%2C+tubo%2C+bar%2C+cord%C3%A3o%2C+cord%C3%B5es%2C+correia%2C+correias%2C+sincronizadora%2C+at%2C+t%2C+passo%2C+metrico%2C+V%2C+3m%2C+5m%2C+14m%2C+mangueira%2C+mangueiras%2C+termoplastico%2C+vacuoar%2C+vacuo%2C+ar%2C+hidro%2C+cristal%2C+tran%C3%A7ada%2C+suc%C3%A7%C3%A3o%2C+leve%2C+m%C3%A9dio%2C+pesado%2C+pesada%2C+placas%2C+placa%2C+tarugo%2C+tarugos%2C+especial%2C+especiais%2C+prensada%2C+extrusado%2C+extrusada%2C+passa-fio%2C+bolinha%2C+pula%2C+milli-bor%2C+milli%2C+millibor%2C+nylon%2C+celeron%2C+polietileno%2C+alta+densidade%2C+polipropileno%2C+poliuretano%2C+chevron%2C+arruela%2C+coxim%2C+anel%2C+oring%2C+ventosa%2C+latex%2C+camera+fria%2C+';
var metaContents  = 'Milli-Bor+uma+empresa+no+mercado+dedicada+a+voc%C3%AA%2Ctrabalhamos+com+toda+linha+de++equipamentos+de+prote%C3%A7%C3%A3o+individual%2Cluva+tricotadas%2C+pigmentadas%2C+raspa%2C+nitrilica%2C+neoprene%2C+vaqueta.+%C3%93culos+de+seguran%C3%A7a%2C+aventais+de+raspa+e+pvc%2C+botas+de+pvc+branca+e+preta.+Botinas+de+seguran%C3%A7a+em+vaqueta+com+ou+sem+bico%2C+de+el%C3%A1stico+ou+amarrar.Botas+frigorificas+e+japonas+para+camara+fria.+Protetores+auriculares+tipo+plug+em+copolimero+e+silicone+e+tipo+concha.Confeccionamos+pe%C3%A7as+especiais+em+borracha+tanto+prensadas+como+extrusadas%2C+arruelas%2C+gaxeta%2C+coxim%2C+cal%C3%A7o%2C+retentor%2C+passa-fio%2C+no+modelo+que+sua+empresa+precisar.Perfis+e+guarni%C3%A7%C3%B5es+tanto+solido+quanto+esponjoso%2C+quadrados%2C+retangulares%2C+perfil+A%2C+perfil+U+e+perfil+D+mande+seu+desenho+ou+amostra+e+n%C3%B3s+realizamos%2C+Conficionamos+em+todos+elastomeros%28Borracha+natural%2C+nitr%C3%ADlica%2C+neoprene%2C+epdm%2C+silicone+e+viton.+Temos+cord%C3%B5es+em+borracha+e+PU%2C+Trabalhamos+com+plastico+industriais%2C+como+PP%2C+PU%2C+PTFE%2C+Polietileno%2C+Celeron.+Em+chapas+tarugos+ou+em+cortes+especiais.Entre+em+contato+conosco+no+telefone+11+6346-3566.';
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();
};

