/* [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','4598',jdecode('Home'),jdecode(''),'/4598/index.html','true',[ 
		['PAGE','19045',jdecode('Leistungs%C3%BCberblick'),jdecode(''),'/4598/19045.html','true',[],'','']
	],'',''],
	['PAGE','4655',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/4655/index.html','true',[ 
		['PAGE','4682',jdecode('Das+Unternehmen'),jdecode(''),'/4655/4682.html','true',[],'',''],
		['PAGE','4709',jdecode('Das+Management'),jdecode(''),'/4655/4709.html','true',[],'',''],
		['PAGE','8796',jdecode('Herbert+Kahlich'),jdecode(''),'/4655/8796.html','true',[],'',''],
		['PAGE','22301',jdecode('Dr.+Alexander+F.+Galli'),jdecode(''),'/4655/22301.html','true',[],'',''],
		['PAGE','15355',jdecode('Dr.+Andreas+Spahni'),jdecode(''),'/4655/15355.html','true',[],'','']
	],'',''],
	['PAGE','11248',jdecode('Presse'),jdecode(''),'/11248.html','true',[],'',''],
	['PAGE','4736',jdecode('Produkte+und+Leistungen'),jdecode(''),'/4736/index.html','true',[ 
		['PAGE','4790',jdecode('Fonds'),jdecode(''),'/4736/4790.html','true',[],'',''],
		['PAGE','4763',jdecode('Business+Consulting'),jdecode(''),'/4736/4763.html','true',[],'',''],
		['PAGE','9402',jdecode('In-+und+Outsourcing'),jdecode(''),'/4736/9402.html','true',[],'',''],
		['PAGE','9429',jdecode('Projekt%2FChange-Management'),jdecode(''),'/4736/9429.html','true',[],'',''],
		['PAGE','9456',jdecode('Marktforschung%2FProduktentwickl.'),jdecode(''),'/4736/9456.html','true',[],'',''],
		['PAGE','19187',jdecode('Mandate'),jdecode(''),'/4736/19187.html','true',[],'','']
	],'',''],
	['PAGE','4817',jdecode('Aktuelles'),jdecode(''),'/4817/index.html','true',[ 
		['PAGE','19320',jdecode('OTC+Fund+One'),jdecode(''),'/4817/19320.html','true',[],'',''],
		['PAGE','19329',jdecode('China+Property+Fund+One'),jdecode(''),'/4817/19329.html','true',[],'',''],
		['PAGE','18574',jdecode('Asset+Management+China+'),jdecode(''),'/4817/18574.html','true',[],'',''],
		['PAGE','18398',jdecode('Private+Label+Fonds'),jdecode(''),'/4817/18398.html','true',[],'',''],
		['PAGE','4844',jdecode('Mega-Trends+im+Fondsgesch%C3%A4ft'),jdecode(''),'/4817/4844.html','true',[],'',''],
		['PAGE','14414',jdecode('European+Fund+Business'),jdecode(''),'/4817/14414.html','true',[],'',''],
		['PAGE','16602',jdecode('Fund+Sales+Strategies+Europe'),jdecode(''),'/4817/16602.html','true',[],'','']
	],'',''],
	['PAGE','11275',jdecode('Jobs'),jdecode(''),'/11275.html','true',[],'',''],
	['PAGE','4871',jdecode('Kontakt'),jdecode(''),'/4871/index.html','true',[ 
		['PAGE','4898',jdecode('Adresse%2C+Telefon'),jdecode(''),'/4871/4898.html','true',[],'',''],
		['PAGE','5197',jdecode('Anfahrt'),jdecode(''),'/4871/5197.html','true',[],'',''],
		['PAGE','5232',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/4871/5232.html','true',[],'','']
	],'',''],
	['PAGE','5819',jdecode('Links'),jdecode(''),'/5819.html','true',[],'',''],
	['PAGE','18782',jdecode('FundStreet+%28englisch%29'),jdecode(''),'/18782.html','true',[],'',''],
	['PAGE','18791',jdecode('About+us+%28englisch%29'),jdecode(''),'/18791/index.html','true',[ 
		['PAGE','18800',jdecode('Management+%28english%29'),jdecode(''),'/18791/18800.html','true',[],'',''],
		['PAGE','18809',jdecode('Herbert+Kahlich'),jdecode(''),'/18791/18809.html','true',[],'',''],
		['PAGE','23701',jdecode('Alexander+F.+Galli'),jdecode(''),'/18791/23701.html','true',[],'',''],
		['PAGE','18827',jdecode('Andreas+Spahni'),jdecode(''),'/18791/18827.html','true',[],'','']
	],'',''],
	['PAGE','18836',jdecode('Press+%28englisch%29'),jdecode(''),'/18836.html','true',[],'','']];
var siteelementCount=37;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='0B578E';
theSitetree.keyvisualId='2028';
theSitetree.keyvisualName='boerse.jpg';
theSitetree.fontsetId='337';
theSitetree.graphicsetId='394';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='0B578E';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Activate',
				paletteFamily: 	'0B578E',
				keyvisualId: 	'2028',
				keyvisualName: 	'boerse.jpg',
				fontsetId: 		'337',
				graphicsetId: 	'394',
				contentColor: 	'FFFFFF',
				contentBGColor: '0B578E',
				a_color: 		'0B578E',
				b_color: 		'FFFFFF',
				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['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '5197',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '5232',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['1501']=webappMappings['1501-3272357']={
webappId:    '1501',
documentId:  '4598',
internalId:  '3272357',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20100811-115937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11248',
internalId:  '',
customField: '20090220-110305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18836',
internalId:  '',
customField: '20100811-155603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19045',
internalId:  '',
customField: '20090121-091025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4655',
internalId:  '',
customField: '20100811-152013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4682',
internalId:  '',
customField: '20090121-091635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4709',
internalId:  '',
customField: '20100811-152115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8796',
internalId:  '',
customField: '20100811-151737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23701',
internalId:  '',
customField: '20100811-155540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15355',
internalId:  '',
customField: '20090115-140045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4736',
internalId:  '',
customField: '20090115-123421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4790',
internalId:  '',
customField: '20100811-152433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4763',
internalId:  '',
customField: '20090121-092159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9402',
internalId:  '',
customField: '20090121-092335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9429',
internalId:  '',
customField: '20090121-092437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9456',
internalId:  '',
customField: '20090121-092552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19187',
internalId:  '',
customField: '20100811-153153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4817',
internalId:  '',
customField: '20100811-153213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19320',
internalId:  '',
customField: '20090121-093249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19329',
internalId:  '',
customField: '20100811-153535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18574',
internalId:  '',
customField: '20061121-175137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18398',
internalId:  '',
customField: '20060905-172748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4844',
internalId:  '',
customField: '20060317-114008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14414',
internalId:  '',
customField: '20060403-174953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16602',
internalId:  '',
customField: '20060403-175143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11275',
internalId:  '',
customField: '20060309-161241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4871',
internalId:  '',
customField: '20100811-153745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4898',
internalId:  '',
customField: '20100811-153808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5197',
internalId:  '',
customField: '20090115-140750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5232',
internalId:  '',
customField: '20061017-184753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5819',
internalId:  '',
customField: '20100811-154055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18782',
internalId:  '',
customField: '20100811-154126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18791',
internalId:  '',
customField: '20070501-200645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18800',
internalId:  '',
customField: '20100811-155427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18809',
internalId:  '',
customField: '20100811-155510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18827',
internalId:  '',
customField: '20100811-155309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22301',
internalId:  '',
customField: '20100811-152246'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0IN21MP';
var companyName   = 'FundStreet++-++This+way+to+Funds.';
var htmlTitle	  = 'FundStreet.com';
var metaKeywords  = 'Fund+Funds+Fonds+Anlagefonds+Investmentfonds+Herbert+Kahlich+Winfried+Kilp+FundStreet+Fund-Academy+Hedgefonds+Hedgefund+Immobilienfonds+Real+Estate+Insitutionelle+Private+Label+Andreas+Spahni+Kommanditgesellschaft+Komplement%C3%A4r+Kommandit%C3%A4r+qualifizierte+Anleger+Verm%C3%B6gensverwalter+FINMA+kollektive+Kapitalanlagen+geschlossener+BEKB+Schweiz+OTC+China+Immobilien';
var metaContents  = 'Fund+Funds+Fonds+Fond+Anlagefonds+Investmentfonds+Herbert+Kahlich+Winfried+Kilp+FundStreet+Hedgefonds+Hedgefund+Immobilienfonds+Real+Estate+Insitutionelle+Private+Label+Andreas+Spahni+Kommanditgesellschaft+Komplement%C3%A4r+Kommandit%C3%A4r+qualifizierte+Anleger+Verm%C3%B6gensverwalter+FINMA+kollektive+Kapitalanlagen+geschlossener+BEKB+Schweiz+OTC+China+Immobilien';
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();
};
