/* [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','4597',jdecode('Home'),jdecode(''),'/4597.html','true',[],'',''],
	['PAGE','9021',jdecode('Tiertherapie'),jdecode(''),'/9021/index.html','true',[ 
		['PAGE','9048',jdecode('Tierkommunikation'),jdecode(''),'/9021/9048.html','true',[],'',''],
		['PAGE','9075',jdecode('Massagetherapie'),jdecode(''),'/9021/9075.html','true',[],'',''],
		['PAGE','13002',jdecode('Matrix-Rhythmus-Therapie'),jdecode(''),'/9021/13002.html','true',[],'',''],
		['PAGE','9102',jdecode('Produkte+f%C3%BCr+Pferde'),jdecode(''),'/9021/9102.html','true',[],'','']
	],'',''],
	['PAGE','9129',jdecode('Menschtherapie'),jdecode(''),'/9129/index.html','true',[ 
		['PAGE','9156',jdecode('Schamanische+Lebensberatung'),jdecode(''),'/9129/9156.html','true',[],'',''],
		['PAGE','9183',jdecode('F%C3%BCr+Kinder'),jdecode(''),'/9129/9183.html','true',[],'',''],
		['PAGE','35803',jdecode('Ruhe+und+Bewusst-SEIN'),jdecode(''),'/9129/35803.html','true',[],'',''],
		['PAGE','9210',jdecode('Produkte'),jdecode(''),'/9129/9210.html','true',[],'','']
	],'',''],
	['PAGE','9237',jdecode('%C3%9Cber+mich'),jdecode(''),'/9237.html','true',[],'',''],
	['PAGE','27003',jdecode('Presseberichte'),jdecode(''),'/27003.html','true',[],'',''],
	['PAGE','52940',jdecode('Kurse'),jdecode(''),'/52940.html','true',[],'',''],
	['PAGE','55501',jdecode('Kontakt'),jdecode(''),'/55501.html','true',[],'','']];
var siteelementCount=15;
theSitetree.topTemplateName='Galerie';
theSitetree.paletteFamily='006633';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='73';
theSitetree.graphicsetId='90';
theSitetree.contentColor='006633';
theSitetree.contentBGColor='CCE0D6';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Galerie',
				paletteFamily: 	'006633',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'73',
				graphicsetId: 	'90',
				contentColor: 	'006633',
				contentBGColor: 'CCE0D6',
				a_color: 		'006633',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4597',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4597',
internalId:  '',
customField: '20100531-192124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9237',
internalId:  '',
customField: '20100527-121158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52940',
internalId:  '',
customField: '20100705-212552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9021',
internalId:  '',
customField: '20080309-192640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9048',
internalId:  '',
customField: '20081231-194839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9075',
internalId:  '',
customField: '20081231-195010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13002',
internalId:  '',
customField: '20081231-195116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9102',
internalId:  '',
customField: '20050216-150711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9129',
internalId:  '',
customField: '20081231-195215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9156',
internalId:  '',
customField: '20050803-095218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9183',
internalId:  '',
customField: '20081231-195441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35803',
internalId:  '',
customField: '20090826-123233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9210',
internalId:  '',
customField: '20071003-124652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27003',
internalId:  '',
customField: '20100527-131414'
};
webappMappings['7008']=webappMappings['7008-7984']={
webappId:    '7008',
documentId:  '55501',
internalId:  '7984',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55501',
internalId:  '',
customField: '20100421-125337'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXVQX';
var companyName   = 'LEBENSFREUDE%2C+LEISTUNG+UND+GESUNDHEIT+F%C3%9CR+TIER+UND+MENSCH';
var htmlTitle	  = 'Tierkommunikation%2C+Tiertherapie%2C+Pferdemassage%2C+Tiermassage%2C+Schamanismus%2C+Schamanische+Beratung+f%C3%BCr+Kinder+und+Erwachsene%2C+Schamanische+Ur-Kommunikation%2C+Indianer%2C+Kurse%2C+Workshops%2C+Seminare%2C+Schmidli+Claudia%2C+Meditation%2C+Relaxation%2C+Energy+Relax%2C+Schama';
var metaKeywords  = 'Schamanismus%2C+Lebensfreude%2C+Leistung%2C+Gesundheit%2C+Training%2C+Meditation%2C+Mantra%2C+Schmidli+Claudia%2C+Flawil%2C+Tiertherapie%2C+Therapie%2C+Tierkommunikation%2C+Massage+f%C3%BCr+K%C3%BChe%2C+Schamanische+Lebensberatung%2C+Schamanismus%2C+Tiere%2C+Matrix-Rhythmus-Therapie%2C+R%C3%A4uchermischung%2C+Lavendel%2C+Eukalyptus%2C+Massage+und+Energiearbeit%2C+Baumessenzen%2C+Muskelgewebe%2C+Shiatsu%2C+Akupressur%2C+Sportmassage%2C+Sauerstoffgehalt%2C+Lymphfluss%2C+Verstopfungskoliken%2C+Trauma%2C+Blockaden%2C+Verspannungen%2C+Angsten%2C+Schamanische+Reisen%2C+Krafttiere%2C+Intuition%2C+Meditation%2C+Telepathischer+Zugang%2C+Psychometrischer+Zugang%2C+Shapeshifting%2C+Kinder%2C+Erwachsene%2C+Schamanische+Beratung+f%C3%BCr+Kinder+und+Erwachsene%2C+Ruhe%2C+Bewusstsein%2C+Meditation%2C+Pferdemassage%2C+Hundemassage%2C+Massage+f%C3%BCr+Hunde%2C+Massage+f%C3%BCr+Pferde%2C+Tiermassage%2C+Kurse%2C+Workshops%2C+Seminare%2C+Vision%2C+Sch%C3%A4fer%2C+Seelenbilder%2C+Relaxation%2C+Fitnesstraining%2C+Duft%2C+%C3%96le%2C+Pflanzengeister%2C+Naturgeister%2C+indianische+Kultur%2C+Traumf%C3%A4nger%2C+Naturheilkunde%2C+Aura+Soma%2C+Equilibrium%2C+Pomander%2C+Heilmethode%2C+untere+Welt%2C+obere+Welt%2C+alternative+Heilmethode%2C+Farbtherapie%2C+WHO%2C+Urv%C3%B6lker%2C+Polarity%2C+Zwiegespr%C3%A4che%2C+Energiearbeit%2C+Qi+Gong%2C+Heilkraft%2C+Indianer%2C+Elektrosmog%2C+Essenzen%2C+Heilbehandlungen%2C+Kraftorte%2C+Energieplatz%2C+Hund%2C+Katze%2C+Pferd%2C+Schamanische+Praktiken%2C+Farben%2C+Chakra%2C+komplement%C3%A4re+Therapiem%C3%B6glichkeiten%2C+Aura+Reading%2C+Str%C3%B6men%2C+Fernbehandlung%2C+Bachbl%C3%BCten%2C+Chi-Arbeit%2C+Astralwandern%2C+Shamanic+Counseling%2C+Selbstheilungskr%C3%A4fte%2C+Spirits%2C+ver%C3%A4nderter+Bewusstseinszustand%2C+Energie%2C+Kurse%2C+Workshop%2C+Ausbildung%2C+Seminare%2C+Ur-Kommunikation%2C+Schamanische+Ur-Kommunikation%2C+Energy+Relax%2C+Pony-Therapie%2C+Pferdetherapie%2C+Erwachsenen-Therapie%2C+Therapiepferd%2C+Therapiepony%2C+Indianer%2C+Schamane%2C+Schamanische+Ur-Kommunikation%2C+Ur-Kommunikation%2C+Vision%2C+Natur%2C+Erwachsenenbildung%2C+Indianer%2C+Channeling%2C+Tiere%2C+Seminare';
var metaContents  = 'Schamanismus%2C+Lebensfreude%2C+Leistung%2C+Training%2C+Meditation%2C+Gesundheit%2CSchmidli%2C+Claudia%2C+Flawil%2C+Massage+und+Energiearbeit+Tiertherapie%2C+Therapie%2C+Pferdemassage%2C+Shiatsu%2C+Akupressur%2C+Sportmassage%2C+Pferdetherapie%2C+Massage+f%C3%BCr+K%C3%BChe%2C+Muskeltherapie%2C++Beratung%2CTierkommunikation%2C+Schamanische+Lebensberatung%2C+Schamanismus%2C+Schamanische+Beratung+f%C3%BCr+Kinder+und+Erwachsene%2C+Hundemassage%2C+Tiermassage%2C+R%C3%A4uchermischung%2C+Lavendel%2C+Eukalyptus%2C+Kurse%2C+Workshops%2C+Ausbildung%2C+Seminare%2C+Seelenbilder%2C+Relaxation%2C+Fitnesstraining%2C+Energy+Relax%2C+Indianer%2C+Schamane%2C+Vision%2C+Schamanische+Ur-Kommunikation%2C+Ur-Kommunikation%2C+Natur%2C+Erwachsenenbildung%2C+Indianer%2C+Channeling%2C+Tiere%2C+Seminare';
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();
};
