/* [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(''),'/501.html','true',[],'',''],
	['PAGE','145901',jdecode('SELBSTPORTRAIT'),jdecode(''),'/145901.html','true',[],'',''],
	['PAGE','194701',jdecode('PHILOSOPHIE'),jdecode(''),'/194701.html','true',[],'',''],
	['PAGE','636',jdecode('BL%C3%9CTENENERGIE'),jdecode(''),'/636/index.html','true',[ 
		['PAGE','657',jdecode('ESSENZEN'),jdecode(''),'/636/657.html','true',[],'','']
	],'',''],
	['PAGE','190301',jdecode('AUSTESTEN'),jdecode(''),'/190301.html','true',[],'',''],
	['PAGE','187701',jdecode('MEDITATION'),jdecode(''),'/187701.html','true',[],'',''],
	['PAGE','615',jdecode('ANGEBOT+%2F+PREISE'),jdecode(''),'/615.html','true',[],'',''],
	['PAGE','699',jdecode('PRAXIS'),jdecode(''),'/699/index.html','true',[ 
		['PAGE','147601',jdecode('WEGBESCHREIBUNG'),jdecode(''),'/699/147601.html','true',[],'','']
	],'',''],
	['PAGE','164701',jdecode('KONTAKT'),jdecode(''),'/164701.html','true',[],'',''],
	['PAGE','720',jdecode('LINKS'),jdecode(''),'/720.html','true',[],'','']];
var siteelementCount=12;
theSitetree.topTemplateName='Folder';
theSitetree.paletteFamily='D3D269';
theSitetree.keyvisualId='11088';
theSitetree.keyvisualName='kv_11088.jpg';
theSitetree.fontsetId='31977';
theSitetree.graphicsetId='13810';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='D3D269';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Folder',
				paletteFamily: 	'D3D269',
				keyvisualId: 	'11088',
				keyvisualName: 	'kv_11088.jpg',
				fontsetId: 		'31977',
				graphicsetId: 	'13810',
				contentColor: 	'FFFFFF',
				contentBGColor: 'D3D269',
				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:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100503-151728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145901',
internalId:  '',
customField: '20100504-091635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '194701',
internalId:  '',
customField: '20100609-093619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '720',
internalId:  '',
customField: '20100614-100517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20100609-094058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20100506-092219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190301',
internalId:  '',
customField: '20100430-210248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20100315-084008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '187701',
internalId:  '',
customField: '20100609-094218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20100609-093837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147601',
internalId:  '',
customField: '20100504-091935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164701',
internalId:  '',
customField: '20091222-143007'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW1X0INED1N';
var companyName   = 'POWER++of++FLOWERS';
var htmlTitle	  = '';
var metaKeywords  = 'Bl%C3%BCtenessenzen%2C+aus+dem+Herzen+leben%2C+Selbstfindung%2C+Heilung+aus+dem+Inneren%2C+Unterst%C3%BCtzung+in+Beziehung%2C+Beruf%2C+Finanzen+und+Gesundheit%2C+bei+Hochsensibilit%C3%A4t%2C+f%C3%BCr+Indigo-+und+Kristallkinder%2C+Heilung+des+inneren+Kindes%2C+Verbindung+zu+Engeln+und+Planeten%2C++';
var metaContents  = 'Ganzheitliche+Bl%C3%BCtentherapie+f%C3%BCr+Mensch+und+Tier+in+Hombrechtikon%2C+Bachbl%C3%BCten%2C+Jonabl%C3%BCten%2C+Australische+Buschbl%C3%BCten%2C++Alaskabl%C3%BCten%2C+telefonische+Beratungen%2C++Meditationen%2C+Energie-Arbeit%2C+Sch%C3%BCsslersalze';
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();
};
