/* [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','4584',jdecode('Home'),jdecode(''), jdecode('%2F4584.html'), 'true',[],'',''],
	['PAGE','4930',jdecode('Le+Dr+Samuel+Debard'),jdecode(''), jdecode('%2F4930.html'), 'true',[],'',''],
	['PAGE','20704',jdecode('M.D.H.'),jdecode(''), jdecode('%2F20704.html'), 'true',[],'',''],
	['PAGE','5092',jdecode('Hom%C3%A9opathie'),jdecode(''), jdecode('%2F5092.html'), 'true',[],'',''],
	['PAGE','5227',jdecode('Metalfree'),jdecode(''), jdecode('%2F5227.html'), 'true',[],'',''],
	['PAGE','5281',jdecode('Traitements+laser'),jdecode(''), jdecode('%2F5281.html'), 'true',[],'',''],
	['PAGE','63028',jdecode('Bleaching'),jdecode(''), jdecode('%2F63028.html'), 'true',[],'',''],
	['PAGE','5524',jdecode('Parodontologie'),jdecode(''), jdecode('%2F5524.html'), 'true',[],'',''],
	['PAGE','65325',jdecode('La+R.D.G.'),jdecode(''), jdecode('%2F65325.html'), 'true',[],'',''],
	['PAGE','65940',jdecode('Le+Candida'),jdecode(''), jdecode('%2F65940%2Findex.html'), 'true',[ 
		['PAGE','85901',jdecode('Parodontite+Candidosique'),jdecode(''), jdecode('%2F65940%2F85901.html'), 'true',[],'','']
	],'',''],
	['PAGE','91701',jdecode('Le+PCS'),jdecode(''), jdecode('%2F91701.html'), 'true',[],'',''],
	['PAGE','6203',jdecode('Electrogalvanisme+'),jdecode(''), jdecode('%2F6203.html'), 'true',[],'',''],
	['PAGE','20204',jdecode('Champs+perturbant'),jdecode(''), jdecode('%2F20204.html'), 'true',[],'',''],
	['PAGE','6230',jdecode('Cariologie'),jdecode(''), jdecode('%2F6230.html'), 'true',[],'',''],
	['PAGE','7509',jdecode('Contact'),jdecode(''), jdecode('%2F7509%2Findex.html'), 'true',[ 
		['PAGE','7536',jdecode('Adresse%2C+T%C3%A9l%C3%A9phone'),jdecode(''), jdecode('%2F7509%2F7536.html'), 'true',[],'',''],
		['PAGE','7563',jdecode('Comment+nous+trouver'),jdecode(''), jdecode('%2F7509%2F7563.html'), 'true',[],'','']
	],'',''],
	['PAGE','12402',jdecode('Nous+trouver'),jdecode(''), jdecode('%2F12402.html'), 'true',[],'',''],
	['PAGE','19304',jdecode('Conseils+d%26%23x27%3Bhygi%C3%A8ne'),jdecode(''), jdecode('%2F19304.html'), 'true',[],'',''],
	['PAGE','19555',jdecode('Consigli+all%26%23x27%3Bigiene'),jdecode(''), jdecode('%2F19555.html'), 'true',[],'',''],
	['PAGE','21604',jdecode('Publications'),jdecode(''), jdecode('%2F21604%2Findex.html'), 'true',[ 
		['PAGE','22304',jdecode('FOS1'),jdecode(''), jdecode('%2F21604%2F22304.html'), 'true',[],'',''],
		['PAGE','22331',jdecode('FOS2'),jdecode(''), jdecode('%2F21604%2F22331.html'), 'true',[],'',''],
		['PAGE','22358',jdecode('FOS3'),jdecode(''), jdecode('%2F21604%2F22358.html'), 'true',[],'',''],
		['PAGE','23304',jdecode('E.G.B.'),jdecode(''), jdecode('%2F21604%2F23304.html'), 'true',[],'','']
	],'',''],
	['PAGE','69392',jdecode('Articles'),jdecode(''), jdecode('%2F69392%2Findex.html'), 'true',[ 
		['PAGE','69448',jdecode('P.M.B.'),jdecode(''), jdecode('%2F69392%2F69448.html'), 'true',[],'',''],
		['PAGE','69457',jdecode('Praticiens+PMB'),jdecode(''), jdecode('%2F69392%2F69457.html'), 'true',[],'',''],
		['PAGE','69466',jdecode('Nouvelle+page'),jdecode(''), jdecode('%2F69392%2F69466.html'), 'true',[],'','']
	],'',''],
	['PAGE','49600',jdecode('Sympathicoth%C3%A9rapie'),jdecode(''), jdecode('%2F49600.html'), 'true',[],'',''],
	['PAGE','47928',jdecode('L%26%23x27%3Bauriculoth%C3%A9rapie'),jdecode(''), jdecode('%2F47928.html'), 'true',[],'',''],
	['PAGE','47531',jdecode('Mad+as+a+hatter'),jdecode(''), jdecode('%2F47531.html'), 'true',[],'',''],
	['PAGE','69758',jdecode('Praticiens+PMB'),jdecode(''), jdecode('%2F69758.html'), 'true',[],'',''],
	['PAGE','21631',jdecode('Sheda+odonto-sto'),jdecode(''), jdecode('%2F21631.html'), 'true',[],'',''],
	['PAGE','62438',jdecode('Cours%3A+Parodontologie'),jdecode(''), jdecode('%2F62438.html'), 'true',[],'',''],
	['PAGE','23904',jdecode('Autres+cours'),jdecode(''), jdecode('%2F23904%2Findex.html'), 'true',[ 
		['PAGE','24204',jdecode('Auriculoth%C3%A9rapie'),jdecode(''), jdecode('%2F23904%2F24204.html'), 'true',[],'',''],
		['PAGE','25004',jdecode('Homeopathie'),jdecode(''), jdecode('%2F23904%2F25004.html'), 'true',[],'',''],
		['PAGE','25031',jdecode('Neuralth%C3%A9rapie'),jdecode(''), jdecode('%2F23904%2F25031.html'), 'true',[],'',''],
		['PAGE','25058',jdecode('Bioth%C3%A9rapie'),jdecode(''), jdecode('%2F23904%2F25058.html'), 'true',[],'',''],
		['PAGE','25085',jdecode('Sympathicoth%C3%A9rapie'),jdecode(''), jdecode('%2F23904%2F25085.html'), 'true',[],'','']
	],'',''],
	['PAGE','25708',jdecode('English+Lectures+'),jdecode(''), jdecode('%2F25708.html'), 'true',[],'',''],
	['PAGE','34205',jdecode('Acc%C3%A8s'),jdecode(''), jdecode('%2F34205.html'), 'true',[],'',''],
	['PAGE','66290',jdecode('FORUM'),jdecode(''), jdecode('%2F66290.html'), 'true',[],'',''],
	['PAGE','46807',jdecode('Livre+d%26%23x27%3Bor'),jdecode(''), jdecode('%2F46807%2Findex.html'), 'true',[ 
		['PAGE','46808',jdecode('Entr%C3%A9es'),jdecode(''), jdecode('%2F46807%2F46808.html'), 'false',[],'','']
	],'',''],
	['PAGE','71120',jdecode('Liens+utiles'),jdecode(''), jdecode('%2F71120.html'), 'true',[],'',''],
	['PAGE','80101',jdecode('Blog+de+discussion'),jdecode(''), jdecode('%2F80101.html'), 'true',[],'','']];
var siteelementCount=49;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B0CBD6';
theSitetree.keyvisualId='1966';
theSitetree.keyvisualName='businessman.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='383';
theSitetree.contentColor='A00000';
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: 	'1966',
				keyvisualName: 	'businessman.jpg',
				fontsetId: 		'328',
				graphicsetId: 	'383',
				contentColor: 	'A00000',
				contentBGColor: 'FFFFFF',
				a_color: 		'B0CBD6',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-2035140']={
webappId:    '1501',
documentId:  '4584',
internalId:  '2035140',
customField: '1501'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '12402',
internalId:  'routing',
customField: 'fr_FR'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4584',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '34205',
internalId:  'location',
customField: 'language:fr;country:FR;isIncluded:false;'
};
webappMappings['1002']=webappMappings['1002-46807ABW0X0INX3FE']={
webappId:    '1002',
documentId:  '46807',
internalId:  '46807ABW0X0INX3FE',
customField: 'icq=false'
};
webappMappings['7008']=webappMappings['7008-2367']={
webappId:    '7008',
documentId:  '7509',
internalId:  '2367',
customField: 'language:fr;country:FR;'
};
webappMappings['7008']=webappMappings['7008-2368']={
webappId:    '7008',
documentId:  '4584',
internalId:  '2368',
customField: 'language:fr;country:FR;'
};
webappMappings['1003']=webappMappings['1003-abw0x0inx3fe1118aa687fe']={
webappId:    '1003',
documentId:  '66290',
internalId:  'abw0x0inx3fe1118aa687fe',
customField: 'fr:FR:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4930',
internalId:  '',
customField: '20070526-094755'
};
webappMappings['7008']=webappMappings['7008-2369']={
webappId:    '7008',
documentId:  '62438',
internalId:  '2369',
customField: 'language:fr;country:FR;'
};
webappMappings['7008']=webappMappings['7008-2370']={
webappId:    '7008',
documentId:  '69758',
internalId:  '2370',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4584',
internalId:  '',
customField: '20111223-090604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20704',
internalId:  '',
customField: '20050212-175850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5092',
internalId:  '',
customField: '20070526-103013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5227',
internalId:  '',
customField: '20061217-150233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5281',
internalId:  '',
customField: '20091226-180216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63028',
internalId:  '',
customField: '20061211-191555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5524',
internalId:  '',
customField: '20110624-151324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65325',
internalId:  '',
customField: '20071025-092656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65940',
internalId:  '',
customField: '20101226-202701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6203',
internalId:  '',
customField: '20061210-192212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20204',
internalId:  '',
customField: '20061211-200334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6230',
internalId:  '',
customField: '20061211-194407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7509',
internalId:  '',
customField: '20071025-102546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7536',
internalId:  '',
customField: '20071025-101738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7563',
internalId:  '',
customField: '20040520-211844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12402',
internalId:  '',
customField: '20050122-215941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19304',
internalId:  '',
customField: '20070619-071216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19555',
internalId:  '',
customField: '20091226-202157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21604',
internalId:  '',
customField: '20050224-084613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22304',
internalId:  '',
customField: '20040522-181826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22331',
internalId:  '',
customField: '20040522-182236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22358',
internalId:  '',
customField: '20040522-175540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23304',
internalId:  '',
customField: '20040522-183006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69392',
internalId:  '',
customField: '20070619-184139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69448',
internalId:  '',
customField: '20070619-185637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69457',
internalId:  '',
customField: '20070619-114427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69466',
internalId:  '',
customField: '20070619-114427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49600',
internalId:  '',
customField: '20050205-142628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47928',
internalId:  '',
customField: '20050119-155739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47531',
internalId:  '',
customField: '20050119-150116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69758',
internalId:  '',
customField: '20091226-200549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21631',
internalId:  '',
customField: '20050119-152657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62438',
internalId:  '',
customField: '20111223-101030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23904',
internalId:  '',
customField: '20070526-094432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24204',
internalId:  '',
customField: '20061211-194814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25004',
internalId:  '',
customField: '20061211-195039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25031',
internalId:  '',
customField: '20061211-200435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25058',
internalId:  '',
customField: '20061211-195402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25085',
internalId:  '',
customField: '20040523-123038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25708',
internalId:  '',
customField: '20090126-093204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34205',
internalId:  '',
customField: '20041231-170653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66290',
internalId:  '',
customField: '20070325-215916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46807',
internalId:  '',
customField: '20070619-070712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46808',
internalId:  '',
customField: '20050115-170813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71120',
internalId:  '',
customField: '20080218-134630'
};
webappMappings['7050']=webappMappings['7050-1523']={
webappId:    '7050',
documentId:  '80101',
internalId:  '1523',
customField: 'language:fr;country:FR;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80101',
internalId:  '',
customField: '20100722-214503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85901',
internalId:  '',
customField: '20110624-131415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91701',
internalId:  '',
customField: '20110624-150520'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INX3FE';
var companyName   = 'Docteur+Samuel+Debard';
var htmlTitle	  = 'La+m%C3%A9decine+dentaire+holistique';
var metaKeywords  = 'Candidose+buccale.+Candida+albicans.+Biostimulation.+Biostimulation+gingivale.+Laser+YAP.+M%C3%A9decine+dentaire+holistique.+Homeopathie.+Laser+Dentaire+Lokki.Neuralth%C3%A9rapie.+Champs+perturbateurs.+Medicina+dentaria+olistica.Hygi%C3%A8ne+bucco-dentaire.+Parodontologie+m%C3%A9dicale+biologique.+P.M.B.++PMB+.+Biostimulation.Parodontologie.Laser.Phytoth%C3%A9rapie.Neuralth%C3%A9rapie.Sympathicoth%C3%A9rapie.Maladie+parodontale.+Hom%C3%A9opathie.+Auriculoth%C3%A9rapie.+Cariologie.Prophylaxie.Salive.+Gencive.+Gingive.Igiene+dento-orale.+Malatia+parodontale.Omeopatia.+Fitoterapia.Medicina+dentaria+olistica';
var metaContents  = 'Traitement+de+la+maladie+parodontale+et+les+soins+dentaires++avec+utilisation+de+lhom%C3%A9opathie+et+principalement+du+laser+de+puissance.M%C3%A9decine+dentaire+holistique.Traitement+de+la+Candidose+buccale.+Candida+albicans.';
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();
};

