/* [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','4901',jdecode('Home'),jdecode(''),'/4901.html','true',[],'',''],
	['PAGE','4952',jdecode('Was+ist+Lomi+Lomi%3F'),jdecode(''),'/4952.html','true',[],'',''],
	['PAGE','4973',jdecode('Behandlungen'),jdecode(''),'/4973.html','true',[],'',''],
	['PAGE','4994',jdecode('Kunden-Feedbacks'),jdecode(''),'/4994.html','true',[],'',''],
	['PAGE','5015',jdecode('G%C3%A4stebuch'),jdecode(''),'/5015.html','true',[],'',''],
	['PAGE','5036',jdecode('%C3%9Cber+mich'),jdecode(''),'/5036.html','true',[],'',''],
	['PAGE','5057',jdecode('Kontakt'),jdecode(''),'/5057.html','true',[],'',''],
	['PAGE','5078',jdecode('Links'),jdecode(''),'/5078.html','true',[],'','']];
var siteelementCount=8;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='FF9F21';
theSitetree.keyvisualId='2224';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='364';
theSitetree.graphicsetId='418';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='FF9F21';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Enjoy',
				paletteFamily: 	'FF9F21',
				keyvisualId: 	'2224',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'364',
				graphicsetId: 	'418',
				contentColor: 	'A00000',
				contentBGColor: 'FF9F21',
				a_color: 		'FF9F21',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-5015abw330iner9h']={
webappId:    '1002',
documentId:  '5015',
internalId:  '5015abw330iner9h',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20090222-193809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4952',
internalId:  '',
customField: '20090222-223605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4973',
internalId:  '',
customField: '20100128-132020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5036',
internalId:  '',
customField: '20090222-194738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5015',
internalId:  '',
customField: '20090222-194641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5057',
internalId:  '',
customField: '20090222-165449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4994',
internalId:  '',
customField: '20090222-195755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5078',
internalId:  '',
customField: '20090512-102350'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4901',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW330INER9H';
var companyName   = 'Lomi+Lomi+Energy';
var htmlTitle	  = 'Lomi+Lomi+Energy+%2F+Brigitte+Nebel';
var metaKeywords  = 'Lomi+Lomi+Nui%2C+Lomi+Lomi%2C+Massage%2C+Hawaiianische+Massage%2C+Hawaii%2C+Energie%2C+Liebe%2C+Kraft%2C+Schmerz%2C+Angst%2C+Freude%2C+Gl%3Fck%2C+Blockade%2C+Entspannung%2C+Kurzurlaub%2C+Meditation%2C+Energiefluss%2C+Solothurn%2C+B%3Fren%2C+Praxis%2C+Brigitte+Nebel%2C+nerv%3Fs%2C+angespannt%2C+Schlafst%3Frungen%2C+Unruhe%2C+R%3Fckenschmerzen%2C+Nackenschmerzen%2C+Kopfschmerzen%2C+Pubert%3Ft%2C+loslassen%2C+Burnout%2C+Seele%2C+Geist%2C+K%3Frper%2C+Selbstheilungskraft%2C+H%3Fnde%2C+Heilen%2C+Palmen%2C+l%3Fsen%2C+Reinigung%2C+Erneuerung%2C+Klarheit%2C+Ruhe%2C+Auftanken%2C+Wellness%2C+Gesundheit%2C+Selbstfindung%2Cdepression%2Cenergy';
var metaContents  = 'lomi+Lomi+Nui%2C+lomi+Lomi%2C+massage%2C+hawaiianische+massage%2C+hawaii%2C+energie%2C+liebe%2C+kraft%2C+schmerz%2C+angst%2C+freude%2C+gl%3Fck%2C+blockade%2C+bntspannung%2C+kurzurlaub%2C+meditation%2C+energiefluss%2C+solothurn%2C+b%3Fren%2C+praxis%2C+brigitte+nebel%2C+nerv%3Fs%2C+angespannt%2C+schlafst%3Fungen%2C+Unruhe%2C+r%3Fckenschmerzen%2C+nackenschmerzen%2C+kopfschmerzen%2C+pubert%3Ft%2C+loslassen%2C+burnout%2C+seele%2C+geist%2C+k%3Frper%2C+selbstheilungskraft%2C+h%3Fnde%2C+heilen%2C+palmen%2C+l%3Fsen%2C+reinigung%2C+erneuerung%2C+klarheit%2C+ruhe%2C+auftanken%2C+wellness%2C+gesundheit%2C+selbstfindung%2Cdepression%2Cenergy';
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();
};

