/* [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','73227',jdecode('Betriebsferien'),jdecode(''), jdecode('%2F73227.html'), 'false',[],'',''],
	['PAGE','4498',jdecode('Startseite'),jdecode(''), jdecode('%2F4498.html'), 'true',[],'',''],
	['PAGE','73122',jdecode('Suchfunktion'),jdecode(''), jdecode('%2F73122.html'), 'true',[],'',''],
	['PAGE','19479',jdecode('Die+Bach+Bl%C3%BCtentherapie'),jdecode(''), jdecode('%2F19479%2Findex.html'), 'true',[ 
		['PAGE','69565',jdecode('Geschichte+und+Entwicklung'),jdecode(''), jdecode('%2F19479%2F69565.html'), 'true',[],'','']
	],'',''],
	['PAGE','11474',jdecode('Die+38+Bachbl%C3%BCten'),jdecode(''), jdecode('%2F11474%2Findex.html'), 'true',[ 
		['PAGE','21503',jdecode('Bl%C3%BCten+1+-+10'),jdecode(''), jdecode('%2F11474%2F21503.html'), 'true',[],'',''],
		['PAGE','21530',jdecode('Bl%C3%BCten+11+-+20'),jdecode(''), jdecode('%2F11474%2F21530.html'), 'true',[],'',''],
		['PAGE','25303',jdecode('Bl%C3%BCten+21+-+30'),jdecode(''), jdecode('%2F11474%2F25303.html'), 'true',[],'',''],
		['PAGE','30482',jdecode('Bl%C3%BCten+31+.+38'),jdecode(''), jdecode('%2F11474%2F30482.html'), 'true',[],'',''],
		['PAGE','19237',jdecode('Rescue+-+Erste+Hilfe'),jdecode(''), jdecode('%2F11474%2F19237.html'), 'true',[],'','']
	],'',''],
	['PAGE','25903',jdecode('Wie+die+richtige+finden%3F'),jdecode(''), jdecode('%2F25903%2Findex.html'), 'true',[ 
		['PAGE','27895',jdecode('Pers%C3%B6nliche+Beratung'),jdecode(''), jdecode('%2F25903%2F27895.html'), 'true',[],'',''],
		['PAGE','31823',jdecode('Beschreibungsliste'),jdecode(''), jdecode('%2F25903%2F31823.html'), 'true',[],'',''],
		['PAGE','27059',jdecode('Fragebogen'),jdecode(''), jdecode('%2F25903%2F27059.html'), 'true',[],'',''],
		['PAGE','31270',jdecode('Online-Test'),jdecode(''), jdecode('%2F25903%2F31270.html'), 'true',[],'',''],
		['PAGE','27635',jdecode('Spontanauswahl'),jdecode(''), jdecode('%2F25903%2F27635.html'), 'true',[],'',''],
		['PAGE','72481',jdecode('Krankheits-Symptome'),jdecode(''), jdecode('%2F25903%2F72481.html'), 'true',[],'',''],
		['PAGE','26702',jdecode('Bachbl%C3%BCten+Bilder'),jdecode(''), jdecode('%2F25903%2F26702.html'), 'true',[],'','']
	],'',''],
	['PAGE','69832',jdecode('Auswahl+f%C3%BCr+Kinder'),jdecode(''), jdecode('%2F69832%2Findex.html'), 'true',[ 
		['PAGE','70284',jdecode('Lernschwierigkeiten'),jdecode(''), jdecode('%2F69832%2F70284.html'), 'true',[],'','']
	],'',''],
	['PAGE','48645',jdecode('Auswahl+f%C3%BCr+Tiere'),jdecode(''), jdecode('%2F48645.html'), 'true',[],'',''],
	['PAGE','70605',jdecode('Anwendungshinweise'),jdecode(''), jdecode('%2F70605.html'), 'true',[],'',''],
	['PAGE','32107',jdecode('Online-Shop'),jdecode(''), jdecode('%2F32107.html'), 'true',[],'',''],
	['PAGE','71216',jdecode('Bestellung+Mischungen'),jdecode(''), jdecode('%2F71216.html'), 'true',[],'',''],
	['PAGE','73274',jdecode('Bestellung+Mischungen'),jdecode(''), jdecode('%2F73274.html'), 'false',[],'',''],
	['PAGE','72745',jdecode('Bachbl%C3%BCtenshop+f%C3%BCr+Tiere'),jdecode(''), jdecode('%2F72745.html'), 'false',[],'',''],
	['PAGE','72106',jdecode('AGB'),jdecode(''), jdecode('%2F72106.html'), 'true',[],'',''],
	['PAGE','69733',jdecode('Praxis'),jdecode(''), jdecode('%2F69733.html'), 'true',[],'',''],
	['PAGE','11609',jdecode('Kontakt'),jdecode(''), jdecode('%2F11609.html'), 'true',[],'',''],
	['PAGE','37430',jdecode('Impressum'),jdecode(''), jdecode('%2F37430.html'), 'true',[],'',''],
	['PAGE','28603',jdecode('Linktipps'),jdecode(''), jdecode('%2F28603.html'), 'true',[],'',''],
	['PAGE','73494',jdecode('Frohe+Festtage'),jdecode(''), jdecode('%2F73494.html'), 'false',[],'','']];
var siteelementCount=33;
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 prodDef={
  wl_name: 'hostpoint',
  product: 'WSCSYSSSSLYTC21F'
};
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-125449'
};
webappMappings['7008']=webappMappings['7008-927']={
webappId:    '7008',
documentId:  '11609',
internalId:  '927',
customField: 'language:de;country:CH;'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '73122',
internalId:  'search',
customField: 'language:de;country:CH;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4498',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73227',
internalId:  '',
customField: '20111010-173116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73274',
internalId:  '',
customField: '20110502-220433'
};
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-225735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69565',
internalId:  '',
customField: '20071220-221413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72481',
internalId:  '',
customField: '20091009-225207'
};
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-220449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11474',
internalId:  '',
customField: '20071220-221509'
};
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: '20120106-224046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21530',
internalId:  '',
customField: '20051106-223445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25303',
internalId:  '',
customField: '20070526-000614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30482',
internalId:  '',
customField: '20080506-115831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19237',
internalId:  '',
customField: '20081013-105042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25903',
internalId:  '',
customField: '20110920-181201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27895',
internalId:  '',
customField: '20091009-225730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31823',
internalId:  '',
customField: '20091009-230339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73494',
internalId:  '',
customField: '20111229-220434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27059',
internalId:  '',
customField: '20091015-135643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73122',
internalId:  '',
customField: '20110211-123836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31270',
internalId:  '',
customField: '20091009-223335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27635',
internalId:  '',
customField: '20091009-223751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26702',
internalId:  '',
customField: '20091010-000435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69832',
internalId:  '',
customField: '20071227-001858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70284',
internalId:  '',
customField: '20071227-002338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48645',
internalId:  '',
customField: '20071220-220633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70605',
internalId:  '',
customField: '20090823-223803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32107',
internalId:  '',
customField: '20100820-170622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71216',
internalId:  '',
customField: '20110219-172924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72106',
internalId:  '',
customField: '20100915-221410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69733',
internalId:  '',
customField: '20111218-164341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11609',
internalId:  '',
customField: '20071223-001038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37430',
internalId:  '',
customField: '20081219-233035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28603',
internalId:  '',
customField: '20070810-230113'
};
var webAppHostname = 'cgi.webomat.ch:80';
var canonHostname = 'webomat02.hostpoint.ch';
var accountId     = 'AHOPT0IN3OWB';
var companyName   = '';
var htmlTitle	  = 'Bachbl%C3%BCtenhaus+-+Bachbl%C3%BCtenshop+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();
};

