/* [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','1001',jdecode('HOME'),jdecode(''),'/1001.html','true',[],'',''],
	['PAGE','1157',jdecode('ABOUT+US'),jdecode(''),'/1157/index.html','true',[ 
		['PAGE','1178',jdecode('Experience'),jdecode(''),'/1157/1178.html','true',[],'',''],
		['PAGE','1199',jdecode('Recent+Newsletter'),jdecode(''),'/1157/1199.html','true',[],'','']
	],'',''],
	['PAGE','1052',jdecode('SERVICES'),jdecode(''),'/1052.html','true',[],'',''],
	['PAGE','1073',jdecode('+++Traction+Assistance'),jdecode(''),'/1073.html','true',[],'',''],
	['PAGE','16343',jdecode('+++Investor+Readiness'),jdecode(''),'/16343.html','true',[],'',''],
	['PAGE','1115',jdecode('+++Outsourced+Sales'),jdecode(''),'/1115.html','true',[],'',''],
	['PAGE','1094',jdecode('+++Acquisitions+and+Partnerships'),jdecode(''),'/1094.html','true',[],'',''],
	['PAGE','16301',jdecode('+++Channel+Creation'),jdecode(''),'/16301.html','true',[],'',''],
	['PAGE','16322',jdecode('+++Enhanced+Services'),jdecode(''),'/16322.html','true',[],'',''],
	['PAGE','16701',jdecode('For+Early+Stage+Companies'),jdecode(''),'/16701.html','true',[],'',''],
	['PAGE','16722',jdecode('For+Growth-Choked+Companies'),jdecode(''),'/16722.html','true',[],'',''],
	['PAGE','16743',jdecode('For+Investors'),jdecode(''),'/16743.html','true',[],'',''],
	['PAGE','1136',jdecode('CLIENTS'),jdecode(''),'/1136/index.html','true',[ 
		['PAGE','9301',jdecode('+++Client+News'),jdecode(''),'/1136/9301.html','true',[],'',''],
		['PAGE','9701',jdecode('+++Representative+Projects'),jdecode(''),'/1136/9701.html','true',[],'','']
	],'',''],
	['PAGE','1241',jdecode('CONTACT+US'),jdecode(''),'/1241.html','true',[],'',''],
	['PAGE','48401',jdecode('HEALTHCARE+NEWS'),jdecode(''),'/48401.html','true',[],'',''],
	['PAGE','45901',jdecode('FINANCIAL+SERVICES+NEWS'),jdecode(''),'/45901.html','true',[],'','']];
var siteelementCount=20;
theSitetree.topTemplateName='Capri';
theSitetree.paletteFamily='943434';
theSitetree.keyvisualId='7234';
theSitetree.keyvisualName='kv_7234.jpg';
theSitetree.fontsetId='16409';
theSitetree.graphicsetId='12137';
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: 			'Capri',
				paletteFamily: 	'943434',
				keyvisualId: 	'7234',
				keyvisualName: 	'kv_7234.jpg',
				fontsetId: 		'16409',
				graphicsetId: 	'12137',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1001',
internalId:  '',
customField: '20100610-144920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1073',
internalId:  '',
customField: '20081201-151421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1052',
internalId:  '',
customField: '20090706-084444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1157',
internalId:  '',
customField: '20100326-085236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1178',
internalId:  '',
customField: '20100202-082027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1199',
internalId:  '',
customField: '20100120-172350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16343',
internalId:  '',
customField: '20100225-110050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1115',
internalId:  '',
customField: '20090505-104123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1094',
internalId:  '',
customField: '20081201-103108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16301',
internalId:  '',
customField: '20081201-103222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16322',
internalId:  '',
customField: '20090507-172731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16701',
internalId:  '',
customField: '20090505-154541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16722',
internalId:  '',
customField: '20081201-103436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16743',
internalId:  '',
customField: '20090505-121231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1136',
internalId:  '',
customField: '20100610-143724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9301',
internalId:  '',
customField: '20090820-104717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45901',
internalId:  '',
customField: '20070821-135616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9701',
internalId:  '',
customField: '20091105-100556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48401',
internalId:  '',
customField: '20100427-143326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1241',
internalId:  '',
customField: '20080101-115923'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INXSBZ';
var companyName   = 'GAIL+BUERGER+KERR';
var htmlTitle	  = 'Business+Development+Partner+for+Entrepreneurial+Companies';
var metaKeywords  = 'fund+raising%2Cmobile%2Cbusiness+development%2C+sales%2C+channel';
var metaContents  = 'mobile%2Cbusiness+intelligence%2Cfinancial+services';
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();
};
