/* [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','4595',jdecode('Home'),jdecode(''),'/4595.html','true',[],'',''],
	['PAGE','400287',jdecode('Atlantis-Quintessenzen'),jdecode(''),'/400287.html','true',[],'',''],
	['PAGE','335407',jdecode('Newsletter'),jdecode(''),'/335407.html','true',[],'',''],
	['PAGE','361307',jdecode('Der+Lichtk%C3%B6rper-Prozess'),jdecode(''),'/361307.html','true',[],'',''],
	['PAGE','359007',jdecode('Channelings'),jdecode(''),'/359007.html','true',[],'',''],
	['PAGE','409387',jdecode('Diverse+Themen'),jdecode(''),'/409387.html','true',[],'',''],
	['PAGE','417787',jdecode('Seminare+%26+Ausbildungen'),jdecode(''),'/417787.html','true',[],'',''],
	['PAGE','181609',jdecode('Rolphe+Alcide+Grima%C3%AEtre'),jdecode(''),'/181609.html','true',[],'',''],
	['PAGE','52734',jdecode('Links'),jdecode(''),'/52734.html','true',[],'',''],
	['PAGE','287607',jdecode('Kontakt+'),jdecode(''),'/287607.html','true',[],'',''],
	['PAGE','320607',jdecode('Wegbeschreibung'),jdecode(''),'/320607.html','true',[],'','']];
var siteelementCount=11;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='5351C2';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10894';
theSitetree.contentColor='0000A5';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'5351C2',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10894',
				contentColor: 	'0000A5',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'5351C2',
				e_color: 		'5351C2',
				f_color: 		'5351C2',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '361307',
internalId:  '',
customField: '20100804-065413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '359007',
internalId:  '',
customField: '20100804-100453'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4595',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '400287',
internalId:  '',
customField: '20100309-172200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '417787',
internalId:  '',
customField: '20100804-100147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '335407',
internalId:  '',
customField: '20100805-185510'
};
webappMappings['7008']=webappMappings['7008-184']={
webappId:    '7008',
documentId:  '287607',
internalId:  '184',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4595',
internalId:  '',
customField: '20100804-064234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '181609',
internalId:  '',
customField: '20100804-100658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '409387',
internalId:  '',
customField: '20100805-072601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52734',
internalId:  '',
customField: '20100804-064601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '287607',
internalId:  '',
customField: '20100803-170912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '320607',
internalId:  '',
customField: '20100803-171034'
};
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'Ahp010IN23G9';
var companyName   = 'www.heilkreise.com';
var htmlTitle	  = 'Heilkreise.com';
var metaKeywords  = 'Heilkreise.com%2C+Heilkreise%2C+Heilkreise%2C+Geistiges+Heilen+Heiler%2CEssenzen%2C+Elixiere+K%EF%BF%BDrperbegradigungen+Ausrichtung+Spirituelles+Heilen+R%EF%BF%BDckenschmerzen+Wirbels%EF%BF%BDule+Lichtk%EF%BF%BDrperprozess%2C+neue+Energie%2C+Transformation%2C+Planet+Erde%2C+Heilweise%2C+Atlantis-Quintessenzen%2C+Edelstein-Elixiere%2CHealing%2C+spiritual+healing%2C+healer%2C+Bewusstsein%2C+spirituelle+Entwicklung%2Causbildung+in+spirituellem+heilen%2C+school+of+healing%2C+school+of+spiritual+healing%2C+lightbodyprozess%2C+neue+erde+verlag%2C+edelsteintherapie%2C+edelsteinmassage%2C+steinheilkunde%2CHeiltage%2CMeditation%2C+Berner+oberland%2C+Wilderswil%2CGnade+der+Heilung%2C+Schule+f%EF%BF%BDr+Naturheilkunde+Winterthur%2C+Naturheilkunde%2C+Spiritualit%EF%BF%BDt+und+Bewusstsein%2C+spirituelle+Begradigung%2C+Wirbels%EF%BF%BDule%2C+Buddha%2C+Buddhismus%2C+Shri+Yantra%2C+Mantras%2C+Sai+Baba%2C+Osho%2C++++++Geiz+ist+Geil%2C+Erzengel+Metatron%2C+Erzengel%2C+Metatron%2C+Engel%2C+Engelenergie%2C+Archangel-Healing%2C+Befreiung%2C+Ausbildungen%2C+Mediale+Beratung%2C+Medium%2C+Engelmedium%2C+Heilkreise+Ausbildungen%2C+Heilungen+auf+allen+Ebenen%2C+Lichtarbeiterinnen%2C+Lichtarbeiter%2C+Freude+und+Liebe%2C+Zwillingseelen%2C+Dualseelen%2C+Neue+Energie%2C+neues+Zeitalter%2C+Zukunft%2C+Newsletter%2C+Coca-Cola%2C+ICH-BIN%2C+St.+Germain%2C+Aufgestiegene+Meister%2C+Shamballa%2C+Shamballa-Zentrum%2C+Lichtpunktzentrum%2C+Ferien%2C+Winter%2C+Sommer%2C+Herbst%2C+Fr%C3%BChling%2C+Schule%2C+Ausbildung+in+Meditation%2C+Chur%2C+Schweiz%2C+Winterthur%2C+Z%C3%BCrich%2C+Switzerland%2C+Hollydays%2C+Matterhorn%2C+Bl%C3%BCtenessenzen+Edelstein-Essenzen+Edelstein+Essenzen';
var metaContents  = 'Die+Plattform+f%EF%BF%BDr+spirituelles+Heilen-+Heilkreise.com%2C+Spirituelle+Begradigung+nach+Rolphe+Alcide+Grima%EF%BF%BDtre%2C+Spiritualit%EF%BF%BDt+und+Bewusstsein%2C+geistiges+Heilen%2C+Atlantis-Quintessenzen%2CAusbildung+in+spirituellem+Heilen%2C+Meditation%2CSchule+f%EF%BF%BDr+spirituelles+Heilen-Naturheilkunde++Bewusstsein%2C+Energie+von+Erzengel-Metatron%2C+Achangel-Healing%2CEdelstein-Elixiere%2CEdelstein-+Essenzen%2C+%0AAtlantis-Essenzen%2C+Bl%C3%BCtenessenzen';
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();
};
