/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','196522',jdecode('Quienes+somos.'),jdecode(''),'/196522.html','true',[],'',''],
	['PAGE','196722',jdecode('Contacto'),jdecode(''),'/196722.html','true',[],'',''],
	['PAGE','179922',jdecode('Ayudas'),jdecode(''),'/179922.html','true',[],'',''],
	['PAGE','187222',jdecode('Botiquines'),jdecode(''),'/187222.html','true',[],'',''],
	['PAGE','188322',jdecode('Complementos'),jdecode(''),'/188322/index.html','true',[ 
		['PAGE','188422',jdecode('Banquillos'),jdecode(''),'/188322/188422.html','true',[],'',''],
		['PAGE','188522',jdecode('Biombos'),jdecode(''),'/188322/188522.html','true',[],'',''],
		['PAGE','188822',jdecode('Bombonas+'),jdecode(''),'/188322/188822.html','true',[],'',''],
		['PAGE','188843',jdecode('Cajas+instrumental'),jdecode(''),'/188322/188843.html','true',[],'',''],
		['PAGE','188622',jdecode('Carros+porta+balas'),jdecode(''),'/188322/188622.html','true',[],'',''],
		['PAGE','188864',jdecode('Cubetas+ri%C3%B1oneras'),jdecode(''),'/188322/188864.html','true',[],'',''],
		['PAGE','188885',jdecode('Cubos+cl%C3%ADnicos.'),jdecode(''),'/188322/188885.html','true',[],'',''],
		['PAGE','188722',jdecode('Soporte+brazo%2Fpierna'),jdecode(''),'/188322/188722.html','true',[],'',''],
		['PAGE','188906',jdecode('Soporte+goteros.'),jdecode(''),'/188322/188906.html','true',[],'',''],
		['PAGE','188927',jdecode('Soportes+quirofano'),jdecode(''),'/188322/188927.html','true',[],'','']
	],'',''],
	['PAGE','195822',jdecode('Carros'),jdecode(''),'/195822/index.html','true',[ 
		['PAGE','185722',jdecode('De+Curas.'),jdecode(''),'/195822/185722.html','true',[],'',''],
		['PAGE','195843',jdecode('Porta+Historias'),jdecode(''),'/195822/195843.html','true',[],'','']
	],'',''],
	['PAGE','197922',jdecode('Mesas+auxiliares'),jdecode(''),'/197922.html','true',[],'','']];
var siteelementCount=20;
theSitetree.topTemplateName='Seifenblase';
theSitetree.paletteFamily='FF9B5E';
theSitetree.keyvisualId='2344';
theSitetree.keyvisualName='aerzte2.jpg';
theSitetree.fontsetId='381';
theSitetree.graphicsetId='430';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Seifenblase',
				paletteFamily: 	'FF9B5E',
				keyvisualId: 	'2344',
				keyvisualName: 	'aerzte2.jpg',
				fontsetId: 		'381',
				graphicsetId: 	'430',
				contentColor: 	'A00000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'CC3300',
				e_color: 		'FF3300',
				f_color: 		'FF9966',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100429-163309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196722',
