/* [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','1801',jdecode('Home'),jdecode(''), jdecode('%2F1801.html'), 'true',[],'',''],
	['PAGE','2001',jdecode('About+Us'),jdecode(''), jdecode('%2F2001.html'), 'true',[],'',''],
	['PAGE','2101',jdecode('President%26%23x27%3Bs+Message'),jdecode(''), jdecode('%2F2101.html'), 'true',[],'',''],
	['PAGE','2122',jdecode('Officers+%26+Chairs'),jdecode(''), jdecode('%2F2122.html'), 'true',[],'',''],
	['PAGE','2143',jdecode('Membership+Benefits'),jdecode(''), jdecode('%2F2143.html'), 'true',[],'',''],
	['PAGE','2164',jdecode('Membership+Application'),jdecode(''), jdecode('%2F2164.html'), 'true',[],'',''],
	['PAGE','10701',jdecode('Calendar+%26+Events'),jdecode(''), jdecode('%2F10701%2Findex.html'), 'true',[ 
		['PAGE','9501',jdecode('ANNUAL+Treasury+Symposium'),jdecode(''), jdecode('%2F10701%2F9501.html'), 'false',[],'',''],
		['PAGE','86075',jdecode('2011+Treasury+Symposium'),jdecode(''), jdecode('%2F10701%2F86075.html'), 'true',[],'',''],
		['PAGE','9522',jdecode('Upcoming+Events%2FConferences'),jdecode(''), jdecode('%2F10701%2F9522.html'), 'false',[],'',''],
		['PAGE','2185',jdecode('CTP+Study+Group'),jdecode(''), jdecode('%2F10701%2F2185.html'), 'true',[],'',''],
		['PAGE','120675',jdecode('Archived+2011+Meetings'),jdecode(''), jdecode('%2F10701%2F120675.html'), 'false',[],'',''],
		['PAGE','94175',jdecode('Archived+2010+Meetings'),jdecode(''), jdecode('%2F10701%2F94175.html'), 'false',[],'',''],
		['PAGE','54449',jdecode('Archived+2009+Meetings'),jdecode(''), jdecode('%2F10701%2F54449.html'), 'false',[],'',''],
		['PAGE','53549',jdecode('Archived+2008+Meetings'),jdecode(''), jdecode('%2F10701%2F53549.html'), 'false',[],'',''],
		['PAGE','9322',jdecode('Archived+2007+Meetings'),jdecode(''), jdecode('%2F10701%2F9322.html'), 'false',[],'',''],
		['PAGE','9343',jdecode('Archived+2006+Meetings'),jdecode(''), jdecode('%2F10701%2F9343.html'), 'false',[],'',''],
		['PAGE','8001',jdecode('Archived+2005+Meetings'),jdecode(''), jdecode('%2F10701%2F8001.html'), 'false',[],'','']
	],'',''],
	['PAGE','7301',jdecode('Career+Opportunities'),jdecode(''), jdecode('%2F7301%2Findex.html'), 'true',[ 
		['PAGE','7701',jdecode('To+post+an+Career+Opportunity'),jdecode(''), jdecode('%2F7301%2F7701.html'), 'false',[],'','']
	],'',''],
	['PAGE','88475',jdecode('Submitting+your+Career+Opportunity'),jdecode(''), jdecode('%2F88475.html'), 'false',[],'',''],
	['PAGE','42523',jdecode('Corporate+Sponsorship+Program'),jdecode(''), jdecode('%2F42523.html'), 'true',[],'',''],
	['PAGE','66075',jdecode('Featured+Corporate+Sponsors'),jdecode(''), jdecode('%2F66075.html'), 'true',[],'',''],
	['PAGE','8401',jdecode('Resource+Center'),jdecode(''), jdecode('%2F8401.html'), 'true',[],'',''],
	['PAGE','2227',jdecode('Join+our+Mailing+List%21'),jdecode(''), jdecode('%2F2227.html'), 'true',[],'',''],
	['PAGE','2206',jdecode('Contact+Us'),jdecode(''), jdecode('%2F2206.html'), 'true',[],'',''],
	['PAGE','15701',jdecode('Member+Community+BLOG'),jdecode(''), jdecode('%2F15701.html'), 'false',[],'',''],
	['PAGE','2248',jdecode('Thank+you+for+Registering%21'),jdecode(''), jdecode('%2F2248.html'), 'false',[],'',''],
	['PAGE','6301',jdecode('We+have+received+your+RSVP%21'),jdecode(''), jdecode('%2F6301.html'), 'false',[],'',''],
	['PAGE','14001',jdecode('Mailing+List+Sign-up+Form'),jdecode(''), jdecode('%2F14001.html'), 'false',[],'',''],
	['PAGE','13601',jdecode('SFTMA+Luncheon+GUEST+RSVP'),jdecode(''), jdecode('%2F13601.html'), 'false',[],'',''],
	['PAGE','21801',jdecode('Thank+you+for+your+Survey%21'),jdecode(''), jdecode('%2F21801.html'), 'false',[],'',''],
	['PAGE','47276',jdecode('Study+Group+Waiting+List'),jdecode(''), jdecode('%2F47276.html'), 'false',[],'',''],
	['PAGE','94975',jdecode('Speaker+Checklist'),jdecode(''), jdecode('%2F94975.html'), 'false',[],'',''],
	['PAGE','117575',jdecode('Sponsorship+Checklist'),jdecode(''), jdecode('%2F117575.html'), 'false',[],'','']];
var siteelementCount=35;
theSitetree.topTemplateName='Champagne';
theSitetree.paletteFamily='7A2E25';
theSitetree.keyvisualId='11354';
theSitetree.keyvisualName='kv_11354.jpg';
theSitetree.fontsetId='31946';
theSitetree.graphicsetId='13787';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='7A2E25';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'westhost',
  product: 'WSCSYSSSSLY0XFAC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Champagne',
				paletteFamily: 	'7A2E25',
				keyvisualId: 	'11354',
				keyvisualName: 	'kv_11354.jpg',
				fontsetId: 		'31946',
				graphicsetId: 	'13787',
				contentColor: 	'000000',
				contentBGColor: '7A2E25',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20111130-040331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2248',
internalId:  '',
customField: '20081014-003946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20090707-114148'
};
webappMappings['7008']=webappMappings['7008-216']={
webappId:    '7008',
documentId:  '2206',
internalId:  '216',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2101',
internalId:  '',
customField: '20100321-164922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2122',
internalId:  '',
customField: '20111128-005627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2143',
internalId:  '',
customField: '20100321-164716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2164',
internalId:  '',
customField: '20111105-093400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2185',
internalId:  '',
customField: '20110901-010311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2206',
internalId:  '',
customField: '20101008-042542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2227',
internalId:  '',
customField: '20101008-042021'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20090721-145205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20111128-011418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7701',
internalId:  '',
customField: '20101018-104921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20081019-083740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8401',
internalId:  '',
customField: '20110608-133403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9522',
internalId:  '',
customField: '20081019-090555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9501',
internalId:  '',
customField: '20101007-060033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20120104-074059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9343',
internalId:  '',
customField: '20081019-094317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9322',
internalId:  '',
customField: '20081222-204057'
};
webappMappings['7008']=webappMappings['7008-221']={
webappId:    '7008',
documentId:  '13601',
internalId:  '221',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20081020-013832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20081110-104038'
};
webappMappings['7050']=webappMappings['7050-29']={
webappId:    '7050',
documentId:  '15701',
internalId:  '29',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20090707-115958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21801',
internalId:  '',
customField: '20081118-005247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42523',
internalId:  '',
customField: '20110907-032605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54449',
internalId:  '',
customField: '20101221-091956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86075',
internalId:  '',
customField: '20110821-235904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66075',
internalId:  '',
customField: '20111105-130205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53549',
internalId:  '',
customField: '20091230-112403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47276',
internalId:  '',
customField: '20090721-153638'
};
webappMappings['7008']=webappMappings['7008-454']={
webappId:    '7008',
documentId:  '47276',
internalId:  '454',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88475',
internalId:  '',
customField: '20101227-232932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94175',
internalId:  '',
customField: '20101221-085947'
};
webappMappings['7008']=webappMappings['7008-626']={
webappId:    '7008',
documentId:  '88475',
internalId:  '626',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-641']={
webappId:    '7008',
documentId:  '94975',
internalId:  '641',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94975',
internalId:  '',
customField: '20101221-113200'
};
webappMappings['1501']=webappMappings['1501-1344695']={
webappId:    '1501',
documentId:  '1801',
internalId:  '1344695',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-716']={
webappId:    '7008',
documentId:  '117575',
internalId:  '716',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117575',
internalId:  '',
customField: '20111105-123423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120675',
internalId:  '',
customField: '20120104-073159'
};
var webAppHostname = 'cgicm4all.west-datacenter.net:80';
var canonHostname = 'cm4all01.west-datacenter.net';
var accountId     = 'AWH030IN2NBE';
var companyName   = 'San+Francisco+Treasury+Management+Association+%28SFTMA%29';
var htmlTitle	  = 'San+Francisco+Treasury+Management+Association+%28SFTMA%29';
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();
};

