/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','23412',jdecode('TONGLI-THERAPIE%C2%A9'),jdecode(''),'/23412/index.html','true',[ 
		['PAGE','26401',jdecode('TONGLI-AKADEMIE'),jdecode(''),'/23412/26401.html','true',[],'',''],
		['PAGE','27001',jdecode('TONGLI-THERAPEUTE%C2%A9'),jdecode(''),'/23412/27001.html','true',[],'','']
	],'',''],
	['PAGE','552',jdecode('SRM-Therapie'),jdecode(''),'/552.html','true',[],'',''],
	['PAGE','37601',jdecode('Kurse'),jdecode(''),'/37601.html','true',[],'',''],
	['PAGE','573',jdecode('Zahlenkurs+%2F+Tarotkurs+%2F+Qi+Gong'),jdecode(''),'/573.html','true',[],'',''],
	['PAGE','8201',jdecode('Reflexzonen-Massage+nach+TCM+'),jdecode(''),'/8201/index.html','true',[ 
		['PAGE','594',jdecode('Psychozon-Massage+am+Fuss'),jdecode(''),'/8201/594.html','true',[],'','']
	],'',''],
	['PAGE','657',jdecode('Kontakt'),jdecode(''),'/657.html','true',[],'',''],
	['PAGE','30606',jdecode('G%C3%A4stebuch'),jdecode(''),'/30606/index.html','true',[ 
		['PAGE','30601',jdecode('Eintr%C3%A4ge'),jdecode(''),'/30606/30601.html','true',[],'','']
	],'',''],
	['PAGE','33701',jdecode('Links'),jdecode(''),'/33701.html','true',[],'','']];
var siteelementCount=13;
theSitetree.topTemplateName='Speed';
theSitetree.paletteFamily='920000';
theSitetree.keyvisualId='2342';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='376';
theSitetree.graphicsetId='424';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='920000';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Speed',
				paletteFamily: 	'920000',
				keyvisualId: 	'2342',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'376',
				graphicsetId: 	'424',
				contentColor: 	'FFFFFF',
				contentBGColor: '920000',
				a_color: 		'920000',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '37601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-30606abw0x0in2rwj']={
webappId:    '1002',
documentId:  '30606',
internalId:  '30606abw0x0in2rwj',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100517-002251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30606',
internalId:  '',
customField: '20071210-003152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8201',
internalId:  '',
customField: '20100219-172401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20091010-190225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23412',
internalId:  '',
customField: '20100404-150111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26401',
internalId:  '',
customField: '20100513-225410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27001',
internalId:  '',
customField: '20091010-183840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20090207-105649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20100513-224407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37601',
internalId:  '',
customField: '20100513-224140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33701',
internalId:  '',
customField: '20091010-191901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30601',
internalId:  '',
customField: '20071210-003152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20070105-133450'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN2RWJ';
var companyName   = 'L+u+m+i+V+i+t+a';
var htmlTitle	  = '';
var metaKeywords  = 'Blockaden-Aufl%C3%B6sung++Schall-Reiki-Metamorphose++Reiki++Metamorphose++Therapie++Therapeut++Numerologiekurs++Numerologie++Tarotkurs++Lebensberatung++mediale+Lebensberatung++K%C3%B6rper+und+Geist++Rosita+Eng++Rolf+B%C3%BChler++LumiVita++Konzentration++Angst++Angstzust%C3%A4nde++Pr%C3%BCfungsangst++k%C3%B6rperliche++Schw%C3%A4che++Schw%C3%A4chezust%C3%A4nde++klimakterische+Beschwerden++Schlafst%C3%B6rungen++Gewichtsprobleme++Magersucht++Alkohol++Tabletten++Depressionen++depressive+Neigung++Stress++Unsicherheit++Hemmungen++Tongli++Psyche++Psychozonen+Psychozonen-+Massage++Fussreflexzonen++Massage++SRM++ADHS++ADS++Burnout++Lebens%C3%A4ngste++Midlife+crisis++Migr%C3%A4ne++Pubert%C3%A4t++Selbstvertrauen++Tinnitus++TCM++Pr%C3%A4natal++Moxa++Moxibution++Schr%C3%B6pfen++Narbenentst%C3%B6rung++Energie++Energetische+R%C3%BCckenmassage++R%C3%BCckenmassage++Ern%C3%A4hrungsberatung++5+Elemente++reflektorische+Lymphdrainage++Lymphdrainage++Baunscheidtieren++Dozent++Dozentin++Heilpraktikerschule++Naturarzt++Natur%C3%A4rztin++Selzach';
var metaContents  = 'Blockaden-Aufl%C3%B6sung++Schall-Reiki-Metamorphose++Reiki++Metamorphose++Therapie++Therapeut++Numerologiekurs++Numerologie++Tarotkurs++Lebensberatung++mediale+Lebensberatung++K%C3%B6rper+und+Geist++Rosita+Eng++Rolf+B%C3%BChler++LumiVita++Konzentration++Angst++Angstzust%C3%A4nde++Pr%C3%BCfungsangst++k%C3%B6rperliche++Schw%C3%A4che++Schw%C3%A4chezust%C3%A4nde++klimakterische+Beschwerden++Schlafst%C3%B6rungen++Gewichtsprobleme++Magersucht++Alkohol++Tabletten++Depressionen++depressive+Neigung++Stress++Unsicherheit++Hemmungen++Tongli++Psyche++Psychozonen+Psychozonen-Massage++Fussreflexzonen++Massage++SRM++ADHS++ADS++Burnout++Lebens%C3%A4ngste++Midlife+crisis++Migr%C3%A4ne++Pubert%C3%A4t++Selbstvertrauen++Tinnitus++TCM++Pr%C3%A4natal++Moxa++Moxibution++Schr%C3%B6pfen++Narbenentst%C3%B6rung++Energie++Energetische+R%C3%BCckenmassage++R%C3%BCckenmassage++Ern%C3%A4hrungsberatung++5+Elemente++reflektorische+Lymphdrainage++Lymphdrainage++Baunscheidtieren++Dozent++Dozentin++Heilpraktikerschule++Naturarzt++Natur%C3%A4rztin++Selzach';
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();
};

