/* [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','1201',jdecode('SEELENKRAFT'),jdecode(''), jdecode('%2F1201.html'), 'true',[],'',''],
	['PAGE','459301',jdecode('AKTUELL'),jdecode(''), jdecode('%2F459301.html'), 'true',[],'',''],
	['PAGE','415201',jdecode('%C3%9CBERSICHT'),jdecode(''), jdecode('%2F415201.html'), 'true',[],'',''],
	['PAGE','110043',jdecode('KURSE+%26+AUSBILDUNG'),jdecode(''), jdecode('%2F110043%2Findex.html'), 'true',[ 
		['PAGE','471901',jdecode('ALLGEMEINES'),jdecode(''), jdecode('%2F110043%2F471901.html'), 'true',[],'',''],
		['PAGE','628512',jdecode('KUNDENSTIMMEN'),jdecode(''), jdecode('%2F110043%2F628512.html'), 'true',[],'',''],
		['PAGE','460301',jdecode('AUSBILDUNG+ENERGIE'),jdecode(''), jdecode('%2F110043%2F460301.html'), 'true',[],'',''],
		['PAGE','643512',jdecode('PERS%C3%96NLICHKEIT'),jdecode(''), jdecode('%2F110043%2F643512.html'), 'true',[],'',''],
		['PAGE','155801',jdecode('TIERKOMMUNIKATION+1'),jdecode(''), jdecode('%2F110043%2F155801.html'), 'true',[],'',''],
		['PAGE','460364',jdecode('TIERKOMMUNIKATION+2'),jdecode(''), jdecode('%2F110043%2F460364.html'), 'true',[],'',''],
		['PAGE','485312',jdecode('TIERKOMMUNIKATION+3+'),jdecode(''), jdecode('%2F110043%2F485312.html'), 'true',[],'','']
	],'',''],
	['PAGE','30901',jdecode('ENERGIEN+%26+BERATUNG'),jdecode(''), jdecode('%2F30901%2Findex.html'), 'true',[ 
		['PAGE','606575',jdecode('KUNDENSTIMMEN'),jdecode(''), jdecode('%2F30901%2F606575.html'), 'true',[],'',''],
		['PAGE','261701',jdecode('PERS%C3%96NLICHE+TERMINE'),jdecode(''), jdecode('%2F30901%2F261701.html'), 'true',[],'',''],
		['PAGE','606512',jdecode('FERNBEHANDLUNGEN'),jdecode(''), jdecode('%2F30901%2F606512.html'), 'true',[],'',''],
		['PAGE','606533',jdecode('SENSITIVE+ANALYSEN'),jdecode(''), jdecode('%2F30901%2F606533.html'), 'true',[],'','']
	],'',''],
	['PAGE','20601',jdecode('TIERKOMMUNIKATION'),jdecode(''), jdecode('%2F20601%2Findex.html'), 'true',[ 
		['PAGE','606659',jdecode('KUNDENSTIMMEN'),jdecode(''), jdecode('%2F20601%2F606659.html'), 'true',[],'',''],
		['PAGE','606596',jdecode('BEN%C3%96TIGTE+DETAILS'),jdecode(''), jdecode('%2F20601%2F606596.html'), 'true',[],'',''],
		['PAGE','471943',jdecode('STANDARDFRAGEN'),jdecode(''), jdecode('%2F20601%2F471943.html'), 'true',[],'',''],
		['PAGE','606617',jdecode('SPEZIALTHEMEN'),jdecode(''), jdecode('%2F20601%2F606617.html'), 'true',[],'',''],
		['PAGE','404001',jdecode('KURSE+%26+AUSBILDUNG'),jdecode(''), jdecode('%2F20601%2F404001.html'), 'true',[],'','']
	],'',''],
	['PAGE','1378',jdecode('KONTAKT+'),jdecode(''), jdecode('%2F1378.html'), 'true',[],'',''],
	['PAGE','1273',jdecode('%C3%9CBER+MICH'),jdecode(''), jdecode('%2F1273%2Findex.html'), 'true',[ 
		['PAGE','214701',jdecode('PHILOSOPHIE'),jdecode(''), jdecode('%2F1273%2F214701.html'), 'true',[],'',''],
		['PAGE','112301',jdecode('AUSBILDUNG'),jdecode(''), jdecode('%2F1273%2F112301.html'), 'true',[],'','']
	],'',''],
	['PAGE','395801',jdecode('LINKS'),jdecode(''), jdecode('%2F395801.html'), 'true',[],'',''],
	['PAGE','6401',jdecode('PREIS%C3%9CBERSICHT+%26+AGB'),jdecode(''), jdecode('%2F6401%2Findex.html'), 'true',[ 
		['PAGE','599912',jdecode('HAFTUNGSAUSSCHLUSS'),jdecode(''), jdecode('%2F6401%2F599912.html'), 'true',[],'','']
	],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='Elemental';
theSitetree.paletteFamily='AAA9A9';
theSitetree.keyvisualId='11605';
theSitetree.keyvisualName='kv_11605.jpg';
theSitetree.fontsetId='32916';
theSitetree.graphicsetId='13981';
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: 			'Elemental',
				paletteFamily: 	'AAA9A9',
				keyvisualId: 	'11605',
				keyvisualName: 	'kv_11605.jpg',
				fontsetId: 		'32916',
				graphicsetId: 	'13981',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1201',
internalId:  '',
customField: '20111204-191504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110043',
internalId:  '',
customField: '20120123-215846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415201',
internalId:  '',
customField: '20110909-160312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155801',
internalId:  '',
customField: '20120123-215907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '471943',
internalId:  '',
customField: '20100814-232359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '606596',
internalId:  '',
customField: '20100814-233355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '606617',
internalId:  '',
customField: '20100815-000636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30901',
internalId:  '',
customField: '20110904-223632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '261701',
internalId:  '',
customField: '20110401-191427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20601',
internalId:  '',
customField: '20110904-211652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '404001',
internalId:  '',
customField: '20111120-202534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460301',
internalId:  '',
customField: '20111120-202302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '606575',
internalId:  '',
customField: '20110123-222030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1378',
internalId:  '',
customField: '20110401-191156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1273',
internalId:  '',
customField: '20110204-185604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214701',
internalId:  '',
customField: '20110204-190023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112301',
internalId:  '',
customField: '20110204-190356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '395801',
internalId:  '',
customField: '20111019-230827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '606512',
internalId:  '',
customField: '20110204-221650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6401',
internalId:  '',
customField: '20110204-224255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '599912',
internalId:  '',
customField: '20100806-230256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '606533',
internalId:  '',
customField: '20110204-224044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '606659',
internalId:  '',
customField: '20110123-222052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '643512',
internalId:  '',
customField: '20111120-200626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '485312',
internalId:  '',
customField: '20120123-215935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '459301',
internalId:  '',
customField: '20120123-221414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '471901',
internalId:  '',
customField: '20111120-202408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '460364',
internalId:  '',
customField: '20120123-215923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '628512',
internalId:  '',
customField: '20110204-184418'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN2RMJ';
var companyName   = 'S++++E++++E++++L++++E++++N++++K++++R++++A++++F++++T';
var htmlTitle	  = 'SEELENKRAFT%3A+Spirituelle+Beratung%2C+Energiearbeit%2C+Tierkommunikation%2C+Kurse';
var metaKeywords  = 'Energiearbeit%2C+Reiki%2C+Handauflegen%2C+Fernbehandlung%2C+Fernheilung%2C+Wohnung+r%C3%A4uchern%2C+mediale+Beratung%2C+spirituelle+Beratung%2C+Tierkommunikation%2C+Telepathie%2C+Numerologie%2C+spirituelle+Kurse%2C+spirituelle+Ausbildung%2C+Seelenkraft%2C+Ritual%2C+Rituale%2C+the+secret%2C+Spiritualit%C3%A4t%2C+Lebenshilfe%2C+spirituelle+Seminare%2C+Channeling%2C+Chaneling%2C+Medialit%C3%A4t';
var metaContents  = 'Spirituelle+Beratung%2C+Energiearbeit+und+Tierkommunikation.+Spirituelle+Kurse+und+Reiki-Ausbildung.+Entdecke+Dein+Potenzial+-+lebe+Deine+Seelenkraft%21';
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();
};

