/* [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','1801',jdecode('Home'),jdecode(''), jdecode('%2F1801.html'), 'true',[],'',''],
	['PAGE','32601',jdecode('BEMER+Therapie'),jdecode(''), jdecode('%2F32601.html'), 'true',[],'',''],
	['PAGE','3422',jdecode('PRAXIS+-+Angebote'),jdecode(''), jdecode('%2F3422.html'), 'true',[],'',''],
	['PAGE','34022',jdecode('Vortr%C3%A4ge+-+Workshops'),jdecode(''), jdecode('%2F34022.html'), 'true',[],'',''],
	['PAGE','3443',jdecode('NATURPRODUKTE'),jdecode(''), jdecode('%2F3443%2Findex.html'), 'true',[ 
		['PAGE','3506',jdecode('BIO-Gerstengras'),jdecode(''), jdecode('%2F3443%2F3506.html'), 'true',[],'',''],
		['PAGE','3485',jdecode('5+Elemente+Produkte'),jdecode(''), jdecode('%2F3443%2F3485.html'), 'true',[],'',''],
		['PAGE','21822',jdecode('Vitalpflaster+und+Oel'),jdecode(''), jdecode('%2F3443%2F21822.html'), 'true',[],'',''],
		['PAGE','21301',jdecode('Vitaldrink'),jdecode(''), jdecode('%2F3443%2F21301.html'), 'true',[],'',''],
		['PAGE','21322',jdecode('Teemischungen'),jdecode(''), jdecode('%2F3443%2F21322.html'), 'true',[],'',''],
		['PAGE','22401',jdecode('Caf%C3%A9+harmonie'),jdecode(''), jdecode('%2F3443%2F22401.html'), 'true',[],'',''],
		['PAGE','21801',jdecode('Gew%C3%BCrze'),jdecode(''), jdecode('%2F3443%2F21801.html'), 'true',[],'',''],
		['PAGE','65001',jdecode('Pfiffikuss'),jdecode(''), jdecode('%2F3443%2F65001.html'), 'true',[],'',''],
		['PAGE','3464',jdecode('Sacha+Inchi+OMEGA+3'),jdecode(''), jdecode('%2F3443%2F3464.html'), 'true',[],'',''],
		['PAGE','22422',jdecode('Maca+-+Brainfood'),jdecode(''), jdecode('%2F3443%2F22422.html'), 'true',[],'','']
	],'',''],
	['PAGE','26201',jdecode('EPD+Programm'),jdecode(''), jdecode('%2F26201%2Findex.html'), 'true',[ 
		['PAGE','26301',jdecode('Ern%C3%A4hrungsprogramm'),jdecode(''), jdecode('%2F26201%2F26301.html'), 'true',[],'',''],
		['PAGE','27201',jdecode('Phase+1++MOTIVATION'),jdecode(''), jdecode('%2F26201%2F27201.html'), 'true',[],'',''],
		['PAGE','27501',jdecode('Phase+2++REDUKTION'),jdecode(''), jdecode('%2F26201%2F27501.html'), 'true',[],'',''],
		['PAGE','27522',jdecode('Phase+3++STABILISATION'),jdecode(''), jdecode('%2F26201%2F27522.html'), 'true',[],'','']
	],'',''],
	['PAGE','28401',jdecode('EPD+Einsatzgebiete'),jdecode(''), jdecode('%2F28401%2Findex.html'), 'true',[ 
		['PAGE','28501',jdecode('Gewichtsprobleme'),jdecode(''), jdecode('%2F28401%2F28501.html'), 'true',[],'',''],
		['PAGE','28522',jdecode('Hoher+Blutdruck'),jdecode(''), jdecode('%2F28401%2F28522.html'), 'true',[],'',''],
		['PAGE','28543',jdecode('Cholesterin'),jdecode(''), jdecode('%2F28401%2F28543.html'), 'true',[],'',''],
		['PAGE','28564',jdecode('Diabetes'),jdecode(''), jdecode('%2F28401%2F28564.html'), 'true',[],'',''],
		['PAGE','28585',jdecode('Burnout%2C+Stress'),jdecode(''), jdecode('%2F28401%2F28585.html'), 'true',[],'',''],
		['PAGE','28606',jdecode('Pr%C3%A4vention'),jdecode(''), jdecode('%2F28401%2F28606.html'), 'true',[],'',''],
		['PAGE','28627',jdecode('EPD+bei+Kindern'),jdecode(''), jdecode('%2F28401%2F28627.html'), 'true',[],'',''],
		['PAGE','28648',jdecode('Kontraindikationen'),jdecode(''), jdecode('%2F28401%2F28648.html'), 'true',[],'','']
	],'',''],
	['PAGE','26322',jdecode('EPD+Produkte'),jdecode(''), jdecode('%2F26322%2Findex.html'), 'true',[ 
		['PAGE','27543',jdecode('EPD+Mahlzeiten'),jdecode(''), jdecode('%2F26322%2F27543.html'), 'true',[],'',''],
		['PAGE','27564',jdecode('EPD+Pakete'),jdecode(''), jdecode('%2F26322%2F27564.html'), 'true',[],'','']
	],'',''],
	['PAGE','59901',jdecode('Provisan+Produkte'),jdecode(''), jdecode('%2F59901.html'), 'true',[],'',''],
	['PAGE','60901',jdecode('HCK+Mikron%C3%A4hrstoffe'),jdecode(''), jdecode('%2F60901%2Findex.html'), 'true',[ 
		['PAGE','61301',jdecode('Warum+Mikron%C3%A4hrstoffe%3F'),jdecode(''), jdecode('%2F60901%2F61301.html'), 'true',[],'','']
	],'',''],
	['PAGE','32901',jdecode('MATRIX+Inform'),jdecode(''), jdecode('%2F32901.html'), 'true',[],'',''],
	['PAGE','3401',jdecode('NEWS'),jdecode(''), jdecode('%2F3401.html'), 'true',[],'',''],
	['PAGE','62301',jdecode('REZEPTE'),jdecode(''), jdecode('%2F62301.html'), 'true',[],'',''],
	['PAGE','21027',jdecode('So+finden+Sie+uns'),jdecode(''), jdecode('%2F21027.html'), 'true',[],'',''],
	['PAGE','1873',jdecode('Kontakt'),jdecode(''), jdecode('%2F1873.html'), 'true',[],'',''],
	['PAGE','20901',jdecode('Impressum'),jdecode(''), jdecode('%2F20901.html'), 'true',[],'','']];
var siteelementCount=41;
theSitetree.topTemplateName='Valiant';
theSitetree.paletteFamily='F1AA13';
theSitetree.keyvisualId='9840';
theSitetree.keyvisualName='kv_9840.jpg';
theSitetree.fontsetId='17626';
theSitetree.graphicsetId='13034';
theSitetree.contentColor='646464';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'webland',
  product: 'WSCSYSSSSLY0XFY2'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Valiant',
				paletteFamily: 	'F1AA13',
				keyvisualId: 	'9840',
				keyvisualName: 	'kv_9840.jpg',
				fontsetId: 		'17626',
				graphicsetId: 	'13034',
				contentColor: 	'646464',
				contentBGColor: 'FFFFFF',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-11322']={
webappId:    '7008',
documentId:  '1873',
internalId:  '11322',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20120217-173141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1873',
internalId:  '',
customField: '20120125-173119'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3443',
internalId:  '',
customField: '20120218-183317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3422',
internalId:  '',
customField: '20120218-173506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3485',
internalId:  '',
customField: '20120218-183542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3506',
internalId:  '',
customField: '20120219-142810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3464',
internalId:  '',
customField: '20120209-151246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3401',
internalId:  '',
customField: '20120218-191354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62301',
internalId:  '',
customField: '20120218-192609'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '21027',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59901',
internalId:  '',
customField: '20120218-190345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21027',
internalId:  '',
customField: '20110609-003901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60901',
internalId:  '',
customField: '20120218-190649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61301',
internalId:  '',
customField: '20120218-190949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22422',
internalId:  '',
customField: '20120219-142613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21301',
internalId:  '',
customField: '20120218-184135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22401',
internalId:  '',
customField: '20120218-184710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21322',
internalId:  '',
customField: '20120218-184557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21801',
internalId:  '',
customField: '20120218-184835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21822',
internalId:  '',
customField: '20120218-184011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20901',
internalId:  '',
customField: '20120218-180833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26201',
internalId:  '',
customField: '20120218-185306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26301',
internalId:  '',
customField: '20111110-090454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27201',
internalId:  '',
customField: '20111110-090606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26322',
internalId:  '',
customField: '20120218-175018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28401',
internalId:  '',
customField: '20120218-175441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28501',
internalId:  '',
customField: '20120218-175525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28543',
internalId:  '',
customField: '20120218-175735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28564',
internalId:  '',
customField: '20120218-175803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28585',
internalId:  '',
customField: '20120218-175949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28606',
internalId:  '',
customField: '20120218-180022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28627',
internalId:  '',
customField: '20120218-180058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28648',
internalId:  '',
customField: '20120218-180137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27501',
internalId:  '',
customField: '20111110-090657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27522',
internalId:  '',
customField: '20110802-094938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28522',
internalId:  '',
customField: '20120218-175647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27543',
internalId:  '',
customField: '20120218-185625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27564',
internalId:  '',
customField: '20120218-190208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32601',
internalId:  '',
customField: '20120217-173222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32901',
internalId:  '',
customField: '20120218-191058'
};
webappMappings['7008']=webappMappings['7008-12047']={
webappId:    '7008',
documentId:  '34022',
internalId:  '12047',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34022',
internalId:  '',
customField: '20120217-173423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65001',
internalId:  '',
customField: '20120124-104515'
};
var webAppHostname = 'wsc-app.webland.ch:80';
var canonHostname = 'wsc01.webland.ch';
var accountId     = 'AWB010IN2ZMR';
var companyName   = 'Therapie+und+Naturprodukte+++++%2B41+%280%2932+313+73+20';
var htmlTitle	  = 'Gesundheitspraxis+und+Naturprodukte+OHNE+Zusatzstoffe.+VITONA+5+Elemente+Produkte%2C+BIO+-+Gerstengras+aus+Neuseeland%2C+BEMER+Therapie%2C+EPD+Ern%C3%A4hrungsprogramm+und+Provisan+Erg%C3%A4nzungsprodukte%2C+HCK+Mineralstoffe%2C+Matrix+Inform%2C+Naturprodukte';
var metaKeywords  = 'EPD-Ern%C3%A4hrungsberatung+-+angesagt+bei+%C3%9Cbergewicht%2C+Diabetes%2C+Cholesterin%2C+M%C3%BCdigkeit%2C+Burn-out...%2C+BEMER+Regulationstherapie%2C+BEMER+Beratung%2C+BEMER+Erfahrungen%2C+Schmerztherapie%2C+Mikrozirkulation%2C+BEMER+Anwendungen%2C+Alternative+Heilmethoden%2C+BEMER+Classic+und+Pro-Set%2C+BEMER+Weltneuheit+mit+Schlafprogramm%2C+BEMER+zur+Regeneration+und+zur+Unterst%C3%BCtzung+der+Heilung%2C+BEMER+bei+Stoffwechselst%C3%B6rungen%2C+BEMER+im+Einsatz+auch+im+Sport.+Ern%C3%A4hrungsberatung%2C+Matrix-Inform%2C+Naturprodukte%2C+SemenVitae+Bio-Gerstengras%2C+Omega+3+Oel%2C+Sacha+Inchi%2C+Kr%C3%A4utertee%2C+Gew%C3%BCrze%2C+5+Elemente%2C+TCM%2C+Alternativmedizin%2C+Tiermedizin';
var metaContents  = 'Gesundheitsberatung+und+Naturprodukte.+%0D%0A%0D%0ABEMER+Therapie.+Beratung%2C+Vermietung+und+Verkauf+in+der+ganzen+Schweiz.+Kompetente+BEMER+Beratung+gratis.%0D%0A%0D%0AWie+bieten+Ihnen+ganzheitliche+Beratungen+an.+Das+heisst+wir+achten+auch+auf+Ern%C3%A4hrung%2C+Stress+im+Beruf+und+Umfeld%2C+Inhaltsstoffe+in+Nahrungsmitteln+und+Kosmetika....';
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();
};

