/* [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','2001',jdecode('Home'),jdecode(''), jdecode('%2F2001.html'), 'true',[],'',''],
	['PAGE','2052',jdecode('About+us'),jdecode(''), jdecode('%2F2052%2Findex.html'), 'true',[ 
		['PAGE','2073',jdecode('Our+Consultants'),jdecode(''), jdecode('%2F2052%2F2073.html'), 'true',[],'','']
	],'',''],
	['PAGE','2094',jdecode('Our+Expertise'),jdecode(''), jdecode('%2F2094%2Findex.html'), 'true',[ 
		['PAGE','2115',jdecode('Financial'),jdecode(''), jdecode('%2F2094%2F2115.html'), 'true',[],'',''],
		['PAGE','2136',jdecode('Empowerment'),jdecode(''), jdecode('%2F2094%2F2136.html'), 'true',[],'',''],
		['PAGE','2157',jdecode('Organizational'),jdecode(''), jdecode('%2F2094%2F2157.html'), 'true',[],'',''],
		['PAGE','2178',jdecode('Nonprofit'),jdecode(''), jdecode('%2F2094%2F2178.html'), 'true',[],'','']
	],'',''],
	['PAGE','2199',jdecode('Services'),jdecode(''), jdecode('%2F2199%2Findex.html'), 'true',[ 
		['PAGE','2220',jdecode('Team+Building'),jdecode(''), jdecode('%2F2199%2F2220.html'), 'true',[],'',''],
		['PAGE','2241',jdecode('Executive+Coaching'),jdecode(''), jdecode('%2F2199%2F2241.html'), 'true',[],'',''],
		['PAGE','2262',jdecode('Development'),jdecode(''), jdecode('%2F2199%2F2262.html'), 'true',[],'',''],
		['PAGE','2283',jdecode('Training'),jdecode(''), jdecode('%2F2199%2F2283.html'), 'true',[],'',''],
		['PAGE','2346',jdecode('Strategic+Planning'),jdecode(''), jdecode('%2F2199%2F2346.html'), 'true',[],'',''],
		['PAGE','2367',jdecode('Assessment+Tools'),jdecode(''), jdecode('%2F2199%2F2367.html'), 'true',[],'',''],
		['PAGE','29212',jdecode('Human+Resources'),jdecode(''), jdecode('%2F2199%2F29212.html'), 'true',[],'',''],
		['PAGE','33912',jdecode('Diversity+and+Inclusion'),jdecode(''), jdecode('%2F2199%2F33912.html'), 'true',[],'',''],
		['PAGE','34012',jdecode('Executive+Search+Services'),jdecode(''), jdecode('%2F2199%2F34012.html'), 'true',[],'',''],
		['PAGE','2304',jdecode('Meeting%2FRetreat+Facilitation'),jdecode(''), jdecode('%2F2199%2F2304.html'), 'true',[],'',''],
		['PAGE','2325',jdecode('Motivational+Impact+Sessions'),jdecode(''), jdecode('%2F2199%2F2325.html'), 'true',[],'','']
	],'',''],
	['PAGE','2388',jdecode('Clients'),jdecode(''), jdecode('%2F2388.html'), 'true',[],'',''],
	['PAGE','22912',jdecode('Results'),jdecode(''), jdecode('%2F22912.html'), 'true',[],'',''],
	['PAGE','2430',jdecode('Contact+Us'),jdecode(''), jdecode('%2F2430.html'), 'true',[],'','']];
var siteelementCount=23;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='AC2323';
theSitetree.keyvisualId='1758';
theSitetree.keyvisualName='recht.jpg';
theSitetree.fontsetId='290';
theSitetree.graphicsetId='356';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='AC2323';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'AC2323',
				keyvisualId: 	'1758',
				keyvisualName: 	'recht.jpg',
				fontsetId: 		'290',
				graphicsetId: 	'356',
				contentColor: 	'FFFFFF',
				contentBGColor: 'AC2323',
				a_color: 		'AC2323',
				b_color: 		'480F0F',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20081030-235218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2052',
internalId:  '',
customField: '20090212-220853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2094',
internalId:  '',
customField: '20081008-232249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2178',
internalId:  '',
customField: '20081021-093532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2388',
internalId:  '',
customField: '20081020-001155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2199',
internalId:  '',
customField: '20081109-161959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2220',
internalId:  '',
customField: '20081109-162229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2325',
internalId:  '',
customField: '20101022-140950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2073',
internalId:  '',
customField: '20090716-170350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2115',
internalId:  '',
customField: '20081021-092912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2136',
internalId:  '',
customField: '20081021-093130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2157',
internalId:  '',
customField: '20090212-210735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2241',
internalId:  '',
customField: '20081021-104040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2262',
internalId:  '',
customField: '20090212-211827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2283',
internalId:  '',
customField: '20090212-211438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2304',
internalId:  '',
customField: '20081001-211514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2346',
internalId:  '',
customField: '20081006-194654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2367',
internalId:  '',
customField: '20090212-220655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22912',
internalId:  '',
customField: '20100730-173359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2430',
internalId:  '',
customField: '20100330-064653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29212',
internalId:  '',
customField: '20090212-222210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34012',
internalId:  '',
customField: '20101022-150510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33912',
internalId:  '',
customField: '20101022-150937'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INVQKT';
var companyName   = 'Wilson+Capital+Management+Inc.';
var htmlTitle	  = 'Wilson+Capital+Management';
var metaKeywords  = 'Organizational+consultants+leadership+development+Team+building+Coaching++Church+consultants+bonika+wilson+donta+wilson+motivational+speaking+keynote+speaker+improving+performance+Organizational+consultants%2C+leadership+development%2C+Team+building%2C+Coaching%2C++Church+consultants%2C+bonika+wilson%2C+donta+wilson%2C+motivational+speaking%2C+keynote+speaker%2C+improving+workforce+performance%2C+increasing+workforce+performance%2C+obstacle+courses%2C++';
var metaContents  = 'Wilson+Capital%2C+Wilson+Capital+Management%2C+Wilson+Capital+Management+Inc.%2C+Bonika%2C+Bonika+Wilson%2C+Organizational+consultants%2C+leadership+development%2C+Team+building%2C+Coaching%2C++Church+consultants%2C+bonika+wilson%2C+donta+wilson%2C+motivational+speaking%2C+keynote+speaker%2C+improving+workforce+performance%2C+increasing+workforce+performance%2C+obstacle+courses%2C++improving+team+communication%2C+conflict+management%2C+facilitation%2C+Bonika%2C+Bonika+Martin%2C+Renee+Wilson%2C+business+development';
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();
};

