/* [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','4614',jdecode('Home'),jdecode(''), jdecode('%2F4614.html'), 'true',[],'',''],
	['PAGE','4671',jdecode('Pers%C3%B6nlich'),jdecode(''), jdecode('%2F4671.html'), 'true',[],'',''],
	['PAGE','4698',jdecode('Handanalyse'),jdecode(''), jdecode('%2F4698%2Findex.html'), 'true',[ 
		['PAGE','4725',jdecode('+++++Methode'),jdecode(''), jdecode('%2F4698%2F4725.html'), 'true',[],'','']
	],'',''],
	['PAGE','4752',jdecode('Palmtherapy%C2%AE'),jdecode(''), jdecode('%2F4752%2Findex.html'), 'true',[ 
		['PAGE','9916',jdecode('Anwendung'),jdecode(''), jdecode('%2F4752%2F9916.html'), 'true',[],'','']
	],'',''],
	['PAGE','59701',jdecode('Koreanische+Handmassage'),jdecode(''), jdecode('%2F59701.html'), 'true',[],'',''],
	['PAGE','19744',jdecode('Personzentrierte++Beratung'),jdecode(''), jdecode('%2F19744%2Findex.html'), 'true',[ 
		['PAGE','19826',jdecode('Anwendung'),jdecode(''), jdecode('%2F19744%2F19826.html'), 'true',[],'','']
	],'',''],
	['PAGE','26101',jdecode('Seminare+und+Kurse'),jdecode(''), jdecode('%2F26101%2Findex.html'), 'true',[ 
		['PAGE','25201',jdecode('Chirologie%2FHandanalyse'),jdecode(''), jdecode('%2F26101%2F25201.html'), 'true',[],'','']
	],'',''],
	['PAGE','20398',jdecode('Konditionen'),jdecode(''), jdecode('%2F20398.html'), 'true',[],'',''],
	['PAGE','4779',jdecode('Kontakt'),jdecode(''), jdecode('%2F4779.html'), 'true',[],'',''],
	['PAGE','4806',jdecode('Links'),jdecode(''), jdecode('%2F4806.html'), 'true',[],'','']];
var siteelementCount=14;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='000066';
theSitetree.keyvisualId='1400';
theSitetree.keyvisualName='rose.jpg';
theSitetree.fontsetId='235';
theSitetree.graphicsetId='292';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MS'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Startup',
				paletteFamily: 	'000066',
				keyvisualId: 	'1400',
				keyvisualName: 	'rose.jpg',
				fontsetId: 		'235',
				graphicsetId: 	'292',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				a_color: 		'000066',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4614',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4806',
internalId:  '',
customField: '20111006-104607'
};
webappMappings['7008']=webappMappings['7008-9080']={
webappId:    '7008',
documentId:  '4779',
internalId:  '9080',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4614',
internalId:  '',
customField: '20111028-110629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4671',
internalId:  '',
customField: '20111028-110951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4698',
internalId:  '',
customField: '20110915-133935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26101',
internalId:  '',
customField: '20111028-104235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25201',
internalId:  '',
customField: '20111028-104304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20398',
internalId:  '',
customField: '20110530-131709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4779',
internalId:  '',
customField: '20100828-120332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4725',
internalId:  '',
customField: '20110124-113959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4752',
internalId:  '',
customField: '20111028-110457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9916',
internalId:  '',
customField: '20110915-134208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19744',
internalId:  '',
customField: '20110915-134356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19826',
internalId:  '',
customField: '20110530-134152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59701',
internalId:  '',
customField: '20110124-114258'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXXNI';
var companyName   = 'Handanalyse-Palmtherapy-Beratung';
var htmlTitle	  = 'Handanalyse+-+Chirologie+-+Palmtherapy+-+Beratung';
var metaKeywords  = 'Handanalyse%2C+Handanalysen%2C+Handlesen%2C+Handleser%2C+Handleserin%2C+Ayurveda%2C+Ayurvedische+Handleserin%2C+Chirologische+Beratung%2C+Chirologin%2C+Chirologe%2C+Chirologie%2C+Beratung%2C+Personzentrierte+Beratung%2C+Personzentrierter+Ansatz%2C+Klientenzentrierte+Beratung%2C+Carl+Rogers%2C+psychologische+Beratung%2C+Psychologie%2C+Reiki+nach+Usui%2C+Reiki-Meister%2C+Reiki-Meisterin%2C+Homosexualit%C3%84t%2C+homosexuell%2C+lesbisch%2C+Lesbe%2C+Lesben%2C+Coming+out%2C+schwul%2C+Schwuler%2C+Bisexualit%C3%A4t%2C+bisexuell%2C+Handfl%C3%A4chen%2C+Papillarmuster%2C+Handdeutung%2C+Bewerbung%2C+Bewerbungsunterlagen%2C+Bewerbungsdossier%2C+Beziehungsberatung%2C+Paarberatung%2C+Lebensberatung%2C+Palmtherapy%2C+Palm+Therapy%2C+Palmtherapie%2C+Handfl%C3%A4chentherapie%2C+Moshe+Zwang%2C+Trauer%2C+Trennung%2C+Trennungsschmerz%2C+emotionale+Belastung%2C+%C3%84ngste%2C+Angst%2C+Phobie%2C+Phobien%2C+Liebeskummer%2C+IPTA%2C+International+Palmtherapy+Association%2C+Handakupressur%2C+Praxis%2C+Lernschwierigkeiten%2C+Konzentrationsprobleme%2C+Standortbestimmung%2C+Coming+out%2C+Trauma%2C+Traumas%2C+Traumata%2C+Spinnenphobie%2C+Platzangst%2C+Flugangst%2C+Palmistry%2C+Palmreader%2C+Handreading%2C+Handreader%2C+Fingerabdruck%2C+Seminare%2C+Kurse%2C+Vortr%C3%A4ge%2C+Vortrag%2C+Chirologie%2C+Chirology%2C+Cheirology%2C+Chirologist%2C+EGPC%2C+pca%2C+Koreanische+Handakupressur%2C+Koreanische+Handmassage%2C+Koreanische+Handakupunktur%2C+Korean+Handmassage';
var metaContents  = 'Handanalysen+mit+Beratung+zu+pers%C3%B6nlichen+und+beruflichen+Themen%3A+Pers%C3%B6nlichkeit%2C+F%C3%A4higkeiten%2C+Ressourcen%2C+Hemmnisse%2C+Konflikte%2C+die+gegenw%C3%A4rtige+Situation+sowie+L%C3%B6sungsm%C3%B6glichkeiten+und+Tendenzen+f%C3%BCr+die+n%C3%A4here+Zukunft.+Palmtherapy+zur+Unterst%C3%BCtzung+in+Zeiten+emotionaler+Belastung%2C+Trauer%2C+Trennung%2C+seelische+Auswirkungen+k%C3%B6rperlicher+Erkrankungen%2C+%C3%84ngste%2C+Phobien%2C+Konzentrationsst%C3%B6rungen%2C+Flugangst.+Personzentrierte+psychologische+Beratung%2C+pca%2C+Person+Centered+Approach%2C+Reiki+nach+Usui%2C+Koreanische+Handakupressur%2C+Koreanische+Handmassage+bei+verschiedenen+Beschwerden';
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();
};

