/* [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','1201',jdecode('Home'),jdecode(''),'/1201.html','true',[],'',''],
	['PAGE','1252',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/1252/index.html','true',[ 
		['PAGE','33101',jdecode('Das+Unternehmen'),jdecode(''),'/1252/33101.html','true',[],'',''],
		['PAGE','33122',jdecode('Kernkompetenzen'),jdecode(''),'/1252/33122.html','true',[],'',''],
		['PAGE','39001',jdecode('Unsere+Philosophie'),jdecode(''),'/1252/39001.html','true',[],'',''],
		['PAGE','39022',jdecode('Das+Management'),jdecode(''),'/1252/39022.html','true',[],'','']
	],'',''],
	['PAGE','5401',jdecode('Angebote'),jdecode(''),'/5401/index.html','true',[ 
		['PAGE','5422',jdecode('%C3%96ffentl.+Verkehr'),jdecode(''),'/5401/5422.html','true',[],'',''],
		['PAGE','12301',jdecode('Tourismus'),jdecode(''),'/5401/12301.html','true',[],'',''],
		['PAGE','5464',jdecode('NPO'),jdecode(''),'/5401/5464.html','true',[],'','']
	],'',''],
	['PAGE','5569',jdecode('Aktuelles'),jdecode(''),'/5569/index.html','true',[ 
		['PAGE','10601',jdecode('News+aus+dem+%C3%B6V'),jdecode(''),'/5569/10601.html','true',[],'',''],
		['PAGE','10622',jdecode('Tourismus+aktuell'),jdecode(''),'/5569/10622.html','true',[],'',''],
		['PAGE','10643',jdecode('Veranstaltungstipp'),jdecode(''),'/5569/10643.html','true',[],'',''],
		['PAGE','10664',jdecode('CD-Tipp'),jdecode(''),'/5569/10664.html','true',[],'',''],
		['PAGE','10685',jdecode('Buchtipp'),jdecode(''),'/5569/10685.html','true',[],'',''],
		['PAGE','16801',jdecode('Film-+und+TV-Tipp'),jdecode(''),'/5569/16801.html','true',[],'',''],
		['PAGE','17601',jdecode('Radiotipp'),jdecode(''),'/5569/17601.html','true',[],'',''],
		['PAGE','10706',jdecode('Ausstellungstipp'),jdecode(''),'/5569/10706.html','true',[],'',''],
		['PAGE','10727',jdecode('F%C3%BCr+Sie+entdeckt'),jdecode(''),'/5569/10727.html','true',[],'',''],
		['PAGE','33164',jdecode('Neuigkeiten'),jdecode(''),'/5569/33164.html','true',[],'',''],
		['PAGE','33185',jdecode('Termine'),jdecode(''),'/5569/33185.html','true',[],'',''],
		['PAGE','33206',jdecode('Referenzen'),jdecode(''),'/5569/33206.html','true',[],'','']
	],'',''],
	['PAGE','5485',jdecode('Aktuelle+Kurse'),jdecode(''),'/5485/index.html','true',[ 
		['PAGE','7501',jdecode('Kommunikation'),jdecode(''),'/5485/7501.html','true',[],'',''],
		['PAGE','9201',jdecode('F%C3%BChrung'),jdecode(''),'/5485/9201.html','true',[],'',''],
		['PAGE','39043',jdecode('F%C3%BChrung+Autogewerbe'),jdecode(''),'/5485/39043.html','true',[],'',''],
		['PAGE','21701',jdecode('Teamleader+'),jdecode(''),'/5485/21701.html','true',[],'',''],
		['PAGE','5506',jdecode('%C3%96ffentl.+Verkehr'),jdecode(''),'/5485/5506.html','true',[],'',''],
		['PAGE','18601',jdecode('%C3%B6V-F%C3%BChrung+1'),jdecode(''),'/5485/18601.html','true',[],'',''],
		['PAGE','18622',jdecode('%C3%B6V-F%C3%BChrung+2'),jdecode(''),'/5485/18622.html','true',[],'',''],
		['PAGE','22301',jdecode('Fahrgastbetreuung'),jdecode(''),'/5485/22301.html','true',[],'',''],
		['PAGE','27501',jdecode('%C3%B6V-Beschwerden'),jdecode(''),'/5485/27501.html','true',[],'',''],
		['PAGE','5527',jdecode('Tourismus'),jdecode(''),'/5485/5527.html','true',[],'',''],
		['PAGE','29301',jdecode('Kulturmanagement+1'),jdecode(''),'/5485/29301.html','true',[],'',''],
		['PAGE','15601',jdecode('Kulturmanagement+2'),jdecode(''),'/5485/15601.html','true',[],'',''],
		['PAGE','34201',jdecode('Lehrstellensuche'),jdecode(''),'/5485/34201.html','true',[],'','']
	],'',''],
	['PAGE','17201',jdecode('Stellenmarkt'),jdecode(''),'/17201.html','true',[],'',''],
	['PAGE','5590',jdecode('Unsere+Kunden'),jdecode(''),'/5590.html','true',[],'',''],
	['PAGE','5611',jdecode('Kunden-Feedback'),jdecode(''),'/5611.html','true',[],'',''],
	['PAGE','5632',jdecode('Pinnwand'),jdecode(''),'/5632.html','true',[],'',''],
	['PAGE','23201',jdecode('Kooperationen'),jdecode(''),'/23201/index.html','true',[ 
		['PAGE','24801',jdecode('moveQuality'),jdecode(''),'/23201/24801.html','true',[],'','']
	],'',''],
	['PAGE','14001',jdecode('Forum'),jdecode(''),'/14001.html','true',[],'',''],
	['PAGE','14406',jdecode('G%C3%A4stebuch'),jdecode(''),'/14406/index.html','true',[ 
		['PAGE','14401',jdecode('Eintr%C3%A4ge'),jdecode(''),'/14406/14401.html','false',[],'','']
	],'',''],
	['PAGE','23501',jdecode('Links'),jdecode(''),'/23501.html','true',[],'',''],
	['PAGE','5653',jdecode('Kontakt%2C+Adresse'),jdecode(''),'/5653/index.html','true',[ 
		['PAGE','33248',jdecode('So+finden+Sie+uns'),jdecode(''),'/5653/33248.html','true',[],'','']
	],'',''],
	['PAGE','14801',jdecode('Anfahrt'),jdecode(''),'/14801.html','true',[],'',''],
	['PAGE','33353',jdecode('Jobs'),jdecode(''),'/33353.html','true',[],'',''],
	['PAGE','39232',jdecode('Tipps+%26+Tricks'),jdecode(''),'/39232.html','true',[],'','']];
var siteelementCount=52;
theSitetree.topTemplateName='Orbit';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='174';
theSitetree.graphicsetId='202';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='003366';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Orbit',
				paletteFamily: 	'003366',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'174',
				graphicsetId: 	'202',
				contentColor: 	'FFFFFF',
				contentBGColor: '003366',
				a_color: 		'003366',
				b_color: 		'336699',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1003']=webappMappings['1003-abw1x0inemsm118131962a6']={
webappId:    '1003',
documentId:  '14001',
internalId:  'abw1x0inemsm118131962a6',
customField: 'de:CH:'
};
webappMappings['1002']=webappMappings['1002-14406abw1x0inemsm']={
webappId:    '1002',
documentId:  '14406',
internalId:  '14406abw1x0inemsm',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1201',
internalId:  '',
customField: '20080213-143238'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '14801',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1252',
internalId:  '',
customField: '20080525-115216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33101',
internalId:  '',
customField: '20080711-122357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33122',
internalId:  '',
customField: '20080711-123418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39001',
internalId:  '',
customField: '20081004-213246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39022',
internalId:  '',
customField: '20081004-213246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20080213-165041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5422',
internalId:  '',
customField: '20080213-115219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12301',
internalId:  '',
customField: '20080213-165119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5464',
internalId:  '',
customField: '20080213-144755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5569',
internalId:  '',
customField: '20080213-163022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10601',
internalId:  '',
customField: '20100420-165347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10622',
internalId:  '',
customField: '20080213-144306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10643',
internalId:  '',
customField: '20100613-215524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10664',
internalId:  '',
customField: '20080213-101602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10685',
internalId:  '',
customField: '20080213-110534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16801',
internalId:  '',
customField: '20080213-161257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20080213-162425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10706',
internalId:  '',
customField: '20080213-160507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10727',
internalId:  '',
customField: '20080213-160953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33164',
internalId:  '',
customField: '20080701-192014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33185',
internalId:  '',
customField: '20080701-192014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33206',
internalId:  '',
customField: '20080701-192014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5485',
internalId:  '',
customField: '20080212-091445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7501',
internalId:  '',
customField: '20081004-210910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9201',
internalId:  '',
customField: '20081004-211027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39043',
internalId:  '',
customField: '20100215-101248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21701',
internalId:  '',
customField: '20100501-134804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5506',
internalId:  '',
customField: '20080218-101909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20100215-101551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18622',
internalId:  '',
customField: '20100215-101952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22301',
internalId:  '',
customField: '20100215-102100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27501',
internalId:  '',
customField: '20100215-102202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5527',
internalId:  '',
customField: '20080214-113109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29301',
internalId:  '',
customField: '20100215-102615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20100215-102913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34201',
internalId:  '',
customField: '20100215-103124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17201',
internalId:  '',
customField: '20100613-215810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5590',
internalId:  '',
customField: '20100613-220500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5611',
internalId:  '',
customField: '20080213-152043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5632',
internalId:  '',
customField: '20080213-150017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23201',
internalId:  '',
customField: '20080219-081535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24801',
internalId:  '',
customField: '20080219-151709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20080213-150934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14406',
internalId:  '',
customField: '20080213-150832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14401',
internalId:  '',
customField: '20080213-150832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23501',
internalId:  '',
customField: '20080515-103005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5653',
internalId:  '',
customField: '20080721-114355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33248',
internalId:  '',
customField: '20080721-115334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14801',
internalId:  '',
customField: '20080213-151635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33353',
internalId:  '',
customField: '20080701-192014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39232',
internalId:  '',
customField: '20081004-213246'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW1X0INEMSM';
var companyName   = 'Personalentwicklung+J%C3%BCrg+Nyffenegger';
var htmlTitle	  = 'Personalentwicklung+und+Kulturmanagement';
var metaKeywords  = '';
var metaContents  = '';
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();
};

