/* [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 theSitetree=[ 
	['PAGE','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','53701',jdecode('Angebot'),jdecode(''),'/53701/index.html','true',[ 
		['PAGE','5064',jdecode('Coaching+Infos'),jdecode(''),'/53701/5064.html','true',[],''],
		['PAGE','23264',jdecode('Coaching+Preise'),jdecode(''),'/53701/23264.html','true',[],''],
		['PAGE','23201',jdecode('Mental+Coaching+'),jdecode(''),'/53701/23201.html','true',[],''],
		['PAGE','47101',jdecode('Business+Coaching'),jdecode(''),'/53701/47101.html','true',[],''],
		['PAGE','47401',jdecode('Manager+Coaching'),jdecode(''),'/53701/47401.html','true',[],''],
		['PAGE','23243',jdecode('Kurse%2C+Spezialangebote'),jdecode(''),'/53701/23243.html','true',[],'']
	],''],
	['PAGE','452',jdecode('Team'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','5022',jdecode('Brigitte+Albisser'),jdecode(''),'/452/5022/index.html','true',[ 
			['PAGE','17901',jdecode('Brigitte+Albisser+%28Folgeseite%29'),jdecode(''),'/452/5022/17901.html','false',[],'']
		],'']
	],''],
	['PAGE','536',jdecode('Standort'),jdecode(''),'/536.html','true',[],'']];
var siteelementCount=12;
theSitetree.topTemplateName='Cuy';
theSitetree.paletteFamily='F7FDFD';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='385';
theSitetree.graphicsetId='438';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='F7FDFD';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				name: 			'Cuy',
				paletteFamily: 	'F7FDFD',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'385',
				graphicsetId: 	'438',
				contentColor: 	'666666',
				contentBGColor: 'F7FDFD',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'F7FDFD',
				b_color: 		'E4E5C0',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20090904-182516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53701',
internalId:  '',
customField: '20090723-184515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5064',
internalId:  '',
customField: '20090723-180834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23264',
internalId:  '',
customField: '20090904-182617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23201',
internalId:  '',
customField: '20090723-183801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47101',
internalId:  '',
customField: '20090904-182808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47401',
internalId:  '',
customField: '20090904-182925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23243',
internalId:  '',
customField: '20090904-183616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20090904-183703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5022',
internalId:  '',
customField: '20081121-191158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17901',
internalId:  '',
customField: '20071114-140752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '536',
internalId:  '',
customField: '20090904-183918'
};
webappMappings['7008']=webappMappings['7008-4765']={
webappId:    '7008',
documentId:  '5022',
internalId:  '4765',
customField: 'language:de;country:CH;'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW1X0INEC1B';
var companyName   = 'coaching+lounge';
var htmlTitle	  = 'Coaching+-+f%C3%BCr+deine+pers%C3%B6nliche+und+gesch%C3%A4ftliche+Entwicklung';
var metaKeywords  = 'coaching-lounge%2C+Coaching+Lounge%2C+Coaching-Lounge%2C+Coach%2C+Coaching%2C+Mental+Coach%2C+Mentalcoaching%2C+Mental+Coaching%2C+Mental%2C+Mentaltraining%2C+Mental+Training%2C+Mental+Trainer%2C+Business+Coach%2C+Businesscoach%2C+Integral+Coach%2C+Integrales+Coaching%2C+Integralcoach%2C+Lounge%2C+Lebensberater%2C+Lebensberatung%2C+Kurse%2C+Neuorientierung%2C+Personalentwicklung%2C+loslassen%2C+Firmenkurs%2C+Firmenkurse%2C+Seminar%2C+Seminare%2C+Selbstmotivation%2C+Erfolg%2C+Selbstmanagement%2C+Motivationstraining%2C+Emotionen+trainieren%2C+Emotionen+ausgleichen%2C+Pers%EF%BF%BDnlichkeitsentwicklung%2C+pers%EF%BF%BDnlicher+Prozess%2C+pers%EF%BF%BDnliche+Entwicklung%2C+Burnout%2C+Ziele+erreichen%2C+Mentalarbeit%2C+mentales+Arbeiten%2C+Brigitte+Albisser%2C++Manager+Coaching%2C+F%EF%BF%BDhrungscoaching%2C+Gesundheit%2C+Teamentwicklung%2C+Teambildung%2C+Teambuilding%2C+Karrierecoaching%2C+Karriere+Coaching%2C+Laufbahnberatung%2C+coachfinder%2C+Coach+finden%2C+F%EF%BF%BDhrungsprobleme%2C+Management+Coaching%2C+Management%2C+Integral%2C+Ganzheitlich%2C+Ganzheitliches+Coaching%2C+Konfliktmanagement%2C+Konflikt-Coaching%2C+Konflikt-Coach%2C+Teamkonflikt%2C+Stress%2C+Stresscoaching%2C+Stress+Coach%2C+Entscheidungsfindung%2C+Entscheidungshilfe%2C+Abnehmen%2C+Lebensfreude%2C+Ver%EF%BF%BDnderung';
var metaContents  = 'Ganzheitliches+Coaching+im+Lounge-Ambiente+in+Z%EF%BF%BDrich+West.+++++F%EF%BF%BDr+deine+Business-+und+Lebensthemen+%3A+Life+Coaching%2C+Manager+Coaching%2C+Business+Coaching%2C+Mentaltraining%2C++Kurse%2C+Seminare';
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();
};
