/* [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','4593',jdecode('Quienes+somos'),jdecode(''),'/4593.html','true',[],'',''],
	['PAGE','5128',jdecode('Productos'),jdecode(''),'/5128/index.html','true',[ 
		['PAGE','18841',jdecode('Scanners'),jdecode(''),'/5128/18841.html','true',[],'',''],
		['PAGE','45350',jdecode('Aire+Acondicionado'),jdecode(''),'/5128/45350.html','true',[],'',''],
		['PAGE','45584',jdecode('Cajas+de+Herramientas'),jdecode(''),'/5128/45584.html','true',[],'',''],
		['PAGE','45602',jdecode('Equipo+de+Taller'),jdecode(''),'/5128/45602.html','true',[],'',''],
		['PAGE','45611',jdecode('Equipo+Ecol%C3%B3gico+'),jdecode(''),'/5128/45611.html','true',[],'',''],
		['PAGE','45620',jdecode('Esmeriles+y+Abrasicvos'),jdecode(''),'/5128/45620.html','true',[],'',''],
		['PAGE','45629',jdecode('Est%C3%A9tica+Automotriz'),jdecode(''),'/5128/45629.html','true',[],'',''],
		['PAGE','45199',jdecode('Equipo+para+Llanteras'),jdecode(''),'/5128/45199.html','true',[],'',''],
		['PAGE','45638',jdecode('Frenos'),jdecode(''),'/5128/45638.html','true',[],'',''],
		['PAGE','45647',jdecode('Herramienta+Manual'),jdecode(''),'/5128/45647.html','true',[],'',''],
		['PAGE','45665',jdecode('Herramienta+Neum%C3%A1tica'),jdecode(''),'/5128/45665.html','true',[],'',''],
		['PAGE','45674',jdecode('Herramienta+El%C3%A9ctrica'),jdecode(''),'/5128/45674.html','true',[],'',''],
		['PAGE','45738',jdecode('Hidrolavadoras'),jdecode(''),'/5128/45738.html','true',[],'',''],
		['PAGE','45747',jdecode('Hojalater%C3%ADa%2C+Soldadoras'),jdecode(''),'/5128/45747.html','true',[],'',''],
		['PAGE','45683',jdecode('Inyecci%C3%B3n+de+Comb.'),jdecode(''),'/5128/45683.html','true',[],'',''],
		['PAGE','45756',jdecode('Lubricaci%C3%B3n'),jdecode(''),'/5128/45756.html','true',[],'',''],
		['PAGE','45656',jdecode('Medici%C3%B3n+y+Equipo'),jdecode(''),'/5128/45656.html','true',[],'',''],
		['PAGE','45765',jdecode('Pintura+y+Preparaci%C3%B3n'),jdecode(''),'/5128/45765.html','true',[],'',''],
		['PAGE','5209',jdecode('Plantas+de+luz'),jdecode(''),'/5128/5209.html','true',[],'',''],
		['PAGE','5182',jdecode('Rampas+y+equipos'),jdecode(''),'/5128/5182.html','true',[],'',''],
		['PAGE','45792',jdecode('Suspenci%C3%B3n+y+Direcci%C3%B3n'),jdecode(''),'/5128/45792.html','true',[],'',''],
		['PAGE','45801',jdecode('Seguridad+Personal'),jdecode(''),'/5128/45801.html','true',[],'',''],
		['PAGE','45810',jdecode('Transmisiones+Autom%C3%A1ticas'),jdecode(''),'/5128/45810.html','true',[],'','']
	],'',''],
	['PAGE','5101',jdecode('Qu%C3%A9+hay+de+nuevo'),jdecode(''),'/5101.html','true',[],'',''],
	['PAGE','5236',jdecode('Ofertas'),jdecode(''),'/5236.html','true',[],'',''],
	['PAGE','5263',jdecode('Cont%C3%A1ctenos'),jdecode(''),'/5263.html','true',[],'',''],
	['PAGE','32445',jdecode('Informaci%C3%B3n+T%C3%A9cnica'),jdecode(''),'/32445.html','true',[],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='Building';
theSitetree.paletteFamily='00B6FF';
theSitetree.keyvisualId='11961';
theSitetree.keyvisualName='kv_11961.jpg';
theSitetree.fontsetId='33251';
theSitetree.graphicsetId='14119';
theSitetree.contentColor='333333';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Building',
				paletteFamily: 	'00B6FF',
				keyvisualId: 	'11961',
				keyvisualName: 	'kv_11961.jpg',
				fontsetId: 		'33251',
				graphicsetId: 	'14119',
				contentColor: 	'333333',
				contentBGColor: 'FFFFFF',
				a_color: 		'00B6FF',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5128',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4593',
internalId:  '',
customField: '20090325-210645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5128',
internalId:  '',
customField: '20100123-210404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45350',
internalId:  '',
customField: '20090502-195140'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '5128',
internalId:  '1501',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-ebb670a1691bffe965409a6bdca32cf1']={
webappId:    '7060',
documentId:  '18841',
internalId:  'ebb670a1691bffe965409a6bdca32cf1',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-5846']={
webappId:    '7008',
documentId:  '5263',
internalId:  '5846',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45584',
internalId:  '',
customField: '20090504-031805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45602',
internalId:  '',
customField: '20090502-191254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45611',
internalId:  '',
customField: '20090504-033529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45620',
internalId:  '',
customField: '20070725-154124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45629',
internalId:  '',
customField: '20090502-192716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45199',
internalId:  '',
customField: '20090502-024805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45638',
internalId:  '',
customField: '20090503-235253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45647',
internalId:  '',
customField: '20090503-233823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45665',
internalId:  '',
customField: '20090502-015203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45674',
internalId:  '',
customField: '20090502-012438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45738',
internalId:  '',
customField: '20090326-005100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45747',
internalId:  '',
customField: '20080501-172530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45683',
internalId:  '',
customField: '20070621-214222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45756',
internalId:  '',
customField: '20080501-171200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45656',
internalId:  '',
customField: '20090502-021300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45765',
internalId:  '',
customField: '20070423-231546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18841',
internalId:  '',
customField: '20091227-102534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5209',
internalId:  '',
customField: '20070617-185809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5182',
internalId:  '',
customField: '20090502-021621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45792',
internalId:  '',
customField: '20070625-084548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45801',
internalId:  '',
customField: '20090502-010233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45810',
internalId:  '',
customField: '20070520-162537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20091230-160728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5236',
internalId:  '',
customField: '20091230-160907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5263',
internalId:  '',
customField: '20070422-154542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32445',
internalId:  '',
customField: '20090502-184024'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INXS32';
var companyName   = 'Orion+Trade+S+de+RL+de+CV';
var htmlTitle	  = '';
var metaKeywords  = 'Injectoclean%2C+OTC%2C+scanners%2C+rampas+automotrices%2C+herramienta+fuel+inyection%2C+zenitrom%2C+boya+limpiadora+de+inyectores%2C+Herramienta+automoriz%2C+Equipo+para+Llanteras%2C+balanceadoras%2C+desmontadoras%2C+alineadoras.+plantas+de+luz%2C+frenos%2C+scanners%2C+hojalateria+y+pintura%2C+hidrolavadoras%2C+diagnostico+automotriz%2C+equipo+de+lubricacion%2C+herramienta+neum%C3%A1tica+y+electrica%2C+herramienta+de+aire+acondicionado%2C+Robinair%2C+SATA%2C+casetas+de+pintura%2C+herramientas%2C+rampas+automotrices%2C+balanceadoras%2C+scaner+automotriz%2C+plantas+de+luz%2C+generadores%2C+milt%C3%ADmetros%2C+aspiradoras%2Cpulidoras%2C+hdrolavadoras%2C+alineadoras%2C+Hornos+de+Pintura%2C+banco+de+enderezado%2C+bombas+de+aceite%2C+orquestas+de+lubricacion%2C+Bend+Pak%2C+rotary';
var metaContents  = 'Herramienta+Automotriz%2C+diagnostico+automotriz%2C+Scanners%2C+Scaners%2C+Escaners%2C+Injectronic%2C+Injectoclean%2C+Balanceadoras%2C+desmontadoras%2Cfuel+injection%2C+balanceadoras%2C+desmontadores+de+neumaticos%2C+plantas+de+luz%2C+Laboratorio+de+inyectores%2C+Manuales+automotrices%2C+Herramienta+Manual%2C+Pistolas+de+pintar%2C+Hidrolavadoras%2C+Hornos+de+Pintura%2C+soladadoras+MIG%2C+karcher%2C+pistola+neumatica%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();
};
