/* [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','402852',jdecode('OFERTAS'),jdecode(''), jdecode('%2F402852.html'), 'true',[],'',''],
	['PAGE','209852',jdecode('VIDEOS'),jdecode(''), jdecode('%2F209852.html'), 'true',[],'',''],
	['PAGE','46152',jdecode('OTC'),jdecode(''), jdecode('%2F46152%2Findex.html'), 'true',[ 
		['PAGE','318452',jdecode('PEGISYS'),jdecode(''), jdecode('%2F46152%2F318452.html'), 'true',[],'',''],
		['PAGE','369552',jdecode('GENISYS+EVO'),jdecode(''), jdecode('%2F46152%2F369552.html'), 'true',[],'',''],
		['PAGE','166415',jdecode('NEMISYS'),jdecode(''), jdecode('%2F46152%2F166415.html'), 'true',[],'',''],
		['PAGE','394852',jdecode('ACTUALIZACION'),jdecode(''), jdecode('%2F46152%2F394852.html'), 'false',[],'',''],
		['PAGE','470877',jdecode('OSCILOSCOPIO'),jdecode(''), jdecode('%2F46152%2F470877.html'), 'false',[],'','']
	],'',''],
	['PAGE','4556',jdecode('VEDIS+II+%2F+DOL'),jdecode(''), jdecode('%2F4556%2Findex.html'), 'true',[ 
		['PAGE','470277',jdecode('DOL'),jdecode(''), jdecode('%2F4556%2F470277.html'), 'true',[],'',''],
		['PAGE','520377',jdecode('VEDIS+II'),jdecode(''), jdecode('%2F4556%2F520377.html'), 'true',[],'',''],
		['PAGE','166352',jdecode('KIT+MEXICO'),jdecode(''), jdecode('%2F4556%2F166352.html'), 'false',[],'',''],
		['PAGE','166373',jdecode('KIT+LUXE'),jdecode(''), jdecode('%2F4556%2F166373.html'), 'false',[],'','']
	],'',''],
	['PAGE','46173',jdecode('INJECTOCLEAN'),jdecode(''), jdecode('%2F46173%2Findex.html'), 'true',[ 
		['PAGE','166457',jdecode('CJ4+LA'),jdecode(''), jdecode('%2F46173%2F166457.html'), 'true',[],'',''],
		['PAGE','166478',jdecode('CJ3R'),jdecode(''), jdecode('%2F46173%2F166478.html'), 'false',[],'',''],
		['PAGE','174652',jdecode('ACTUALIZA+TU+CJ'),jdecode(''), jdecode('%2F46173%2F174652.html'), 'false',[],'','']
	],'',''],
	['PAGE','242352',jdecode('LAUNCH+X431'),jdecode(''), jdecode('%2F242352%2Findex.html'), 'true',[ 
		['PAGE','372752',jdecode('MASTER'),jdecode(''), jdecode('%2F242352%2F372752.html'), 'true',[],'',''],
		['PAGE','435477',jdecode('DIAGUN'),jdecode(''), jdecode('%2F242352%2F435477.html'), 'true',[],'','']
	],'',''],
	['PAGE','371752',jdecode('LABORATORIO'),jdecode(''), jdecode('%2F371752.html'), 'true',[],'',''],
	['PAGE','455677',jdecode('RAMPA+LAUNCH'),jdecode(''), jdecode('%2F455677.html'), 'true',[],'',''],
	['PAGE','532677',jdecode('RAMPA+ATLAS'),jdecode(''), jdecode('%2F532677.html'), 'true',[],'',''],
	['PAGE','357352',jdecode('DIESEL'),jdecode(''), jdecode('%2F357352.html'), 'true',[],'',''],
	['PAGE','132352',jdecode('PROBADORES'),jdecode(''), jdecode('%2F132352%2Findex.html'), 'true',[ 
		['PAGE','166562',jdecode('INF.+TECNICA'),jdecode(''), jdecode('%2F132352%2F166562.html'), 'true',[],'','']
	],'',''],
	['PAGE','166541',jdecode('UEI'),jdecode(''), jdecode('%2F166541.html'), 'true',[],'',''],
	['PAGE','46194',jdecode('ZENITROM'),jdecode(''), jdecode('%2F46194.html'), 'true',[],'',''],
	['PAGE','488677',jdecode('LISLE'),jdecode(''), jdecode('%2F488677.html'), 'true',[],'',''],
	['PAGE','46215',jdecode('MIKEL%C2%B4S'),jdecode(''), jdecode('%2F46215.html'), 'true',[],'',''],
	['PAGE','393952',jdecode('RAMPA+EUROLIFT'),jdecode(''), jdecode('%2F393952.html'), 'false',[],'',''],
	['PAGE','137852',jdecode('LLANTERAS'),jdecode(''), jdecode('%2F137852.html'), 'true',[],'',''],
	['PAGE','166520',jdecode('%C2%BFCOMO+ELEGIR%3F'),jdecode(''), jdecode('%2F166520%2Findex.html'), 'true',[ 
		['PAGE','136152',jdecode('COBERTURA'),jdecode(''), jdecode('%2F166520%2F136152.html'), 'true',[],'',''],
		['PAGE','120952',jdecode('GUIA+P%2FELEGIR'),jdecode(''), jdecode('%2F166520%2F120952.html'), 'true',[],'','']
	],'',''],
	['PAGE','46257',jdecode('TIPS+F.+I.'),jdecode(''), jdecode('%2F46257.html'), 'true',[],'',''],
	['PAGE','137152',jdecode('CURSOS'),jdecode(''), jdecode('%2F137152.html'), 'true',[],'',''],
	['PAGE','313352',jdecode('MECA-CLUB'),jdecode(''), jdecode('%2F313352.html'), 'false',[],'',''],
	['PAGE','217752',jdecode('CUAUTI'),jdecode(''), jdecode('%2F217752.html'), 'true',[],'',''],
	['PAGE','33457',jdecode('LIBRO+DE+VISITAS'),jdecode(''), jdecode('%2F33457%2Findex.html'), 'false',[ 
		['PAGE','33452',jdecode('LEER+LIBRO+'),jdecode(''), jdecode('%2F33457%2F33452.html'), 'true',[],'','']
	],'',''],
	['PAGE','208652',jdecode('TRADUCTOR'),jdecode(''), jdecode('%2F208652.html'), 'true',[],'','']];
var siteelementCount=42;
theSitetree.topTemplateName='Transluszent';
theSitetree.paletteFamily='000099';
theSitetree.keyvisualId='9240';
theSitetree.keyvisualName='kv2.swf';
theSitetree.fontsetId='17360';
theSitetree.graphicsetId='12755';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'grp13-hostin',
  product: 'WSCSYSSSSLY0XJEZ'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Transluszent',
				paletteFamily: 	'000099',
				keyvisualId: 	'9240',
				keyvisualName: 	'kv2.swf',
				fontsetId: 		'17360',
				graphicsetId: 	'12755',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46152',
internalId:  '',
customField: '20110802-122842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '318452',
internalId:  '',
customField: '20110802-165837'
};
webappMappings['1002']=webappMappings['1002-33452avec10inx3lf']={
webappId:    '1002',
documentId:  '33452',
internalId:  '33452avec10inx3lf',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '209852',
internalId:  '',
customField: '20111010-163622'
};
webappMappings['1003']=webappMappings['1003-avec10inx3lf11ecbacb1f2']={
webappId:    '1003',
documentId:  '313352',
internalId:  'avec10inx3lf11ecbacb1f2',
customField: 'es:ES'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46194',
internalId:  '',
customField: '20111104-182720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '393952',
internalId:  '',
customField: '20090528-122837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166415',
internalId:  '',
customField: '20110802-170439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4556',
internalId:  '',
customField: '20110725-112303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166352',
internalId:  '',
customField: '20100326-145242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166373',
internalId:  '',
customField: '20100326-145524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46173',
internalId:  '',
customField: '20111114-122257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166457',
internalId:  '',
customField: '20120106-165011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166478',
internalId:  '',
customField: '20090602-131946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174652',
internalId:  '',
customField: '20090508-171708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '372752',
internalId:  '',
customField: '20101201-184034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '242352',
internalId:  '',
customField: '20100928-174958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132352',
internalId:  '',
customField: '20100607-162237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166541',
internalId:  '',
customField: '20100222-130335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166562',
internalId:  '',
customField: '20101123-132623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46215',
internalId:  '',
customField: '20111104-183545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137852',
internalId:  '',
customField: '20120202-120131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166520',
internalId:  '',
customField: '20100223-104727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136152',
internalId:  '',
customField: '20100223-105032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120952',
internalId:  '',
customField: '20100607-161436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46257',
internalId:  '',
customField: '20100607-161605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137152',
internalId:  '',
customField: '20100326-120645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '217752',
internalId:  '',
customField: '20100223-110228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '369552',
internalId:  '',
customField: '20110802-165416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '313352',
internalId:  '',
customField: '20090123-142714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33457',
internalId:  '',
customField: '20090214-145131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33452',
internalId:  '',
customField: '20090216-121704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '208652',
internalId:  '',
customField: '20100928-171403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '435477',
internalId:  '',
customField: '20100607-162659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357352',
internalId:  '',
customField: '20110607-161320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '371752',
internalId:  '',
customField: '20100610-102111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '532677',
internalId:  '',
customField: '20111028-154943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '394852',
internalId:  '',
customField: '20090528-124036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '402852',
internalId:  '',
customField: '20120221-175610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '455677',
internalId:  '',
customField: '20111028-155034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '470277',
internalId:  '',
customField: '20101117-113759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '470877',
internalId:  '',
customField: '20101119-110650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '520377',
internalId:  '',
customField: '20110725-114104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '488677',
internalId:  '',
customField: '20110707-094115'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INX3LF';
var companyName   = 'HERRAMIENTAS+Y+SCANERS+CUAUTI';
var htmlTitle	  = 'herramientasyscaners.com.mx++cuauti.com.mx';
var metaKeywords  = 'SCANNERS+OTC+VEDIS+NEMISYS+GENISYS+X-RAY+RAMPAS+DE+2+POSTES+EQUIPO+DE+LAVANTE+DIAGNOSTICO+AUTOMOTRIZ+MULTIMETROS+OSCILOSCOPIOS+AUTOMOTRICES+SPX++INJECTOCLEAN++CJEURO+CJ-EURO+CJ4%2C+LABORATORIOS%2C+ANALIZADORES+DE+GASES%2C+MULTIMETROS%2C+BOYAS%2C+EQUIPO+PARA+LLANTERA%2C+SCANER+VEDIS%2C+AUTOLAND%2C+SCANERS+BASICOS%2C+LAVADO+DE+INYECTORES%2C+RAMPAS+DE+2+POSTES%2C+RAMPA+DE+4+POSTES%2C+ACTUALIZACION+DE+OTC';
var metaContents  = 'SCANNER+DE+DIAGNOSTICO+AUTOMOTRIZ%2C++OTC+SPX%2C+GENISYS+NEMISYS+X-RAY%2C++VEDIS+AUTOLAND%2C++MIKEL%C2%B4S%2C++ZENITROM%2C++INJECTOCLEAN%2C++CJEURO+CJ4%2C+RAMPAS+AUTOMOTRICES%2C+RAMPAS+DE+2+Y+4+POSTES%2C+LLANTERAS%2C+SCANERS+BASICOS%2C+MULTIMETROS%2C+BOYAS%2C+SCANER+PARA+DIESEL%2C+OFERTAS+EN+SCANERS';
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();
};

