/* [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','24',jdecode('Home'),jdecode(''), jdecode('%2F24.html'), 'true',[],'',''],
	['PAGE','1613',jdecode('Quem+somos'),jdecode(''), jdecode('%2F1613.html'), 'true',[],'',''],
	['PAGE','1478',jdecode('Produtos'),jdecode(''), jdecode('%2F1478%2Findex.html'), 'true',[ 
		['PAGE','1487',jdecode('Acoplamentos+de+Garras'),jdecode(''), jdecode('%2F1478%2F1487.html'), 'true',[],'',''],
		['PAGE','1496',jdecode('Acoplamentos+de+Pinos'),jdecode(''), jdecode('%2F1478%2F1496.html'), 'true',[],'',''],
		['PAGE','1505',jdecode('Acoplamentos+de+Pneu'),jdecode(''), jdecode('%2F1478%2F1505.html'), 'true',[],'',''],
		['PAGE','1514',jdecode('Acoplamentos+de+Cruzeta'),jdecode(''), jdecode('%2F1478%2F1514.html'), 'true',[],'',''],
		['PAGE','2595',jdecode('Acoplamentos+de+Grades'),jdecode(''), jdecode('%2F1478%2F2595.html'), 'true',[],'',''],
		['PAGE','2604',jdecode('Acopl.+de+Engrenagens'),jdecode(''), jdecode('%2F1478%2F2604.html'), 'true',[],'',''],
		['PAGE','2613',jdecode('Acoplamentos+HDA'),jdecode(''), jdecode('%2F1478%2F2613.html'), 'true',[],'',''],
		['PAGE','2622',jdecode('Acoplamentos+especiais'),jdecode(''), jdecode('%2F1478%2F2622.html'), 'true',[],'',''],
		['PAGE','3832',jdecode('Pe%C3%A7as+e+Servi%C3%A7os'),jdecode(''), jdecode('%2F1478%2F3832.html'), 'true',[],'','']
	],'',''],
	['PAGE','3750',jdecode('Tabelas+t%C3%A9cnicas'),jdecode(''), jdecode('%2F3750.html'), 'true',[],'',''],
	['PAGE','54245',jdecode('Calculo+do+acoplamento'),jdecode(''), jdecode('%2F54245.html'), 'true',[],'',''],
	['PAGE','3794',jdecode('Quality+By+Vision'),jdecode(''), jdecode('%2F3794.html'), 'true',[],'',''],
	['PAGE','11801',jdecode('Fale+conosco%21'),jdecode(''), jdecode('%2F11801.html'), 'true',[],'',''],
	['PAGE','81',jdecode('Reforma+de+Redutores+FALK'),jdecode(''), jdecode('%2F81.html'), 'true',[],'','']];
var siteelementCount=17;
theSitetree.topTemplateName='Kreis';
theSitetree.paletteFamily='4D4CD2';
theSitetree.keyvisualId='603';
theSitetree.keyvisualName='planen.jpg';
theSitetree.fontsetId='124';
theSitetree.graphicsetId='140';
theSitetree.contentColor='7794FB';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'pt',
  country: 'BR'
};
var prodDef={
  wl_name: 'brazilprod',
  product: 'WSCSYSSSSLY0X9WF'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Kreis',
				paletteFamily: 	'4D4CD2',
				keyvisualId: 	'603',
				keyvisualName: 	'planen.jpg',
				fontsetId: 		'124',
				graphicsetId: 	'140',
				contentColor: 	'7794FB',
				contentBGColor: '000000',
				a_color: 		'4D4CD2',
				b_color: 		'7794F8',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-1030449']={
webappId:    '1501',
documentId:  '24',
internalId:  '1030449',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '24',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24',
internalId:  '',
customField: '20110222-065551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1613',
internalId:  '',
customField: '20110116-132939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3750',
internalId:  '',
customField: '20110302-080228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1478',
internalId:  '',
customField: '20110119-073900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1487',
internalId:  '',
customField: '20110302-075520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1496',
internalId:  '',
customField: '20110302-075603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1505',
internalId:  '',
customField: '20110302-075642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1514',
internalId:  '',
customField: '20110302-075721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2595',
internalId:  '',
customField: '20110302-075829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2604',
internalId:  '',
customField: '20110302-075934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2613',
internalId:  '',
customField: '20110302-083615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2622',
internalId:  '',
customField: '20110302-080059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3832',
internalId:  '',
customField: '20110302-080144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3794',
internalId:  '',
customField: '20110302-080600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81',
internalId:  '',
customField: '20110302-081435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11801',
internalId:  '',
customField: '20110115-181826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54245',
internalId:  '',
customField: '20110302-080514'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10IN2UGQ';
var companyName   = 'Aciclon+Equipamentos+Industriais+Ltda+';
var htmlTitle	  = 'Aciclon+Acoplamentos+e+Redutores';
var metaKeywords  = 'acoplamento%2Ccalculo+de+acoplamento%2Cacoplamentos%2Cacoplamento+elastico%2C+acoplamento+r%C3%ADgido%2C+HDA%2Chda%2Cmetalflex%2Cfalk%2Cvulcan%2C+antares%2Crotex%2Cacoplamento+de+pneu%2C%0D%0ARedutores+Falk%0D%0ARedutores+de+velocidade%0D%0AReforma+de+redutores+Falk%0D%0Amademil%2Cgross%2Cluva+elastica%2Cmotor%2Cborracha%2Cpu%2Cpoliuretano%2Clamiflex%2Cecotork%2C%0D%0ACestari%2C+Flender%2C+Hansen%2C+Voith%2C+Transmot%C3%A9cnica%2C+Sew%2C+WEG%0D%0Aaciclon%2Caciobras%2Cacionac%2C++filtro%2Credutor%2Cmotor%2Cameridrive%2Cacoplamento%3F';
var metaContents  = 'acoplamentos+para+eixos+e+servi%C3%A7os+de+fura%C3%A7%C3%A3o+e+rasgo+de+chaveta%2C+calculo+de+acoplamentos%2C+aprenda+a+definir+o+melhor+tipo+de+acoplamento+para+sua+necessidade%2C%0D%0A+Como+calcular+o+tamanho+de+um+acoplamento+el%C3%A1stico%3F%0D%0AReforma+de+redutores+Falk%0D%0AREFORMA+DE+REDUTORES+EM+GERAL';
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();
};

