/* [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','6398',jdecode('Votre+coach+sportif+personnel'),jdecode(''),'/6398.html','true',[],'',''],
	['PAGE','47747',jdecode('Pourquoi+un+coach+personnel+%3F'),jdecode(''),'/47747.html','true',[],'',''],
	['PAGE','47549',jdecode('Comment+%C3%A7a+marche+%3F'),jdecode(''),'/47549.html','true',[],'',''],
	['PAGE','12203',jdecode('Questions+%3A+perte+de+poids'),jdecode(''),'/12203.html','true',[],'',''],
	['PAGE','23895',jdecode('T%C3%A9l%C3%A9vision%2C+journaux%2C+radio...'),jdecode(''),'/23895.html','true',[],'',''],
	['PAGE','4786',jdecode('Mes+clients+t%C3%A9moignent'),jdecode(''),'/4786.html','true',[],'',''],
	['PAGE','24195',jdecode('Tarif%2C+conditions+et+contact'),jdecode(''),'/24195/index.html','true',[ 
		['PAGE','49721',jdecode('Tarif+et+contact.%28follow+up+page%29'),jdecode(''),'/24195/49721.html','false',[],'','']
	],'','']];
var siteelementCount=8;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B0CBD6';
theSitetree.keyvisualId='1973';
theSitetree.keyvisualName='hantel.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='383';
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: 	'B0CBD6',
				keyvisualId: 	'1973',
				keyvisualName: 	'hantel.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'383',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'B0CBD6',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6398',
internalId:  '',
customField: '20100205-213040'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6398',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47549',
internalId:  '',
customField: '20100205-212248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47747',
internalId:  '',
customField: '20091201-223750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23895',
internalId:  '',
customField: '20100107-210819'
};
webappMappings['7008']=webappMappings['7008-2966']={
webappId:    '7008',
documentId:  '24195',
internalId:  '2966',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12203',
internalId:  '',
customField: '20100110-161019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4786',
internalId:  '',
customField: '20090926-225855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24195',
internalId:  '',
customField: '20100205-212555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49721',
internalId:  '',
customField: '20081203-214003'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXEL4';
var companyName   = 'David+Juncker+coach+sportif+personel++';
var htmlTitle	  = 'David+Juncker+coach+sportif+personnel+%C3%A0+domicile+et+personal+trainer+renomm%C3%A9+en+Suisse+%28Neuch%C3%A2tel%2C+Lausanne%2C+Bienne%2C+Montreux%2C+Vevey%2C+Geneve...%29.+coach+a+domicile%3A+perte+de+poids%2C+remise+en+forme%2C+pr%C3%A9paration+sportive.';
var metaKeywords  = 'fitness%2Ccoach+sportif+personnel%2C+coach+prive%2Ccoach+sportif+suisse%2C+Neuch%C3%A2tel%2Calimentation%2Cmincir%2C+personal+training%2C+dietetique+%2Cminceur+%2Csport%2C+r%C3%A9gime%2C+coach+%2Cdavid+juncker%2Cperte+de+poids+%2Cmal+au+dos%2Cgymservice%2Cfitness+%2Csuisse%2C+Neuchatel%2C+%2C+prise+de+poids%2C+entraineur+prive%2C+gymnastique%2Cpersonal+trainer%2C+juncker+david%2C+pr%C3%A9paration+sportive%2Cski%2Cpersonal+traineur%2Cpilate%2C+ski%2C+pr%C3%A9paration+sportive%2C+coaching+sportif+personnel%2Cpilates';
var metaContents  = 'David+Juncker+coach+sportif+personnel+et+personal+trainer+renomm%C3%A9+en+Suisse+%28Neuch%C3%A2tel%2C+Lausanne%2C+Bienne%2C+Montreux%2C+Vevey%2C+Geneve...%29.Je+vous+aide+pour+votre+perte+de+poids%2C+remise+en+forme+ou+une+pr%C3%A9paration+sportive.+Optez+pour+ce+qui+se+fait+de+mieux%21+david+juncker+coach+sportif+personnel+0041787324820.';
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();
};
