/* [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','5101',jdecode('Home'),jdecode(''), jdecode('%2F5101.html'), 'true',[],'',''],
	['PAGE','43901',jdecode('Nouveaut%C3%A9'),jdecode(''), jdecode('%2F43901.html'), 'true',[],'',''],
	['PAGE','30501',jdecode('Rituels+des+Sens'),jdecode(''), jdecode('%2F30501.html'), 'true',[],'',''],
	['PAGE','5201',jdecode('Hydro-Jet'),jdecode(''), jdecode('%2F5201.html'), 'true',[],'',''],
	['PAGE','5564',jdecode('Solarium'),jdecode(''), jdecode('%2F5564%2Findex.html'), 'true',[ 
		['PAGE','47201',jdecode('Info+solarium'),jdecode(''), jdecode('%2F5564%2F47201.html'), 'false',[],'','']
	],'',''],
	['PAGE','5543',jdecode('Sauna+Bio'),jdecode(''), jdecode('%2F5543.html'), 'true',[],'',''],
	['PAGE','35601',jdecode('Onglerie'),jdecode(''), jdecode('%2F35601.html'), 'true',[],'',''],
	['PAGE','5152',jdecode('Power+Plate'),jdecode(''), jdecode('%2F5152%2Findex.html'), 'true',[ 
		['PAGE','23201',jdecode('Power+Wrap'),jdecode(''), jdecode('%2F5152%2F23201.html'), 'true',[],'','']
	],'',''],
	['PAGE','5301',jdecode('Endermologie'),jdecode(''), jdecode('%2F5301.html'), 'true',[],'',''],
	['PAGE','5322',jdecode('Lifmassage'),jdecode(''), jdecode('%2F5322.html'), 'true',[],'',''],
	['PAGE','43201',jdecode('Massages'),jdecode(''), jdecode('%2F43201.html'), 'true',[],'',''],
	['PAGE','5343',jdecode('Esthetique'),jdecode(''), jdecode('%2F5343.html'), 'true',[],'',''],
	['PAGE','10301',jdecode('Esthederm'),jdecode(''), jdecode('%2F10301.html'), 'true',[],'',''],
	['PAGE','39401',jdecode('C%C3%A2linesse'),jdecode(''), jdecode('%2F39401.html'), 'true',[],'',''],
	['PAGE','5501',jdecode('MPSolutions'),jdecode(''), jdecode('%2F5501.html'), 'true',[],'',''],
	['PAGE','5522',jdecode('Ost%C3%A9opathie'),jdecode(''), jdecode('%2F5522.html'), 'true',[],'',''],
	['PAGE','43601',jdecode('R%C3%A9flexologie'),jdecode(''), jdecode('%2F43601.html'), 'true',[],'',''],
	['PAGE','5222',jdecode('Contact'),jdecode(''), jdecode('%2F5222.html'), 'true',[],'',''],
	['PAGE','20201',jdecode('Horaires'),jdecode(''), jdecode('%2F20201.html'), 'true',[],'',''],
	['PAGE','16601',jdecode('Liens+partenaires'),jdecode(''), jdecode('%2F16601.html'), 'true',[],'','']];
var siteelementCount=22;
theSitetree.topTemplateName='Logg';
theSitetree.paletteFamily='2A7871';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='421';
theSitetree.graphicsetId='473';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='2A7871';
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: 			'Logg',
				paletteFamily: 	'2A7871',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'421',
				graphicsetId: 	'473',
				contentColor: 	'FFFFFF',
				contentBGColor: '2A7871',
				a_color: 		'2A7871',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20111107-233329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5152',
internalId:  '',
customField: '20111107-235328'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '43201',
internalId:  '-',
customField: '20111105-045049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5201',
internalId:  '',
customField: '20111107-233040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20111107-235645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5322',
internalId:  '',
customField: '20111107-235859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5222',
internalId:  '',
customField: '20111105-042011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10301',
internalId:  '',
customField: '20111105-041250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5343',
internalId:  '',
customField: '20111108-000033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20111108-000530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5564',
internalId:  '',
customField: '20111108-003453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5543',
internalId:  '',
customField: '20111107-235149'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '43601',
internalId:  '-',
customField: '20111108-001301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5522',
internalId:  '',
customField: '20111108-001510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16601',
internalId:  '',
customField: '20111105-042107'
};
webappMappings['7008']=webappMappings['7008-7312']={
webappId:    '7008',
documentId:  '5222',
internalId:  '7312',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30501',
internalId:  '',
customField: '20111107-234921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20201',
internalId:  '',
customField: '20111108-004404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23201',
internalId:  '',
customField: '20111107-235540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35601',
internalId:  '',
customField: '20111105-044140'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '39401',
internalId:  '-',
customField: '20111105-030002'
};
webappMappings['1501']=webappMappings['1501-30122439']={
webappId:    '1501',
documentId:  '5101',
internalId:  '30122439',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '43901',
internalId:  '-',
customField: '20111105-041315'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '47201',
internalId:  '-',
customField: '20111107-231525'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW330INEY0S';
var companyName   = 'PHYSIC%27+S++++++Health+%26+Beauty+Center';
var htmlTitle	  = '';
var metaKeywords  = 'physics%2C+physic%2C+physic-s%2C+physics%2C+centre%2C+beaut%C3%A9%2C+sant%C3%A9%2C+bien-%C3%AAtre%2C+power+plate%2C+powerplate%2C+power-plate%2C+power%2C+plate%2C+entrainement%2C+vibrations%2C+tridimensionnnelle%2C+r%C3%A9sultat%2C+r%C3%A9sultats%2C+rapidde%2C+tonification%2C+raffermissement%2C+tonifier%2C+raffermir%2C+mincir%2C+amincissement%2C+cure%2C+enveloppement%2C+power+wrap%2C+powerwrap%2C+wrap%2C+perte+de+poids%2C+poid%2C+endermologie%2C+lipomassage%2C+traitement%2C+anti-cellulite%2C+cellu%2C+m6%2C+cellum6%2C+keymodule%2C+cellulite%2C+celulit%2C+peau+dorange%2C+capiton%2C+capitons%2C+culotte+de+cheval%2C+cullote+de+cheval%2C+regime%2C+cosm%C3%A9canique%2C+cosmecanique%2C+lift6%2C+lift+6%2C+lift%2C+lifting%2C+lifting+naturel%2C+anti-%C3%A2ge%2C+anti-age%2C+ride%2C+ridule%2C+rides%2C+ridules%2C+peau%2C+soins%2C+soin%2C+visage%2C+corps%2C+mains%2C+pieds%2C+massage%2C+massages%2C+hot+stone%2C+teinture%2C+cils%2C+%C3%A9pilation%2C+epilation%2C+aisselles%2C+jambes%2C+jambe%2C+dos%2C+torse%2C+bikini%2C+l%C3%A8vre%2C+l%C3%A8vres%2C+moustache%2C+sourcils%2C+cire%2C+ti%C3%A8de%2C+froide%2C+chaude%2C+pince+%C3%A0+%C3%A9piler%2C+psychologue%2C+psychologie%2C+bilan%2C+conseil%2C+orientation%2C+%C3%A9tapes+de+la+vie%2C+hydrojet%2C+hydro-jet%2C+wellsystem%2C+apesanteur%2C+m%C3%A9dical%2C+hydro%2C+hydromassage%2C+relax%2C+relaxation%2C+solarium%2C+sola%2C+banc+solaire%2C+luxura%2C+x10%2C+Q10%2C+bronzer%2C+bronzage%2C+uv%2C+uva%2C+uvb%2C+uvc%2C+ost%C3%A9o%2C+ost%C3%A9opathie%2C+ost%C3%A9overtebrologue%2C+massage+therapeutique%2C+rituel%2C+rituels%2C+soins+pour+2%2C+soins+pour+deux%2C+d%C3%A9tente+exclusive%2C+d%C3%A9tente%2C+regime%2C+perte+de+poids%2C+coaching%2C+personnal%2C+trainers%2C+nutrition%2C+sportif%2C+sportifs%2C+sportive%2C+sportives%2C+perfect+nutri%2C+perfect%2C+nutri%2C+proteine%2C+proteines%2C+vitamines%2C+min%C3%A9raux%2C+oligo%2C+%C3%A9lements%2C+whey%2C+fitline%2C+proline%2C+vita%2C+l-carnitine%2C+pro%2C+plus%2C+90%2C+max%2C+fit%2C+after%2C+bcaa%2C+one+minute+manicure%2C+tweeez%2C+training%2C+coach%2C+institut%2C+maryligne%2C+heckendorn%2C+philippe%2C+maryline%2C+schwaar%2C+michael%2C+pelling%2C+st%C3%A9phanie%2C+ferrini%2C+didier%2C+prain%2C+ecublens%2C+bois%2C+14a%2C+1024%2C+6910080%2C+info%2C+spa%2C+sauna%2C+bio%2C+aliment%2C+aliments%2C+eau%2C+cellulaire%2C+hydra%2C+repair%2C+sensi%2C+pure%2C+hydratant%2C+liftant%2C+ecublens%2C+crissier%2C+lausanne%2C+chavannes%2C+renens%2C+bussigny%2C+power+plate%2C+power+wrap%2C+cellu+m6%2C+endermologie%2C+cellulite%2C+traitement%2C+beaut%C3%A9%2C+bien-%C3%AAtre%2C+fitness%2C+sant%C3%A9%2C+relaxation%2C+zen%2C+%C3%A9nergie%2C+vitalit%C3%A9%2C+compl%C3%A9ments+alimantaires%2C+vibrations%2C+esth%C3%A9tique%2C+institut%2C+lifting%2C+lift6%2C+keymodule%2C+lpg%2C+cosm%C3%A9canique%2C+maryligne%2C+croset%2C+ecublens%2C+spor%2Ct+lausanne%2C+naturel%2C+high-tech%2C+soin%2C+enveloppement%2C+drainage%2C+lymphatique%2C+raffermissement%2C+massage%2C+toxines%2C+maigrir%2C++palper-rouler%2C+anti-%C3%A2ge%2C+anti-anging%2C+anti-cellulite%2C++renforcement%2C+musculaire%2C+musculation%2C+muscles%2C+entra%C3%AEnemet%2C+circulation%2C+sanguine%2C+coordination%2C+br%C3%BBlage+des+graisses%2C+hormones%2C+condition%2C+physique%2C+flexibilit%C3%A9%2C+%C3%A9tirement%2C+gymnastique%2C+rapide%2C+nouveau%2C+intensif%2C+centre%2C+centre+commercial%2C+gratuit%2C+testez%2C+gratuitement%2C+Onglerie%2C+ongles%2C+gel%2C+remplissage%2C+french%2C+manucure%2C+tips%2C+pose%2C+ongle%2C+esthederm%2C+precious%2C+nails%2C+eve%2C+e.v.e.%2C+serum%2C+source%2C+tissulaire%2C+C%C3%A2linesse%2C+calinesse%2C+biologique%2C+bio%2C+eco%2C+lait+d%27anesse%2C+';
var metaContents  = 'Physics+centre+de+sant%C3%A9%2C+beaut%C3%A9+et+bien-%C3%AAtre+dEcublens.+Service+personnalis%C3%A9+et+soign%C3%A9.+Entrainement+power+plate+pour+tonifier+et+raffermir+son+corps.+Enveloppement+power+wrap+pour+affin%C3%A9+sa+silhouette+rapidement.++Soins+esthetique%2C+soins+du+visage%2C+soin+du+corps%2C+%C3%A9pilation%2C+beaut%C3%A9+des+mains+et+des+pieds%2C+massage+hot+stone.+Endermologie%3A+lipomassage+avec+cellu+m6+keymodule+i%2C+traitement+anti-cellulite.+Cosm%C3%A9canique%3A+liftmassage+avec+lift6%2C+traitement+anti-%C3%A2ge.+Soins+avec+la+methode+esthederm%2C+produits+cosm%C3%A9tique+institut+esthederm+paris.+Rituel+de+soin+pour+deux%2C+d%C3%A9tente+exclusive.++Massage+avec+hydro-jet+wellsystem%2C+la+d%C3%A9tente+en+apesanteu.+Solarium+luxura+x10+pour+un+bronzage+naturel.+Sauna+Bio.+Psycologie%3A+bilan%2C+conseil+et+orientation+%C3%A0+toutes+les+%C3%A9tapes+de+la+vie.+Ost%C3%A9opathie+et+massage+th%C3%A9rapeutique.+Coaching+di%C3%A9t%C3%A9tique+et+nutrition+sportive+avec+perfect+nutri.+Nouveau+Onglerie+Precious+Nails.';
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();
};

