/* [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','1201',jdecode('Home'),jdecode(''),'/1201/index.html','true',[ 
		['PAGE','147001',jdecode('Site+Map'),jdecode(''),'/1201/147001.html','true',[],'','']
	],'',''],
	['PAGE','1252',jdecode('ABOUT+SSI'),jdecode(''),'/1252/index.html','true',[ 
		['PAGE','13601',jdecode('Our+Team'),jdecode(''),'/1252/13601.html','true',[],'',''],
		['PAGE','14201',jdecode('Our+Services'),jdecode(''),'/1252/14201.html','true',[],'',''],
		['PAGE','22201',jdecode('Types+of+Programs'),jdecode(''),'/1252/22201.html','true',[],'',''],
		['PAGE','19001',jdecode('Terms+%26+Rates'),jdecode(''),'/1252/19001.html','true',[],'',''],
		['PAGE','22901',jdecode('Contract+Work'),jdecode(''),'/1252/22901.html','true',[],'','']
	],'',''],
	['PAGE','12301',jdecode('PLANNING'),jdecode(''),'/12301/index.html','true',[ 
		['PAGE','19022',jdecode('Strategic+Planning'),jdecode(''),'/12301/19022.html','true',[],'',''],
		['PAGE','19043',jdecode('OD'),jdecode(''),'/12301/19043.html','true',[],'',''],
		['PAGE','19085',jdecode('Board+Assist'),jdecode(''),'/12301/19085.html','true',[],'',''],
		['PAGE','20301',jdecode('Benchmarking'),jdecode(''),'/12301/20301.html','true',[],'',''],
		['PAGE','19064',jdecode('KM'),jdecode(''),'/12301/19064.html','true',[],'',''],
		['PAGE','50801',jdecode('Training+%26+TA'),jdecode(''),'/12301/50801.html','true',[],'','']
	],'',''],
	['PAGE','1315',jdecode('RESEARCH'),jdecode(''),'/1315/index.html','true',[ 
		['PAGE','98501',jdecode('Working+with+SSI'),jdecode(''),'/1315/98501.html','true',[],'',''],
		['PAGE','14222',jdecode('Research+Design'),jdecode(''),'/1315/14222.html','true',[],'',''],
		['PAGE','14243',jdecode('Research+Studies'),jdecode(''),'/1315/14243.html','true',[],'',''],
		['PAGE','14264',jdecode('Data+Collection'),jdecode(''),'/1315/14264.html','true',[],'',''],
		['PAGE','14285',jdecode('Instrumentation'),jdecode(''),'/1315/14285.html','true',[],'',''],
		['PAGE','14306',jdecode('Data+Analysis'),jdecode(''),'/1315/14306.html','true',[],'',''],
		['PAGE','14327',jdecode('Reporting'),jdecode(''),'/1315/14327.html','true',[],'','']
	],'',''],
	['PAGE','1336',jdecode('COMMUNICATION'),jdecode(''),'/1336/index.html','true',[ 
		['PAGE','36701',jdecode('Content'),jdecode(''),'/1336/36701.html','true',[],'',''],
		['PAGE','36722',jdecode('Communications'),jdecode(''),'/1336/36722.html','true',[],'',''],
		['PAGE','36743',jdecode('Marketing'),jdecode(''),'/1336/36743.html','true',[],'','']
	],'',''],
	['PAGE','1357',jdecode('FUNDING'),jdecode(''),'/1357/index.html','true',[ 
		['PAGE','35343',jdecode('Development'),jdecode(''),'/1357/35343.html','true',[],'',''],
		['PAGE','44201',jdecode('Writing'),jdecode(''),'/1357/44201.html','true',[],'',''],
		['PAGE','141601',jdecode('Reviewing'),jdecode(''),'/1357/141601.html','true',[],'',''],
		['PAGE','35801',jdecode('Training'),jdecode(''),'/1357/35801.html','true',[],'',''],
		['PAGE','39001',jdecode('Awards'),jdecode(''),'/1357/39001.html','true',[],'',''],
		['PAGE','39022',jdecode('Sponsors'),jdecode(''),'/1357/39022.html','true',[],'',''],
		['PAGE','143801',jdecode('Commissions'),jdecode(''),'/1357/143801.html','true',[],'','']
	],'',''],
	['PAGE','10722',jdecode('CLIENTS'),jdecode(''),'/10722/index.html','true',[ 
		['PAGE','21722',jdecode('Who+Clients+Serve'),jdecode(''),'/10722/21722.html','true',[],'',''],
		['PAGE','47801',jdecode('Testimonials'),jdecode(''),'/10722/47801.html','true',[],'','']
	],'',''],
	['PAGE','1399',jdecode('CONTACT'),jdecode(''),'/1399.html','true',[],'','']];
var siteelementCount=39;
theSitetree.topTemplateName='Circulation';
theSitetree.paletteFamily='1243CC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10587';
theSitetree.graphicsetId='10562';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Circulation',
				paletteFamily: 	'1243CC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10587',
				graphicsetId: 	'10562',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'FFFFFF',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1201',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-880']={
webappId:    '7008',
documentId:  '1399',
internalId:  '880',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1201',
internalId:  '',
customField: '20091026-150111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1357',
internalId:  '',
customField: '20080610-123040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39001',
internalId:  '',
customField: '20100618-174453'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1252',
internalId:  '',
customField: '20091026-123304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10722',
internalId:  '',
customField: '20100820-151441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20091026-123415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14201',
internalId:  '',
customField: '20080603-172349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22201',
internalId:  '',
customField: '20090928-123834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19001',
internalId:  '',
customField: '20091026-152105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22901',
internalId:  '',
customField: '20090426-114002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12301',
internalId:  '',
customField: '20080603-172533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19022',
internalId:  '',
customField: '20080603-172557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19043',
internalId:  '',
customField: '20080603-172616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19085',
internalId:  '',
customField: '20080603-172634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20080603-172657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19064',
internalId:  '',
customField: '20080603-172716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50801',
internalId:  '',
customField: '20080603-172738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1315',
internalId:  '',
customField: '20080603-172808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98501',
internalId:  '',
customField: '20080603-172842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14222',
internalId:  '',
customField: '20080603-172903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14243',
internalId:  '',
customField: '20080603-172933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14264',
internalId:  '',
customField: '20080603-173001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14285',
internalId:  '',
customField: '20080603-173025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14306',
internalId:  '',
customField: '20080603-173051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14327',
internalId:  '',
customField: '20080603-173126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1336',
internalId:  '',
customField: '20080603-173139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36701',
internalId:  '',
customField: '20100618-174725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36722',
internalId:  '',
customField: '20081112-104331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36743',
internalId:  '',
customField: '20081112-104414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35343',
internalId:  '',
customField: '20080603-173415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44201',
internalId:  '',
customField: '20100806-120841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35801',
internalId:  '',
customField: '20080610-122231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39022',
internalId:  '',
customField: '20080603-173615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21722',
internalId:  '',
customField: '20080603-173735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47801',
internalId:  '',
customField: '20100816-205742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1399',
internalId:  '',
customField: '20090426-113922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141601',
internalId:  '',
customField: '20080610-123435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143801',
internalId:  '',
customField: '20100306-151150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147001',
internalId:  '',
customField: '20080630-181905'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0INX34C';
var companyName   = 'Strategic+Solutions%2C+Inc.';
var htmlTitle	  = 'http%3A%2F%2Fwww.strategicsolutions.biz%2Findex2.html';
var metaKeywords  = 'Strategic+Solutions%2C+Evaluation%2C+Funding%2C+Research%2C+Communications%2C+Strategic+Planning%2C+Grant+Writing%2C+Training%2C+Marketing+';
var metaContents  = 'Strategic+Solutions%2C+Inc.+%28SSI%29+is+a+full-service+consulting+firm+offering+a+broad+range+of+services+to+diversity+of+sectors%2C+industries+and+programs.++Our+goal+is+to+support+public+and+private+organizations%2C+both+for-profit+and+nonprofit%2C+to+achieve+their+mission+and+realize+their+vision.++We+help+clients+establish+organizational+viability%2C+visibility+and+fiscal+solvency+by+finding+innovative+ways+to+demonstrate+the+unique+value+of+their+programs%2C+services+and%2For+products.++';
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();
};
