/* [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','601',jdecode('heilen'),jdecode(''),'/601.html','true',[],'',''],
	['PAGE','175893',jdecode('begegnen'),jdecode(''),'/175893.html','true',[],'',''],
	['PAGE','199993',jdecode('formen'),jdecode(''),'/199993.html','true',[],'',''],
	['PAGE','191093',jdecode('weiteres'),jdecode(''),'/191093.html','true',[],'',''],
	['PAGE','175593',jdecode('systemestellen'),jdecode(''),'/175593.html','true',[],'',''],
	['PAGE','176693',jdecode('bekommen'),jdecode(''),'/176693.html','true',[],'',''],
	['PAGE','174293',jdecode('verk%C3%B6rpern'),jdecode(''),'/174293.html','true',[],'',''],
	['PAGE','174193',jdecode('Liibli'),jdecode(''),'/174193.html','true',[],'','']];
var siteelementCount=8;
theSitetree.topTemplateName='Natural';
theSitetree.paletteFamily='40710E';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='155';
theSitetree.graphicsetId='166';
theSitetree.contentColor='006633';
theSitetree.contentBGColor='FCFCF4';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Natural',
				paletteFamily: 	'40710E',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'155',
				graphicsetId: 	'166',
				contentColor: 	'006633',
				contentBGColor: 'FCFCF4',
				a_color: 		'40710E',
				b_color: 		'00CC00',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '199993',
internalId:  '',
customField: '20100801-092722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175593',
internalId:  '',
customField: '20100922-194338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100916-103148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174193',
internalId:  '',
customField: '20110212-173518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174293',
internalId:  '',
customField: '20101006-154025'
};
webappMappings['7008']=webappMappings['7008-2468']={
webappId:    '7008',
documentId:  '174193',
internalId:  '2468',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-2476']={
webappId:    '7008',
documentId:  '176693',
internalId:  '2476',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175893',
internalId:  '',
customField: '20100618-101934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '176693',
internalId:  '',
customField: '20100929-151811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '191093',
internalId:  '',
customField: '20100929-151616'
};
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'AHOPT0INEHZH';
var companyName   = 'M+%C3%B6+g+%21+i+c+h+k+e+i+t+e+n';
var htmlTitle	  = 'M%C3%B6glichkeiten';
var metaKeywords  = 'appenzeller+dialekt++erlebnisp%C3%A4dagogik+manser+martin+appenzell+krpg+planoalto+outdoor+team+beratung+therapie+systemische+Arbeit+Beruf+Schule+burnout+management+coaching+aufstellungen+standortbestimmung++Fit+f%C3%BCr+F%C3%BChrung+wildnis+planoalto+erlebnisp%C3%A4dagogik+m%C3%B6glichkeit+m%C3%B6glichkeit.ch+www.m%C3%B6glichkeit.ch+schuling+seminar+kurs+berge+wasser+feuer+sonne+wald+kinder++b%C3%A4ume+himmel+entwicklung+erde+luft+stille+achtsamkeit+tiere+zelt+lager+stelle+platz+ort+musik+kreativ+lustvoll+systemisch+intervention+programm+therapie+coaching+teamentwicklung+weiterbildung+heim+institution+suchttherapie+beratungsstelle+arzt+burnout+depression+drogen+syndrom+symptom+krankheit+spital+heilung+pflanzen+kr%C3%A4uter+garofen+jurte+biwak+quakifikation+erlebnisp%C3%A4dagoge+kreativ+ritueller+prozessgestalter+prozessgestaltung+rituelle++wildnisschule+natur+naturk%C3%BCche+naturplatz+intuition+initiation+metapher+symbolisch+konstruktivistisch+konstruktivismus+systemtheorie+ph%C3%A4nomenologisch+ph%C3%A4nomenologie+synkretismus+terrasagrada+serendipity+prozessorientiert+l%C3%B6sungsorientiert+zielorientiert+handlungsorientiert+learning+by+doing+wildwechsel+topaz+natur+als+partnerin+outward+bound+fokus+passage+naturtherapie+outdoorguide+guide+nachdiplomkurs+roadmovie+gespr%C3%A4chsf%C3%BChrung+Consulting+appenzellerland+schule+therapeutisch+massage+auto+seilgarten+park+outdoor+martin+manser+maulesel+husky+erlebnis+wurst+schneeschuhlaufen+iglu+eskimo+inuit+ferien+erholung+wellness+sauna+schwitzh%C3%BCtte+medizinisch+schamanismus+naturheiler+naturarzt+m%C3%B6glichkeiten+hunde+katzen+pferde+schlafsack+';
var metaContents  = 'wort+los++www.m%C3%B6glichkeiten.ch+www.martin-manser-prozessgestaltung.com+m%C3%B6glichkeiten+sozialp%C3%A4dagogik+sozialp%C3%A4dagoge+sozial+therapeutisch+psychisch+seelisch+www.simmen-gmbh.ch++Erlebnisp%C3%A4dagogik+Fit+f%C3%BCr+F%C3%BChrung+appenzell+Trekking+Schneeschuhlaufen+Schneeschuhe+Therapie+Natur+Wald+berge+Klettern+Feuer+Beratung+Coaching+Teamentwicklung+Consulting++massage+spirituell+indianer+auto+outdoor+seilgarten+martin+manser+hunde+husky+muli+maulesel++naturarzt+heiler+m%C3%B6glichkeiten+pferde+schlafsack+Heilung+Ritual+Spirituell+geistig+planoalto+beratung+orixa';
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();
};

