/* [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','6201',jdecode('Home'),jdecode(''), jdecode('%2F6201.html'), 'true',[],'',''],
	['PAGE','6943',jdecode('Aktuelle+Kurse'),jdecode(''), jdecode('%2F6943%2Findex.html'), 'true',[ 
		['PAGE','16001',jdecode('Kr%C3%A4uterstempelmassage'),jdecode(''), jdecode('%2F6943%2F16001.html'), 'true',[],'',''],
		['PAGE','16022',jdecode('+++++++Kursdaten'),jdecode(''), jdecode('%2F6943%2F16022.html'), 'true',[],'',''],
		['PAGE','14801',jdecode('Manuelle+Lymphdrainage'),jdecode(''), jdecode('%2F6943%2F14801.html'), 'true',[],'',''],
		['PAGE','14022',jdecode('+++++++Kursdaten'),jdecode(''), jdecode('%2F6943%2F14022.html'), 'true',[],'',''],
		['PAGE','19301',jdecode('Lomi+Lomi+Nui'),jdecode(''), jdecode('%2F6943%2F19301.html'), 'true',[],'',''],
		['PAGE','19322',jdecode('+++++++Kursdaten'),jdecode(''), jdecode('%2F6943%2F19322.html'), 'true',[],'',''],
		['PAGE','18801',jdecode('SwisStone'),jdecode(''), jdecode('%2F6943%2F18801.html'), 'true',[],'',''],
		['PAGE','18822',jdecode('+++++++Kursdaten'),jdecode(''), jdecode('%2F6943%2F18822.html'), 'true',[],'',''],
		['PAGE','16701',jdecode('Fussreflexzonenmassage'),jdecode(''), jdecode('%2F6943%2F16701.html'), 'true',[],'',''],
		['PAGE','16722',jdecode('+++++++Kursdaten'),jdecode(''), jdecode('%2F6943%2F16722.html'), 'true',[],'',''],
		['PAGE','21322',jdecode('Aromatherapie'),jdecode(''), jdecode('%2F6943%2F21322.html'), 'true',[],'',''],
		['PAGE','21501',jdecode('+++++++Kursdaten'),jdecode(''), jdecode('%2F6943%2F21501.html'), 'true',[],'',''],
		['PAGE','15501',jdecode('%C3%84therische+%C3%96le'),jdecode(''), jdecode('%2F6943%2F15501.html'), 'true',[],'',''],
		['PAGE','14001',jdecode('+++++++Kursdaten'),jdecode(''), jdecode('%2F6943%2F14001.html'), 'true',[],'',''],
		['PAGE','21522',jdecode('Aromamassage'),jdecode(''), jdecode('%2F6943%2F21522.html'), 'true',[],'',''],
		['PAGE','21301',jdecode('+++++++Kursdaten'),jdecode(''), jdecode('%2F6943%2F21301.html'), 'true',[],'',''],
		['PAGE','12301',jdecode('Ennearom'),jdecode(''), jdecode('%2F6943%2F12301.html'), 'true',[],'',''],
		['PAGE','10222',jdecode('+++++++Kursdaten'),jdecode(''), jdecode('%2F6943%2F10222.html'), 'true',[],'',''],
		['PAGE','14264',jdecode('Wickel+und+Auflagen'),jdecode(''), jdecode('%2F6943%2F14264.html'), 'true',[],'',''],
		['PAGE','14043',jdecode('+++++++Kursdaten'),jdecode(''), jdecode('%2F6943%2F14043.html'), 'true',[],'',''],
		['PAGE','10243',jdecode('Ennearom+II'),jdecode(''), jdecode('%2F6943%2F10243.html'), 'false',[],'',''],
		['PAGE','44501',jdecode('Klassische+Massage'),jdecode(''), jdecode('%2F6943%2F44501.html'), 'false',[],'',''],
		['PAGE','44522',jdecode('++++++Kursdaten'),jdecode(''), jdecode('%2F6943%2F44522.html'), 'false',[],'',''],
		['PAGE','22701',jdecode('Partnermassage'),jdecode(''), jdecode('%2F6943%2F22701.html'), 'true',[],'',''],
		['PAGE','22722',jdecode('+++++++Kursdaten'),jdecode(''), jdecode('%2F6943%2F22722.html'), 'true',[],'',''],
		['PAGE','22743',jdecode('R%C3%BCcken-Nacken-Massage'),jdecode(''), jdecode('%2F6943%2F22743.html'), 'true',[],'',''],
		['PAGE','22764',jdecode('+++++++Kursdaten'),jdecode(''), jdecode('%2F6943%2F22764.html'), 'true',[],'',''],
		['PAGE','40001',jdecode('Lithotherapie'),jdecode(''), jdecode('%2F6943%2F40001.html'), 'false',[],'',''],
		['PAGE','40301',jdecode('+++++++Kursdaten'),jdecode(''), jdecode('%2F6943%2F40301.html'), 'false',[],'','']
	],'',''],
	['PAGE','6922',jdecode('Praxis'),jdecode(''), jdecode('%2F6922%2Findex.html'), 'true',[ 
		['PAGE','9201',jdecode('Klassische+Massage'),jdecode(''), jdecode('%2F6922%2F9201.html'), 'true',[],'',''],
		['PAGE','11101',jdecode('Fussreflexzonenmassage'),jdecode(''), jdecode('%2F6922%2F11101.html'), 'true',[],'',''],
		['PAGE','21001',jdecode('Kr%C3%A4uterstempelmassage'),jdecode(''), jdecode('%2F6922%2F21001.html'), 'true',[],'',''],
		['PAGE','9243',jdecode('Manuelle+Lymphdrainage'),jdecode(''), jdecode('%2F6922%2F9243.html'), 'true',[],'',''],
		['PAGE','9264',jdecode('SwisStone-Massage'),jdecode(''), jdecode('%2F6922%2F9264.html'), 'true',[],'',''],
		['PAGE','9285',jdecode('Lomi+Lomi+Nui+-+Massage'),jdecode(''), jdecode('%2F6922%2F9285.html'), 'true',[],'',''],
		['PAGE','9901',jdecode('Preise'),jdecode(''), jdecode('%2F6922%2F9901.html'), 'true',[],'','']
	],'',''],
	['PAGE','23701',jdecode('Person'),jdecode(''), jdecode('%2F23701.html'), 'true',[],'',''],
	['PAGE','7901',jdecode('Kontakt+%26+Anmeldung'),jdecode(''), jdecode('%2F7901.html'), 'true',[],'','']];
var siteelementCount=41;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='333F65';
theSitetree.keyvisualId='1737';
theSitetree.keyvisualName='blumen.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='355';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='333F65';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'333F65',
				keyvisualId: 	'1737',
				keyvisualName: 	'blumen.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'355',
				contentColor: 	'FFFFFF',
				contentBGColor: '333F65',
				a_color: 		'333F65',
				b_color: 		'040507',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6201',
internalId:  '',
customField: '20100409-164646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20100202-220732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6943',
internalId:  '',
customField: '20100508-210009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6922',
internalId:  '',
customField: '20090814-161843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12301',
internalId:  '',
customField: '20100218-203503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7901',
internalId:  '',
customField: '20090814-162153'
};
webappMappings['7008']=webappMappings['7008-6774']={
webappId:    '7008',
documentId:  '7901',
internalId:  '6774',
customField: 'language:de;country:CH;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14801',
internalId:  '',
customField: '20100213-100125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9201',
internalId:  '',
customField: '20090814-112717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10222',
internalId:  '',
customField: '20120120-161607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11101',
internalId:  '',
customField: '20091023-203724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9243',
internalId:  '',
customField: '20090814-112844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9264',
internalId:  '',
customField: '20091214-213559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9285',
internalId:  '',
customField: '20090814-113233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10243',
internalId:  '',
customField: '20090814-145414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20120216-221151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14264',
internalId:  '',
customField: '20100215-205119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14043',
internalId:  '',
customField: '20120210-140158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14022',
internalId:  '',
customField: '20120208-205658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21501',
internalId:  '',
customField: '20120216-221109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21322',
internalId:  '',
customField: '20100213-101516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15501',
internalId:  '',
customField: '20100312-134230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16001',
internalId:  '',
customField: '20100217-212040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16022',
internalId:  '',
customField: '20120123-223809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21001',
internalId:  '',
customField: '20100202-220459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20100214-202833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16722',
internalId:  '',
customField: '20111027-210232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18801',
internalId:  '',
customField: '20100213-101421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18822',
internalId:  '',
customField: '20120208-205756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19301',
internalId:  '',
customField: '20100212-220046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19322',
internalId:  '',
customField: '20120206-151428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21522',
internalId:  '',
customField: '20100217-212141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21301',
internalId:  '',
customField: '20120216-221504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22701',
internalId:  '',
customField: '20100515-213056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22722',
internalId:  '',
customField: '20111223-113848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22743',
internalId:  '',
customField: '20100515-213851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22764',
internalId:  '',
customField: '20120216-221552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23701',
internalId:  '',
customField: '20100209-204352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40001',
internalId:  '',
customField: '20101114-221942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40301',
internalId:  '',
customField: '20110123-225533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44501',
internalId:  '',
customField: '20110329-204457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44522',
internalId:  '',
customField: '20110329-204457'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW330INEGHA';
var companyName   = 'Rerum+Naturalis';
var htmlTitle	  = '';
var metaKeywords  = 'Klassische+Massage%2C+Manuelle+Lymphdrainage%2C+Aromatherapie%2C+Fussreflexzonen-Massage%2C+Dr.Gerhard+Klaus%2C+Ennearom%2C+Kurse%2C+Weiterbildung%2C+Ausbildung%2C+Lomi+Lomi+Nui%2C+Stone+Massage%2C+Erwachsenenbildung%2C+Rerum+Naturalis%2C+Jona%2C+EMR';
var metaContents  = 'Klassische+Massage%2C+Manuelle+Lymphdrainage%2C+Aromatherapie%2C+Fussreflexzonen-Massage%2C+Dr.Gerhard+Klaus%2C+Ennearom%2C+Kurse%2C+Weiterbildung%2C+Ausbildung%2C+Lomi+Lomi+Nui%2C+Stone+Massage%2C+Erwachsenenbildung%2C+Rerum+Naturalis%2C+Jona%2C+EMR';
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();
};

