/* [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','901',jdecode('Psychosomatik+-+Praxis+'),jdecode(''), jdecode('%2F901%2Findex.html'), 'true',[ 
		['PAGE','30001',jdecode('Therapieangebot'),jdecode(''), jdecode('%2F901%2F30001.html'), 'true',[],'',''],
		['PAGE','30201',jdecode('Ben%C3%B6tigte+Versicherung'),jdecode(''), jdecode('%2F901%2F30201.html'), 'true',[],'','']
	],'',''],
	['PAGE','952',jdecode('Arzt%3A+Dr.med.A+Gosztonyi'),jdecode(''), jdecode('%2F952%2Findex.html'), 'true',[ 
		['PAGE','23801',jdecode('Psychosomatische+Therapie'),jdecode(''), jdecode('%2F952%2F23801.html'), 'true',[],'',''],
		['PAGE','23822',jdecode('Gespr%C3%A4chstherapie'),jdecode(''), jdecode('%2F952%2F23822.html'), 'true',[],'',''],
		['PAGE','23843',jdecode('Klassische+Hom%C3%B6opathie'),jdecode(''), jdecode('%2F952%2F23843.html'), 'true',[],'',''],
		['PAGE','44301',jdecode('Reinkarnationsmedizin'),jdecode(''), jdecode('%2F952%2F44301.html'), 'true',[],'','']
	],'',''],
	['PAGE','973',jdecode('Delegierte+Psychotherapeutin'),jdecode(''), jdecode('%2F973%2Findex.html'), 'true',[ 
		['PAGE','26801',jdecode('Delegierte+Psychotherapie'),jdecode(''), jdecode('%2F973%2F26801.html'), 'true',[],'','']
	],'',''],
	['PAGE','23301',jdecode('Fussreflexzonen+Therapeutin+'),jdecode(''), jdecode('%2F23301%2Findex.html'), 'true',[ 
		['PAGE','1015',jdecode('Fussreflexzonen-Massage+'),jdecode(''), jdecode('%2F23301%2F1015.html'), 'true',[],'','']
	],'',''],
	['PAGE','40301',jdecode('Meditationen'),jdecode(''), jdecode('%2F40301%2Findex.html'), 'true',[ 
		['PAGE','40322',jdecode('Daten+f%C3%BCr+Meditationen'),jdecode(''), jdecode('%2F40301%2F40322.html'), 'true',[],'','']
	],'',''],
	['PAGE','3443',jdecode('Wissenswertes++'),jdecode(''), jdecode('%2F3443%2Findex.html'), 'true',[ 
		['PAGE','36001',jdecode('Informationen+zu+Psychosomatik'),jdecode(''), jdecode('%2F3443%2F36001.html'), 'true',[],'',''],
		['PAGE','36022',jdecode('Informationen+zu+Komplement%C3%A4rmedizin'),jdecode(''), jdecode('%2F3443%2F36022.html'), 'true',[],'',''],
		['PAGE','36043',jdecode('Informationen+zu+Spirituellem'),jdecode(''), jdecode('%2F3443%2F36043.html'), 'true',[],'',''],
		['PAGE','26822',jdecode('Buchempfehlung'),jdecode(''), jdecode('%2F3443%2F26822.html'), 'true',[],'',''],
		['PAGE','23322',jdecode('Links'),jdecode(''), jdecode('%2F3443%2F23322.html'), 'true',[],'','']
	],'',''],
	['PAGE','38101',jdecode('zus%C3%A4tzliche+MitarbeiterIn+'),jdecode(''), jdecode('%2F38101.html'), 'true',[],'',''],
	['PAGE','31864',jdecode('Kunst+in+der+Praxis'),jdecode(''), jdecode('%2F31864.html'), 'true',[],'',''],
	['PAGE','3422',jdecode('Lage+und+Anfahrt'),jdecode(''), jdecode('%2F3422%2Findex.html'), 'true',[ 
		['PAGE','22701',jdecode('Lageplan'),jdecode(''), jdecode('%2F3422%2F22701.html'), 'true',[],'','']
	],'',''],
	['PAGE','3401',jdecode('Kontakt'),jdecode(''), jdecode('%2F3401.html'), 'true',[],'',''],
	['PAGE','31801',jdecode('Fotogallerie'),jdecode(''), jdecode('%2F31801%2Findex.html'), 'true',[ 
		['PAGE','31822',jdecode('Geb%C3%A4ude-Gesamtansicht+und+Eingang'),jdecode(''), jdecode('%2F31801%2F31822.html'), 'true',[],'',''],
		['PAGE','31843',jdecode('Wartezimmer'),jdecode(''), jdecode('%2F31801%2F31843.html'), 'true',[],'',''],
		['PAGE','31906',jdecode('Sprechzimmer+von+Dr.+A.+Gosztonyi'),jdecode(''), jdecode('%2F31801%2F31906.html'), 'true',[],'',''],
		['PAGE','31885',jdecode('Sprechzimmer+von+Frau+C.+Klefenz'),jdecode(''), jdecode('%2F31801%2F31885.html'), 'true',[],'','']
	],'',''],
	['PAGE','43201',jdecode('Sch%C3%B6nheiten+der+Natur'),jdecode(''), jdecode('%2F43201.html'), 'true',[],'','']];
var siteelementCount=31;
theSitetree.topTemplateName='Stylus';
theSitetree.paletteFamily='B0CBD6';
theSitetree.keyvisualId='1989';
theSitetree.keyvisualName='stetoskop.jpg';
theSitetree.fontsetId='328';
theSitetree.graphicsetId='383';
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: 			'Stylus',
				paletteFamily: 	'B0CBD6',
				keyvisualId: 	'1989',
				keyvisualName: 	'stetoskop.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:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '901',
internalId:  '',
customField: '20120219-135920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3422',
internalId:  '',
customField: '20091025-131424'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '22701',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:true;'
};
webappMappings['7008']=webappMappings['7008-829']={
webappId:    '7008',
documentId:  '3401',
internalId:  '829',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22701',
internalId:  '',
customField: '20090818-195106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3443',
internalId:  '',
customField: '20120105-190256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '952',
internalId:  '',
customField: '20111218-151155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '973',
internalId:  '',
customField: '20091025-121002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40301',
internalId:  '',
customField: '20110106-103802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1015',
internalId:  '',
customField: '20090903-092942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3401',
internalId:  '',
customField: '20100426-142610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23301',
internalId:  '',
customField: '20100102-090011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23822',
internalId:  '',
customField: '20091025-120911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23843',
internalId:  '',
customField: '20090818-201419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23801',
internalId:  '',
customField: '20090903-110610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23322',
internalId:  '',
customField: '20100513-141413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26822',
internalId:  '',
customField: '20090903-095525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26801',
internalId:  '',
customField: '20091018-091441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30201',
internalId:  '',
customField: '20120219-140215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30001',
internalId:  '',
customField: '20110908-080425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31801',
internalId:  '',
customField: '20091025-115124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31822',
internalId:  '',
customField: '20100102-090338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31885',
internalId:  '',
customField: '20091025-115839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31843',
internalId:  '',
customField: '20091025-115532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31906',
internalId:  '',
customField: '20091025-115751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31864',
internalId:  '',
customField: '20110912-190956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36001',
internalId:  '',
customField: '20091213-141411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36022',
internalId:  '',
customField: '20091025-122122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36043',
internalId:  '',
customField: '20100405-150224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38101',
internalId:  '',
customField: '20110908-073234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40322',
internalId:  '',
customField: '20120219-140403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43201',
internalId:  '',
customField: '20110106-201908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44301',
internalId:  '',
customField: '20110908-071913'
};
var webAppHostname = 'cgi.webomat.ch:80';
var canonHostname = 'webomat02.hostpoint.ch';
var accountId     = 'AHOPT0INVC4R';
var companyName   = 'psychosomatik-praxis.ch';
var htmlTitle	  = 'psychosomatik-praxis';
var metaKeywords  = 'Psychosomatik%2C+Therapie%2C+Psychotherapie%2C+Psyche%2C+Soma%2C+delegierte+Psychotherapie%2C+Hom%C3%B6opathie%2C+Fussreflexzonen+Massage%2C+Fussreflexzonen+Therapie%2C+Gespr%C3%A4chstherapie%2C+Medizin%2C+Seele%2C+Komplement%C3%A4rmedizin%2C+Reinkarnation%2C+Wiedergeburt';
var metaContents  = 'Psychosomatik%2C+Therapie%2C+Psychotherapie%2C+Psyche%2C+Soma%2C+delegierte+Psychotherapie%2C+Hom%C3%B6opathie%2C+Fussreflexzonen+Massage%2C+Fussreflexzonen+Therapie%2C+Gespr%C3%A4chstherapie%2C+Seele%2C+Komplement%C3%A4rmedizin%2C+Reinkarnation%2C+Wiedergeburt';
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();
};

