/* [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','1513',jdecode('Hi-Len+S+de+RL+de+CV'),jdecode(''),'/1513/index.html','true',[ 
		['PAGE','32943',jdecode('Vision'),jdecode(''),'/1513/32943.html','true',[],'',''],
		['PAGE','32952',jdecode('Mision'),jdecode(''),'/1513/32952.html','true',[],'',''],
		['PAGE','34846',jdecode('Garantias+Hi-Len'),jdecode(''),'/1513/34846.html','true',[],'','']
	],'',''],
	['PAGE','93801',jdecode('Exceso+de+Inventario+%21%21%21'),jdecode(''),'/93801/index.html','true',[ 
		['PAGE','163701',jdecode('Consumibles'),jdecode(''),'/93801/163701.html','true',[],'',''],
		['PAGE','163722',jdecode('Termopares+y+Resistencias'),jdecode(''),'/93801/163722.html','true',[],'',''],
		['PAGE','163764',jdecode('Sistemas+de+Produccion'),jdecode(''),'/93801/163764.html','true',[],'',''],
		['PAGE','163785',jdecode('Material+ESD'),jdecode(''),'/93801/163785.html','true',[],'',''],
		['PAGE','163806',jdecode('Lavadoras+Estenciles'),jdecode(''),'/93801/163806.html','true',[],'',''],
		['PAGE','101501',jdecode('Acrilico+Antiestatico'),jdecode(''),'/93801/101501.html','true',[],'',''],
		['PAGE','134301',jdecode('Lubricantes'),jdecode(''),'/93801/134301.html','true',[],'',''],
		['PAGE','163827',jdecode('Sensores%2C+Relevadores%2C+Etc.'),jdecode(''),'/93801/163827.html','true',[],'','']
	],'',''],
	['PAGE','165501',jdecode('ACRILICO+ANTIESTATICO'),jdecode(''),'/165501.html','true',[],'',''],
	['PAGE','158401',jdecode('Especiales+Hi-Len+%21%21%21'),jdecode(''),'/158401.html','false',[],'',''],
	['PAGE','1867',jdecode('Productos'),jdecode(''),'/1867.html','true',[],'',''],
	['PAGE','34599',jdecode('Fotos'),jdecode(''),'/34599.html','false',[],'',''],
	['PAGE','34058',jdecode('Solicite+Informacion'),jdecode(''),'/34058.html','true',[],'',''],
	['PAGE','1759',jdecode('Contactanos'),jdecode(''),'/1759/index.html','true',[ 
		['PAGE','1786',jdecode('Donde+Estamos%3F'),jdecode(''),'/1759/1786.html','true',[],'','']
	],'',''],
	['PAGE','32001',jdecode('Algunos+Clientes'),jdecode(''),'/32001.html','true',[],'',''],
	['PAGE','34918',jdecode('Bolsa+de+Trabajo'),jdecode(''),'/34918.html','true',[],'',''],
	['PAGE','33994',jdecode('Libro+de+Visitas'),jdecode(''),'/33994/index.html','true',[ 
		['PAGE','33993',jdecode('Leer+el+libro+de+Visitas'),jdecode(''),'/33994/33993.html','true',[],'','']
	],'','']];
var siteelementCount=24;
theSitetree.topTemplateName='Display';
theSitetree.paletteFamily='222222';
theSitetree.keyvisualId='11379';
theSitetree.keyvisualName='kv_11379.jpg';
theSitetree.fontsetId='31963';
theSitetree.graphicsetId='13802';
theSitetree.contentColor='1B1B1B';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Display',
				paletteFamily: 	'222222',
				keyvisualId: 	'11379',
				keyvisualName: 	'kv_11379.jpg',
				fontsetId: 		'31963',
				graphicsetId: 	'13802',
				contentColor: 	'1B1B1B',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163827',
internalId:  '',
customField: '20100831-115606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134301',
internalId:  '',
customField: '20100831-115024'
};
webappMappings['1002']=webappMappings['1002-33994avec10inxxpq']={
webappId:    '1002',
documentId:  '33994',
internalId:  '33994avec10inxxpq',
customField: 'icq=false'
};
webappMappings['7008']=webappMappings['7008-1553']={
webappId:    '7008',
documentId:  '34058',
internalId:  '1553',
customField: 'language:es;country:ES;'
};
webappMappings['7060']=webappMappings['7060-579e2aab8bba97d39b9d485ca09d92ab']={
webappId:    '7060',
documentId:  '34599',
internalId:  '579e2aab8bba97d39b9d485ca09d92ab',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93801',
internalId:  '',
customField: '20100831-111914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1513',
internalId:  '',
customField: '20100831-112155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32943',
internalId:  '',
customField: '20090217-110712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32952',
internalId:  '',
customField: '20090217-110732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34846',
internalId:  '',
customField: '20100126-140700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1867',
internalId:  '',
customField: '20100713-101317'
};
webappMappings['7050']=webappMappings['7050-2064']={
webappId:    '7050',
documentId:  '165501',
internalId:  '2064',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163806',
internalId:  '',
customField: '20100831-114556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163764',
internalId:  '',
customField: '20100831-113127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163785',
internalId:  '',
customField: '20100831-113243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34599',
internalId:  '',
customField: '20070308-130426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34058',
internalId:  '',
customField: '20100126-143105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1759',
internalId:  '',
customField: '20100813-123857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1786',
internalId:  '',
customField: '20100616-103022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32001',
internalId:  '',
customField: '20100616-103213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34918',
internalId:  '',
customField: '20100824-094231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33994',
internalId:  '',
customField: '20091208-183232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33993',
internalId:  '',
customField: '20070228-183046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158401',
internalId:  '',
customField: '20100512-123334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163701',
internalId:  '',
customField: '20100831-112641'
};
webappMappings['1010']=webappMappings['1010-_Ea_1271fe80729']={
webappId:    '1010',
documentId:  '101501',
internalId:  '_Ea_1271fe80729',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101501',
internalId:  '',
customField: '20100831-114843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163722',
internalId:  '',
customField: '20100831-112837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165501',
internalId:  '',
customField: '20100831-115836'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INXXPQ';
var companyName   = 'HI-LEN+S+DE+RL+DE+CV...Comprometidos+con+Usted';
var htmlTitle	  = 'HI-LEN+S+DE+RL+DE+CV';
var metaKeywords  = 'ACEITE+GRASA+LUBRICANTE+lubricante+aceite+grasaACRILICO++ANTIESTATICO++ESD++POLICARBONATO++PELICULA+ANTIESTATICA++FILTRACION++EXTRACCION+CONSUMIBLES';
var metaContents  = 'GRASA+ACEITE+LUBRICANTE+ACRILICOS+Y+POLICARBONATOS+ANTIESTATICOS+SCICRON++PELICULA+ESD+SCICRON';
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();
};
