/* [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','6101',jdecode('Home'),jdecode(''),'/6101.html','true',[],'',''],
	['PAGE','6152',jdecode('About+us'),jdecode(''),'/6152.html','true',[],'',''],
	['PAGE','29004',jdecode('Services'),jdecode(''),'/29004/index.html','true',[ 
		['PAGE','29604',jdecode('Client+Marketing+Services'),jdecode(''),'/29004/29604.html','true',[],'',''],
		['PAGE','29625',jdecode('ALCO+Consulting+Services'),jdecode(''),'/29004/29625.html','true',[],'',''],
		['PAGE','42225',jdecode('Strategic+Planning+Process'),jdecode(''),'/29004/42225.html','true',[],'',''],
		['PAGE','38904',jdecode('Troubled+Bank+Assistance'),jdecode(''),'/29004/38904.html','true',[],'',''],
		['PAGE','31104',jdecode('Educational+Workshops'),jdecode(''),'/29004/31104.html','true',[],'','']
	],'',''],
	['PAGE','42204',jdecode('Webinar+Series'),jdecode(''),'/42204.html','true',[],'',''],
	['PAGE','6194',jdecode('Educational+Outreach'),jdecode(''),'/6194/index.html','true',[ 
		['PAGE','36004',jdecode('2010+Upcoming+Events'),jdecode(''),'/6194/36004.html','true',[],'',''],
		['PAGE','38304',jdecode('2010+Recent+Events'),jdecode(''),'/6194/38304.html','true',[],'',''],
		['PAGE','7122',jdecode('2009+Speaking++Events'),jdecode(''),'/6194/7122.html','true',[],'',''],
		['PAGE','29046',jdecode('2008+Speaking+Events'),jdecode(''),'/6194/29046.html','true',[],'',''],
		['PAGE','32404',jdecode('2007+Speaking+Events'),jdecode(''),'/6194/32404.html','true',[],'','']
	],'',''],
	['PAGE','30604',jdecode('Partners+%26+Affiliations'),jdecode(''),'/30604/index.html','true',[ 
		['PAGE','6215',jdecode('Strategic+Partners'),jdecode(''),'/30604/6215.html','true',[],'',''],
		['PAGE','30625',jdecode('Educational+Affiliations'),jdecode(''),'/30604/30625.html','true',[],'','']
	],'',''],
	['PAGE','47804',jdecode('Testimonials'),jdecode(''),'/47804.html','true',[],'',''],
	['PAGE','6236',jdecode('Contact'),jdecode(''),'/6236.html','true',[],'',''],
	['PAGE','29504',jdecode('Product%2FService+Inquiry+Form'),jdecode(''),'/29504.html','true',[],'','']];
var siteelementCount=21;
theSitetree.topTemplateName='Global';
theSitetree.paletteFamily='006600';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='85';
theSitetree.graphicsetId='104';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Global',
				paletteFamily: 	'006600',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'85',
				graphicsetId: 	'104',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'176B03',
				b_color: 		'669900',
				c_color: 		'000000',
				d_color: 		'E0EEE3',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6101',
internalId:  '',
customField: '20100707-201318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6152',
internalId:  '',
customField: '20090629-101126'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6194',
internalId:  '',
customField: '20091210-214058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38304',
internalId:  '',
customField: '20100826-192945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7122',
internalId:  '',
customField: '20100510-185612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6215',
internalId:  '',
customField: '20100608-123941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6236',
internalId:  '',
customField: '20091210-214249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29504',
internalId:  '',
customField: '20100810-160045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29046',
internalId:  '',
customField: '20100510-185652'
};
webappMappings['7008']=webappMappings['7008-21570']={
webappId:    '7008',
documentId:  '29504',
internalId:  '21570',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29004',
internalId:  '',
customField: '20100510-185318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30604',
internalId:  '',
customField: '20100509-183804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30625',
internalId:  '',
customField: '20100514-225856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29604',
internalId:  '',
customField: '20100703-210524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29625',
internalId:  '',
customField: '20100703-205105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31104',
internalId:  '',
customField: '20100703-205354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32404',
internalId:  '',
customField: '20100510-185724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36004',
internalId:  '',
customField: '20100826-193023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38904',
internalId:  '',
customField: '20100703-205015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42204',
internalId:  '',
customField: '20100826-191403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42225',
internalId:  '',
customField: '20100704-083618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47804',
internalId:  '',
customField: '20100704-083708'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN36YX';
var companyName   = 'KPN+Consulting%2C+LLC';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
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();
};
