/* [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(''), jdecode('%2F501.html'), 'true',[],'',''],
	['PAGE','804',jdecode('Impressum'),jdecode(''), jdecode('%2F804.html'), 'true',[],'',''],
	['PAGE','6501',jdecode('News'),jdecode(''), jdecode('%2F6501%2Findex.html'), 'true',[ 
		['PAGE','49622',jdecode('Archiv'),jdecode(''), jdecode('%2F6501%2F49622.html'), 'false',[],'',''],
		['PAGE','63501',jdecode('Termine+2009'),jdecode(''), jdecode('%2F6501%2F63501.html'), 'false',[],'',''],
		['PAGE','80101',jdecode('Termine+2010'),jdecode(''), jdecode('%2F6501%2F80101.html'), 'false',[],'',''],
		['PAGE','86401',jdecode('Termine+2011'),jdecode(''), jdecode('%2F6501%2F86401.html'), 'false',[],'',''],
		['PAGE','80701',jdecode('Jubil%C3%A4umstreffen+Weisse+Eule'),jdecode(''), jdecode('%2F6501%2F80701.html'), 'false',[],'','']
	],'',''],
	['PAGE','552',jdecode('Schamanentum'),jdecode(''), jdecode('%2F552%2Findex.html'), 'true',[ 
		['PAGE','6522',jdecode('Schamane'),jdecode(''), jdecode('%2F552%2F6522.html'), 'true',[],'',''],
		['PAGE','573',jdecode('Spirituelle+Begabung'),jdecode(''), jdecode('%2F552%2F573.html'), 'true',[],'','']
	],'',''],
	['PAGE','636',jdecode('Beratung'),jdecode(''), jdecode('%2F636%2Findex.html'), 'true',[ 
		['PAGE','13601',jdecode('Vier+Faktoren'),jdecode(''), jdecode('%2F636%2F13601.html'), 'true',[],'',''],
		['PAGE','48701',jdecode('Die+Weisse+Eule'),jdecode(''), jdecode('%2F636%2F48701.html'), 'true',[],'','']
	],'',''],
	['PAGE','699',jdecode('Informationen'),jdecode(''), jdecode('%2F699%2Findex.html'), 'true',[ 
		['PAGE','720',jdecode('Links'),jdecode(''), jdecode('%2F699%2F720.html'), 'true',[],'',''],
		['PAGE','762',jdecode('Seminaranbieter+'),jdecode(''), jdecode('%2F699%2F762.html'), 'true',[],'',''],
		['PAGE','54901',jdecode('Veranstaltungen'),jdecode(''), jdecode('%2F699%2F54901.html'), 'true',[],'',''],
		['PAGE','783',jdecode('Meine+Lehrer'),jdecode(''), jdecode('%2F699%2F783.html'), 'true',[],'',''],
		['PAGE','741',jdecode('Literatur'),jdecode(''), jdecode('%2F699%2F741.html'), 'true',[],'','']
	],'',''],
	['PAGE','678',jdecode('Geschichten'),jdecode(''), jdecode('%2F678%2Findex.html'), 'true',[ 
		['PAGE','16701',jdecode('Ich+rufe+dich%21'),jdecode(''), jdecode('%2F678%2F16701.html'), 'true',[],'',''],
		['PAGE','16301',jdecode('Zum+Geleit'),jdecode(''), jdecode('%2F678%2F16301.html'), 'true',[],'',''],
		['PAGE','14401',jdecode('Buteo+Buteo%21'),jdecode(''), jdecode('%2F678%2F14401.html'), 'true',[],'',''],
		['PAGE','14422',jdecode('Eine+Hasengeschichte'),jdecode(''), jdecode('%2F678%2F14422.html'), 'true',[],'',''],
		['PAGE','14443',jdecode('Schandplatz'),jdecode(''), jdecode('%2F678%2F14443.html'), 'true',[],'',''],
		['PAGE','14464',jdecode('Seraphim'),jdecode(''), jdecode('%2F678%2F14464.html'), 'true',[],'',''],
		['PAGE','18601',jdecode('Wie+Pilze+aus+der+Erde'),jdecode(''), jdecode('%2F678%2F18601.html'), 'true',[],'',''],
		['PAGE','19301',jdecode('Professor+Skeps+Email'),jdecode(''), jdecode('%2F678%2F19301.html'), 'true',[],'',''],
		['PAGE','19322',jdecode('Rasendes+Etwas'),jdecode(''), jdecode('%2F678%2F19322.html'), 'true',[],'',''],
		['PAGE','21801',jdecode('Multiple+Pers%C3%B6nlichkeit'),jdecode(''), jdecode('%2F678%2F21801.html'), 'true',[],'',''],
		['PAGE','25701',jdecode('Tr%C3%A4ume'),jdecode(''), jdecode('%2F678%2F25701.html'), 'true',[],'',''],
		['PAGE','32701',jdecode('Erkannt'),jdecode(''), jdecode('%2F678%2F32701.html'), 'true',[],'',''],
		['PAGE','36801',jdecode('Unterm+Baum+%28OBE%29'),jdecode(''), jdecode('%2F678%2F36801.html'), 'true',[],'',''],
		['PAGE','52501',jdecode('Samichlaus'),jdecode(''), jdecode('%2F678%2F52501.html'), 'true',[],'','']
	],'',''],
	['PAGE','75401',jdecode('Specksteinarbeiten'),jdecode(''), jdecode('%2F75401.html'), 'true',[],'',''],
	['PAGE','48722',jdecode('Wunschzettel'),jdecode(''), jdecode('%2F48722.html'), 'false',[],'','']];
var siteelementCount=37;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='1280';
theSitetree.keyvisualName='feder.jpg';
theSitetree.fontsetId='192';
theSitetree.graphicsetId='232';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Profile',
				paletteFamily: 	'990000',
				keyvisualId: 	'1280',
				keyvisualName: 	'feder.jpg',
				fontsetId: 		'192',
				graphicsetId: 	'232',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'990000',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['7060']=webappMappings['7060-2d7dd3f91669a7436f61c608ad220676']={
webappId:    '7060',
documentId:  '75401',
internalId:  '2d7dd3f91669a7436f61c608ad220676',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '804',
internalId:  '',
customField: '20090818-094818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20101107-212247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20111204-073744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63501',
internalId:  '',
customField: '20100116-142711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49622',
internalId:  '',
customField: '20110214-174915'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20090124-203255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6522',
internalId:  '',
customField: '20090124-210826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20070619-113335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20111204-080610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20090124-211803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48701',
internalId:  '',
customField: '20090124-212218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20090124-212811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '720',
internalId:  '',
customField: '20090125-163904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '762',
internalId:  '',
customField: '20090125-164329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54901',
internalId:  '',
customField: '20110214-180442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '783',
internalId:  '',
customField: '20090125-164840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '741',
internalId:  '',
customField: '20070619-113335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '678',
internalId:  '',
customField: '20090818-140855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20070703-091506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16301',
internalId:  '',
customField: '20070703-094300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14401',
internalId:  '',
customField: '20070629-110229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14422',
internalId:  '',
customField: '20070626-222418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14443',
internalId:  '',
customField: '20070711-222641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14464',
internalId:  '',
customField: '20070626-082141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20080104-193223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19301',
internalId:  '',
customField: '20070626-090921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19322',
internalId:  '',
customField: '20070711-221132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21801',
internalId:  '',
customField: '20070703-203452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25701',
internalId:  '',
customField: '20070629-112115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32701',
internalId:  '',
customField: '20080104-193817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36801',
internalId:  '',
customField: '20090818-141926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52501',
internalId:  '',
customField: '20080104-220742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48722',
internalId:  '',
customField: '20090124-214014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75401',
internalId:  '',
customField: '20090921-102035'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80101',
internalId:  '',
customField: '20100913-184824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80701',
internalId:  '',
customField: '20100130-171326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86401',
internalId:  '',
customField: '20111008-092530'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0IN2VT8';
var companyName   = 'Schamanentum.ch';
var htmlTitle	  = 'Schamanentum.ch';
var metaKeywords  = 'wei%C3%9Fe+Eule+Ritual%2C+weisse-eule-ritual%2C+Schamanismus%2C+Schamanentum%2C+Schamanische+Beratung%2C+Schamane%2C+spirituelle+Begabung%2C+Sandra+Ingerman%2C+Michael+Harner%2C+Paul+Uccusic%2C+Carlo+Zumstein%2C+Saryglar+Borbak-Ool+Duktuk+Oolowitsch%2C+Rollanda+Kongar%2C+Tuva%2C+Schweizer+Schamane%2C+Seelenr%C3%BCckholung%2C+Krafttier%2C+Extraktion%2C+Spiritualit%C3%A4t%2C+Beratung%2C+Heilung%2C+spirituelle+Heilung%2C+Geistheilung%2C+Dungur%2C+Ovaa%2C+Trommel%2C+Schamanentrommel%2C+Rassel%2C+Schamanengewand%2C+Weisse+Eule%2C+Scharlaman%2C+wei%C3%9Fe+Eule%2C+Thurgau%2C+Schweiz%2C+Geistzwilling%2C+Kurse%2C+Seminare%2C+Rituale%2C+Kurs%2C+Seminar%2C+Ritual%2C+spirituelle+Begabung';
var metaContents  = 'Schamanische+Lebensberatung%2C+Rituale+und+Kurse+Adrian+Osswald.+Pers%C3%B6nliche+Geschichten+rund+um+das+Schamanentum.';
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();
};

