/* [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','4598',jdecode('Inicio+%2F+Welcome'),jdecode(''), jdecode('%2F4598.html'), 'true',[],'',''],
	['PAGE','4655',jdecode('Productos+%2F+Products'),jdecode(''), jdecode('%2F4655%2Findex.html'), 'true',[ 
		['PAGE','6778',jdecode('Hermes'),jdecode(''), jdecode('%2F4655%2F6778.html'), 'true',[],'',''],
		['PAGE','26666',jdecode('Loggers'),jdecode(''), jdecode('%2F4655%2F26666.html'), 'true',[],'',''],
		['PAGE','53908',jdecode('Sistemas+de+bajo+consumo'),jdecode(''), jdecode('%2F4655%2F53908.html'), 'true',[],'',''],
		['PAGE','26409',jdecode('Presi%C3%B3n+%2F+Pressure'),jdecode(''), jdecode('%2F4655%2F26409.html'), 'true',[],'',''],
		['PAGE','46122',jdecode('LVDT'),jdecode(''), jdecode('%2F4655%2F46122.html'), 'true',[],'',''],
		['PAGE','50510',jdecode('Caudal%C3%ADmetros+%2F+Flowmeters'),jdecode(''), jdecode('%2F4655%2F50510.html'), 'true',[],'',''],
		['PAGE','35410',jdecode('Instrumentaci%C3%B3n+'),jdecode(''), jdecode('%2F4655%2F35410.html'), 'true',[],'',''],
		['PAGE','6832',jdecode('PLC%26%23x27%3Bs'),jdecode(''), jdecode('%2F4655%2F6832.html'), 'true',[],'',''],
		['PAGE','31806',jdecode('Sistemas+de+adquisici%C3%B3n'),jdecode(''), jdecode('%2F4655%2F31806.html'), 'true',[],'',''],
		['PAGE','28964',jdecode('Comunicaci%C3%B3n+radio'),jdecode(''), jdecode('%2F4655%2F28964.html'), 'true',[],'',''],
		['PAGE','29903',jdecode('Comunicaci%C3%B3n+Industrial'),jdecode(''), jdecode('%2F4655%2F29903.html'), 'true',[],'',''],
		['PAGE','30203',jdecode('Protecciones'),jdecode(''), jdecode('%2F4655%2F30203.html'), 'true',[],'',''],
		['PAGE','28991',jdecode('Visualiz.+y+Convertidores'),jdecode(''), jdecode('%2F4655%2F28991.html'), 'true',[],'',''],
		['PAGE','7488',jdecode('SCADA%26%23x27%3Bs'),jdecode(''), jdecode('%2F4655%2F7488.html'), 'true',[],'',''],
		['PAGE','41510',jdecode('Energ%C3%ADas+Alternativas'),jdecode(''), jdecode('%2F4655%2F41510.html'), 'true',[],'','']
	],'',''],
	['PAGE','4682',jdecode('Servicios'),jdecode(''), jdecode('%2F4682%2Findex.html'), 'true',[ 
		['PAGE','25503',jdecode('Integraci%C3%B3n.'),jdecode(''), jdecode('%2F4682%2F25503.html'), 'true',[],'',''],
		['PAGE','32103',jdecode('Proyectos+Radio'),jdecode(''), jdecode('%2F4682%2F32103.html'), 'true',[],'',''],
		['PAGE','32157',jdecode('Mantenimientos'),jdecode(''), jdecode('%2F4682%2F32157.html'), 'true',[],'',''],
		['PAGE','32184',jdecode('Software'),jdecode(''), jdecode('%2F4682%2F32184.html'), 'true',[],'',''],
		['PAGE','32211',jdecode('Inform%C3%A1tica'),jdecode(''), jdecode('%2F4682%2F32211.html'), 'true',[],'',''],
		['PAGE','35437',jdecode('Servicio+T%C3%A9cnico'),jdecode(''), jdecode('%2F4682%2F35437.html'), 'true',[],'','']
	],'',''],
	['PAGE','34924',jdecode('Referencias+%2F+References.'),jdecode(''), jdecode('%2F34924.html'), 'true',[],'',''],
	['PAGE','4709',jdecode('Cont%C3%A1ctenos+%2F+Contact+us.'),jdecode(''), jdecode('%2F4709%2Findex.html'), 'true',[ 
		['PAGE','49809',jdecode('Cont%C3%A1ctenos+%2F+Contact+us.+%28follow+up+page%29'),jdecode(''), jdecode('%2F4709%2F49809.html'), 'false',[],'','']
	],'',''],
	['PAGE','4736',jdecode('%C2%BFQuienes+somos%3F'),jdecode(''), jdecode('%2F4736.html'), 'true',[],'',''],
	['PAGE','36210',jdecode('Noticias+%2F+News'),jdecode(''), jdecode('%2F36210.html'), 'true',[],'',''],
	['PAGE','33568',jdecode('FOTOS+SCADA'),jdecode(''), jdecode('%2F33568.html'), 'true',[],'',''],
	['PAGE','44599',jdecode('CANAGUA+2005'),jdecode(''), jdecode('%2F44599.html'), 'true',[],'',''],
	['PAGE','37710',jdecode('Mapa+a+ICIT+%2F+Map+to+ICIT'),jdecode(''), jdecode('%2F37710.html'), 'true',[],'',''],
	['PAGE','38210',jdecode('Oportunidad+de+Trabajo'),jdecode(''), jdecode('%2F38210.html'), 'true',[],'',''],
	['PAGE','48110',jdecode('Distribuidores+%2F+Dealers'),jdecode(''), jdecode('%2F48110%2Findex.html'), 'true',[ 
		['PAGE','48356',jdecode('Distribuidores%2FDistributors+%28follow+up+page%29'),jdecode(''), jdecode('%2F48110%2F48356.html'), 'false',[],'','']
	],'',''],
	['PAGE','53508',jdecode('Mapa+de+acceso'),jdecode(''), jdecode('%2F53508.html'), 'true',[],'','']];
var siteelementCount=36;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='000066';
theSitetree.keyvisualId='1343';
theSitetree.keyvisualName='telekommunikation.jpg';
theSitetree.fontsetId='232';
theSitetree.graphicsetId='292';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var prodDef={
  wl_name: 'arsys',
  product: 'WSCSYSSSSLYTC2IR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Startup',
				paletteFamily: 	'000066',
				keyvisualId: 	'1343',
				keyvisualName: 	'telekommunikation.jpg',
				fontsetId: 		'232',
				graphicsetId: 	'292',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000066',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7060']=webappMappings['7060-d18a15b9442334f52ff20603e4ea01d2']={
webappId:    '7060',
documentId:  '44599',
internalId:  'd18a15b9442334f52ff20603e4ea01d2',
customField: 'language:es;country:ES;'
};
webappMappings['7008']=webappMappings['7008-14651']={
webappId:    '7008',
documentId:  '4709',
internalId:  '14651',
customField: 'language:es;country:ES;'
};
webappMappings['7060']=webappMappings['7060-b16c46c51bd20bffc5eeff940833b643']={
webappId:    '7060',
documentId:  '33568',
internalId:  'b16c46c51bd20bffc5eeff940833b643',
customField: 'language:es;country:ES;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '53508',
internalId:  'location',
customField: 'language:es;country:ES;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20060716-233405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34924',
internalId:  '',
customField: '20080602-085638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4655',
internalId:  '',
customField: '20080603-012459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53908',
internalId:  '',
customField: '20080602-085817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38210',
internalId:  '',
customField: '20080604-005544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6778',
internalId:  '',
customField: '20070809-234534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26666',
internalId:  '',
customField: '20080602-092254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26409',
internalId:  '',
customField: '20060318-111207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46122',
internalId:  '',
customField: '20060210-231750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50510',
internalId:  '',
customField: '20060617-223830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35410',
internalId:  '',
customField: '20060617-223920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6832',
internalId:  '',
customField: '20050219-001626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31806',
internalId:  '',
customField: '20050220-223046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28964',
internalId:  '',
customField: '20060101-141919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29903',
internalId:  '',
customField: '20050220-200942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30203',
internalId:  '',
customField: '20060617-224421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28991',
internalId:  '',
customField: '20050815-102902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7488',
internalId:  '',
customField: '20050813-233706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41510',
internalId:  '',
customField: '20050814-011657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4682',
internalId:  '',
customField: '20050326-155159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25503',
internalId:  '',
customField: '20050326-161520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32103',
internalId:  '',
customField: '20050306-222112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32157',
internalId:  '',
customField: '20050221-223421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32184',
internalId:  '',
customField: '20050221-223422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32211',
internalId:  '',
customField: '20060617-224706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35437',
internalId:  '',
customField: '20060617-224828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4709',
internalId:  '',
customField: '20060903-115303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49809',
internalId:  '',
customField: '20060210-224148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4736',
internalId:  '',
customField: '20050417-115638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36210',
internalId:  '',
customField: '20070809-000129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33568',
internalId:  '',
customField: '20060617-232152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44599',
internalId:  '',
customField: '20051120-105759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37710',
internalId:  '',
customField: '20060101-141219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48110',
internalId:  '',
customField: '20080602-114755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48356',
internalId:  '',
customField: '20051225-143007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53508',
internalId:  '',
customField: '20070801-224848'
};
webappMappings['7008']=webappMappings['7008-14650']={
webappId:    '7008',
documentId:  '48110',
internalId:  '14650',
customField: 'language:es;country:ES;'
};
var webAppHostname = 'wsc.webaporter.com:80';
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'Aas010IN2U9H';
var companyName   = 'Ingenier%EF%BF%BDa+Canaria+de+Innovaci%EF%BF%BDn+Tecnol%EF%BF%BDgica.';
var htmlTitle	  = 'Ingenier%C3%ADa+Canaria+de+Innovaci%C3%B3n+Tecnol%C3%B3gica.';
var metaKeywords  = 'scada%2C+plc%2C+omron%2C+siemens%2C+allen+bradley%2C+abb%2C+LVDT%2C+presion%2C+pressure%2C+sensores%2C+sensors%2C+desarrollos%2C+telecontroles%2C+industriales%2C+sistemas%2C+software%2C+hardware%2C+intouch%2C+wonderware%2C+citect%2C+pcwin%2C+pilote%2C+wincc%2C+step%2C+prominent%2C+freeware%2C+telemedidas%2C+telemandos%2C+nudam%2C+adam%2C+wit%2C+hermes%2C+microcom%2C+gasolineras%2C+estaciones+de+servicio%2C+medio+ambiente%2C+enviroment%2C+contaminacion%2C+vertidos%2C+seguridad%2C+firewalls%2C+antivirus%2C+ad%2C+spyware%2C+servidores%2C+visual+basic%2C+VB%2C+aguas%2C+residuales%2C+limpias%2C+depuradas%2C+desaladas%2C+desaladoras%2C+medidas%2C+cloro%2C+pH%2C+dosificaciones%2C+cableados+estructurados%2C+radios';
var metaContents  = 'Desarrollos+con+SCADA%2C+PLC%2C+loggers%2C+telemando%2C+telecontrol%2C+telemedida%2C+Intouch%2C+radio%2C+software%2C+hardware%2C+instrumentacion%2C+presion%2C+pH%2C+cloro%2C+fotovoltaicos%2C+GSM%2C+SMS%2C+PDA%2C+EBAR%2C+EDAR%2C+gasolineras%2C+LVDT%2C+nanotecnologia%2C+MEMS%2C+agua%2C+etc';
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();
};

