/* [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','4598',jdecode('Home'),jdecode(''), jdecode('%2F4598.html'), 'true',[],'',''],
	['PAGE','76101',jdecode('%C3%9Cber+mich'),jdecode(''), jdecode('%2F76101.html'), 'true',[],'',''],
	['PAGE','76122',jdecode('Intuitionstraining'),jdecode(''), jdecode('%2F76122%2Findex.html'), 'true',[ 
		['PAGE','76143',jdecode('Kurse+%26+Daten'),jdecode(''), jdecode('%2F76122%2F76143.html'), 'true',[],'','']
	],'',''],
	['PAGE','114801',jdecode('Schnuppern'),jdecode(''), jdecode('%2F114801.html'), 'true',[],'',''],
	['PAGE','120922',jdecode('Fl%C3%BCgel+der+Seele+im+Alltag'),jdecode(''), jdecode('%2F120922%2Findex.html'), 'true',[ 
		['PAGE','120901',jdecode('weiblicher+Fl%C3%BCgel'),jdecode(''), jdecode('%2F120922%2F120901.html'), 'true',[],'',''],
		['PAGE','137901',jdecode('m%C3%A4nnlicher+Fl%C3%BCgel'),jdecode(''), jdecode('%2F120922%2F137901.html'), 'true',[],'',''],
		['PAGE','137922',jdecode('kindlicher+Fl%C3%BCgel'),jdecode(''), jdecode('%2F120922%2F137922.html'), 'true',[],'',''],
		['PAGE','137943',jdecode('Ahnen-Fl%C3%BCgel'),jdecode(''), jdecode('%2F120922%2F137943.html'), 'true',[],'','']
	],'',''],
	['PAGE','132922',jdecode('Meditation+und+Heilkreis'),jdecode(''), jdecode('%2F132922.html'), 'true',[],'',''],
	['PAGE','76227',jdecode('Hilfe+%2F+Begleitungen'),jdecode(''), jdecode('%2F76227%2Findex.html'), 'true',[ 
		['PAGE','76248',jdecode('Lebensberatung'),jdecode(''), jdecode('%2F76227%2F76248.html'), 'true',[],'',''],
		['PAGE','125201',jdecode('Transformation'),jdecode(''), jdecode('%2F76227%2F125201.html'), 'true',[],'',''],
		['PAGE','76290',jdecode('Australische+Bl%C3%BCten'),jdecode(''), jdecode('%2F76227%2F76290.html'), 'true',[],'','']
	],'',''],
	['PAGE','76311',jdecode('Karten-Projekt'),jdecode(''), jdecode('%2F76311.html'), 'true',[],'',''],
	['PAGE','123101',jdecode('Spezielles'),jdecode(''), jdecode('%2F123101.html'), 'true',[],'',''],
	['PAGE','76332',jdecode('Kontakt'),jdecode(''), jdecode('%2F76332.html'), 'true',[],'',''],
	['PAGE','80622',jdecode('Anmeldung'),jdecode(''), jdecode('%2F80622.html'), 'true',[],'',''],
	['PAGE','76901',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F76901.html'), 'true',[],'',''],
	['PAGE','76395',jdecode('Ihr+Weg+zu+mir'),jdecode(''), jdecode('%2F76395.html'), 'true',[],'',''],
	['PAGE','76416',jdecode('Routenplaner'),jdecode(''), jdecode('%2F76416.html'), 'true',[],'',''],
	['PAGE','76437',jdecode('Links'),jdecode(''), jdecode('%2F76437.html'), 'true',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Artless';
theSitetree.paletteFamily='7E62A2';
theSitetree.keyvisualId='4540';
theSitetree.keyvisualName='kv_4540.jpg';
theSitetree.fontsetId='10795';
theSitetree.graphicsetId='11223';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='7E62A2';
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: 			'Artless',
				paletteFamily: 	'7E62A2',
				keyvisualId: 	'4540',
				keyvisualName: 	'kv_4540.jpg',
				fontsetId: 		'10795',
				graphicsetId: 	'11223',
				contentColor: 	'FFFFFF',
				contentBGColor: '7E62A2',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'3D275A',
				e_color: 		'3D275A',
				f_color: 		'3D275A',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-76901abw0x0in296c']={
webappId:    '1002',
documentId:  '76901',
internalId:  '76901abw0x0in296c',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80622',
internalId:  '',
customField: '20100707-140515'
};
webappMappings['7008']=webappMappings['7008-5556']={
webappId:    '7008',
documentId:  '80622',
internalId:  '5556',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76395',
internalId:  '',
customField: '20091006-125616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76416',
internalId:  '',
customField: '20100707-140637'
};
webappMappings['1501']=webappMappings['1501-3868123']={
webappId:    '1501',
documentId:  '4598',
internalId:  '3868123',
customField: '1501'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '76416',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20120113-215742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76437',
internalId:  '',
customField: '20120109-225117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123101',
internalId:  '',
customField: '20120109-225046'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '76395',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76311',
internalId:  '',
customField: '20120109-224908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76901',
internalId:  '',
customField: '20100707-140536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76332',
internalId:  '',
customField: '20120109-125459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76290',
internalId:  '',
customField: '20120109-223717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120901',
internalId:  '',
customField: '20120109-221128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76122',
internalId:  '',
customField: '20120112-215950'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '137901',
internalId:  '-',
customField: '20120109-221346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76227',
internalId:  '',
customField: '20120108-215014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76248',
internalId:  '',
customField: '20120110-121645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76101',
internalId:  '',
customField: '20120113-215923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76143',
internalId:  '',
customField: '20120109-123225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114801',
internalId:  '',
customField: '20120109-123314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120922',
internalId:  '',
customField: '20120109-220528'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '137943',
internalId:  '-',
customField: '20120109-222125'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '137922',
internalId:  '-',
customField: '20120109-221952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125201',
internalId:  '',
customField: '20120112-220042'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '132922',
internalId:  '-',
customField: '20120109-222805'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN296C';
var companyName   = 'Zentrum+f%C3%BCr+ganzheitliches+Bewusst-Sein';
var htmlTitle	  = 'Intuition';
var metaKeywords  = 'Claudia+Frank%2C+Claudia+Joyana%2C+Claudia+Joyana+Frank%2C+Joyana%2C+Zentrum+f%C3%BCr+ganzheitliches+Bewusstsein%2C+Zentrum+f%C3%BCr+ganzheitliches+Bewusst-Sein%2C+Intuition%2C+Channeling%2C+Intuitionstraining%2C+Ausbildung%2C+Seminar%2C+Selbsterfahrung%2C+Australische+Buschbl%C3%BCten%2C+Hilfe+zur+Selbsthilfe%2C+Transformation%2C+mediale+Lebensberatung%2C+Heilsteine%2C+Bewusstsein%2C+Bewusstseins-Training%2C+Pers%C3%B6nlichkeitsentwicklung%2C+Begleitung%2C+Herz+leben%2C+Heilenergien%2C+innere+F%C3%BChrung%2C+Wahrnehmung%2C+Achtsamkeit%2C+Sprache+der+Seele%2C+H%C3%B6heres+Selbst%2C+Ver%C3%A4nderungsprozesse';
var metaContents  = 'Das+Intuitions-Training+bildet+seit+%C3%BCber+14+Jahren+den+Kern+der+Seminart%C3%A4tigkeit%2C+viele+Kurse+als+Hilfe+zur+Selbsthilfe%2C+mediale+Lebensberatung%2C+Transformationsarbeit%2C+individuelle+Mischungen+von+Australische+Buschbl%C3%BCten.';
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();
};

