/* [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 theSitetree=[ 
	['PAGE','3201',jdecode('Home'),jdecode(''),'/3201.html','true',[],''],
	['PAGE','44401',jdecode('About+Us'),jdecode(''),'/44401/index.html','true',[ 
		['PAGE','23601',jdecode('Agency+History'),jdecode(''),'/44401/23601.html','true',[],''],
		['PAGE','23622',jdecode('Board+of+Directors'),jdecode(''),'/44401/23622.html','true',[],''],
		['PAGE','23643',jdecode('BBBS+Staff'),jdecode(''),'/44401/23643.html','true',[],''],
		['PAGE','3637',jdecode('How+to+Find+Us'),jdecode(''),'/44401/3637.html','true',[],'']
	],''],
	['PAGE','3322',jdecode('Become+a+Mentor'),jdecode(''),'/3322/index.html','true',[ 
		['PAGE','3343',jdecode('School+Program'),jdecode(''),'/3322/3343.html','true',[],''],
		['PAGE','13601',jdecode('Community+Program'),jdecode(''),'/3322/13601.html','true',[],''],
		['PAGE','67901',jdecode('True+Story'),jdecode(''),'/3322/67901.html','true',[],''],
		['PAGE','3616',jdecode('Volunteer+Now'),jdecode(''),'/3322/3616.html','true',[],'']
	],''],
	['PAGE','64701',jdecode('Male+Recruitment'),jdecode(''),'/64701/index.html','true',[ 
		['PAGE','66001',jdecode('Events'),jdecode(''),'/64701/66001.html','true',[],''],
		['PAGE','73701',jdecode('Big+Brothers+in+Action%21'),jdecode(''),'/64701/73701.html','true',[],''],
		['PAGE','74901',jdecode('National+Partnership+News'),jdecode(''),'/64701/74901.html','true',[],'']
	],''],
	['PAGE','3385',jdecode('Enroll+a+Little'),jdecode(''),'/3385/index.html','true',[ 
		['PAGE','3406',jdecode('LITTLE+Links'),jdecode(''),'/3385/3406.html','true',[],'']
	],''],
	['PAGE','3427',jdecode('For+Matches+Only'),jdecode(''),'/3427/index.html','true',[ 
		['PAGE','26601',jdecode('Activities+by+Location'),jdecode(''),'/3427/26601.html','true',[],''],
		['PAGE','29201',jdecode('Community+Service'),jdecode(''),'/3427/29201.html','true',[],''],
		['PAGE','48801',jdecode('Discounts+for+Matches'),jdecode(''),'/3427/48801.html','true',[],'']
	],''],
	['PAGE','3490',jdecode('Big+Magic+Golf+Classic'),jdecode(''),'/3490/index.html','true',[ 
		['PAGE','3469',jdecode('Special+Events'),jdecode(''),'/3490/3469.html','true',[],''],
		['PAGE','3448',jdecode('Bowl+For+Kids+Sake'),jdecode(''),'/3490/3448.html','true',[],'']
	],''],
	['PAGE','3511',jdecode('More+Ways+to+Help'),jdecode(''),'/3511/index.html','true',[ 
		['PAGE','3532',jdecode('Student+Groups'),jdecode(''),'/3511/3532.html','true',[],''],
		['PAGE','3553',jdecode('Companies'),jdecode(''),'/3511/3553.html','true',[],''],
		['PAGE','3574',jdecode('Nonprofits+'),jdecode(''),'/3511/3574.html','true',[],''],
		['PAGE','68501',jdecode('New+Opportunities%21'),jdecode(''),'/3511/68501.html','true',[],'']
	],''],
	['PAGE','50401',jdecode('Donate+Now'),jdecode(''),'/50401/index.html','true',[ 
		['PAGE','51501',jdecode('Donation+Options'),jdecode(''),'/50401/51501.html','true',[],''],
		['PAGE','51522',jdecode('Big+Magic'),jdecode(''),'/50401/51522.html','true',[],''],
		['PAGE','25001',jdecode('Unique+Ways+to+Give'),jdecode(''),'/50401/25001.html','true',[],'']
	],''],
	['PAGE','3595',jdecode('Donor+Wall'),jdecode(''),'/3595.html','true',[],''],
	['PAGE','3301',jdecode('Stay+Informed'),jdecode(''),'/3301.html','true',[],''],
	['PAGE','55101',jdecode('HelpSource+Records'),jdecode(''),'/55101.html','true',[],'']];
var siteelementCount=36;
theSitetree.topTemplateName='Tide';
theSitetree.paletteFamily='DF83EC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='13619';
theSitetree.graphicsetId='12070';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Tide',
				paletteFamily: 	'DF83EC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'13619',
				graphicsetId: 	'12070',
				contentColor: 	'FFFFFF',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-7049']={
webappId:    '7008',
documentId:  '3616',
internalId:  '7049',
customField: 'language:en;country:US;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '3637',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3201',
internalId:  '',
customField: '20100716-115224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20080911-112037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3322',
internalId:  '',
customField: '20080919-103505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3595',
internalId:  '',
customField: '20100510-141312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3616',
internalId:  '',
customField: '20090911-125028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3637',
internalId:  '',
customField: '20080806-164102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3511',
internalId:  '',
customField: '20090929-175824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3574',
internalId:  '',
customField: '20090116-095212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3427',
internalId:  '',
customField: '20080919-113519'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3385',
internalId:  '',
customField: '20090827-152608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3448',
internalId:  '',
customField: '20100510-141250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3343',
internalId:  '',
customField: '20080924-150500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20080924-150716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23601',
internalId:  '',
customField: '20080915-114322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23622',
internalId:  '',
customField: '20100419-144004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3406',
internalId:  '',
customField: '20081107-133414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3469',
internalId:  '',
customField: '20090916-165343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3490',
internalId:  '',
customField: '20100419-142750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3532',
internalId:  '',
customField: '20090827-153948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3553',
internalId:  '',
customField: '20080925-152351'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '3201',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-11302128']={
webappId:    '1501',
documentId:  '3201',
internalId:  '11302128',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29201',
internalId:  '',
customField: '20080919-103727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64701',
internalId:  '',
customField: '20090819-111758'
};
webappMappings['7050']=webappMappings['7050-4348']={
webappId:    '7050',
documentId:  '3301',
internalId:  '4348',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23643',
internalId:  '',
customField: '20100419-144158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25001',
internalId:  '',
customField: '20090901-094658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26601',
internalId:  '',
customField: '20081008-105916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44401',
internalId:  '',
customField: '20090901-094732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48801',
internalId:  '',
customField: '20081008-112936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50401',
internalId:  '',
customField: '20081210-095110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51501',
internalId:  '',
customField: '20081210-095334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51522',
internalId:  '',
customField: '20090901-094945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55101',
internalId:  '',
customField: '20081204-134540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66001',
internalId:  '',
customField: '20090813-130032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67901',
internalId:  '',
customField: '20090827-152001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68501',
internalId:  '',
customField: '20090916-171339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73701',
internalId:  '',
customField: '20090819-154933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74901',
internalId:  '',
customField: '20090827-152239'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INECZL';
var companyName   = 'Big+Brothers+Big+Sisters+of+Washtenaw+';
var htmlTitle	  = 'Big+Brothers+Big+Sisters+';
var metaKeywords  = 'Washtenaw%2C+Ann+Arbor%2C+Ypsilanti%2C+mentor%2C+mentoring%2C+mentorship%2C+volunteer%2C+magic%2C+Bigs%2C+Littles%2C+kids%2C+youth%2C+children%2C+volunteering%2C+big+brother%2C+big+sister%2C+Bowl%2C+Golf%2C+BFKS%2C+Bowl+for+Kids+Sake%2C+bigbrother%2C+bigsister%2C+little+brother%2C+little+sister%2C+coaching%2C+match%2C+HelpSource%2C+HelpSource+records%2C+records+retrieval%2C+HelpSource+client%2C+HelpSource+Ann+Arbor';
var metaContents  = 'Welcome+to+Big+Brothers+Big+Sisters+of+Washtenaw+County%21+We+are+located+in+Ann+Arbor%2C+MI+but+we+serve+all+of+Washtenaw+County.+In+order+to+achieve+our+vision+of+providing+a+mentor+to+every+child+who+needs+and+wants+one%2C+we+need+your+help.+So%2C+browse+through+our+pages+and+find+out+how+you+can+turn+Little+Moments+into+Big+Magic%21+';
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();
};
