/* [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','5801',jdecode('Coaching'),jdecode(''),'/5801.html','true',[],'',''],
	['PAGE','6601',jdecode('Business+Coaching'),jdecode(''),'/6601.html','true',[],'',''],
	['PAGE','6622',jdecode('Burnout+Pr%C3%A4vention'),jdecode(''),'/6622.html','true',[],'',''],
	['PAGE','6643',jdecode('Kurse%2FWorkshops'),jdecode(''),'/6643.html','true',[],'',''],
	['PAGE','6664',jdecode('Lageplan'),jdecode(''),'/6664.html','true',[],'',''],
	['PAGE','6685',jdecode('Andr%C3%A9+Br%C3%A4ndli'),jdecode(''),'/6685.html','true',[],'',''],
	['PAGE','6706',jdecode('Claudia+G%C3%B6ldi'),jdecode(''),'/6706.html','true',[],'','']];
var siteelementCount=8;
theSitetree.topTemplateName='Draft';
theSitetree.paletteFamily='2D50A1';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10399';
theSitetree.graphicsetId='10611';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='2D50A1';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Draft',
				paletteFamily: 	'2D50A1',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10399',
				graphicsetId: 	'10611',
				contentColor: 	'FFFFFF',
				contentBGColor: '2D50A1',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D09868',
				e_color: 		'9E9E9F',
				f_color: 		'051E56',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20100523-101002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20091001-235815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20091001-235938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6622',
internalId:  '',
customField: '20091002-000051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6643',
internalId:  '',
customField: '20091027-205611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6685',
internalId:  '',
customField: '20101023-103454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6706',
internalId:  '',
customField: '20091001-235533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6664',
internalId:  '',
customField: '20090904-210615'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4901',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-1144']={
webappId:    '7008',
documentId:  '6685',
internalId:  '1144',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-1145']={
webappId:    '7008',
documentId:  '6706',
internalId:  '1145',
customField: 'language:de;country:CH;'
};
var canonHostname = 'webomat02.hostpoint.ch';
var accountId     = 'AHP340INVWPS';
var companyName   = 'coach+for+success';
var htmlTitle	  = 'coach-for-success';
var metaKeywords  = 'coach%2C+coaching%2C+Standorbestimmung%2C+Neuorientierung%2C+Burn-out%2C+Z%C3%BCrich%2C+Mentalcoaching%2C+Standortanalyse%2C+Beratung%2C+Lebensberatung%2C+Unternehmensberatung%2C+lounge%2C+coachinglounge%2C++coaching-lounge%2C+Krise%2C+Br%C3%A4ndli%2C+G%C3%B6ldi%2C+Midlife+Crisis%2C+success%2C+coachforsuccess%2C+coach-for-success%2C+Erfolg%2C+Mental%2C+Andr%C3%A9%2C+Claudia%2C+Andr%C3%A9+Br%C3%A4ndli%2C+Claudia+G%C3%B6ldi%2C+Neustart%2C+Neubeginn%2C+Lebensmitte%2C+Erfolgscoaching%2C+Erfolgscoach%2C+Businesscoaching%2C+Business+Coaching%2CBusinness-Coaching%2C+Kurse%2C+Kurs%2C+Entwicklung%2C+Seminar%2C+Seminare%2C+Entwicklung%2C+Zukunft%2C+Ziele%2C+Ziel%2C+Integral%2C+Integralcoach%2C+loslassen%2C+neustrarten%2C+Orientierung%2C+Neuorientierung%2C+Neustart%2C+ganzheitlich%2C+ganzheitliches+Coaching%2C+Stress%2C+Ver%C3%A4nderung%2C+Farb-und+Stilberatung%2C+Farb+und+Stilberatung%2C+Stilberatung%2C+Karriere%2C+Laufbahn%2C+Konflikt%2C+Cristian+Hofmann%2C+Brigitte+Albisser%2C+coach+4+success%2C+Success%2C+success%2C+Midlifecrisis.+Midlife+Crisis%2C+Kriese%2C+coaching-success%2C+successcoaching%2C+coaching+for+success%2C+supercoaching%2C+supercoach%2C+coachingforsuccess%2C+success-coach%2C+successcoach%2C+coach4you%2C+coachforyou%2C+coach-for-you%2C+coach4success%2C+coaching4success%2C+Coachingpoint%2C+Coaching-Point%2C+Standortbestimmung%2C++Neubeginn%2C+dresscoach%2C+erfolg%2C+erfolgreich%2C+abnehmen%2C+gewicht+verlieren%2C++reich%2C+reich+werden%2C+gl%C3%BCck%2C+sch%C3%B6nheit';
var metaContents  = 'Coaching%2C+Standortbestimmung%2C+Neuorientierung.+Als+professionelle+Coaches+begleiten+wir+Privatpersonen+sowie+kleine+und+mittlere+Unternehmen.+Ganzheitliches+Coaching+fuer+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();
};

