/* [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','32601',jdecode('Accueil'),jdecode(''),'/32601.html','true',[],'',''],
	['PAGE','573',jdecode('Naturopathie'),jdecode(''),'/573.html','true',[],'',''],
	['PAGE','32652',jdecode('Hom%C3%A9opathie'),jdecode(''),'/32652.html','true',[],'',''],
	['PAGE','32673',jdecode('MTC+Acupuncture'),jdecode(''),'/32673.html','true',[],'',''],
	['PAGE','32694',jdecode('Massage+et+drainage'),jdecode(''),'/32694.html','true',[],'',''],
	['PAGE','4801',jdecode('Pr%C3%A9sentation+personnelle'),jdecode(''),'/4801.html','true',[],'',''],
	['PAGE','32715',jdecode('Honoraires'),jdecode(''),'/32715.html','true',[],'',''],
	['PAGE','32736',jdecode('Comment+me+trouver%3F'),jdecode(''),'/32736.html','true',[],'','']];
var siteelementCount=8;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='FFD375';
theSitetree.keyvisualId='2054';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='330';
theSitetree.graphicsetId='385';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stylus',
				paletteFamily: 	'FFD375',
				keyvisualId: 	'2054',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'330',
				graphicsetId: 	'385',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFD375',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '32601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32601',
internalId:  '',
customField: '20100930-171240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32715',
internalId:  '',
customField: '20101001-150335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32736',
internalId:  '',
customField: '20110303-183032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20100930-174633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32652',
internalId:  '',
customField: '20100930-180928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32673',
internalId:  '',
customField: '20101001-152439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32694',
internalId:  '',
customField: '20101001-144714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20101001-145820'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INE4G3';
var companyName   = 'Hom%C3%A9opathe-Naturopathe-Acupuncteur';
var htmlTitle	  = 'Bi%C3%A8re+Hom%C3%A9opathie+%2F+Naturopathie+%2F+MTC';
var metaKeywords  = 'm%C3%A9decine%2C+douce%2C+hom%C3%A9opathie%2C+hom%C3%A9opathe%2C+naturopathie%2C+naturopathe%2C+MTC%2C+acupuncture%2C+acuponcture%2C+acupuncteur%2C+acuponcteur%2C+1145%2C+Bi%C3%A8re%2C+Vaud%2C1800%2C+Vevey%2C+sant%C3%A9%2C+naturelle%2C+naturel%2C+massage%2C+masseur%2C+drainage%2C+lymphatique%2C+Vodder%2C+Schaub%2C+Pierre-Alain%2C+soins%2C+granules%2C+APTN%2C+Vaud%2C+Berolle%2C+Mollens%2C+Ballens%2C+Montricher%2C+Mauraz%2C+Pampigny%2C+Apples%2C+Yens%2C+Villars-sous-Yens%2C+Reverolle%2C+S%C3%A9very%2C+Cottens%2C+Clarmont%2C+Bussy-Chardonnay%2C+Denens%2C+Morges%2C+Lully%2C+Tolochenaz%2C+St-Prex%2C+Lussy-sur-Morges%2C+Etoy%2C+Lavigny%2C+Buchillon%2C+Allaman%2C+Aubonne%2C+St-Livres%2C+F%C3%A9chy%2C+Perroy%2C+Montherod%2C+Saubraz%2C+Gimel%2C+St-George%2C+Longirod%2C+St-Oyens%2C+Essertines-sur-Rolles%2C+Bougy-Villars%2C+Mont-sur-Rolle%2C+Pizy%2C+Rolle%2C+Tartegnin%2C+Bursinel%2C+Gilly%2C+Marchissy%2C+Burtiny%2C+Bursins%2C+Dully%2C+Le+Vaud%2C+Vinzel%2C+Luins%2C+Bassins%2C+Begnins%2C+Gland%2C+Vich%2C+Genolier%2C+Coinsins%2C+Duillier%2C+Prangins%2C+NyonChigny%2C+Echichens%2C+Lonay%2C+Vufflens-le-Ch%C3%A2teau%2C+Monnaz%2C+Vaux-sur-Morges.';
var metaContents  = 'Sant%C3%A9%2C+traitements+en+m%C3%A9decine+douce.++Naturopathie%2C+hom%C3%A9opathie%2C+naturopathie%2C+MTC+%28acupuncture%29%2C+massage+et+drainage+lymphatique.+Cabinet+%C3%A0+1145+Bi%C3%A8re+et+1800+Vevey+%28Vaud%29+au+078%2F784.99.31';
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();
};

