/* [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','5801',jdecode('P%C3%A1gina+inicial'),jdecode(''),'/5801.html','true',[],'',''],
	['PAGE','1001',jdecode('Produtos'),jdecode(''),'/1001/index.html','true',[ 
		['PAGE','12101',jdecode('Aramados'),jdecode(''),'/1001/12101.html','true',[],'',''],
		['PAGE','12122',jdecode('Brocas'),jdecode(''),'/1001/12122.html','true',[],'',''],
		['PAGE','13632',jdecode('Buchas'),jdecode(''),'/1001/13632.html','true',[],'',''],
		['PAGE','12143',jdecode('Cadeados'),jdecode(''),'/1001/12143.html','true',[],'',''],
		['PAGE','13401',jdecode('Conchas'),jdecode(''),'/1001/13401.html','true',[],'',''],
		['PAGE','13422',jdecode('Corredi%C3%A7as'),jdecode(''),'/1001/13422.html','true',[],'',''],
		['PAGE','13443',jdecode('Cremonas%2FVaras'),jdecode(''),'/1001/13443.html','true',[],'',''],
		['PAGE','13464',jdecode('Dobradi%C3%A7as%2FPalmelas'),jdecode(''),'/1001/13464.html','true',[],'',''],
		['PAGE','13485',jdecode('Fechaduras%2FMa%C3%A7anetas%2FRosetas'),jdecode(''),'/1001/13485.html','true',[],'',''],
		['PAGE','13506',jdecode('Fechos%2FTrincos%2FTarjetas'),jdecode(''),'/1001/13506.html','true',[],'',''],
		['PAGE','13527',jdecode('Ferramentas'),jdecode(''),'/1001/13527.html','true',[],'',''],
		['PAGE','58101',jdecode('Ferramentas+El%C3%A9tricas'),jdecode(''),'/1001/58101.html','true',[],'',''],
		['PAGE','13548',jdecode('Lixas'),jdecode(''),'/1001/13548.html','true',[],'',''],
		['PAGE','13569',jdecode('M%C3%A3os+Francesas'),jdecode(''),'/1001/13569.html','true',[],'',''],
		['PAGE','13590',jdecode('Molas+para+porta'),jdecode(''),'/1001/13590.html','true',[],'',''],
		['PAGE','13611',jdecode('Parafusos%2FPorcas%2FArruelas'),jdecode(''),'/1001/13611.html','true',[],'',''],
		['PAGE','13653',jdecode('P%C3%A9s+para+m%C3%B3veis+e+mesas'),jdecode(''),'/1001/13653.html','true',[],'',''],
		['PAGE','13674',jdecode('Pregos'),jdecode(''),'/1001/13674.html','true',[],'',''],
		['PAGE','14101',jdecode('Puxadores'),jdecode(''),'/1001/14101.html','true',[],'',''],
		['PAGE','58122',jdecode('Puxadores+Duplos'),jdecode(''),'/1001/58122.html','true',[],'',''],
		['PAGE','14122',jdecode('Rebites'),jdecode(''),'/1001/14122.html','true',[],'',''],
		['PAGE','14143',jdecode('Rod%C3%ADzios'),jdecode(''),'/1001/14143.html','true',[],'',''],
		['PAGE','14164',jdecode('Sistema+para+portas+de+correr'),jdecode(''),'/1001/14164.html','true',[],'',''],
		['PAGE','58143',jdecode('Suportes+de+prateleira'),jdecode(''),'/1001/58143.html','true',[],'',''],
		['PAGE','14522',jdecode('Trilhos'),jdecode(''),'/1001/14522.html','true',[],'','']
	],'',''],
	['PAGE','5822',jdecode('Parceiros'),jdecode(''),'/5822.html','true',[],'',''],
	['PAGE','27201',jdecode('Enquetes'),jdecode(''),'/27201.html','true',[],'',''],
	['PAGE','23101',jdecode('Onde+estamos'),jdecode(''),'/23101.html','true',[],'',''],
	['PAGE','56501',jdecode('Nossa+Loja+na+M%C3%ADdia'),jdecode(''),'/56501/index.html','true',[ 
		['PAGE','57201',jdecode('Revista+Arquitetura+%26+Constru%C3%A7%C3%A3o'),jdecode(''),'/56501/57201.html','true',[],'',''],
		['PAGE','56522',jdecode('Revista+Casa+CLAUDIA'),jdecode(''),'/56501/56522.html','true',[],'',''],
		['PAGE','56543',jdecode('Revista+CASA+%26+Decora%C3%A7%C3%A3o'),jdecode(''),'/56501/56543.html','true',[],'','']
	],'',''],
	['PAGE','6406',jdecode('Contato'),jdecode(''),'/6406.html','true',[],'','']];
var siteelementCount=35;
theSitetree.topTemplateName='Sportive';
theSitetree.paletteFamily='F6F6E6';
theSitetree.keyvisualId='2693';
theSitetree.keyvisualName='werkzeuge.jpg';
theSitetree.fontsetId='223';
theSitetree.graphicsetId='260';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F6F6E6';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Sportive',
				paletteFamily: 	'F6F6E6',
				keyvisualId: 	'2693',
				keyvisualName: 	'werkzeuge.jpg',
				fontsetId: 		'223',
				graphicsetId: 	'260',
				contentColor: 	'000000',
				contentBGColor: 'F6F6E6',
				a_color: 		'F6F6E6',
				b_color: 		'CCCCC0',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20070924-112300'
};
webappMappings['7005']=webappMappings['7005-417']={
webappId:    '7005',
documentId:  '27201',
internalId:  '417',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58101',
internalId:  '',
customField: '20090428-122106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1001',
internalId:  '',
customField: '20080404-062451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20070710-130344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12122',
internalId:  '',
customField: '20070716-134532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13632',
internalId:  '',
customField: '20070716-134728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12143',
internalId:  '',
customField: '20070822-055540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13401',
internalId:  '',
customField: '20070716-135310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13422',
internalId:  '',
customField: '20070716-135409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13443',
internalId:  '',
customField: '20070820-140641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13464',
internalId:  '',
customField: '20070716-135554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13485',
internalId:  '',
customField: '20070830-102501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13506',
internalId:  '',
customField: '20070727-114846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13527',
internalId:  '',
customField: '20070727-121825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13548',
internalId:  '',
customField: '20070821-110122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13569',
internalId:  '',
customField: '20070727-133459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13590',
internalId:  '',
customField: '20070727-133729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13611',
internalId:  '',
customField: '20070727-134357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13653',
internalId:  '',
customField: '20070802-124021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13674',
internalId:  '',
customField: '20070830-102608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20070830-102838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14122',
internalId:  '',
customField: '20070830-103014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14143',
internalId:  '',
customField: '20070822-060106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14164',
internalId:  '',
customField: '20070821-120854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14522',
internalId:  '',
customField: '20070830-105250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5822',
internalId:  '',
customField: '20070626-134807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27201',
internalId:  '',
customField: '20070223-132946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23101',
internalId:  '',
customField: '20090423-143943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6406',
internalId:  '',
customField: '20091112-114338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56501',
internalId:  '',
customField: '20090424-084424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56522',
internalId:  '',
customField: '20090424-082351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56543',
internalId:  '',
customField: '20090424-084536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58122',
internalId:  '',
customField: '20090428-113707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58143',
internalId:  '',
customField: '20090428-113707'
};
webappMappings['7060']=webappMappings['7060-60f82c1752b3b8815ccb926997bc6431']={
webappId:    '7060',
documentId:  '57201',
internalId:  '60f82c1752b3b8815ccb926997bc6431',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-2aa2be3b277df261803ee11310c544c8']={
webappId:    '7060',
documentId:  '56522',
internalId:  '2aa2be3b277df261803ee11310c544c8',
customField: 'language:pt;country:BR;'
};
webappMappings['7060']=webappMappings['7060-ba06f8fea9274e4d1a0648ced1ba3c24']={
webappId:    '7060',
documentId:  '56543',
internalId:  'ba06f8fea9274e4d1a0648ced1ba3c24',
customField: 'language:pt;country:BR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57201',
internalId:  '',
customField: '20090424-082116'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INEH35';
var companyName   = 'Parafusos-Fechaduras-Puxadores-Ferragens+em+geral';
var htmlTitle	  = 'Paes+Leme+Parafusos+e+Ferragens+-+Fechaduras%2C+Puxadores%2C+Ferragens+em+geral.';
var metaKeywords  = 'meta+name%3Dverify-v1+content%3D9RdA%2FLoEA5zWVfjeV%2FzZQQZQev%2F2GKaJkP4PMYcgL5Y%3D+%2F+++parafuso%3B+Parafusos%3B+barras+roscadas%3B+bucha%3B+buchas%3B+porca%3B+porcas%3B+arruela%3B+arruelas%3B+fechadura%3B+fechaduras%3B+puxador%3B+puxadores%3B+aramado%3B+aramados%3B+rebite%3B+rebites%3B+prego%3B+pregos%3B+broca%3B+brocas%3B+cadeado%3B+cadeados%3B+ferramenta%3B+ferramentas%3B+lixa%3B+lixas%3B+concha%3B+conchas%3B+cremone%3B+cremones%3B+cremona%3B+cremonas%3B+vara%3B+varas%3B+vara+para+cremone%3B+varas+para+cremone%3B+corredica%3B+corredicas%3B+corredi%C3%A7a%3B+corredi%C3%A7as%3B+dobradi%C3%A7a%3B+dobradi%C3%A7as%3B+palmela%3B+palmelas%3B+fecho%3B+fechos%3B+trinco%3B+trincos%3B+tarjeta%3B+tarjetas%3B+sistema+para+portas+de+correr%3B+porta+correr%3B+correr%3B+trilho%3B+trilhos%3B+rodizio%3B+rodizios%3B+mao%3B+maos%3B+mao+francesa%3B+maos+francesas%3B+mola%3B+molas%3B+mola+para+porta%3B+molas+para+porta%3B+pe%3B+pes%3B+movel%3B+moveis%3B+mesa%3B+mesas%3B+lancamento%3B+lancamentos%3B+lan%C3%A7amento%3B+lan%C3%A7amentos%3B+fabrica%3B+fabricantes%3B+alian%C3%A7a%3B+altero%3B+arouca%3B+ciser%3B+dormer%3B+eurofer%3B+FGVTN%3B+fgvtn%3B+incomaq%3B+la+fonte%3B+lafonte%3B+papaiz%3B+rennan%3B+renan%3B+rodiline%3B+metalurgica+rodrigues%3B+metalurgica%3B+rodrigues%3B+aluminio%3B+sp+aluminio%3B+parceria%3B+parcerias%3B+estabelecidas%3B+excelente%3B+qualidade%3B+melhores+precos%3B+melhor%3B+preco%3B+pre%C3%A7os%3B+pre%C3%A7o%3B+atacado%2Fvarejo%3B+atacado%3B+varejo%3B+aceitamos%3B+forma+de+pagamento%3B+formas+de+pagamento%3B+pagamento%3B+construcard%3B+caixa+economica+federal%3B+paes+leme%3B+pais%3B+paes%3B+leme%3B+parafusos%3B+parafuso%3B+e%3B+Ferragens%3B+ferragem%3B+especializada%3B+especializadas%3B+em%3B+parafusos%3B+fechaduras%3B+fechadura%3B+puxadores%3B+puxador%3B+ferragens+em+geral%3B+contamos%3B+com%3B+um%3B+estoque%3B+estoques%3B+de%3B+mais%3B+de%3B+7200%3B+diferentes%3B+diferente%3B+itens%3B+item%3B+para%3B+atender%3B+nossos%3B+nosso%3B+clientes%3B+cliente%3B+nas%3B+mais%3B+diversas%3B+diversa%3B+necessidade%3B+produtos%3B+produto%3B';
var metaContents  = 'meta+name%3Dverify-v1+content%3D9RdA%2FLoEA5zWVfjeV%2FzZQQZQev%2F2GKaJkP4PMYcgL5Y%3D+%2F+++A+Paes+Leme+Parafusos+e+Ferragens+%C3%A9+especializada+em+parafusos%2C+fechaduras%2C+puxadores+e+ferragens+em+geral.++Contamos+com+um+estoque+de+mais+de+7200+diferentes+itens+para+atender+nossos+clientes+nas+mais+diversas+necessidades.++++Alguns+de+nossos+produtos%3A++++%E2%80%A2+Parafusos%2FBarras+Roscadas%2FBuchas%2FPorcas%2FArruelas++%E2%80%A2+Fechaduras%2FMa%C3%A7anetas%2FRosetas++%E2%80%A2+Puxadores++%E2%80%A2+Aramados++%E2%80%A2+Rebites++%E2%80%A2+Pregos++%E2%80%A2+Brocas++%E2%80%A2+Cadeados++%E2%80%A2+Ferramentas++%E2%80%A2+Lixas++%E2%80%A2+Conchas++%E2%80%A2+Cremones%2FVaras+para+cremone++%E2%80%A2+Corredi%C3%A7as++%E2%80%A2+Dobradi%C3%A7as%2FPalmelas++%E2%80%A2+Fechos%2FTrincos%2FTarjetas++%E2%80%A2+Sistemas+para+portas+de+correr%2FTrilhos++%E2%80%A2+Rod%C3%ADzios++%E2%80%A2+M%C3%A3os+Francesas++%E2%80%A2+Molas+para+porta++%E2%80%A2+P%C3%A9s+para+m%C3%B3veis+e+mesas++++Contamos+com+produtos+e+lan%C3%A7amentos+dos+melhores+fabricantes+como%3A+Alian%C3%A7a%2C+Altero%2C+Arouca%2C+Ciser%2C+Dormer%2C+Eurofer%2C+FGVTN%2C+Incomaq%2C+La+Fonte%2C+Papaiz%2C+Rennan%2C+Rodiline%2C+Metal%C3%BArgica+Rodrigues%2C+SP+Alum%C3%ADnio%2C...+Gra%C3%A7as+%C3%A0s+parcerias+estabelecidas%2C+podemos+sempre+proporcionar+aos+nossos+clientes+produtos+de+excelente+qualidade%2C+com+os+melhores+pre%C3%A7os+praticados+no+mercado.+Atacado%2FVarejo.+Aceitamos+todas+as+formas+de+pagamento%2C+inclusive+o+Construcard+da+Caixa+Econ%C3%B4mica+Federal.++';
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();
};
