/* [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','4556',jdecode('Willkommen'),jdecode(''),'/4556.html','true',[],'',''],
	['PAGE','9172',jdecode('Grundlagen'),jdecode(''),'/9172.html','true',[],'',''],
	['PAGE','9334',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/9334.html','true',[],'',''],
	['PAGE','9199',jdecode('Dienstleistungsangebot'),jdecode(''),'/9199/index.html','true',[ 
		['PAGE','9253',jdecode('Beratung+f%C3%BCr+Firmen'),jdecode(''),'/9199/9253.html','true',[],'',''],
		['PAGE','38691',jdecode('Beratung+f%C3%BCr+Private'),jdecode(''),'/9199/38691.html','true',[],'','']
	],'',''],
	['PAGE','9280',jdecode('Seminare+%26+Vortr%C3%A4ge'),jdecode(''),'/9280.html','true',[],'',''],
	['PAGE','9307',jdecode('Kontakt'),jdecode(''),'/9307/index.html','true',[ 
		['PAGE','14602',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/9307/14602.html','false',[],'','']
	],'','']];
var siteelementCount=9;
theSitetree.topTemplateName='Meeting';
theSitetree.paletteFamily='F4F5BF';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10347';
theSitetree.graphicsetId='10464';
theSitetree.contentColor='6067C4';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Meeting',
				paletteFamily: 	'F4F5BF',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10347',
				graphicsetId: 	'10464',
				contentColor: 	'6067C4',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'10',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4556',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9172',
internalId:  '',
customField: '20091207-100616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4556',
internalId:  '',
customField: '20100508-170525'
};
webappMappings['7008']=webappMappings['7008-2678']={
webappId:    '7008',
documentId:  '9307',
internalId:  '2678',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9334',
internalId:  '',
customField: '20100508-170934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9199',
internalId:  '',
customField: '20100508-171038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9253',
internalId:  '',
customField: '20091207-101009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38691',
internalId:  '',
customField: '20100508-171129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9280',
internalId:  '',
customField: '20091207-101148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9307',
internalId:  '',
customField: '20100511-092547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14602',
internalId:  '',
customField: '20040913-110100'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INX3R9';
var companyName   = 'Analysieren+-+Fokussieren+-+Realisieren';
var htmlTitle	  = 'Traumbild%2C+Tiefenpsychologische+-+Philosophische+Praxis%2C+Traumdeutung%2C+Beratung+und+Coaching';
var metaKeywords  = 'Training%2C+Praxistaetigkeit+als+Tiefenpsychologe+nach+Walter+Odermatt%2C+Psychotherapie%2C+Persoenlichkeitsentfaltung%2C+Traumdeutung%2C+Bilderdeutung%2CEinzelberatung%2C+Paarberatung%2C+Eheberatung%2C+Konfliktloesung%2C+Mediation%2C+Kontliktbewaeltigung%2C+Familienberatung%2C+Erziehungsberatung%2C+Ursachenabklaerung+psychisch+bedingter+Erkrankungen%2C+Therapie+psychsomatischer+Leiden%2C+Schmerzen+und+Phobien%2C+Vortraege+und+Seminare%2C+Persoenlichkeitsentwicklung%2C+Krise%2C+Stress%2CBurnout%2C+BGM%2C+Betriebsgesundheitsmanagement%2C+Traeume%2C+Traumdeutung%2C+Mediation%2C+Fuehrungsseminare%2C+Coaching';
var metaContents  = 'meta+name%3Dverify-v1+content%3DJqtZRBUtoBQrP9Wnm3Qd9VkXBvG8Qd5YAtC4x3Hsys0%3D+%2F+++Praxistaetigkeit+als+Tiefenpsychologe+nach+Walter+Odermatt%2C+Psychotherapie%2C+Persoenlichkeitsentfaltung%2C+Traumdeutung%2C+Bilderdeutung%2CEinzelberatung%2C+Paarberatung%2C+Eheberatung%2C+Konfliktloesung%2C+Mediation%2C+Kontliktbewaeltigung%2C+Familienberatung%2C+Erziehungsberatung%2C+Ursachenabklaerung+psychisch+bedingter+Erkrankungen%2C+Therapie+psychsomatischer+Leiden%2C+Schmerzen+und+Phobien%2C+Vortraege+und+Seminare%2C+Persoenlichkeitsentwicklung%2C+Krise%2C+Stress%2CBurnout%2C+BGM%2C+Betriebsgesundheitsmanagement%2C+Traeume%2C+Traumdeutung%2C+Mediation%2C+Training%2C+Seminare%2C+Fuehrungsseminare%2C+Coaching%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();
};

