/* [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','4596',jdecode('Home'),jdecode(''),'/4596.html','true',[],'',''],
	['PAGE','105400',jdecode('Danke'),jdecode(''),'/105400.html','true',[],'',''],
	['PAGE','104221',jdecode('Klangschalen'),jdecode(''),'/104221.html','true',[],'',''],
	['PAGE','100770',jdecode('Heilende+Fuss+Ber%C3%BChrung'),jdecode(''),'/100770.html','true',[],'',''],
	['PAGE','56003',jdecode('Schamanismus'),jdecode(''),'/56003.html','true',[],'',''],
	['PAGE','101004',jdecode('Die+Schamanische+Reise'),jdecode(''),'/101004.html','true',[],'',''],
	['PAGE','9201',jdecode('Bilder+auf+Leinwand+1'),jdecode(''),'/9201.html','true',[],'',''],
	['PAGE','101261',jdecode('Bilder+auf+Leinwand+2'),jdecode(''),'/101261.html','true',[],'',''],
	['PAGE','103208',jdecode('Bilder+auf+Leinwand+3'),jdecode(''),'/103208.html','true',[],'',''],
	['PAGE','101341',jdecode('Bilder+auf+Papier+1'),jdecode(''),'/101341.html','true',[],'',''],
	['PAGE','103217',jdecode('Bilder+auf+Papier+2'),jdecode(''),'/103217.html','true',[],'',''],
	['PAGE','101507',jdecode('zu+meiner+Person'),jdecode(''),'/101507.html','true',[],'',''],
	['PAGE','6728',jdecode('Kontakt%3A++mein+Atelier'),jdecode(''),'/6728/index.html','true',[ 
		['PAGE','6755',jdecode('Telefon%2C+E-mail'),jdecode(''),'/6728/6755.html','true',[],'','']
	],'',''],
	['PAGE','101776',jdecode('zu+mieten+gesucht%3A'),jdecode(''),'/101776.html','true',[],'',''],
	['PAGE','18105',jdecode('G%C3%A4stebuch'),jdecode(''),'/18105/index.html','true',[ 
		['PAGE','18106',jdecode('Eintr%C3%A4ge'),jdecode(''),'/18105/18106.html','false',[],'','']
	],'',''],
	['PAGE','90077',jdecode('Anfahrt'),jdecode(''),'/90077.html','true',[],'',''],
	['PAGE','90112',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/90112.html','true',[],'',''],
	['PAGE','101710',jdecode('Links'),jdecode(''),'/101710.html','true',[],'',''],
	['PAGE','95144',jdecode('+'),jdecode(''),'/95144.html','true',[],'','']];
var siteelementCount=21;
theSitetree.topTemplateName='Solid';
theSitetree.paletteFamily='A19964';
theSitetree.keyvisualId='4356';
theSitetree.keyvisualName='kv_4356.jpg';
theSitetree.fontsetId='10802';
theSitetree.graphicsetId='11234';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='A19964';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Solid',
				paletteFamily: 	'A19964',
				keyvisualId: 	'4356',
				keyvisualName: 	'kv_4356.jpg',
				fontsetId: 		'10802',
				graphicsetId: 	'11234',
				contentColor: 	'000000',
				contentBGColor: 'A19964',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4596',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56003',
internalId:  '',
customField: '20091125-225734'
};
webappMappings['1002']=webappMappings['1002-18105ABW0X0INXXRW']={
webappId:    '1002',
documentId:  '18105',
internalId:  '18105ABW0X0INXXRW',
customField: 'icq=false'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '90077',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '90112',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4596',
internalId:  '',
customField: '20100329-154402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104221',
internalId:  '',
customField: '20091125-225629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101004',
internalId:  '',
customField: '20091125-225820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100770',
internalId:  '',
customField: '20091125-225700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105400',
internalId:  '',
customField: '20100329-154420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9201',
internalId:  '',
customField: '20081021-231523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101261',
internalId:  '',
customField: '20081021-231658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103208',
internalId:  '',
customField: '20081021-231714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101341',
internalId:  '',
customField: '20081021-231847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103217',
internalId:  '',
customField: '20081021-231946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101507',
internalId:  '',
customField: '20091007-192221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6728',
internalId:  '',
customField: '20090212-191049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6755',
internalId:  '',
customField: '20071004-024012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101776',
internalId:  '',
customField: '20090502-225453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18105',
internalId:  '',
customField: '20090313-002719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18106',
internalId:  '',
customField: '20040515-223535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90077',
internalId:  '',
customField: '20060223-213854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90112',
internalId:  '',
customField: '20060223-213911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101710',
internalId:  '',
customField: '20091125-230032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95144',
internalId:  '',
customField: '20061109-191130'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXXRW';
var companyName   = 'ATELIER+kala++Klangschalen+und+Schamanismus';
var htmlTitle	  = 'ATELIER+kala%2C+Karin+Lampert+Gr%C3%BCsch';
var metaKeywords  = 'Karin+Lampert%2C+Schamanismus%2C+Schamanen%2C+Shaman%2C+Heiltier%2C+Schamanisch+T%EF%BF%BDtig%2C+Farben%2C+Atelier+kala%2C+Hilfe%2C+Spirit%2C+Lebenskraft+%2CLebensfreude%2C+Pr%EF%BF%BDttigau%2C+Praettigau%2C+Heilung%2C+Seelenverlust%2C+Extraktionen%2C+Angst%2C+Feder%2C+Trommel%2C+Heilung+%2CFreude%2C+Malatelier%2C+malen%2C+++++Energie%2C+Trancezustand%2C+Nichtallt%EF%BF%BDgliche+Wirklichkeit%2C+Reise%2C+Lehrplan%2C+Blockaden%2C+aufl%EF%BF%BDsung+der+probleme%2C+innern%2C+www.seelenbilder-atelier-kala.ch%2C+Verbundenheit+mit+der+Natur%2C+Krafttiere%2C+Spiritueller+Lehrer%2C+Lebensberatung%2C+++Gr%EF%BF%BDsch%2C+Karin+Lampert%2C++lampert+karin%2C+Gr%EF%BF%BDsch%2C+Arbeitsgruppe%2C+LAMPERT+KARIN%2C+Burgtobel%2C+Atelier+Kala%2C+Gr%EF%BF%BDsch%2C+Bilder+auf+Leinwand%2C+Spirituelle+Arbeitsgruppe%2C+Traumananlyse%2C+Lebensberatung%2C+kunst%2C+Karin+Lampert%2C+Burgtobel+1+Gr%EF%BF%BDsch%2C+Seminare%2C+Hilfe%2C+Reise%2C+Angst%2C+Trommel%2C+Spirit%2C+Geistige+Helfer%2C+Krafttier%2C+Heiltier%2C+Rassel%2C+Lebensberatung%2C+Hilfe%2C+Arbeitsgruppe%2C+Klangschalen%2C+Klangschalenterapie';
var metaContents  = 'Karin+Lampert%2C+Gr%EF%BF%BDsch%2C+Praxis+f%EF%BF%BDr+Schamanische+Heiltraditionen%2C+Spirituelles-Energetisches+Heilen%2C+Metamorphose+Therapie%2C+Spirituelle+Lebensberatung%2C+Traumanalyse%2C+Arbeitsgruppe%2C++Einzelkurse+f%EF%BF%BDr+die+Schamanische+Reise+Kunst%2C+Klangschalenterapie';
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();
};
