/* [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','452',jdecode('Qui+sommes-nous%3F'),jdecode(''), jdecode('%2F452.html'), 'true',[],'',''],
	['PAGE','401',jdecode('Notre+mission'),jdecode(''), jdecode('%2F401.html'), 'true',[],'',''],
	['PAGE','89701',jdecode('Nos+principales+r%C3%A9f%C3%A9rences'),jdecode(''), jdecode('%2F89701.html'), 'true',[],'',''],
	['PAGE','86801',jdecode('Nos+prochains+cours'),jdecode(''), jdecode('%2F86801.html'), 'true',[],'',''],
	['PAGE','78322',jdecode('Je+recherche....'),jdecode(''), jdecode('%2F78322.html'), 'true',[],'',''],
	['PAGE','31301',jdecode('Notre+mode+p%C3%A9dagogique'),jdecode(''), jdecode('%2F31301.html'), 'true',[],'',''],
	['PAGE','494',jdecode('Domaine+d%26%23x27%3Bintervention'),jdecode(''), jdecode('%2F494%2Findex.html'), 'true',[ 
		['PAGE','45401',jdecode('LaB+Profile+%28IWAM%29'),jdecode(''), jdecode('%2F494%2F45401.html'), 'true',[],'',''],
		['PAGE','557',jdecode('L%26%23x27%3Bapproche+%C3%A0+360%C2%B0'),jdecode(''), jdecode('%2F494%2F557.html'), 'true',[],'',''],
		['PAGE','27512',jdecode('L%26%23x27%3Bintelligence+%C3%A9motionnelle'),jdecode(''), jdecode('%2F494%2F27512.html'), 'true',[],'',''],
		['PAGE','515',jdecode('Formation+Management'),jdecode(''), jdecode('%2F494%2F515.html'), 'true',[],'',''],
		['PAGE','27201',jdecode('Coaching+d%26%23x27%3B%C3%A9quipe+'),jdecode(''), jdecode('%2F494%2F27201.html'), 'true',[],'',''],
		['PAGE','536',jdecode('Coaching+individuel'),jdecode(''), jdecode('%2F494%2F536.html'), 'true',[],'',''],
		['PAGE','29801',jdecode('Formation+des+forces+de+vente'),jdecode(''), jdecode('%2F494%2F29801.html'), 'true',[],'',''],
		['PAGE','30601',jdecode('Mobilit%C3%A9+interne'),jdecode(''), jdecode('%2F494%2F30601.html'), 'true',[],'','']
	],'',''],
	['PAGE','473',jdecode('Notre+philosophie'),jdecode(''), jdecode('%2F473.html'), 'true',[],'',''],
	['PAGE','80701',jdecode('Lieu'),jdecode(''), jdecode('%2F80701.html'), 'true',[],'',''],
	['PAGE','78201',jdecode('Comment+nous+trouver%3F'),jdecode(''), jdecode('%2F78201.html'), 'true',[],'',''],
	['PAGE','80801',jdecode('Contact'),jdecode(''), jdecode('%2F80801.html'), 'true',[],'',''],
	['PAGE','83001',jdecode('liens'),jdecode(''), jdecode('%2F83001.html'), 'true',[],'',''],
	['PAGE','95601',jdecode('Article+de+presse'),jdecode(''), jdecode('%2F95601.html'), 'true',[],'',''],
	['PAGE','96801',jdecode('Photos+activit%C3%A9+de+Team+Building'),jdecode(''), jdecode('%2F96801.html'), 'true',[],'','']];
var siteelementCount=22;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B0CBD6';
theSitetree.keyvisualId='1965';
theSitetree.keyvisualName='bowling.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='383';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'fr',
  country: 'FR'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Stylus',
				paletteFamily: 	'B0CBD6',
				keyvisualId: 	'1965',
				keyvisualName: 	'bowling.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'383',
				contentColor: 	'000066',
				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:  '83001',
internalId:  '',
customField: '20101010-111330'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '80701',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:true;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '452',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20120112-123608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80701',
internalId:  '',
customField: '20090815-135806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20090815-135245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31301',
internalId:  '',
customField: '20090815-140506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20090815-140526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45401',
internalId:  '',
customField: '20090914-131741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20090815-140614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27512',
internalId:  '',
customField: '20090815-140639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20090815-135637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27201',
internalId:  '',
customField: '20090129-185815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20080512-115151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29801',
internalId:  '',
customField: '20080511-224548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30601',
internalId:  '',
customField: '20090815-140707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20090131-003850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80801',
internalId:  '',
customField: '20120112-123020'
};
webappMappings['1501']=webappMappings['1501-28275903']={
webappId:    '1501',
documentId:  '452',
internalId:  '28275903',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89701',
internalId:  '',
customField: '20101010-111311'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '78201',
internalId:  'routing',
customField: 'fr_FR'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78201',
internalId:  '',
customField: '20090815-135856'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '78322',
internalId:  'search',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96801',
internalId:  '',
customField: '20091203-173549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78322',
internalId:  '',
customField: '20090815-135347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95601',
internalId:  '',
customField: '20091203-181936'
};
webappMappings['7008']=webappMappings['7008-661']={
webappId:    '7008',
documentId:  '80801',
internalId:  '661',
customField: 'language:fr;country:FR;'
};
webappMappings['7008']=webappMappings['7008-662']={
webappId:    '7008',
documentId:  '45401',
internalId:  '662',
customField: 'language:fr;country:FR;'
};
webappMappings['7008']=webappMappings['7008-6092']={
webappId:    '7008',
documentId:  '86801',
internalId:  '6092',
customField: 'language:fr;country:FR;'
};
webappMappings['7060']=webappMappings['7060-e6237f05ce649d52e44bda0efb873f7b']={
webappId:    '7060',
documentId:  '96801',
internalId:  'e6237f05ce649d52e44bda0efb873f7b',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86801',
internalId:  '',
customField: '20110823-125919'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INEC3A';
var companyName   = 'V%C3%A9ridique+Ressources+Humaines+S%C3%80RL';
var htmlTitle	  = 'V%C3%A9ridique+Ressources+Humaines+S%C3%80RL%2CCoaching%2CFormation+Management%2CFormation+des+forces+de+vente';
var metaKeywords  = 'management%2C+coaching%2C+mentoring%2C+formation%2C+pnl%2C+neuro-semantique%2Ccoaching+d%EF%BF%BDquipe%2Cteam+building%2C+communication+interpersonnel%2C+bilan+de+competances%2Cgestion+des+priorites%2C+estime+de+soi%2Caccompagnement%2C+conseils+dentreprise+%2C+consulting%2Cneurosemantique%2Cneuro-semantique%2C+semantique%2Cprogramation-neuro-linguistique+%2C+IWAM%2C+iwam%2C+LaB+Profile%2C+lab+profile%2C+LABPROFILE%2C+LAB+PROFILE%2C+aide+au+recrutement+bulle%2Caide+au+recrutement+fribourg%2C+aide+au+recrutement+lausanne%2C+coaching+fribourg%2C+coaching+bulle%2C+coaching+neuchatel%2C+coaching+lausanne%2C+coaching+sion%2C+formation+bulle%2Cformation+fribourg%2C+formation+lausanne%2C+formation+neuchatel%2C+formation+sion%2C+formation+delemont%2C+coaching+jura%2C+aide+au+recrutement+neuchatel%2C+coaching+la+chaux+de+fonds%2C+coaching+la+chaux-de-fonds%2C+gestion+de+conflits%2C+gestion+de+conflit%2C+team+building+bulle%2C+team+building+fribourg%2C+team+building+lausanne%2C+team+building+neuchatel%2C+team+building+sion%2Cpnl+bulle%2C+pnl+fribourg%2Cpnl+neuchatel%2C+pnl+lausanne%2C+pnl+sion%2C+pnl+la+chaux-de-fonds%2C+coaching+le+locle%2Ccoach+personnel%2C+coach+professionnel%2C+metaphore%2C+metaphore%2Ccoach+bulle%2C+coach+fribourg%2Cformateur+dadulte%2C+formaRessource+humaine%2C+Ressources+Humainesteur+dadultes%2Cfsea%2C+brevet+f%C3%A9d%C3%A9ral%2C+bffa%2Cfaire+du+coaching%2C+etre+coache%2C+devenir+coach%2CPhilippe+Pellaton%2C+brevet+f%C3%A9d%C3%A9ral%2Ccours+de+langues%2C+cours+de+fran%C3%A7ais%2Ccours+de+fran%C3%A7ais+tous+niveaux.';
var metaContents  = 'Formation+en+management+%2C+Formation+en+communication+interpersonnelle+%2C+Formation+a+destination+des+forces+de+vente+%2C+Coaching+de+managers+operationnels+et+d+equipes++%2C+Recrutement+de+cadres+%2C++Evaluation+de+potentiels+%2C+Bilan+professionnel+et+orientation+interne+ou+externe.+neurosemantique%2Cneuro-s%C3%A9mantique%2C+semantique%2Cpnl%2C+programation-neuro-linguistique+%2Cpellaton+philippe%2Cperfectionnement%2Cconseils%2C+objectif%2CIWAM%2C+iwam%2C+LaB+Profile%2C+lab+profile%2C+LABPROFILE%2C+LAB+PROFILE%2C+aide+au+recrutement+bulle%2Caide+au+recrutement+fribourg%2C+aide+au+recrutement+lausanne%2C+coaching+fribourg%2C+coaching+bulle%2C+coaching+neuchatel%2C+coaching+lausanne%2C+coaching+sion%2C+formation+bulle%2Cformation+fribourg%2C+formation+lausanne%2C+formation+neuchatel%2C+formation+sion%2C+formation+delemont%2C+coaching+jura%2C+aide+au+recrutement+neuchatel%2C+coaching+la+chaux+de+fonds%2C+coaching+la+chaux-de-fonds%2C+gestion+de+conflits%2C+gestion+de+conflit%2C+team+building+bulle%2C+team+building+fribourg%2C+team+building+lausanne%2C+team+building+neuchatel%2C+team+building+sion%2Cpnl+bulle%2C+pnl+fribourg%2Cpnl+neuchatel%2C+pnl+lausanne%2C+pnl+sion%2C+pnl+la+chaux-de-fonds%2C+coaching+le+locle%2Ccoach+personnel%2C+coach+professionnel%2C+m%EF%BF%BDtaphore%2C+metaphore%2Ccoach+bulle%2C+coach+fribourg%2Cformateur+dadulte%2C+formateur+d%60adultes%2CRessource+humaine%2C+Ressources+Humaines%2CPhilippe+Pellaton%2Cbrevet+f%C3%A9d%C3%A9ral%2C+cours+de+langues%2C+cours+de+fran%C3%A7ais%2Ccours+de+fran%C3%A7ais+tous+niveaux.';
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();
};