internalId:  '',
customField: '20100503-193028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195822',
internalId:  '',
customField: '20100503-183108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '197922',
internalId:  '',
customField: '20100507-162240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188843',
internalId:  '',
customField: '20100503-154821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188864',
internalId:  '',
customField: '20100503-155055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188906',
internalId:  '',
customField: '20100503-170025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188927',
internalId:  '',
customField: '20100503-173301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188722',
internalId:  '',
customField: '20100503-120221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '195843',
internalId:  '',
customField: '20100503-190339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196522',
internalId:  '',
customField: '20100503-192240'
};
webappMappings['7008']=webappMappings['7008-9107']={
webappId:    '7008',
documentId:  '196722',
internalId:  '9107',
customField: 'language:es;country:ES;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '179922',
internalId:  '',
customField: '20100503-105440'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188822',
internalId:  '',
customField: '20100503-150430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188622',
internalId:  '',
customField: '20100503-151707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188885',
internalId:  '',
customField: '20100503-153714'
};
webappMappings['1501']=webappMappings['1501-8702195']={
webappId:    '1501',
documentId:  '401',
internalId:  '8702195',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185722',
internalId:  '',
customField: '20100503-183014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '187222',
internalId:  '',
customField: '20100503-120702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188322',
internalId:  '',
customField: '20100503-130924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188422',
internalId:  '',
customField: '20100503-123943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188522',
internalId:  '',
customField: '20100503-145220'
};
var canonHostname = 'llwc535.servidoresdns.net';
var accountId     = 'AARS20INLWG0';
var companyName   = 'HOSCLIMOBEL%2C+S.L.L.';
var htmlTitle	  = 'HOSCLIMOBEL%2C+S.L.L+-+Fabricaci%C3%B3n+Propia+de+Mobiliario+Cl%C3%ADnico+-';
var metaKeywords  = 'hosclimobel%2C+inmoclinic%2C+quermed%2C+fop%2C+bg%2C+euomobiliario%2C+clinequip%2C+podologia%2C+traumatologia%2C+medicina%2C+cardiologia%2C+hospital%2C+ambulatorio%2C+clinica%2C+clinicas%2C+fabricacion%2C+mobiliario%2C+clinico%2C+ayudas%2C+basculas%2C+pesas%2C+tallimetros%2C+cambia+bebes%2C+carros%2C+curas%2C+limpieza%2C+modulares%2C+advange%2C+cunas%2C+complementos%2C+biombos%2C+banquillos%2C+bombonas%2C+charnela%2C+cajas%2C+instrumental%2C+focos%2C+lupas%2C+lamparas%2C+lavacu%C3%B1as%2C+cu%C3%B1as%2C+lavamanos%2C+lavabo%2C+portatil%2C+autonomo%2C+mecanoterapia%2C+rehabilitaci%C3%B3n%2C+espalderas%2C+paralelas%2C+pesas%2C+mesas%2C+auxiliares%2C+exploraci%C3%B3n%2C+reconocimiento%2C+instrumental%2C+trabajo%2C+mesilla+noche%2C+cigue%C3%B1a%2C+mesa+hospital%2C+mesa+cama%2C+negatoscopios%2C+optotipos%2C+podoscopios%2C+sillones%2C+extracci%C3%B3n%2C+dialisis%2C+podologia%2C+otorrino%2C+escayolas%2C+parada%2C+laparoscopia%2C+vitrina%2C+quirofano%2C+antequirofano%2C+taburetes%2C+skay%2C+acero+inox%2C+cromado%2C+cromo%2C+esmaltado.perchas%2C+mesas%2C+cubos';
var metaContents  = 'hosclimobel%2C+inmoclinic%2C+quermed%2C+fop%2C+bg%2C+euomobiliario%2C+clinequip%2C+podologia%2C+traumatologia%2C+medicina%2C+cardiologia%2C+hospital%2C+ambulatorio%2C+clinica%2C+clinicas%2C+fabricacion%2C+mobiliario%2C+clinico%2C+ayudas%2C+basculas%2C+pesas%2C+tallimetros%2C+cambia+bebes%2C+carros%2C+curas%2C+limpieza%2C+modulares%2C+advange%2C+cunas%2C+complementos%2C+biombos%2C+banquillos%2C+bombonas%2C+charnela%2C+cajas%2C+instrumental%2C+focos%2C+lupas%2C+lamparas%2C+lavacu%C3%B1as%2C+cu%C3%B1as%2C+lavamanos%2C+lavabo%2C+portatil%2C+autonomo%2C+mecanoterapia%2C+rehabilitaci%C3%B3n%2C+espalderas%2C+paralelas%2C+pesas%2C+mesas%2C+auxiliares%2C+exploraci%C3%B3n%2C+reconocimiento%2C+instrumental%2C+trabajo%2C+mesilla+noche%2C+cigue%C3%B1a%2C+mesa+hospital%2C+mesa+cama%2C+negatoscopios%2C+optotipos%2C+podoscopios%2C+sillones%2C+extracci%C3%B3n%2C+dialisis%2C+podologia%2C+otorrino%2C+escayolas%2C+parada%2C+laparoscopia%2C+vitrina%2C+quirofano%2C+antequirofano%2C+taburetes%2C+skay%2C+acero+inox%2C+cromado%2C+cromo%2C+esmaltado.perchas%2C+mesas%2C+cubos';
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();
};
