/* [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','4506',jdecode('Inicio'),jdecode(''), jdecode('%2F4506.html'), 'true',[],'',''],
	['PAGE','5128',jdecode('Kaba'),jdecode(''), jdecode('%2F5128%2Findex.html'), 'true',[ 
		['PAGE','8517',jdecode('Amaestramientos'),jdecode(''), jdecode('%2F5128%2F8517.html'), 'true',[],'',''],
		['PAGE','8463',jdecode('experT+-+mec%C3%A1nico'),jdecode(''), jdecode('%2F5128%2F8463.html'), 'true',[],'',''],
		['PAGE','8490',jdecode('elolegic+-+electr%C3%B3nica'),jdecode(''), jdecode('%2F5128%2F8490.html'), 'true',[],'',''],
		['PAGE','102036',jdecode('cilindro+elolegic'),jdecode(''), jdecode('%2F5128%2F102036.html'), 'true',[],'',''],
		['PAGE','75036',jdecode('cilindro+compact'),jdecode(''), jdecode('%2F5128%2F75036.html'), 'true',[],'',''],
		['PAGE','87836',jdecode('cilindro+digital'),jdecode(''), jdecode('%2F5128%2F87836.html'), 'true',[],'',''],
		['PAGE','101136',jdecode('Lector+Kaba+elolegic'),jdecode(''), jdecode('%2F5128%2F101136.html'), 'true',[],'',''],
		['PAGE','99436',jdecode('Herraje+c-lever'),jdecode(''), jdecode('%2F5128%2F99436.html'), 'true',[],'',''],
		['PAGE','105436',jdecode('Dep%C3%B3sito+de+custodia'),jdecode(''), jdecode('%2F5128%2F105436.html'), 'true',[],'',''],
		['PAGE','14719',jdecode('exos+sky+-+online'),jdecode(''), jdecode('%2F5128%2F14719.html'), 'true',[],'',''],
		['PAGE','32736',jdecode('Soluciones+hoteles'),jdecode(''), jdecode('%2F5128%2F32736.html'), 'true',[],'',''],
		['PAGE','8544',jdecode('Referencias'),jdecode(''), jdecode('%2F5128%2F8544.html'), 'true',[],'','']
	],'',''],
	['PAGE','15919',jdecode('Alarmas'),jdecode(''), jdecode('%2F15919%2Findex.html'), 'true',[ 
		['PAGE','21736',jdecode('Central+receptora'),jdecode(''), jdecode('%2F15919%2F21736.html'), 'true',[],'',''],
		['PAGE','18712',jdecode('Alarmas+v%C3%ADa+radio'),jdecode(''), jdecode('%2F15919%2F18712.html'), 'true',[],'',''],
		['PAGE','17022',jdecode('Homologaciones'),jdecode(''), jdecode('%2F15919%2F17022.html'), 'true',[],'',''],
		['PAGE','23439',jdecode('Referencias'),jdecode(''), jdecode('%2F15919%2F23439.html'), 'true',[],'','']
	],'',''],
	['PAGE','5155',jdecode('Cajas+Fuertes'),jdecode(''), jdecode('%2F5155%2Findex.html'), 'true',[ 
		['PAGE','8571',jdecode('Ferrimax'),jdecode(''), jdecode('%2F5155%2F8571.html'), 'true',[],'',''],
		['PAGE','53536',jdecode('Chubbsafes'),jdecode(''), jdecode('%2F5155%2F53536.html'), 'true',[],'',''],
		['PAGE','8598',jdecode('Armarios+Ign%C3%ADfugos'),jdecode(''), jdecode('%2F5155%2F8598.html'), 'true',[],'','']
	],'',''],
	['PAGE','5182',jdecode('Puerta+acorazada'),jdecode(''), jdecode('%2F5182%2Findex.html'), 'true',[ 
		['PAGE','29536',jdecode('Ruiz+L%C3%B3pez'),jdecode(''), jdecode('%2F5182%2F29536.html'), 'true',[],'',''],
		['PAGE','34136',jdecode('Padilla+P-6'),jdecode(''), jdecode('%2F5182%2F34136.html'), 'true',[],'','']
	],'',''],
	['PAGE','23936',jdecode('Otros+productos'),jdecode(''), jdecode('%2F23936.html'), 'true',[],'',''],
	['PAGE','31148',jdecode('Comunidades'),jdecode(''), jdecode('%2F31148%2Findex.html'), 'true',[ 
		['PAGE','106736',jdecode('experT+-+mec%C3%A1nico'),jdecode(''), jdecode('%2F31148%2F106736.html'), 'true',[],'',''],
		['PAGE','106757',jdecode('elolegic+-+electr%C3%B3nico'),jdecode(''), jdecode('%2F31148%2F106757.html'), 'true',[],'',''],
		['ITEM','126336',jdecode('puertas+autom%C3%A1ticas'),jdecode(''), jdecode('http%3A%2F%2Fwww.facebook.com%2FMEBEX.es'), 'true',[],'','_blank'],
		['ITEM','126337',jdecode('videoportero+autom%C3%A1tico'),jdecode(''), jdecode('http%3A%2F%2Fwww.facebook.com%2FMEBEX.es'), 'true',[],'','_blank']
	],'',''],
	['PAGE','109436',jdecode('Particulares'),jdecode(''), jdecode('%2F109436.html'), 'true',[],'',''],
	['PAGE','110236',jdecode('PYMES'),jdecode(''), jdecode('%2F110236%2Findex.html'), 'true',[ 
		['PAGE','110836',jdecode('experT+-+mec%C3%A1nico'),jdecode(''), jdecode('%2F110236%2F110836.html'), 'true',[],'',''],
		['PAGE','110857',jdecode('elolegic+-+electr%C3%B3nico'),jdecode(''), jdecode('%2F110236%2F110857.html'), 'true',[],'','']
	],'',''],
	['PAGE','113236',jdecode('Entidades+p%C3%BAblicas'),jdecode(''), jdecode('%2F113236.html'), 'true',[],'',''],
	['PAGE','35136',jdecode('aviso+%22BUMPING%22'),jdecode(''), jdecode('%2F35136.html'), 'true',[],'',''],
	['PAGE','20136',jdecode('Empleo'),jdecode(''), jdecode('%2F20136%2Findex.html'), 'true',[ 
		['PAGE','20936',jdecode('Alicante'),jdecode(''), jdecode('%2F20136%2F20936.html'), 'true',[],'',''],
		['PAGE','20963',jdecode('Murcia'),jdecode(''), jdecode('%2F20136%2F20963.html'), 'true',[],'','']
	],'',''],
	['PAGE','130736',jdecode('Contacto'),jdecode(''), jdecode('%2F130736.html'), 'false',[],'',''],
	['PAGE','8128',jdecode('Mapa+de+acceso'),jdecode(''), jdecode('%2F8128.html'), 'true',[],'',''],
	['PAGE','28737',jdecode('%C3%81rea+privada'),jdecode(''), jdecode('%2F28737.html'), 'true',[],'',''],
	['ITEM','135536',jdecode('Estamos+en+Facebook'),jdecode(''), jdecode('http%3A%2F%2Fwww.facebook.com%2FMEBEX.es'), 'true',[],'','_blank']];
var siteelementCount=45;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B0CBD6';
theSitetree.keyvisualId='1966';
theSitetree.keyvisualName='businessman.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='383';
theSitetree.contentColor='000066';
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: 			'Stylus',
				paletteFamily: 	'B0CBD6',
				keyvisualId: 	'1966',
				keyvisualName: 	'businessman.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'383',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				a_color: 		'B0CBD6',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4506',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-2270409']={
webappId:    '1501',
documentId:  '4506',
internalId:  '2270409',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-939777b0dd2f986963e37dec807beb93']={
webappId:    '7060',
documentId:  '28737',
internalId:  '939777b0dd2f986963e37dec807beb93',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4506',
internalId:  '',
customField: '20111208-181311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5128',
internalId:  '',
customField: '20100626-191316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8517',
internalId:  '',
customField: '20090121-104007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8463',
internalId:  '',
customField: '20090121-112756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8490',
internalId:  '',
customField: '20090120-135311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14719',
internalId:  '',
customField: '20071010-122736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32736',
internalId:  '',
customField: '20080522-153203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31148',
internalId:  '',
customField: '20111105-122921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8544',
internalId:  '',
customField: '20060620-174648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15919',
internalId:  '',
customField: '20060605-184811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21736',
internalId:  '',
customField: '20060605-184847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18712',
internalId:  '',
customField: '20060919-163425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17022',
internalId:  '',
customField: '20060605-185024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23439',
internalId:  '',
customField: '20060605-185109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5155',
internalId:  '',
customField: '20071010-154614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8571',
internalId:  '',
customField: '20080526-161016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8598',
internalId:  '',
customField: '20090122-171728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5182',
internalId:  '',
customField: '20100629-203109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29536',
internalId:  '',
customField: '20080213-152912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34136',
internalId:  '',
customField: '20061108-162822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23936',
internalId:  '',
customField: '20060607-173923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35136',
internalId:  '',
customField: '20100629-205907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20136',
internalId:  '',
customField: '20060704-105722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20936',
internalId:  '',
customField: '20060704-105544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20963',
internalId:  '',
customField: '20060704-105642'
};
webappMappings['7008']=webappMappings['7008-9889']={
webappId:    '7008',
documentId:  '130736',
internalId:  '9889',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8128',
internalId:  '',
customField: '20100626-192905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28737',
internalId:  '',
customField: '20060719-190428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53536',
internalId:  '',
customField: '20080523-120006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87836',
internalId:  '',
customField: '20090120-135727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105436',
internalId:  '',
customField: '20090120-133815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75036',
internalId:  '',
customField: '20090119-222936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102036',
internalId:  '',
customField: '20090120-132051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99436',
internalId:  '',
customField: '20090120-135702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101136',
internalId:  '',
customField: '20090119-223106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106736',
internalId:  '',
customField: '20100626-192612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106757',
internalId:  '',
customField: '20090121-120253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109436',
internalId:  '',
customField: '20090121-124624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110236',
internalId:  '',
customField: '20090122-183324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110836',
internalId:  '',
customField: '20090122-175924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110857',
internalId:  '',
customField: '20090122-174845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113236',
internalId:  '',
customField: '20100629-203109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130736',
internalId:  '',
customField: '20100629-204458'
};
var webAppHostname = 'wsc.webaporter.com:80';
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'Aas010INEN08';
var companyName   = 'Gesti%C3%B3n+de+Accesos+y+Seguridad';
var htmlTitle	  = 'MEBEX+-+Control+de+Acceso+-+Sistemas+de+Cierre+-+Soluciones+de+Seguridad+-+Planes+de+Cierre+Jerarquizados';
var metaKeywords  = 'seguridad%2C+cerrajeros%2C+cerrajeros+24+horas+Alicante%2C+Murcia%2C+Kaba%2C+plan+de+cierre%2C+amaestramientos%2C+cerrajer%C3%ADa%2C+cerrajeros%2C+cerrajero%2C+cajas+fuertes%2C+cajas+ign%C3%ADfugas%2C+puertas+acorazadas%2C+llaves+de+seguridad%2C+cilindros+de+seguridad%2C+bombines+de+seguridad%2C+sistemas+de+accesos+electr%C3%B3nicos%2C+control+de+acceso%2C+alarmas%2C+c%C3%A1maras+de+seguridad%2CCCTV%2C+sistemas+de+seguridad%2C+cerrojos+abus%2C+barras+de+seguridad+abus%2C+Ferrimax%2C+Ruiz+L%C3%B3pez%2C+Vidalcom%2C+bumping%2C+llaves+bump%2C+llaves+de+golpe%2C+automatismos%2C+puertas+autom%C3%A1ticas%2C+video+porteros%2C+videoportero%2C+portero+automatico%2C+comunidades%2C+Clemsa%2C+SimonsVoss%2C+Simons+Voss%2C+Disec%2C+Fermax%2C+Winkhaus%2C+Wink+Haus%2C+Chubbsafes%2C+SecureLine%2C+Tesa%2C+Multilock%2C+Mul-T-Lock';
var metaContents  = 'Mebex%2C+empresa+que+ofrece+soluciones+de+seguridad+para+particulares+y+empresas.+Distribuidores+de+las+marcas+Kaba%2C+Abus%2C+Ferrimax+y+Ruiz+Lopez+entre+otras+en+Alicante+y+Murcia.+Llaves+y+cilindros+de+alta+seguridad%2C+cerrajeros+24+horas%2C+Alarmas%2C+sistemas+de+seguridad%2C+cajas+fuertes%2C+puertas+acorazadas%2C+sistemas+de+accesos+electr%C3%B3nicos%2C+c%C3%A1maras%2C+CCTV%2C+cerrojos%2C+barras+de+seguridad%2C+automatismos%2C+puertas+autom%C3%A1ticas%2C+videoportero%2C+comunidades';
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();
};

