/* [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','4558',jdecode('Home'),jdecode(''),'/4558.html','true',[],'',''],
	['PAGE','5202',jdecode('Notre+Permanence'),jdecode(''),'/5202/index.html','true',[ 
		['PAGE','10402',jdecode('Notre+adresse'),jdecode(''),'/5202/10402.html','true',[],'',''],
		['PAGE','10429',jdecode('Nos+horaires'),jdecode(''),'/5202/10429.html','true',[],'','']
	],'',''],
	['PAGE','5229',jdecode('L%26%23x27%3Bost%C3%A9opathie'),jdecode(''),'/5229/index.html','true',[ 
		['PAGE','6528',jdecode('Son+histoire'),jdecode(''),'/5229/6528.html','true',[],'',''],
		['PAGE','11632',jdecode('Sa+philosophie'),jdecode(''),'/5229/11632.html','true',[],'',''],
		['PAGE','11659',jdecode('Ses+applications'),jdecode(''),'/5229/11659.html','true',[],'',''],
		['PAGE','6787',jdecode('Dans+le+monde'),jdecode(''),'/5229/6787.html','true',[],'',''],
		['PAGE','6814',jdecode('En+Suisse'),jdecode(''),'/5229/6814.html','true',[],'','']
	],'',''],
	['PAGE','7302',jdecode('Ses+techniques'),jdecode(''),'/7302/index.html','true',[ 
		['PAGE','8767',jdecode('Structurelles'),jdecode(''),'/7302/8767.html','true',[],'',''],
		['PAGE','8794',jdecode('Visc%C3%A9rales'),jdecode(''),'/7302/8794.html','true',[],'',''],
		['PAGE','8848',jdecode('Autres'),jdecode(''),'/7302/8848.html','true',[],'','']
	],'',''],
	['PAGE','5256',jdecode('La+femme+enceinte'),jdecode(''),'/5256.html','true',[],'',''],
	['PAGE','5283',jdecode('Le+nourrisson'),jdecode(''),'/5283.html','true',[],'',''],
	['PAGE','6203',jdecode('L%26%23x27%3Benfant'),jdecode(''),'/6203.html','true',[],'',''],
	['PAGE','6230',jdecode('L%26%23x27%3Badulte'),jdecode(''),'/6230.html','true',[],'',''],
	['PAGE','6257',jdecode('La+personne+%C3%A2g%C3%A9e'),jdecode(''),'/6257.html','true',[],'',''],
	['PAGE','6284',jdecode('Le+sportif'),jdecode(''),'/6284.html','true',[],'',''],
	['PAGE','9092',jdecode('FAQ'),jdecode(''),'/9092.html','true',[],'',''],
	['PAGE','18132',jdecode('Espace+patients'),jdecode(''),'/18132/index.html','true',[ 
		['PAGE','21984',jdecode('Tableau+d%26%23x27%3Baffichage'),jdecode(''),'/18132/21984.html','true',[],'',''],
		['PAGE','18186',jdecode('Livres+'),jdecode(''),'/18132/18186.html','true',[],'',''],
		['PAGE','22521',jdecode('Web'),jdecode(''),'/18132/22521.html','true',[],'',''],
		['PAGE','18159',jdecode('Brochures+pdf'),jdecode(''),'/18132/18159.html','true',[],'','']
	],'',''],
	['PAGE','12532',jdecode('Acc%C3%A8s'),jdecode(''),'/12532.html','true',[],'',''],
	['PAGE','22041',jdecode('Le+Dispensaire+du+PEL'),jdecode(''),'/22041.html','true',[],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Care';
theSitetree.paletteFamily='EE8240';
theSitetree.keyvisualId='227';
theSitetree.keyvisualName='massage.jpg';
theSitetree.fontsetId='19';
theSitetree.graphicsetId='22';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Care',
				paletteFamily: 	'EE8240',
				keyvisualId: 	'227',
				keyvisualName: 	'massage.jpg',
				fontsetId: 		'19',
				graphicsetId: 	'22',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				a_color: 		'EE8240',
				b_color: 		'669966',
				c_color: 		'000000',
				d_color: 		'6A8493',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4558',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5202',
internalId:  '',
customField: '20061224-171124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10402',
internalId:  '',
customField: '20100424-163655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10429',
internalId:  '',
customField: '20061211-220418'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '12532',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['1501']=webappMappings['1501-919955']={
webappId:    '1501',
documentId:  '4558',
internalId:  '919955',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4558',
internalId:  '',
customField: '20081028-071845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5229',
internalId:  '',
customField: '20060613-205247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6528',
internalId:  '',
customField: '20060609-192746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11632',
internalId:  '',
customField: '20060609-193510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11659',
internalId:  '',
customField: '20060609-185528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6787',
internalId:  '',
customField: '20060609-185554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6814',
internalId:  '',
customField: '20061210-213325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7302',
internalId:  '',
customField: '20060609-185622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8767',
internalId:  '',
customField: '20060609-185650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8794',
internalId:  '',
customField: '20060607-205157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8848',
internalId:  '',
customField: '20060617-212834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5256',
internalId:  '',
customField: '20060613-214829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5283',
internalId:  '',
customField: '20070124-221354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6203',
internalId:  '',
customField: '20061120-204509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6230',
internalId:  '',
customField: '20061120-221405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6257',
internalId:  '',
customField: '20061213-231853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6284',
internalId:  '',
customField: '20061213-230627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9092',
internalId:  '',
customField: '20081028-072520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18132',
internalId:  '',
customField: '20061209-210508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21984',
internalId:  '',
customField: '20061213-230611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18186',
internalId:  '',
customField: '20061211-220118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22521',
internalId:  '',
customField: '20061210-152534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18159',
internalId:  '',
customField: '20061120-222324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12532',
internalId:  '',
customField: '20060611-004639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22041',
internalId:  '',
customField: '20070127-095228'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXXZX';
var companyName   = 'PERMANENCE++OST%C3%89OPATHIQUE++DE++LAUSANNE';
var htmlTitle	  = 'Permanence+Ost%C3%A9opathique+de+Lausanne';
var metaKeywords  = 'ost%C3%A9opathie%2C+permanence+ost%C3%A9opathique%2C+urgences%2C+urgence+lausanne%2C+donoso+francisco%2C+donoso%2C+m%C3%A9decine+manuelle%2C+femme+enceinte%2C+nourrisson%2C+sportif%2C+troisi%C3%A8me+%C3%A2ge%2C+enfant%2C+dos%2C+colonne+vert%C3%A9brale%2C+sciatiques%2C+lumbagos%2C+lombalgie%2C+manipulation%2C+m%C3%A9decine+naturelle%2C+m%C3%A9decine+douce%2C+pol%2C+alternative%2C+alternatives%2C+articulations%2C+assurance%2C+cabinet%2C+chiropractique%2C+chiropraxie%2C+cireo%2C+diagnostic%2C+dipl%C3%B4m%C3%A9%2C+douce%2C+douleurs+drainage+lymphatique%2C+%C3%A9cole%2C+%C3%A9thiopathie%2C+%C3%A9thiopathe%2C+f%C3%A9d%C3%A9ration%2C+fonctionnelle%2C+kin%C3%A9sith%C3%A9rapeute%2C+kin%C3%A9sith%C3%A9rapie%2C+lausanne%2C+centre%2C+main%2C+maladie%2C+manipulations%2C+manipulations+vert%C3%A9brales%2C+marche%2C+massage%2C+masseur%2C+m%C3%A9decin%2C+m%C3%A9decine+alternative%2C+m%C3%A9decine+m%C3%A9caniste%2C+m%C3%A9decines%2C+m%C3%A9decins%2C+mrso%2C+naturel%2C+ost%C3%A9opathe%2C+ost%C3%A9opathes%2C+ost%C3%A9opathie+cr%C3%A2nienne%2C+physioth%C3%A9rapeute%2C+physioth%C3%A9rapie%2C+praticien%2C+professionnel%2C+rebouteux%2C+reconnu%2C+r%C3%A9%C3%A9ducation%2C+registre+ost%C3%A9opathe%2C+riponne%2C+romand%2C+sant%C3%A9%2C+soins%2C+suisse%2C+suisse+romande%2C+technique+de+soin%2C+th%C3%A9rapie%2C+th%C3%A9rapie+manuelle%2C+traitement%2C+traitements%2C+vaud%2C+vert%C3%A9brales';
var metaContents  = 'La+Permanence+Ost%C3%A9opathique+de+Lausanne+est+ouverte+tous+les+jours+de+lann%C3%A9e...';
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();
};

