/* [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','401',jdecode('Home'),jdecode(''), jdecode('%2F401.html'), 'true',[],'',''],
	['PAGE','92001',jdecode('Entschlacken+'),jdecode(''), jdecode('%2F92001.html'), 'true',[],'',''],
	['PAGE','452',jdecode('Wir+%C3%BCber+uns'),jdecode(''), jdecode('%2F452%2Findex.html'), 'true',[ 
		['PAGE','473',jdecode('Das+Team'),jdecode(''), jdecode('%2F452%2F473.html'), 'true',[],'',''],
		['PAGE','85401',jdecode('Unser+Leitbild'),jdecode(''), jdecode('%2F452%2F85401.html'), 'true',[],'','']
	],'',''],
	['PAGE','90101',jdecode('Lageplan'),jdecode(''), jdecode('%2F90101.html'), 'false',[],'',''],
	['PAGE','494',jdecode('Unsere+Angebote'),jdecode(''), jdecode('%2F494%2Findex.html'), 'true',[ 
		['PAGE','53301',jdecode('Physiotherapie'),jdecode(''), jdecode('%2F494%2F53301.html'), 'true',[],'',''],
		['PAGE','53322',jdecode('Fitness'),jdecode(''), jdecode('%2F494%2F53322.html'), 'true',[],'',''],
		['PAGE','70222',jdecode('Massagen'),jdecode(''), jdecode('%2F494%2F70222.html'), 'true',[],'',''],
		['PAGE','92801',jdecode('D-Tox'),jdecode(''), jdecode('%2F494%2F92801.html'), 'true',[],'',''],
		['PAGE','50801',jdecode('Galileo'),jdecode(''), jdecode('%2F494%2F50801.html'), 'true',[],'',''],
		['PAGE','70201',jdecode('Abnehmen'),jdecode(''), jdecode('%2F494%2F70201.html'), 'true',[],'',''],
		['PAGE','73601',jdecode('Wellness'),jdecode(''), jdecode('%2F494%2F73601.html'), 'true',[],'',''],
		['PAGE','59301',jdecode('Posturomed'),jdecode(''), jdecode('%2F494%2F59301.html'), 'true',[],'',''],
		['PAGE','59322',jdecode('Propriomed'),jdecode(''), jdecode('%2F494%2F59322.html'), 'true',[],'','']
	],'',''],
	['PAGE','89701',jdecode('3.+Dez.+2011'),jdecode(''), jdecode('%2F89701.html'), 'true',[],'',''],
	['PAGE','6301',jdecode('Preisliste+%2F+Hilfsmittel'),jdecode(''), jdecode('%2F6301.html'), 'true',[],'',''],
	['PAGE','85001',jdecode('7+j%C3%A4hriges+Jubil%C3%A4um'),jdecode(''), jdecode('%2F85001.html'), 'true',[],'',''],
	['PAGE','46301',jdecode('Spendenfond'),jdecode(''), jdecode('%2F46301.html'), 'true',[],'',''],
	['PAGE','6322',jdecode('freie+Stellen'),jdecode(''), jdecode('%2F6322.html'), 'true',[],'',''],
	['PAGE','66701',jdecode('Fotoalbum'),jdecode(''), jdecode('%2F66701.html'), 'true',[],'',''],
	['PAGE','515',jdecode('Interessante+Links'),jdecode(''), jdecode('%2F515.html'), 'true',[],'',''],
	['PAGE','46901',jdecode('Kontakt+'),jdecode(''), jdecode('%2F46901.html'), 'true',[],'','']];
var siteelementCount=24;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='003399';
theSitetree.keyvisualId='1234';
theSitetree.keyvisualName='hantel.jpg';
theSitetree.fontsetId='192';
theSitetree.graphicsetId='228';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'hostpoint',
  product: 'WSCSYSSSSLYTC21Y'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Profile',
				paletteFamily: 	'003399',
				keyvisualId: 	'1234',
				keyvisualName: 	'hantel.jpg',
				fontsetId: 		'192',
				graphicsetId: 	'228',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				a_color: 		'003399',
				b_color: 		'000066',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20110822-060221'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-995']={
webappId:    '7008',
documentId:  '46901',
internalId:  '995',
customField: 'language:de;country:CH;'
};
webappMappings['7060']=webappMappings['7060-ab845c223bba372a20f559f160e59a06']={
webappId:    '7060',
documentId:  '66701',
internalId:  'ab845c223bba372a20f559f160e59a06',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46901',
internalId:  '',
customField: '20090826-141133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20110822-060615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20120203-061417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20090622-124642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53301',
internalId:  '',
customField: '20090708-061155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53322',
internalId:  '',
customField: '20091216-063153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70201',
internalId:  '',
customField: '20111117-190836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70222',
internalId:  '',
customField: '20091216-063222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89701',
internalId:  '',
customField: '20111214-060918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59301',
internalId:  '',
customField: '20090307-131721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59322',
internalId:  '',
customField: '20090312-064732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50801',
internalId:  '',
customField: '20090604-054552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20120125-183553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46301',
internalId:  '',
customField: '20081216-091720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92801',
internalId:  '',
customField: '20120125-183405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6322',
internalId:  '',
customField: '20120203-061556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66701',
internalId:  '',
customField: '20111025-180408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515',
internalId:  '',
customField: '20111122-061703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73601',
internalId:  '',
customField: '20110609-133254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85001',
internalId:  '',
customField: '20110511-051202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85401',
internalId:  '',
customField: '20110511-052333'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '90101',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90101',
internalId:  '',
customField: '20111107-062013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92001',
internalId:  '',
customField: '20120110-081219'
};
var webAppHostname = 'cgi.webomat.ch:80';
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'AHOPT0IN32DY';
var companyName   = 'Physiotherapie+%26+MTTZ+Bugmann';
var htmlTitle	  = 'Physiotherapie++MTTZ+Bugmann';
var metaKeywords  = 'Physio+Therapie+Gesundheit+Arzt+Medizin+Training+Fitness+Wellness+Seetal+gesund+seetal+luzern+aarau+Aargau+Schweiz+Knochen+Muskeln+B%C3%A4nder+Sport+Massage+Walking+Verletzung+Rehabilitation+ambulant+Crosstrainer+Laufband+Ergo+Klinik+Praxis+Running+Velofahren+Bike+Kraft+Bein+Arm+R%C3%BCcken+Hals+Wirbels%C3%A4ule+Fuss+Massage+Gesundheit+Verordnung+Doktor+med+Gelenke+Herz-Kreislauf+Lymphdrainage+Mobilisationen+Abnehmen+Gewicht+Verlust+BMI+Fett+Verbrennung+Aufbau+Laktat+Test+Conconi+freie+Stellen+Physiotherapie+Fintnessinstruktorin+Lymphologie+Orthop%C3%A4die+Gesundheitstraining+Geriatrie+Laktat+Test+Conconi+Propriomed+Posturomed+Galileo+Powerplate+Vitvibe+Vibrationstraining+Betreuung+Aufbautraining+jung+alt+%C3%BCbergewicht+adipositas+abnehmen+gewichtsreduktion+gewicht+reduzieren+reduktion+selbst%C3%A4ndig+freude+spass+freunde+material+vermieten+ausprobieren+kuren+kurhotel+bugmann+sylvia+silvia+fahrwangen+seengen+aesch+schongau+ermensee+hochdorf+hitzkirch+boniswil+seon+hallwil+villmergen+wohlen+ultraschall+elektro+elektrotherapie+tape+physiotape+funktionstape+magnetresonanz+mrs+2000+home+med+feng+shui+Sch%C3%BCsslersalze+Sch%C3%BCssler+Beratung+Antlitz+Diagnostik+CTS+TOS+VKB+HWS+BWS+LWS+R%C3%BCcken+Schmerzen+bek%C3%A4mpfen+Fuss+OSG+USG+Zehen+sprunggelenk+Knie+Artroskopie+Meniskus+Kreuzband+Arthrose+Gelenk+k%C3%BCnstlich+Operation+kinesiotape+schiene+stabilisation+mobilisation+fitness+turnen+gymnastik+bauch+beine+po+ISG+wirbel+lende+brust+hals+schulter+elbogen+hand+finger+gesicht+kiefer+kinn+krebs+tumor+steif+luxation+phs+calcarea';
var metaContents  = 'Physio+Therapie+Gesundheit+Arzt+Medizin+Training+Fitness+Wellness+Operationen+Seetal+Aargau+Schweiz+Sport+Massage+Walking+Crosstrainer+Laufband+Ergo++Praxis++Velofahren+Hallwilersee-Lauf+Bike+Kraft+Bein+Arm+R%C3%BCcken+Hals+Wirbels%C3%A4ule+Fuss+Massage+Gesundheit+Verordnung+Doktor+med+Gelenke+Herz-Kreislauf+Wellness+Gesichtsbehandlung+Kosmetik+Fuss+Fussreflex+Reflexzonen+Verletzungen+Rehabilitation+Gesundheitstraining+Abnehmen+Entschlacken+Gewichtsverlust+BMI+Gewicht+Stabilit%C3%A4t+Gleichgwicht+Aufbau+k%C3%B6rperlich+Angebote+Meisterschwanden+Turnhalle+Hauptstrasse+Rollstuhl+Personal+Stellen+Traumstelle+Arbeitsstelle+Instruktor+Beratung+Hilfsmittel+Angebote+Preisliste+Lymphdrainage+Mobilisationen+Laktat-Test+Conconi-Test+Propriomed+Posturomed+Galleo+Vibrationstraining+Betreuung+Aufbautraining+Abnehmen+gewicht+reduzieren+reduktion+selbst%C3%A4ndig+selbst%C3%A4ndigkeit+freude+spass+freunde+material+vermieten+ausprobieren+kuren+kurhotel+Powerplate+Sch%C3%BCsslersalze+Sch%C3%BCssler+Beratung';
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();
};

