/* [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(''),'/1801.html','true',[],'',''],
	['PAGE','2001',jdecode('About+Us'),jdecode(''),'/2001.html','true',[],'',''],
	['PAGE','2101',jdecode('President%26%23x27%3Bs+Message'),jdecode(''),'/2101.html','true',[],'',''],
	['PAGE','2122',jdecode('Officers+%26+Chairs'),jdecode(''),'/2122.html','true',[],'',''],
	['PAGE','2143',jdecode('Membership+Benefits'),jdecode(''),'/2143.html','true',[],'',''],
	['PAGE','2164',jdecode('Membership+Application'),jdecode(''),'/2164.html','true',[],'',''],
	['PAGE','10701',jdecode('Calendar+%26+Events'),jdecode(''),'/10701/index.html','true',[ 
		['PAGE','9501',jdecode('ANNUAL+Treasury+Symposium'),jdecode(''),'/10701/9501.html','true',[],'',''],
		['PAGE','9522',jdecode('Upcoming+Events%2FConferences'),jdecode(''),'/10701/9522.html','false',[],'',''],
		['PAGE','2185',jdecode('CTP+Study+Group'),jdecode(''),'/10701/2185.html','true',[],'',''],
		['PAGE','54449',jdecode('Archived+2009+Meetings'),jdecode(''),'/10701/54449.html','false',[],'',''],
		['PAGE','53549',jdecode('Archived+2008+Meetings'),jdecode(''),'/10701/53549.html','false',[],'',''],
		['PAGE','9322',jdecode('Archived+2007+Meetings'),jdecode(''),'/10701/9322.html','false',[],'',''],
		['PAGE','9343',jdecode('Archived+2006+Meetings'),jdecode(''),'/10701/9343.html','false',[],'',''],
		['PAGE','8001',jdecode('Archived+2005+Meetings'),jdecode(''),'/10701/8001.html','false',[],'','']
	],'',''],
	['PAGE','7301',jdecode('Career+Opportunities'),jdecode(''),'/7301/index.html','true',[ 
		['PAGE','7701',jdecode('To+post+an+Career+Opportunity'),jdecode(''),'/7301/7701.html','false',[],'','']
	],'',''],
	['PAGE','42523',jdecode('Corporate+Sponsorship+Program'),jdecode(''),'/42523.html','true',[],'',''],
	['PAGE','66075',jdecode('Featured+Corporate+Sponsors'),jdecode(''),'/66075.html','true',[],'',''],
	['PAGE','8401',jdecode('Resource+Center'),jdecode(''),'/8401.html','true',[],'',''],
	['PAGE','2227',jdecode('Join+our+Mailing+List%21'),jdecode(''),'/2227.html','true',[],'',''],
	['PAGE','2206',jdecode('Contact+Us'),jdecode(''),'/2206.html','true',[],'',''],
	['PAGE','15701',jdecode('Member+Community+BLOG'),jdecode(''),'/15701.html','false',[],'',''],
	['PAGE','2248',jdecode('Thank+you+for+Registering%21'),jdecode(''),'/2248.html','false',[],'',''],
	['PAGE','6301',jdecode('We+have+received+your+RSVP%21'),jdecode(''),'/6301.html','false',[],'',''],
	['PAGE','14001',jdecode('Mailing+List+Sign-up+Form'),jdecode(''),'/14001.html','false',[],'',''],
	['PAGE','13601',jdecode('SFTMA+Luncheon+GUEST+RSVP'),jdecode(''),'/13601.html','false',[],'',''],
	['PAGE','21801',jdecode('Thank+you+for+your+Survey%21'),jdecode(''),'/21801.html','false',[],'',''],
	['PAGE','47276',jdecode('Study+Group+RSVP'),jdecode(''),'/47276.html','false',[],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='Champagne';
theSitetree.paletteFamily='7A2E25';
theSitetree.keyvisualId='11354';
theSitetree.keyvisualName='kv_11354.jpg';
theSitetree.fontsetId='31944';
theSitetree.graphicsetId='13787';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='7A2E25';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Champagne',
				paletteFamily: 	'7A2E25',
				keyvisualId: 	'11354',
				keyvisualName: 	'kv_11354.jpg',
				fontsetId: 		'31944',
				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: '20100718-223344'
};
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: '20100322-165455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2143',
internalId:  '',
customField: '20100321-164716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2164',
internalId:  '',
customField: '20100503-030750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2185',
internalId:  '',
customField: '20100125-005355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2206',
internalId:  '',
customField: '20090707-115919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2227',
internalId:  '',
customField: '20090707-115756'
};
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: '20100826-010847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7701',
internalId:  '',
customField: '20100901-180526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20081019-083740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8401',
internalId:  '',
customField: '20090707-115327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9522',
internalId:  '',
customField: '20081019-090555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9501',
internalId:  '',
customField: '20100827-110023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20100802-091909'
};
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: '20100607-134818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54449',
internalId:  '',
customField: '20091226-182831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66075',
internalId:  '',
customField: '20100714-091814'
};
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;'
};
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();
};
