/* [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','132255',jdecode('GR%C3%9CEZI'),jdecode(''), jdecode('%2F132255%2Findex.html'), 'true',[ 
		['PAGE','80159',jdecode('SITEMAP'),jdecode(''), jdecode('%2F132255%2F80159.html'), 'true',[],'','']
	],'',''],
	['PAGE','1270',jdecode('SCC'),jdecode(''), jdecode('%2F1270%2Findex.html'), 'true',[ 
		['PAGE','3049',jdecode('DIALOGPARTNER'),jdecode(''), jdecode('%2F1270%2F3049.html'), 'true',[],'',''],
		['PAGE','3157',jdecode('FOCUS'),jdecode(''), jdecode('%2F1270%2F3157.html'), 'true',[],'',''],
		['PAGE','14255',jdecode('TOOLS'),jdecode(''), jdecode('%2F1270%2F14255.html'), 'true',[],'',''],
		['PAGE','12049',jdecode('REFERENZPROJEKTE'),jdecode(''), jdecode('%2F1270%2F12049.html'), 'true',[],'',''],
		['PAGE','43416',jdecode('PUBLIKATIONEN'),jdecode(''), jdecode('%2F1270%2F43416.html'), 'true',[],'','']
	],'',''],
	['PAGE','107298',jdecode('EXPERTEN'),jdecode(''), jdecode('%2F107298%2Findex.html'), 'true',[ 
		['PAGE','14758',jdecode('PROFILE'),jdecode(''), jdecode('%2F107298%2F14758.html'), 'true',[],'',''],
		['PAGE','80240',jdecode('A.+Conradin+Schwarzenbach'),jdecode(''), jdecode('%2F107298%2F80240.html'), 'true',[],'',''],
		['PAGE','20591',jdecode('Alfred+M.+Schwarzenbach'),jdecode(''), jdecode('%2F107298%2F20591.html'), 'true',[],'',''],
		['PAGE','11163',jdecode('Elisabeth+A.+Schwarzenbach'),jdecode(''), jdecode('%2F107298%2F11163.html'), 'true',[],'','']
	],'',''],
	['PAGE','80186',jdecode('NEU'),jdecode(''), jdecode('%2F80186%2Findex.html'), 'true',[ 
		['PAGE','129554',jdecode('AMS'),jdecode(''), jdecode('%2F80186%2F129554.html'), 'true',[],'',''],
		['PAGE','131295',jdecode('BILDER+-+WEIN'),jdecode(''), jdecode('%2F80186%2F131295.html'), 'true',[],'',''],
		['PAGE','131730',jdecode('ART+-+VIN'),jdecode(''), jdecode('%2F80186%2F131730.html'), 'true',[],'',''],
		['PAGE','131739',jdecode('ART+-+WINE'),jdecode(''), jdecode('%2F80186%2F131739.html'), 'true',[],'',''],
		['PAGE','129563',jdecode('EAS'),jdecode(''), jdecode('%2F80186%2F129563.html'), 'true',[],'',''],
		['PAGE','130893',jdecode('Fotobuch'),jdecode(''), jdecode('%2F80186%2F130893.html'), 'true',[],'','']
	],'',''],
	['PAGE','130058',jdecode('Chez+MAM'),jdecode(''), jdecode('%2F130058.html'), 'true',[],'',''],
	['PAGE','4502',jdecode('KONTAKT'),jdecode(''), jdecode('%2F4502.html'), 'true',[],'',''],
	['PAGE','34623',jdecode('ENGLISH+VERSION'),jdecode(''), jdecode('%2F34623%2Findex.html'), 'true',[ 
		['PAGE','80267',jdecode('SITEMAP'),jdecode(''), jdecode('%2F34623%2F80267.html'), 'true',[],'',''],
		['PAGE','38787',jdecode('DIALOGUE+PARTNERS'),jdecode(''), jdecode('%2F34623%2F38787.html'), 'true',[],'',''],
		['PAGE','38652',jdecode('FOCUS'),jdecode(''), jdecode('%2F34623%2F38652.html'), 'true',[],'',''],
		['PAGE','38733',jdecode('TOOLS'),jdecode(''), jdecode('%2F34623%2F38733.html'), 'true',[],'',''],
		['PAGE','38760',jdecode('REFERENCES'),jdecode(''), jdecode('%2F34623%2F38760.html'), 'true',[],'',''],
		['PAGE','38868',jdecode('PUBLICATIONS'),jdecode(''), jdecode('%2F34623%2F38868.html'), 'true',[],'',''],
		['PAGE','38814',jdecode('EXPERTS'),jdecode(''), jdecode('%2F34623%2F38814.html'), 'true',[],'',''],
		['PAGE','80294',jdecode('NEW+'),jdecode(''), jdecode('%2F34623%2F80294.html'), 'true',[],'',''],
		['PAGE','128632',jdecode('Chez+MAM'),jdecode(''), jdecode('%2F34623%2F128632.html'), 'true',[],'',''],
		['PAGE','38895',jdecode('CONTACT'),jdecode(''), jdecode('%2F34623%2F38895.html'), 'true',[],'','']
	],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Cuy';
theSitetree.paletteFamily='F7FDFD';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='385';
theSitetree.graphicsetId='438';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F7FDFD';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Cuy',
				paletteFamily: 	'F7FDFD',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'385',
				graphicsetId: 	'438',
				contentColor: 	'000000',
				contentBGColor: 'F7FDFD',
				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:  '132255',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80186',
internalId:  '',
customField: '20111114-110756'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '132255',
internalId:  '-',
customField: '20111114-110621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80159',
internalId:  '',
customField: '20111113-194755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1270',
internalId:  '',
customField: '20111114-110726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3157',
internalId:  '',
customField: '20111113-163901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14255',
internalId:  '',
customField: '20111113-163929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12049',
internalId:  '',
customField: '20111113-163956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3049',
internalId:  '',
customField: '20111113-163838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14758',
internalId:  '',
customField: '20111113-164109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130058',
internalId:  '',
customField: '20111113-204710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131730',
internalId:  '',
customField: '20111114-112200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131295',
internalId:  '',
customField: '20111114-110855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80240',
internalId:  '',
customField: '20111128-231155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20591',
internalId:  '',
customField: '20111128-231021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11163',
internalId:  '',
customField: '20111128-231501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128632',
internalId:  '',
customField: '20111113-172319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129563',
internalId:  '',
customField: '20111113-222730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43416',
internalId:  '',
customField: '20111113-164022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131739',
internalId:  '',
customField: '20111114-112344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107298',
internalId:  '',
customField: '20111114-110742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4502',
internalId:  '',
customField: '20111113-161701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34623',
internalId:  '',
customField: '20111113-170923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80267',
internalId:  '',
customField: '20111113-171524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80294',
internalId:  '',
customField: '20111114-123301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38652',
internalId:  '',
customField: '20111113-171559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38733',
internalId:  '',
customField: '20111113-171613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38760',
internalId:  '',
customField: '20111113-171635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38787',
internalId:  '',
customField: '20111113-171541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38814',
internalId:  '',
customField: '20111113-171706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38868',
internalId:  '',
customField: '20111113-171649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130893',
internalId:  '',
customField: '20111114-121758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38895',
internalId:  '',
customField: '20111113-172336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129554',
internalId:  '',
customField: '20111114-111656'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INX2GF';
var companyName   = 'SCHWARZENBACH+CONSULTING';
var htmlTitle	  = 'SCHWARZENBACH+CONSULTING+-+Ihr+Dialogpartner+f%C3%BCr+PERFORMANCE+IMPROVEMENT';
var metaKeywords  = 'Coaching+von+F%C3%BChrungskr%C3%A4ften%2C+Strategieentwicklung%2C+Kulturinnovation';
var metaContents  = 'Willkommen+bei+SCHWARZENBACH+CONSULTING%2C+Ihr+Dialogpartner+f%C3%BCr+PERFORMANCE+IMPROVEMENT';
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();
};

