/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','22601',jdecode('Zielpublikum'),jdecode(''),'/22601/index.html','true',[ 
		['PAGE','83601',jdecode('VR+%2F+Gesch%C3%A4ftsleitung'),jdecode(''),'/22601/83601.html','true',[],'',''],
		['PAGE','83622',jdecode('HR+Management'),jdecode(''),'/22601/83622.html','true',[],'',''],
		['PAGE','83643',jdecode('Qualit%C3%A4tsmanagement'),jdecode(''),'/22601/83643.html','true',[],'','']
	],'',''],
	['PAGE','452',jdecode('Intellektuelles+Kapital'),jdecode(''),'/452.html','true',[],'',''],
	['PAGE','473',jdecode('Wissensbilanz'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','494',jdecode('Entwicklung'),jdecode(''),'/473/494.html','true',[],'',''],
		['PAGE','7601',jdecode('Methode%2C+Inhalte'),jdecode(''),'/473/7601.html','true',[],'',''],
		['PAGE','2901',jdecode('Nutzen'),jdecode(''),'/473/2901.html','true',[],'',''],
		['PAGE','34501',jdecode('Unternehmenskultur'),jdecode(''),'/473/34501.html','false',[],'','']
	],'',''],
	['PAGE','89601',jdecode('EKS%C2%AE+Strategie'),jdecode(''),'/89601.html','true',[],'',''],
	['PAGE','97801',jdecode('Unternehmensplanspiele'),jdecode(''),'/97801.html','true',[],'',''],
	['PAGE','620',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/620/index.html','true',[ 
		['PAGE','662',jdecode('Kernteam'),jdecode(''),'/620/662.html','true',[],'',''],
		['PAGE','59701',jdecode('Fachbeirat'),jdecode(''),'/620/59701.html','true',[],'',''],
		['PAGE','704',jdecode('Erg%C3%A4nzende+Partner'),jdecode(''),'/620/704.html','true',[],'','']
	],'',''],
	['PAGE','11201',jdecode('Links'),jdecode(''),'/11201.html','true',[],'',''],
	['PAGE','11222',jdecode('Downloads'),jdecode(''),'/11222.html','true',[],'',''],
	['PAGE','95101',jdecode('Blog'),jdecode(''),'/95101.html','true',[],'',''],
	['PAGE','31901',jdecode('Kontakt%2C+Impressum'),jdecode(''),'/31901.html','true',[],'',''],
	['PAGE','74701',jdecode('Sitemap'),jdecode(''),'/74701.html','true',[],'','']];
var siteelementCount=22;
theSitetree.topTemplateName='Easylife';
theSitetree.paletteFamily='AD1D1D';
theSitetree.keyvisualId='5821';
theSitetree.keyvisualName='kv_5821.jpg';
theSitetree.fontsetId='11096';
theSitetree.graphicsetId='11868';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Easylife',
				paletteFamily: 	'AD1D1D',
				keyvisualId: 	'5821',
				keyvisualName: 	'kv_5821.jpg',
				fontsetId: 		'11096',
				graphicsetId: 	'11868',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'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:  '22601',
internalId:  '',
customField: '20081109-170608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20091203-130627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83601',
internalId:  '',
customField: '20081109-170453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83622',
internalId:  '',
customField: '20081109-165107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83643',
internalId:  '',
customField: '20081109-170745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20080719-081651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20080719-081741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20080526-073216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7601',
internalId:  '',
customField: '20080923-210844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2901',
internalId:  '',
customField: '20080624-061958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97801',
internalId:  '',
customField: '20100427-180613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34501',
internalId:  '',
customField: '20080719-082021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89601',
internalId:  '',
customField: '20081230-084543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '620',
internalId:  '',
customField: '20080719-082253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '662',
internalId:  '',
customField: '20100520-170708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59701',
internalId:  '',
customField: '20091231-110351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '704',
internalId:  '',
customField: '20100520-171511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11201',
internalId:  '',
customField: '20081222-222811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11222',
internalId:  '',
customField: '20081103-115024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31901',
internalId:  '',
customField: '20091203-130653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74701',
internalId:  '',
customField: '20100120-141925'
};
webappMappings['7050']=webappMappings['7050-165']={
webappId:    '7050',
documentId:  '95101',
internalId:  '165',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95101',
internalId:  '',
customField: '20100120-142021'
};
var canonHostname = 'webomat01.hostpoint.ch';
var accountId     = 'AHOPT0IN3XS8';
var companyName   = 'Intellectual+Capital+Reports%3A+Management+%26+Development';
var htmlTitle	  = '';
var metaKeywords  = 'Wissensbilanz%2C+Wissensbilanzen%2C+Intellectual+Capital%2C+Intellectual+Capital+Reports%2C+Unternehmenskultur%2C+Wertemanagement%2C+Ethik%2C+Profilierung%2C+EKS%2C+EKS-Strategie%2C+Strategie%2C+Informationssicherheitsmanagmenent%2C++EFQM%2C+Business+Excellence%2CCRM%2CKundenbeziehungsmanagement%2CNischenstrategie%2C+Ursachen-Wirkungskreisl%C3%A4ufe%2C+Vernetztes+Denken%2C+Wissenskapital%2C+SAGE%2C+CRM%2C+ACT%2C+Planspiele';
var metaContents  = 'Wissensbilanzen%2C+Intellektuelles+Kapital%2C+Intellectual+Capital+Reports%2C+Unternehmenskultur%2C+Corporate+Culture%2C+Vernetztes+Denken%2C+Ursachen+Wirkungskreisl%C3%A4ufe%2C+Wissenskapital%2C+Intellectual+Capital+Assets%2CSaarbr%C3%BCckerformel%2C+Human+Capital+Management%2C+Betriebswirschaftliche+Softwarel%C3%B6sungen%2C+CRM%2C+ACT%2C+Sage+CRM%2C+Unternehmensplanspiele';
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();
};
