/* [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','4498',jdecode('Startseite'),jdecode(''),'/4498.html','true',[],'',''],
	['PAGE','19479',jdecode('Die+Bach+Bl%C3%BCtentherapie'),jdecode(''),'/19479/index.html','true',[ 
		['PAGE','69565',jdecode('Geschichte+und+Entwicklung'),jdecode(''),'/19479/69565.html','true',[],'','']
	],'',''],
	['PAGE','11474',jdecode('Die+38+Bachbl%C3%BCten'),jdecode(''),'/11474/index.html','true',[ 
		['PAGE','21503',jdecode('Bl%C3%BCten+1+-+10'),jdecode(''),'/11474/21503.html','true',[],'',''],
		['PAGE','21530',jdecode('Bl%C3%BCten+11+-+20'),jdecode(''),'/11474/21530.html','true',[],'',''],
		['PAGE','25303',jdecode('Bl%C3%BCten+21+-+30'),jdecode(''),'/11474/25303.html','true',[],'',''],
		['PAGE','30482',jdecode('Bl%C3%BCten+31+.+38'),jdecode(''),'/11474/30482.html','true',[],'',''],
		['PAGE','19237',jdecode('Rescue+-+Erste+Hilfe'),jdecode(''),'/11474/19237.html','true',[],'','']
	],'',''],
	['PAGE','25903',jdecode('Wie+die+richtige+finden%3F'),jdecode(''),'/25903/index.html','true',[ 
		['PAGE','27895',jdecode('Pers%C3%B6nliche+Beratung'),jdecode(''),'/25903/27895.html','true',[],'',''],
		['PAGE','31823',jdecode('Beschreibungsliste'),jdecode(''),'/25903/31823.html','true',[],'',''],
		['PAGE','27059',jdecode('Fragebogen'),jdecode(''),'/25903/27059.html','true',[],'',''],
		['PAGE','31270',jdecode('Online-Test'),jdecode(''),'/25903/31270.html','true',[],'',''],
		['PAGE','27635',jdecode('Spontanauswahl'),jdecode(''),'/25903/27635.html','true',[],'',''],
		['PAGE','72481',jdecode('Krankheits-Symptome'),jdecode(''),'/25903/72481.html','true',[],'',''],
		['PAGE','26702',jdecode('Bachbl%C3%BCten+Bilder'),jdecode(''),'/25903/26702.html','true',[],'','']
	],'',''],
	['PAGE','69832',jdecode('Auswahl+f%C3%BCr+Kinder'),jdecode(''),'/69832/index.html','true',[ 
		['PAGE','70284',jdecode('Lernschwierigkeiten'),jdecode(''),'/69832/70284.html','true',[],'','']
	],'',''],
	['PAGE','48645',jdecode('Auswahl+f%C3%BCr+Tiere'),jdecode(''),'/48645.html','true',[],'',''],
	['PAGE','70605',jdecode('Anwendungshinweise'),jdecode(''),'/70605.html','true',[],'',''],
	['PAGE','32107',jdecode('Online-Shop'),jdecode(''),'/32107.html','true',[],'',''],
	['PAGE','71216',jdecode('Bestellung+Mischungen'),jdecode(''),'/71216.html','true',[],'',''],
	['PAGE','72745',jdecode('Bachbl%C3%BCtenshop+f%C3%BCr+Tiere'),jdecode(''),'/72745.html','false',[],'',''],
	['PAGE','72106',jdecode('AGB'),jdecode(''),'/72106.html','true',[],'',''],
	['PAGE','69733',jdecode('Praxis'),jdecode(''),'/69733.html','true',[],'',''],
	['PAGE','11609',jdecode('Kontakt'),jdecode(''),'/11609.html','true',[],'',''],
	['PAGE','37430',jdecode('Impressum'),jdecode(''),'/37430.html','true',[],'',''],
	['PAGE','28603',jdecode('Linktipps'),jdecode(''),'/28603.html','true',[],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='Gaudy';
theSitetree.paletteFamily='5C5D96';
theSitetree.keyvisualId='5969';
theSitetree.keyvisualName='kv_5969.jpg';
theSitetree.fontsetId='11113';
theSitetree.graphicsetId='11905';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='6E8BCE';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Gaudy',
				paletteFamily: 	'5C5D96',
				keyvisualId: 	'5969',
				keyvisualName: 	'kv_5969.jpg',
				fontsetId: 		'11113',
				graphicsetId: 	'11905',
				contentColor: 	'FFFFFF',
				contentBGColor: '6E8BCE',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21503',
internalId:  '',
customField: '20061018-135449'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4498',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-927']={
webappId:    '7008',
documentId:  '11609',
internalId:  '927',
customField: 'language:de;country:CH;'
};
webappMappings['4001']=webappMappings['4001-22916322']={
webappId:    '4001',
documentId:  '72745',
internalId:  '22916322',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72745',
internalId:  '',
customField: '20100122-235735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69565',
internalId:  '',
customField: '20071220-231413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72481',
internalId:  '',
customField: '20091009-235207'
};
webappMappings['7060']=webappMappings['7060-94ad798831e53d8cdab5aa0388f2768a']={
webappId:    '7060',
documentId:  '26702',
internalId:  '94ad798831e53d8cdab5aa0388f2768a',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19479',
internalId:  '',
customField: '20100122-230449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11474',
internalId:  '',
customField: '20071220-231509'
};
webappMappings['7008']=webappMappings['7008-933']={
webappId:    '7008',
documentId:  '71216',
internalId:  '933',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4498',
internalId:  '',
customField: '20100208-162756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21530',
internalId:  '',
customField: '20051106-233445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25303',
internalId:  '',
customField: '20070526-010614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30482',
internalId:  '',
customField: '20080506-125831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19237',
internalId:  '',
customField: '20081013-115042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25903',
internalId:  '',
customField: '20091010-004348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27895',
internalId:  '',
customField: '20091009-235730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31823',
internalId:  '',
customField: '20091010-000339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27059',
internalId:  '',
customField: '20091015-145643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31270',
internalId:  '',
customField: '20091009-233335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27635',
internalId:  '',
customField: '20091009-233751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26702',
internalId:  '',
customField: '20091010-010435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69832',
internalId:  '',
customField: '20071227-011858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70284',
internalId:  '',
customField: '20071227-012338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48645',
internalId:  '',
customField: '20071220-230633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70605',
internalId:  '',
customField: '20090823-233803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32107',
internalId:  '',
customField: '20091008-234647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71216',
internalId:  '',
customField: '20091103-162531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72106',
internalId:  '',
customField: '20090329-145153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69733',
internalId:  '',
customField: '20071223-022928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11609',
internalId:  '',
customField: '20071223-011038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37430',
internalId:  '',
customField: '20081220-003035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28603',
internalId:  '',
customField: '20070811-000113'
};
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'AHOPT0IN3OWB';
var companyName   = 'Bachbl%C3%BCtenhaus+Schweiz';
var htmlTitle	  = 'BACHBL%C3%9CTENHAUS+SCHWEIZ';
var metaKeywords  = 'Bach%2C+Bachbl%C3%BCten%2C+online%2C+bestellen%2C+Mischungen%2C+Notfalltropfen%2C+Shop%2C+Rescue%2C+Infos%2C+Beratung%2C+Bl%C3%BCtentherapie%2C+Essenzen%2C++Globuli%2C+Rescue%2C+Kinder%2C+Test';
var metaContents  = 'Beschreibung+der+38+Bachbl%C3%BCten%2C+viele+n%C3%BCtzliche+Informationen+rund+um+die+Bach+Bl%C3%BCtentherapie%2C+Beratungsangebote+und+Hilfestellungen+zum+herausfinden+der+geeigneten+Bl%C3%BCten%2C+Online+Shop+f%C3%BCr+hochwertige+Bachbl%C3%BCten+Essenzen+und+Globuli%2C+individuelle+Bachblueten-Mischungen%2C+naturreine+aetherische+Oele%2C+kontrollierte+Naturkosmetik+und+Zubeh%C3%B6r';
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();
};
