/* [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','3601',jdecode('Home'),jdecode(''),'/3601.html','true',[],'',''],
	['PAGE','15001',jdecode('What+we+do'),jdecode(''),'/15001.html','true',[],'',''],
	['PAGE','32001',jdecode('Team'),jdecode(''),'/32001/index.html','true',[ 
		['PAGE','32043',jdecode('Arnoux+Lombard'),jdecode(''),'/32001/32043.html','true',[],'',''],
		['PAGE','32064',jdecode('Marion+Lombard'),jdecode(''),'/32001/32064.html','true',[],'','']
	],'',''],
	['PAGE','15222',jdecode('FAQ'),jdecode(''),'/15222.html','true',[],'',''],
	['PAGE','32243',jdecode('Terms+and+Definitions'),jdecode(''),'/32243.html','true',[],'',''],
	['PAGE','13201',jdecode('Contact+Us'),jdecode(''),'/13201/index.html','true',[ 
		['PAGE','15501',jdecode('Send+us+a+Message'),jdecode(''),'/13201/15501.html','true',[],'','']
	],'',''],
	['PAGE','14501',jdecode('Terms+of+Use'),jdecode(''),'/14501.html','false',[],'',''],
	['PAGE','18701',jdecode('Access+to+information'),jdecode(''),'/18701.html','false',[],'','']];
var siteelementCount=11;
theSitetree.topTemplateName='View';
theSitetree.paletteFamily='236A8C';
theSitetree.keyvisualId='11132';
theSitetree.keyvisualName='kv_11132.jpg';
theSitetree.fontsetId='32028';
theSitetree.graphicsetId='13853';
theSitetree.contentColor='2F2F2F';
theSitetree.contentBGColor='236A8C';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'View',
				paletteFamily: 	'236A8C',
				keyvisualId: 	'11132',
				keyvisualName: 	'kv_11132.jpg',
				fontsetId: 		'32028',
				graphicsetId: 	'13853',
				contentColor: 	'2F2F2F',
				contentBGColor: '236A8C',
				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:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3601',
internalId:  '',
customField: '20090609-122635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13201',
internalId:  '',
customField: '20100325-162858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14501',
internalId:  '',
customField: '20090523-124533'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '3601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20090609-123408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32001',
internalId:  '',
customField: '20091202-140646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15222',
internalId:  '',
customField: '20090607-175043'
};
webappMappings['7008']=webappMappings['7008-1890']={
webappId:    '7008',
documentId:  '15501',
internalId:  '1890',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15501',
internalId:  '',
customField: '20090507-134414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18701',
internalId:  '',
customField: '20090520-222632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32043',
internalId:  '',
customField: '20090608-123212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32064',
internalId:  '',
customField: '20090610-154841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32243',
internalId:  '',
customField: '20090525-083604'
};
var canonHostname = 'sitebuilder1.jnb2.host-h.net';
var accountId     = 'AHTZ10IN2KYD';
var companyName   = 'Bolkin+Venture+Capital';
var htmlTitle	  = 'Bolkin+Venture+Capital';
var metaKeywords  = 'Bolkin+Venture+Capital%3B+VC%3B+venture+capital+fund%2C+business+finance%3B+funds+to+start+a+new+business%3B+venture+capital%3B+venture+capital%2C+VC%2C+funding%2C+venture+capital+in+south+Africaventure+capital+in+southern+africa%3B+venture+capitalists%3B+business+finance%3B+business+angels%3B+investor+angels%3B+business+funding%3B+funds+to+start+a+new+business%3B+funds+to+expand+a+new+business%3B+money+to+grow+a+business%3B+money+to+start+a+new+business%3B+funding+for+a+new+business%3B+funding+to+start+a+business%3B+funding+to+start+a+company%3B+startup+funding%3B+alternative+funding%3B+start+up%3B+startup%3B+bolkin%3B+balkin%3B+bolcin%3B+business+angels%3B+investor+angels%3B+money%3B+funds%3B+investment+angels%3B+namibia%3B+angola%3B+swaziland%3B+botswana%3B+transkei%3B+ciskey%3B+mozambique%3B+reunion%3B+sechelles%3B+mauritius%3B+mauritius+island%3B+reunion+island%3B+madagascar%3B+kenya%3B+zimbabwe%3B+';
var metaContents  = 'Bolkin+Venture+capital+broker+focussing+on+Southern+Africa+a+place+where+ideas+and+finacing+meets%3B+VC%3B+venture+capital+fund%2C+business+finance%3B+funds+to+start+a+new+business%3B+venture+capital';
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();
};
