/* [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('Naturheilpraxis+Jolanda+Kern-Blum'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','552',jdecode('Ern%C3%A4hrung'),jdecode(''),'/552.html','true',[],'',''],
	['PAGE','573',jdecode('Vitalstoffe'),jdecode(''),'/573.html','true',[],'',''],
	['PAGE','594',jdecode('Heilpflanzen'),jdecode(''),'/594.html','true',[],'',''],
	['PAGE','657',jdecode('Manuelle+Anwendungen'),jdecode(''),'/657.html','true',[],'',''],
	['PAGE','615',jdecode('Aktuell'),jdecode(''),'/615.html','true',[],'',''],
	['PAGE','5301',jdecode('Zu+meiner+Person'),jdecode(''),'/5301.html','true',[],'',''],
	['PAGE','5322',jdecode('Kontakt%2C+Lageplan'),jdecode(''),'/5322.html','true',[],'','']];
var siteelementCount=8;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'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: '20100209-231216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20100209-222013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20110320-195800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20110223-214418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20111023-124610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20111023-124638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20111023-150841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5322',
internalId:  '',
customField: '20100209-230703'
};
webappMappings['7008']=webappMappings['7008-1375']={
webappId:    '7008',
documentId:  '5322',
internalId:  '1375',
customField: 'language:de;country:CH;'
};
var canonHostname = 'wsc.genotec.ch';
var accountId     = 'AGT010IN2KPB';
var companyName   = 'Praxis+f%C3%BCr+Ern%C3%A4hrung+%26+Naturheilkunde';
var htmlTitle	  = '';
var metaKeywords  = 'Ern%C3%A4hrung%2C+Vitalstoffe%2C+Heilpflanzen%2C+Schr%C3%B6pfen%2C+Baunscheidtieren%2C+Phytotherapie%2C+Allergien%2C+Ersch%C3%B6pfungszust%C3%A4nde%2C+Frauenbeschwerden%2C+Hautirritationen%2C+Herzbeschwerden%2C+Kreislaufbeschwerden%2C+Konzentrationsst%C3%B6rungen%2C+Magenbeschwerden%2C+Darmbeschwerden%2C+Migr%C3%A4ne%2C+Kopfschmerzen%2C+Muskelschmerzen%2C+Gelenkschmerzen%2C+Stoffwechselst%C3%B6rung%2C+Pr%C3%A4vention%2C+Naturheilkunde%2C+Ern%C3%A4hrungstherapie%2C+traditionelle+europ%C3%A4ische+Naturheilkunde%2C+Hausbesuche%2C+Vortr%C3%A4ge%2C+optimale+Ern%C3%A4hrung+f%C3%BCr+das+Gehirn%2C+Diplomarbeit%2C+Fit+in+der+Schule%2C+Fit+am+Arbeitsplatz%2C+Anti+Aging+auf+dem+Teller%2C+Ern%C3%A4hrung+f%C3%BCr+Mutter+und+Kind%2C+Ern%C3%A4hrung+f%C3%BCr+Senioren%2C+Z%C3%B6liakie%2C+Psoriasis%2C+Neurodermitis%2C+Hauttrockenheit%2C+Schwermetallbelastung%2C+Haarmineralanalyse%2C+candida+albicans%2C+helicobacter+pylorie%2C+Aargau%2C+Fricktal%2C+Cholesterin%2C+Omega+Fetts%C3%A4uren%2C+Morbus+crohn%2C+Colitis+Ulcerosa%2C+Divertikel%2C+Flohsamen%2C+Entschlacken%2C+L%C3%B6wenzahn%2C+Brennessel%2C+zusatzstoffe%2C+ADS%2C+Spagyrik%2C+An%C3%A4mie%2C+Nagelflecken%2C+Unfruchtbarkeit%2C+Frigidit%C3%A4t%2C+Schleimhautatrophie%2C+Schlafapnoe%2C+Akne%2C+kreisrunder+Haarausfall%2C+Muskelkr%C3%A4mpfe%2C+Sch%C3%BCssler+Salze%2C+Krippeln%2C+Restless+legs%2C+Konzentrationsst%C3%B6rung%2C+Verhaltensauff%C3%A4lligkeiten%2C+Depression%2C+Panikattacken%2C+Zahnfleischschwund%2C+Sinusitis%2C+Darmflora%2C+Immunschw%C3%A4che%2C+Bronchitis%2C+Naturheilpraxis%2C+Natur-Heilpraxis%2C+Aargau%2C+Heuschnupfen%2C+Vital%2C+Eisenmangel%2C+Aargau%2C+Brugg%2C+Zeihen%2C+Lymphdrainage%2C+%C3%96demtherapie';
var metaContents  = 'auch+Phytotherapie+genannt%2C+ist+eine++der+%C3%A4ltesten+Heilmethoden+der+Menschen.+Heilpflanzen+k%C3%B6nnen+aufgrund+verschiedener+Ansichten+und+Grunds%C3%A4tzen+angewendet+werden.+In+der+modernen+Phytotherapie+werden+haupts%C3%A4chlich+Inhalts-+und+Wirkstoffe+untersucht+und+spezifisch+gegen+Symptome%2C+Krankheiten+und+Beschwerden+eingesetzt.+Die+traditionelle%2C+europ%C3%A4ische+Naturheilkunde+%28TEN%29%2C+ist+eine+Erfahrungsmedizin+und+ber%C3%BCcksichtigt+das+Temperament%2C+die+Konstitution+und+den+Energiezustand+eines+Menschen.+Es+gibt+verschiedene+Darreichungsformen%2C+wie+Tinkturen%2C+Tee%2C+Frischpflanzens%C3%A4fte%2C+Salben%2C+B%C3%A4der%2C+%C3%A4therische+Oele%2C+spagyrische+Essenzen%2C+Gemmomazerate+etc.++Heilpflanzen+besitzen+die+F%C3%A4higkeit%2C+wenn+sie+fachgerecht+eingesetzt+werden%2C+die+Selbstheilungs-kr%C3%A4fte+anzuregen+und+die+Regeneration+zu+f%C3%B6rdern.+Sie+lindern+Schmerzen%2C+wirken+harmonisierend+und+ausgleichend.+';
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();
};

