/* [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','401',jdecode('SaNata-Beratung'),jdecode(''), jdecode('%2F401.html'), 'true',[],'',''],
	['PAGE','186701',jdecode('%C3%BCber+uns'),jdecode(''), jdecode('%2F186701.html'), 'true',[],'',''],
	['PAGE','5101',jdecode('Dienstleistungen+'),jdecode(''), jdecode('%2F5101.html'), 'false',[],'',''],
	['PAGE','170701',jdecode('Wellnessbehandlungen+'),jdecode(''), jdecode('%2F170701.html'), 'false',[],'',''],
	['PAGE','71201',jdecode('Workshop-Termine'),jdecode(''), jdecode('%2F71201.html'), 'false',[],'',''],
	['PAGE','317001',jdecode('Online-Shop+24h'),jdecode(''), jdecode('%2F317001.html'), 'true',[],'',''],
	['PAGE','292001',jdecode('Produkt-Informationen'),jdecode(''), jdecode('%2F292001.html'), 'false',[],'',''],
	['PAGE','295301',jdecode('Aktionen+und+Angebote'),jdecode(''), jdecode('%2F295301.html'), 'false',[],'',''],
	['PAGE','90601',jdecode('Kinder+Spezial'),jdecode(''), jdecode('%2F90601.html'), 'false',[],'',''],
	['PAGE','7301',jdecode('Die+Pflanze+-+Aloe+Vera'),jdecode(''), jdecode('%2F7301.html'), 'true',[],'',''],
	['PAGE','31785',jdecode('Empfehlungs-Marketing+'),jdecode(''), jdecode('%2F31785.html'), 'true',[],'',''],
	['PAGE','5122',jdecode('Team+Info'),jdecode(''), jdecode('%2F5122.html'), 'false',[],'',''],
	['PAGE','5164',jdecode('Kunden+Login'),jdecode(''), jdecode('%2F5164%2Findex.html'), 'false',[ 
		['PAGE','200201',jdecode('Online-Shop'),jdecode(''), jdecode('%2F5164%2F200201.html'), 'true',[],'',''],
		['PAGE','109301',jdecode('Nahrungserg%C3%A4nzung'),jdecode(''), jdecode('%2F5164%2F109301.html'), 'true',[],'',''],
		['PAGE','109322',jdecode('K%C3%B6rperpflege+%2F+Hautpflege'),jdecode(''), jdecode('%2F5164%2F109322.html'), 'true',[],'',''],
		['PAGE','109343',jdecode('Gesichtspflege'),jdecode(''), jdecode('%2F5164%2F109343.html'), 'true',[],'',''],
		['PAGE','109801',jdecode('Spar-Touch-Boxen'),jdecode(''), jdecode('%2F5164%2F109801.html'), 'true',[],'',''],
		['PAGE','109822',jdecode('Tiere'),jdecode(''), jdecode('%2F5164%2F109822.html'), 'true',[],'',''],
		['PAGE','31764',jdecode('Aktionen'),jdecode(''), jdecode('%2F5164%2F31764.html'), 'true',[],'',''],
		['PAGE','31743',jdecode('Tipps'),jdecode(''), jdecode('%2F5164%2F31743.html'), 'true',[],'','']
	],'',''],
	['PAGE','31890',jdecode('Kontakt'),jdecode(''), jdecode('%2F31890%2Findex.html'), 'true',[ 
		['PAGE','5801',jdecode('Ihr+Weg+zu+uns'),jdecode(''), jdecode('%2F31890%2F5801.html'), 'true',[],'',''],
		['PAGE','24401',jdecode('Rechtliche+Hinweise'),jdecode(''), jdecode('%2F31890%2F24401.html'), 'true',[],'',''],
		['PAGE','24422',jdecode('Impressum'),jdecode(''), jdecode('%2F31890%2F24422.html'), 'true',[],'','']
	],'','']];
var siteelementCount=25;
theSitetree.topTemplateName='Brush';
theSitetree.paletteFamily='8EBF7B';
theSitetree.keyvisualId='11942';
theSitetree.keyvisualName='kv_11942.jpg';
theSitetree.fontsetId='33211';
theSitetree.graphicsetId='14101';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
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: 			'Brush',
				paletteFamily: 	'8EBF7B',
				keyvisualId: 	'11942',
				keyvisualName: 	'kv_11942.jpg',
				fontsetId: 		'33211',
				graphicsetId: 	'14101',
				contentColor: 	'000000',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20110927-190538'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '5801',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186701',
internalId:  '',
customField: '20120217-190312'
};
webappMappings['7008']=webappMappings['7008-1547']={
webappId:    '7008',
documentId:  '31785',
internalId:  '1547',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20120103-201528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '317001',
internalId:  '',
customField: '20120104-092953'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170701',
internalId:  '',
customField: '20100831-095757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71201',
internalId:  '',
customField: '20101014-204633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90601',
internalId:  '',
customField: '20110204-101229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '292001',
internalId:  '',
customField: '20110927-152827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '295301',
internalId:  '',
customField: '20110428-140540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20120104-125031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5122',
internalId:  '',
customField: '20110428-140426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31785',
internalId:  '',
customField: '20120103-200853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5164',
internalId:  '',
customField: '20081006-082548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '200201',
internalId:  '',
customField: '20081025-092255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109301',
internalId:  '',
customField: '20081025-095828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109322',
internalId:  '',
customField: '20070915-112040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109343',
internalId:  '',
customField: '20070915-112040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109801',
internalId:  '',
customField: '20070915-112614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109822',
internalId:  '',
customField: '20070915-120050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31764',
internalId:  '',
customField: '20070110-055752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31743',
internalId:  '',
customField: '20070322-150923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31890',
internalId:  '',
customField: '20110204-101552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20110218-133745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24401',
internalId:  '',
customField: '20081006-082244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24422',
internalId:  '',
customField: '20070120-074921'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0IN27XX';
var companyName   = 'SaNata+-+Beratung';
var htmlTitle	  = 'SaNata-Beratung+%3D+Gesundheit+f%C3%BCr+K%C3%B6rper%2C+Seele+und+Geist';
var metaKeywords  = 'Sanata%2C+SaNata%2C+Wetzikon%2C+Gesundheit%2C+Wellness%2C+Vitalit%EF%BF%BDt%2C+8620%2C+SaNata%2C+Beratung%2C+Sch%EF%BF%BDnheit%2C+Kosmetik%2C+Beauty%2C+Gesichtspflege%2C+Massage%2C+Honigmassage%2C+Vitalit%EF%BF%BDt%2C+Fittness%2C+Programm%2C+Nahrungserg%EF%BF%BDnzung%2C+Vitamine%2C+Abnehmen%2C+Cellulite%2C+Aloe+Vera%2C+Produkte%2C+Entspannen%2C+Erholung%2C+Wohlf%EF%BF%BDhlen%2C+Omega3%2C+Pflege%2C+Pflegeprodukte%2C+Honig%2C+Bienenprodukte%2C+Sonnencreme%2C+Masken%2C+Peeling%2C+Zahnpaste%2C+Schampoo%2C+Duschmittel%2C+Peeling%2C+Aloe+Saft%2C+Aloe+Vera+Konzentrat%2C+Aloe+Vera+Saft%2C+Deo%2C+Pillendose%2C+Augencreme%2C+Parfume%2C+Schminkset%2C+Schminken%2C+Gutschein%2C+Nett%2C+Manuela%2C+Gesundheit%2C+Seelsorge%2C+Entspannung%2C+Erholung%2C+Relaxen%2C+Gespr%EF%BF%BDche%2C+Zeitnehmen%2C+Kosmetika%2C+Pflegeprodukte%2C+Aloe%2C+FLP%2C+flp%2C+Honig%2C+';
var metaContents  = 'Sanata%2C+SaNata%2C+Wetzikon%2C+Gesundheit%2C+Wellness%2C+Vitalit%EF%BF%BDt%2C+8620%2C+SaNata%2C+Beratung%2C+Sch%EF%BF%BDnheit%2C+Kosmetik%2C+Beauty%2C+Gesichtspflege%2C+Massage%2C+Honigmassage%2C+Vitalit%EF%BF%BDt%2C+Programm%2C+Fitt%2C+Nahrungserg%EF%BF%BDnzung%2C+Vitamine%2C+Abnehmen%2C+Cellulite%2C+Aloe+Vera%2C+Produkte%2C+Entspannen%2C+Erholung%2C+Wohlf%EF%BF%BDhlen%2C+Omega3%2C+Pflege%2C+Pflegeprodukte%2C+Honig%2C+Bienenprodukte%2C+Sonnencreme%2C+Masken%2C+Peeling%2C+Zahnpaste%2C+Schampoo%2C+Duschmittel%2C+Peeling%2C+Aloe+Saft%2C+Aloe+Vera+Konzentrat%2C+Aloe+Vera+Saft%2C+Deo%2C+Pillendose%2C+Augencreme%2C+Parfume%2C+Schminkset%2C+Schminken%2C+Gutschein%2C+Nett%2C+Manuela%2C+Gesundheit%2C+Seelsorge%2C+Entspannung%2C+Erholung%2C+Relaxen%2C+Gespr%EF%BF%BDche%2C+Zeitnehmen%2C+Kosmetika%2C+Pflegeprodukte%2C+Aloe%2C+FLP%2C+flp%2C+Honig%2C+';
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();
};

