/* [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','501',jdecode('Home'),jdecode(''), jdecode('%2F501.html'), 'true',[],'',''],
	['PAGE','552',jdecode('Accueil'),jdecode(''), jdecode('%2F552.html'), 'true',[],'',''],
	['PAGE','7201',jdecode('Notre+philosophie'),jdecode(''), jdecode('%2F7201.html'), 'true',[],'',''],
	['PAGE','7222',jdecode('Sympt%C3%B4mes'),jdecode(''), jdecode('%2F7222%2Findex.html'), 'true',[ 
		['PAGE','7243',jdecode('Causes'),jdecode(''), jdecode('%2F7222%2F7243.html'), 'true',[],'',''],
		['PAGE','7264',jdecode('Traitement'),jdecode(''), jdecode('%2F7222%2F7264.html'), 'true',[],'','']
	],'',''],
	['PAGE','7285',jdecode('Hom%C3%A9opathie+animale'),jdecode(''), jdecode('%2F7285.html'), 'true',[],'',''],
	['PAGE','24901',jdecode('Tarifs'),jdecode(''), jdecode('%2F24901.html'), 'true',[],'',''],
	['PAGE','22422',jdecode('Contact'),jdecode(''), jdecode('%2F22422.html'), 'true',[],'',''],
	['PAGE','22443',jdecode('Partenaires'),jdecode(''), jdecode('%2F22443.html'), 'true',[],'','']];
var siteelementCount=10;
theSitetree.topTemplateName='Tendril';
theSitetree.paletteFamily='F5E7D2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33093';
theSitetree.graphicsetId='14060';
theSitetree.contentColor='956929';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MS'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Tendril',
				paletteFamily: 	'F5E7D2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33093',
				graphicsetId: 	'14060',
				contentColor: 	'956929',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100325-123908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20090410-160907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7201',
internalId:  '',
customField: '20080420-225455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7222',
internalId:  '',
customField: '20100325-124312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7243',
internalId:  '',
customField: '20090410-161029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7264',
internalId:  '',
customField: '20111014-125704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7285',
internalId:  '',
customField: '20080706-172155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24901',
internalId:  '',
customField: '20111014-125448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22422',
internalId:  '',
customField: '20111014-125851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22443',
internalId:  '',
customField: '20100326-111519'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0IN2HLF';
var companyName   = 'Equus-Osteo';
var htmlTitle	  = 'Ost%C3%A9opathie+%C3%A9quine%2C+canine+et+f%C3%A9line%3B+Val%C3%A9ry+Oberson+Ost%C3%A9opathe+animalier+avec+sp%C3%A9cialisation+en+ost%C3%A9opathie+%C3%A9quine%2C+canine+et+f%C3%A9line';
var metaKeywords  = 'ost%EF%BF%BDopathe+animalier+dipl%EF%BF%BDm%EF%BF%BDe%2C+ost%EF%BF%BDopathe+canin+dipl%EF%BF%BDm%EF%BF%BDe%2C+ost%EF%BF%BDopathe+%EF%BF%BDquin+dipl%EF%BF%BDm%EF%BF%BDe%2C+osteopathe+animalier+diplome%2C+osteopathe+equin+diplome%2Cost%EF%BF%BDopathe+canin+diplome%2C+homeopathie+animale%2C+Valery+Oberson+Ost%EF%BF%BDopathe+animalier+diplom%EF%BF%BD%2Chom%EF%BF%BDopathie+animale%2C+pratique+ost%EF%BF%BDopathique+petits+animaux%2C+equus-osteo%2C+ost%EF%BF%BDopathie+%EF%BF%BDquine+et+canine%2C+ost%EF%BF%BDopathie+f%EF%BF%BDline%2Cost%EF%BF%BDopathie+animale%2C+ost%EF%BF%BDopathe+%EF%BF%BDquin+et+canin%2C+ost%EF%BF%BDopathie+pour+chevaux%2C+ost%EF%BF%BDopathie+pour+chiens%2C+manipulation+ost%EF%BF%BDopathique%2C+ost%EF%BF%BDopathie+%EF%BF%BDquine%2C+ost%EF%BF%BDopathie+canine%2C+fleurs+de+Bach%2C+aromath%EF%BF%BDrapie%2C+Andrew+Taylor+Still%2C+Val%EF%BF%BDry+Oberson+ost%EF%BF%BDopathe+%EF%BF%BDquin+et+canin%2C+orthop%EF%BF%BDdie+%EF%BF%BDquine%2C+traitement+du+syst%EF%BF%BDme+musculo-squelettique%2C+perte+de+mobilit%EF%BF%BD%2C+hom%EF%BF%BDostasie%2C+le+corps+doit+%EF%BF%BDtre+en+harmonie+structurellement+et+physiologiquement%2C+souffrance%2C+douleur%2C+la+douleur+que+peut+ressentir+un+cheval+ou+un+chien%2C+changement+de+comportement%2C+compensation%2C+agravation+de+la+pathologie%2C+r%EF%BF%BDajustement+des+structures+et+des+fonctions+perturb%EF%BF%BDes%2C+perte+dengagement+des+post%EF%BF%BDrieurs%2C+perte+damplitude+au+niveau+des+allures%2C+refus+%EF%BF%BD+lobstacle%2C+ruades%2C+d%EF%BF%BDfenses%2C+ne+sincurve+pas%2C+boiteries%2C+tr%EF%BF%BDbucher%2C+rigidit%EF%BF%BD+de+la+bouche%2C+probl%EF%BF%BDmes+au+ferrage%2C+insuffisance+pulmonaire%2C+avortement%2C+probl%EF%BF%BDmes+comportementaux%2C+baisse+du+taux+de+fertilit%EF%BF%BD%2C+mauvais+%EF%BF%BDtat+g%EF%BF%BDn%EF%BF%BDral%2C+tendinite+chronique%2C+probl%EF%BF%BDmes+d%EF%BF%BDvacuation+des+selles%2C+perte+de+locomotion%2C+chutes%2C+accidents%2C+travail+inadapt%EF%BF%BD%2C+croissance+rapide%2C+traumatismes%2C+chocs%2C+convalescence%2C+luxation%2C+sub-luxation%2C+dysplasie%2C+compression+m%EF%BF%BDdullaire%2C+parturition%2C+anamn%EF%BF%BDse%2C+examen+palpatoire%2C+dynamique%2C+testings%2C+analyse%2C+manipulations%2C+r%EF%BF%BD%EF%BF%BDducation%2C+hyppocrate%2C+m%EF%BF%BDthode+des+contraires%2C+m%EF%BF%BDthodes+des+semblables%2C+loi+de+similitude%2C+hahnemann%2C+trituration%2C+rem%EF%BF%BDdes%2C+organoth%EF%BF%BDrapie%2C+isoth%EF%BF%BDrapie%2C+constitutions%2C+carboniques%2C+phosphoriques%2C+fluoriques%2C+%EF%BF%BD+vendre+ou+%EF%BF%BD+placer%2C+consultations%2C+fourbure%2C+syndrome+podotrochl%EF%BF%BDaire%2C+syndrome+naviculaire';
var metaContents  = 'Val%EF%BF%BDry+Oberson%2C+Ost%EF%BF%BDopathe+%EF%BF%BDquin%2Ccanin++f%EF%BF%BDlin%2C+hom%EF%BF%BDopathie+animale%2C+Ost%EF%BF%BDopathe+animalier+dipl%EF%BF%BDm%EF%BF%BDe%2C+ost%EF%BF%BDopathie+animale%2C+massoth%EF%BF%BDrapie%2C++stretching%2C+pratique+ost%EF%BF%BDopathique+petits+animaux%2Cl+ost%EF%BF%BDopathie+joue+un+r%EF%BF%BDle+essentiel+dans+la+pr%EF%BF%BDvention+de+certaines+affections%2C+elle+intervient+%EF%BF%BD+tous+les+stades%2C+l+ost%EF%BF%BDopathie+est+une+m%EF%BF%BDthode+d+%EF%BF%BDvaluation+et+de+traitement+du+syst%EF%BF%BDme+musculo+squelettique%2C+la+manipulation+ost%EF%BF%BDopathique+supprime+les+restrictions+de+mobilit%EF%BF%BD%2C+elle+r%EF%BF%BDajuste+les+structures+et+restaure+les+fonctions+perturb%EF%BF%BDes%2CAndrew+Taylor+Still%2C+Val%EF%BF%BDry+Oberson+ost%EF%BF%BDopathe+%EF%BF%BDquin+et+canin%2C+equus-osteo%2C+anamn%EF%BF%BDse%2C+examen+palpatoire%2C+dynamique%2C+testing%2C+analyse%2C+manipulatin%2C+r%EF%BF%BD%EF%BF%BDducation%2C+Hyppocrate%2C+m%EF%BF%BDthode+des+contraires%2C+m%EF%BF%BDthode+des+semblables%2C+loi+de+similitude%2C+Hahnemann%2C+trituration%2C+rem%EF%BF%BDdes%2C+organoth%EF%BF%BDrapie%2C+isoth%EF%BF%BDrapie%2C+constitutions%2C+carboniques%2C+phosphoriques%2C+fluoriques%2C+%EF%BF%BD+vendre+ou+%EF%BF%BD+placer%2C+consultations%2C+perte+de+mobilit%EF%BF%BD%2C+le+corps+doit+%EF%BF%BDtr+en+harmonie+structurellement+et+physiologiquement%2C+souffrance%2C+douleur%2C+la+douleur+que+peut+ressentir+un+cheval+ou+un+chien%2C+changement+de+comportement%2C+compensation%2C+aggravation+de+la+pathologie%2C+r%EF%BF%BDajustement+des+structures+et+des+fonctions+perturb%EF%BF%BDes%2C+perte+dengagement+des+post%EF%BF%BDrieurs%2C+perte+damplitude+des+allures%2C+refus+%EF%BF%BD+lobstacle%2C+ruades%2C+d%EF%BF%BDfenses%2C+ne+sincurve+pas%2C+boiteries%2C+tr%EF%BF%BDbucher%2C+rigidit%EF%BF%BD+de+la+bouche%2C+probl%EF%BF%BDmes+au+ferrage%2C+insuffisance+pulmonaire%2C+avortement%2C+probl%EF%BF%BDmes+comportementaux%2C+baisse+du+taux+de+fertilit%EF%BF%BD%2C+mauvais+%EF%BF%BDtat+g%EF%BF%BDn%EF%BF%BDral%2C+tendinite+chronique%2C+probl%EF%BF%BDmes+d%EF%BF%BDvacuation+des+selles%2C+perte+de+locomotion%2C+chutes%2C+accident%2C+travail+inadapt%EF%BF%BD%2C+croissance+rapide%2C+traumatismes%2C+chocs%2C+convalescence%2C+luxation%2C+sub-luxation%2C+dysplasie%2C+compression+m%EF%BF%BDdullaire%2C+parturition%2C+syndrome+podotrochl%EF%BF%BDaire%2C+fourbure%2C+syndrome+naviculaire%2C+paralysie%2C';
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();
};

