/* [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','1513',jdecode('Willkommen'),jdecode(''),'/1513.html','true',[],'',''],
	['PAGE','90948',jdecode('Business+Seminare'),jdecode(''),'/90948.html','true',[],'',''],
	['PAGE','28773',jdecode('Termine+%C3%B6ffentlich'),jdecode(''),'/28773.html','true',[],'',''],
	['PAGE','1570',jdecode('Lach-Yoga%3F'),jdecode(''),'/1570.html','true',[],'',''],
	['PAGE','94548',jdecode('Lachen+%26+Yoga'),jdecode(''),'/94548.html','true',[],'',''],
	['PAGE','1597',jdecode('F%C3%BCr'),jdecode(''),'/1597.html','true',[],'',''],
	['PAGE','54201',jdecode('Wirkung'),jdecode(''),'/54201.html','true',[],'',''],
	['PAGE','44672',jdecode('Gesundheit'),jdecode(''),'/44672.html','true',[],'',''],
	['PAGE','85348',jdecode('Wissenschaft'),jdecode(''),'/85348.html','true',[],'',''],
	['PAGE','85390',jdecode('Lachlesen'),jdecode(''),'/85390.html','true',[],'',''],
	['PAGE','160948',jdecode('Lachh%C3%B6ren+%26+sehen'),jdecode(''),'/160948.html','true',[],'',''],
	['PAGE','106848',jdecode('Wussten+Sie%3F'),jdecode(''),'/106848.html','true',[],'',''],
	['PAGE','104948',jdecode('Geschichten'),jdecode(''),'/104948.html','true',[],'',''],
	['PAGE','99148',jdecode('Spr%C3%BCche+%26+Aussagen'),jdecode(''),'/99148.html','true',[],'',''],
	['PAGE','103948',jdecode('Kinder+schreiben+...'),jdecode(''),'/103948.html','true',[],'',''],
	['PAGE','1732',jdecode('Links+%26+mehr'),jdecode(''),'/1732.html','true',[],'',''],
	['PAGE','1705',jdecode('Kontakt+%26+bestellen'),jdecode(''),'/1705.html','true',[],'',''],
	['PAGE','156448',jdecode('Shop'),jdecode(''),'/156448.html','true',[],'','']];
var siteelementCount=18;
theSitetree.topTemplateName='Capri';
theSitetree.paletteFamily='947333';
theSitetree.keyvisualId='7245';
theSitetree.keyvisualName='kv_7245.jpg';
theSitetree.fontsetId='16409';
theSitetree.graphicsetId='12136';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Capri',
				paletteFamily: 	'947333',
				keyvisualId: 	'7245',
				keyvisualName: 	'kv_7245.jpg',
				fontsetId: 		'16409',
				graphicsetId: 	'12136',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-339']={
webappId:    '7008',
documentId:  '1705',
internalId:  '339',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1513',
internalId:  '',
customField: '20100309-135159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1570',
internalId:  '',
customField: '20100309-133008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94548',
internalId:  '',
customField: '20100309-133021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1597',
internalId:  '',
customField: '20100309-133034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54201',
internalId:  '',
customField: '20100309-133045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44672',
internalId:  '',
customField: '20100309-133105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85348',
internalId:  '',
customField: '20100309-134052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28773',
internalId:  '',
customField: '20100531-145022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90948',
internalId:  '',
customField: '20100531-155155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85390',
internalId:  '',
customField: '20100309-133222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106848',
internalId:  '',
customField: '20100313-203707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104948',
internalId:  '',
customField: '20100313-204028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99148',
internalId:  '',
customField: '20100313-203735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103948',
internalId:  '',
customField: '20100313-203801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1732',
internalId:  '',
customField: '20100313-203814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1705',
internalId:  '',
customField: '20100313-203844'
};
webappMappings['4001']=webappMappings['4001-21920874']={
webappId:    '4001',
documentId:  '156448',
internalId:  '21920874',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156448',
internalId:  '',
customField: '20100313-203911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160948',
internalId:  '',
customField: '20100309-133935'
};
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'Ahp010IN2KUI';
var companyName   = 'Lach-Yoga+Schweiz+-+Trainings+f%C3%BCr+mehr+Spass';
var htmlTitle	  = '';
var metaKeywords  = 'lachyoga%2Choho-haha.ch%2Clach-yoga%2Cyoga-lachen%2Clacher%2Clocher%2Chihi%2C+lachen%2Cmadan%2Ckataria%2Crolf%2Clocher%2Cyoga%2Ctherapeut%2Cverband%2Cvereinigung%2Choho%2Chaha%2Cl%C3%A4cheln%2Cmeditation%2Cseminar%2Chals%2Clunge%2Cleber%2Cheilung%2Centspannt%2Cl%C3%A4nder+des+lachens%2Crolf+locher%2Cmentaltraining%2Cmedizin%2Clach-yoga%2Ctrainer%2Cschmerzen%2Cdepression%2Cunlust%2Cfreude%2Chatha-yoga%2Cpranayamas%2Cmeditation%2Clach-club%2Cgfs%2Ccoacheria%2Cwichtig%2Cstimuliert%2Cstimmung%2Cbreak%2Cgl%C3%BCckshormone%2Cstabilit%C3%A4t%2Cganzheitlich%2Ckrank%2Cgesund%2Cliebevoll%2Centspannung%2Cakzeptanz%2Cvereinigung%2Cdachverband%2Ckonfliktbew++%C3%A4ltigung%2Cbasisseminar%2Clichtzentrum%2Cfirmenseminare%2Canl%C3%A4sse%2Cevents%2Cevent%2Ckraft%2Chasya-yoga%2Chasya%2Czwerchfellbruch%2Clachtherapie%2Catemschulung%2Clachseminar%2C%2Chumor%2Cspass%2Cgl%C3%BCck%2Cfreude%2Cwohlbefinden%2Centspanung%2Csolothurn%2Clachhauptstadt%2Clachschule%2C1.solothurner+lachschule%2C+weltlachtag%2C+lachoase%2C+oase%2C+lachclub%2C+lachtreff%2Cstress%2Centspannen%2Cgelassenheit%2Chumor%2Cheiterkeit%2Clachjoga';
var metaContents  = 'lachyoga%2C+lach-yoga%2C+lachjoga%2C+eine+kombination+mit+der+atem%C3%BCbungen+aus+den+pranayamas+des+hatha-yoga+mit+lachen+verbunden+wird.+lach-yoga+eine+laute+sofort+meditation+und+ein+effektives+anzapfen+unserer+energiequelle.';
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();
};
