/* [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(''), jdecode('%2F501.html'), 'true',[],'',''],
	['PAGE','24064',jdecode('Wer+bin+ich'),jdecode(''), jdecode('%2F24064.html'), 'true',[],'',''],
	['PAGE','21295',jdecode('Aktuelles'),jdecode(''), jdecode('%2F21295%2Findex.html'), 'true',[ 
		['PAGE','21337',jdecode('Termine'),jdecode(''), jdecode('%2F21295%2F21337.html'), 'true',[],'',''],
		['PAGE','21358',jdecode('Referenzen'),jdecode(''), jdecode('%2F21295%2F21358.html'), 'true',[],'','']
	],'',''],
	['PAGE','109901',jdecode('Produkt+Aktionen'),jdecode(''), jdecode('%2F109901.html'), 'true',[],'',''],
	['PAGE','154601',jdecode('Anti+Aging'),jdecode(''), jdecode('%2F154601.html'), 'true',[],'',''],
	['PAGE','82001',jdecode('Body+Reset-+Aktion'),jdecode(''), jdecode('%2F82001.html'), 'true',[],'',''],
	['PAGE','552',jdecode('Produkte%2C+Leistungen'),jdecode(''), jdecode('%2F552%2Findex.html'), 'true',[ 
		['PAGE','573',jdecode('Wellness+Angebote'),jdecode(''), jdecode('%2F552%2F573.html'), 'true',[],'','']
	],'',''],
	['PAGE','41701',jdecode('Massage+Schulung'),jdecode(''), jdecode('%2F41701.html'), 'true',[],'',''],
	['PAGE','615',jdecode('Body+Reset+Methode'),jdecode(''), jdecode('%2F615%2Findex.html'), 'true',[ 
		['PAGE','636',jdecode('Beratung+nach+Body+Reset'),jdecode(''), jdecode('%2F615%2F636.html'), 'true',[],'',''],
		['PAGE','21127',jdecode('Kochkurse+nach+Body+Reset'),jdecode(''), jdecode('%2F615%2F21127.html'), 'true',[],'',''],
		['PAGE','21148',jdecode('Individuelle+Ern%C3%A4hrungspl%C3%A4ne+'),jdecode(''), jdecode('%2F615%2F21148.html'), 'true',[],'','']
	],'',''],
	['PAGE','94701',jdecode('Bei+Fragen'),jdecode(''), jdecode('%2F94701.html'), 'true',[],'',''],
	['PAGE','48401',jdecode('BodyReset+Starterkurs'),jdecode(''), jdecode('%2F48401.html'), 'true',[],'',''],
	['PAGE','148301',jdecode('Vitalit%C3%A4t+Analyse'),jdecode(''), jdecode('%2F148301.html'), 'true',[],'',''],
	['PAGE','71301',jdecode('Online+Unterst%C3%BCtzung+BODYRESET'),jdecode(''), jdecode('%2F71301.html'), 'true',[],'',''],
	['PAGE','17701',jdecode('Online-Shop'),jdecode(''), jdecode('%2F17701.html'), 'true',[],'',''],
	['PAGE','149201',jdecode('Wasser+ist+Leben%21'),jdecode(''), jdecode('%2F149201.html'), 'true',[],'',''],
	['PAGE','149501',jdecode('basisches+Wasser'),jdecode(''), jdecode('%2F149501.html'), 'true',[],'',''],
	['PAGE','150201',jdecode('Sanuslife+Wasserfilter'),jdecode(''), jdecode('%2F150201.html'), 'true',[],'',''],
	['PAGE','151101',jdecode('Sanuslife'),jdecode(''), jdecode('%2F151101.html'), 'true',[],'',''],
	['PAGE','103601',jdecode('Erfahrungsberichte'),jdecode(''), jdecode('%2F103601.html'), 'true',[],'',''],
	['PAGE','115201',jdecode('13+Grunds%C3%A4tze'),jdecode(''), jdecode('%2F115201.html'), 'true',[],'',''],
	['PAGE','21106',jdecode('Menu+Beispiel'),jdecode(''), jdecode('%2F21106.html'), 'true',[],'',''],
	['PAGE','83801',jdecode('Weihnachts+Men%C3%BC'),jdecode(''), jdecode('%2F83801.html'), 'true',[],'',''],
	['PAGE','81501',jdecode('Rezept+des+Monats'),jdecode(''), jdecode('%2F81501.html'), 'true',[],'',''],
	['PAGE','21064',jdecode('Das+BodyReset+Buch'),jdecode(''), jdecode('%2F21064.html'), 'true',[],'',''],
	['PAGE','21001',jdecode('S%C3%A4ure-+Basen+was+ist+das%3F'),jdecode(''), jdecode('%2F21001.html'), 'true',[],'',''],
	['PAGE','21022',jdecode('S%C3%A4ure-+Basen+Haushalt'),jdecode(''), jdecode('%2F21022.html'), 'true',[],'',''],
	['PAGE','30701',jdecode('Warum+eine+basische+Ern%C3%A4hrung%3F'),jdecode(''), jdecode('%2F30701.html'), 'true',[],'',''],
	['PAGE','21043',jdecode('Die+Fl%C3%BCssigkeit'),jdecode(''), jdecode('%2F21043.html'), 'true',[],'',''],
	['PAGE','21379',jdecode('Warum+basische+Hautpflege%3F'),jdecode(''), jdecode('%2F21379.html'), 'true',[],'',''],
	['PAGE','21316',jdecode('Was+machen+bei+Cellulite%21'),jdecode(''), jdecode('%2F21316.html'), 'true',[],'',''],
	['PAGE','29801',jdecode('Micro+Massage+Hosen'),jdecode(''), jdecode('%2F29801.html'), 'true',[],'',''],
	['PAGE','46501',jdecode('DIVINIA+System'),jdecode(''), jdecode('%2F46501.html'), 'true',[],'',''],
	['PAGE','64001',jdecode('Divinia+Anwendungen'),jdecode(''), jdecode('%2F64001.html'), 'true',[],'',''],
	['PAGE','65201',jdecode('Bilder+Vorher-Nachher'),jdecode(''), jdecode('%2F65201.html'), 'true',[],'',''],
	['PAGE','16106',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F16106%2Findex.html'), 'true',[ 
		['PAGE','16101',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F16106%2F16101.html'), 'false',[],'','']
	],'',''],
	['PAGE','16701',jdecode('Anfahrt'),jdecode(''), jdecode('%2F16701.html'), 'true',[],'',''],
	['PAGE','16801',jdecode('Ihr+Weg+zu+uns'),jdecode(''), jdecode('%2F16801.html'), 'true',[],'',''],
	['PAGE','17801',jdecode('Kontaktformular'),jdecode(''), jdecode('%2F17801.html'), 'true',[],'',''],
	['PAGE','18601',jdecode('Weblog'),jdecode(''), jdecode('%2F18601.html'), 'true',[],'',''],
	['PAGE','21400',jdecode('Tipps+%26+Tricks'),jdecode(''), jdecode('%2F21400.html'), 'true',[],'',''],
	['PAGE','21421',jdecode('Kontakt'),jdecode(''), jdecode('%2F21421.html'), 'true',[],'',''],
	['PAGE','24001',jdecode('Links'),jdecode(''), jdecode('%2F24001.html'), 'true',[],'',''],
	['PAGE','24022',jdecode('News'),jdecode(''), jdecode('%2F24022.html'), 'true',[],'','']];
var siteelementCount=50;
theSitetree.topTemplateName='Orbit';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='172';
theSitetree.graphicsetId='202';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='003366';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Orbit',
				paletteFamily: 	'003366',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'172',
				graphicsetId: 	'202',
				contentColor: 	'FFFFFF',
				contentBGColor: '003366',
				a_color: 		'003366',
				b_color: 		'336699',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-22191483']={
webappId:    '1501',
documentId:  '501',
internalId:  '22191483',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-16106abw0x0in2v9d']={
webappId:    '1002',
documentId:  '16106',
internalId:  '16106abw0x0in2v9d',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20120107-154946'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '16701',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '16801',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['4001']=webappMappings['4001-22192942']={
webappId:    '4001',
documentId:  '17701',
internalId:  '22192942',
customField: 'language:de;country:CH;'
};
webappMappings['7050']=webappMappings['7050-119']={
webappId:    '7050',
documentId:  '18601',
internalId:  '119',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-591']={
webappId:    '7008',
documentId:  '17801',
internalId:  '591',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24064',
internalId:  '',
customField: '20120107-154542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20100416-174707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20091002-171735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41701',
internalId:  '',
customField: '20120107-152709'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '154601',
internalId:  '-',
customField: '20111115-135615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20120107-155257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20120107-155409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21127',
internalId:  '',
customField: '20120107-155528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21148',
internalId:  '',
customField: '20120107-155609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48401',
internalId:  '',
customField: '20120107-152542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21106',
internalId:  '',
customField: '20110821-083512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21064',
internalId:  '',
customField: '20091003-170439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21001',
internalId:  '',
customField: '20120107-155842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21022',
internalId:  '',
customField: '20120107-160232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30701',
internalId:  '',
customField: '20120107-160552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21043',
internalId:  '',
customField: '20100128-134051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21379',
internalId:  '',
customField: '20120107-161411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21316',
internalId:  '',
customField: '20120107-161622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29801',
internalId:  '',
customField: '20120107-161827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16106',
internalId:  '',
customField: '20110508-171654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16101',
internalId:  '',
customField: '20080413-120653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20110508-171433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16801',
internalId:  '',
customField: '20110508-171515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17701',
internalId:  '',
customField: '20090427-170911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46501',
internalId:  '',
customField: '20120107-162025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20110508-172722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20101104-135400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21295',
internalId:  '',
customField: '20120120-150916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21337',
internalId:  '',
customField: '20091003-161302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21358',
internalId:  '',
customField: '20100715-164602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21400',
internalId:  '',
customField: '20091215-163325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21421',
internalId:  '',
customField: '20100629-135959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24001',
internalId:  '',
customField: '20110910-151819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24022',
internalId:  '',
customField: '20110508-172445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64001',
internalId:  '',
customField: '20100921-142304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65201',
internalId:  '',
customField: '20090505-153159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71301',
internalId:  '',
customField: '20120107-153408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81501',
internalId:  '',
customField: '20120131-162411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82001',
internalId:  '',
customField: '20100214-084219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83801',
internalId:  '',
customField: '20091124-170000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94701',
internalId:  '',
customField: '20110110-164244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103601',
internalId:  '',
customField: '20120107-153742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109901',
internalId:  '',
customField: '20110719-131606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115201',
internalId:  '',
customField: '20120107-153950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148301',
internalId:  '',
customField: '20120107-153040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149201',
internalId:  '',
customField: '20120107-153540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149501',
internalId:  '',
customField: '20120107-153631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150201',
internalId:  '',
customField: '20111202-130514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151101',
internalId:  '',
customField: '20111021-151542'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN2V9D';
var companyName   = 'BodyReset+Fachinstitut+%26+Divinia+Figur+Studio';
var htmlTitle	  = 'Aloe+Honigmassage+-+Schulung-+BodyReset+Fachinstitut+%26+Divinia+Figur+Studio';
var metaKeywords  = '';
var metaContents  = 'Body+Reset+Fachinstitut%2C+Divinia+Figur+Studio%2C+Aloe+Honigmassage-+Schulung';
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();
};

