/* [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 theSitetree=[ 
	['PAGE','4754',jdecode('Home'),jdecode(''),'/4754.html','true',[],''],
	['PAGE','4838',jdecode('%C2%BFQui%C3%A9nes+somos%3F'),jdecode(''),'/4838.html','true',[],''],
	['PAGE','38530',jdecode('%C2%BFPor+qu%C3%A9+elegirnos%3F'),jdecode(''),'/38530.html','true',[],''],
	['PAGE','28603',jdecode('Medicina+Hiperb%C3%A1rica'),jdecode(''),'/28603.html','true',[],''],
	['PAGE','28203',jdecode('Padecimientos+que+trata+la+OHB'),jdecode(''),'/28203.html','true',[],''],
	['PAGE','29803',jdecode('Efectos+al+Organismo'),jdecode(''),'/29803.html','true',[],''],
	['PAGE','41628',jdecode('Pi%C3%A9+Diab%C3%A9tico'),jdecode(''),'/41628.html','true',[],''],
	['PAGE','41596',jdecode('Programa+Educativo+en+Diabetes+Gratuito'),jdecode(''),'/41596.html','true',[],''],
	['PAGE','40272',jdecode('Instrucciones+para+la+Sesi%C3%B3n'),jdecode(''),'/40272.html','true',[],''],
	['PAGE','29103',jdecode('Sesi%C3%B3n+en+la+C%C3%A1mara'),jdecode(''),'/29103.html','true',[],''],
	['PAGE','33103',jdecode('Nuestros+Casos'),jdecode(''),'/33103.html','true',[],''],
	['PAGE','34703',jdecode('Nuestras+Instalaciones'),jdecode(''),'/34703.html','true',[],''],
	['PAGE','36303',jdecode('Precios+de+Nuestros+Servicios'),jdecode(''),'/36303.html','true',[],''],
	['PAGE','37803',jdecode('Horarios'),jdecode(''),'/37803.html','true',[],''],
	['PAGE','4919',jdecode('C%C3%B3mo+Llegar'),jdecode(''),'/4919.html','true',[],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B0CBD6';
theSitetree.keyvisualId='1964';
theSitetree.keyvisualName='blumen2.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='383';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'es',
  country: 'ES'
};
var theTemplate={
				name: 			'Stylus',
				paletteFamily: 	'B0CBD6',
				keyvisualId: 	'1964',
				keyvisualName: 	'blumen2.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'383',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4754',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-163239']={
webappId:    '1501',
documentId:  '4754',
internalId:  '163239',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4754',
internalId:  '',
customField: '20080304-231703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36303',
internalId:  '',
customField: '20080828-123805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37803',
internalId:  '',
customField: '20080304-233703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4919',
internalId:  '',
customField: '20080304-234253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34703',
internalId:  '',
customField: '20070712-100747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33103',
internalId:  '',
customField: '20061202-174102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29103',
internalId:  '',
customField: '20060830-203933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40272',
internalId:  '',
customField: '20070712-101541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41596',
internalId:  '',
customField: '20080415-232642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41628',
internalId:  '',
customField: '20080415-233349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29803',
internalId:  '',
customField: '20060830-193129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28203',
internalId:  '',
customField: '20060915-074123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28603',
internalId:  '',
customField: '20070301-134222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38530',
internalId:  '',
customField: '20070829-161148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4838',
internalId:  '',
customField: '20070712-101214'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INX3GR';
var companyName   = 'Hyperb%C3%A1rika';
var htmlTitle	  = 'OXIGENACION+HYPERBARICA';
var metaKeywords  = 'oxigenaci%C3%B3n+oxigenacion+hiperb%C3%A1rica+hiperbarica+diabetes+pi%C3%A9+pie+diab%C3%A9tico+diabetico+neuropat%C3%ADa+neuropatia+diab%C3%A9tica+diabetica+v%C3%A1rices+varices+lesi%C3%B3n+lesion+cerebral+da%C3%B1o+dano+cerebral+autismo+sat%C3%A9lite+satelite+migra%C3%B1a+migrana+estr%C3%A9s+estres+neuritis+osteomielitis+%C3%BAlceras+ulceras+%C3%BAlcera+ulcera+intoxicaci%C3%B3n+intoxicacion+intoxicaciones+salud+quemaduras+da%C3%B1o+neurol%C3%B3gico+neurologico+lesi%C3%B3n+lesion+cerebral+Herpes+Zoster+Parkinson+Alsheimer+embolia+fatiga+cr%C3%B3nica+cronica+cicatrizaci%C3%B3n+cicatrizacion+sistema+inmunol%C3%B3gico+inmunologico+lesion+deportiva';
var metaContents  = 'medicina+hiperbarica%2C+oxigenacion+en+camara+hiperbarica';
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();
};
