/* [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','901',jdecode('Home'),jdecode(''),'/901.html','true',[],'',''],
	['PAGE','6601',jdecode('About+Us'),jdecode(''),'/6601/index.html','true',[ 
		['PAGE','6622',jdecode('Vision+%26+Mission'),jdecode(''),'/6601/6622.html','true',[],'',''],
		['PAGE','6643',jdecode('What+is+Ethical+Culture%3F'),jdecode(''),'/6601/6643.html','true',[],'',''],
		['PAGE','11001',jdecode('Guiding+Principles'),jdecode(''),'/6601/11001.html','true',[],'',''],
		['PAGE','11022',jdecode('Map+for+Ethical+Culture'),jdecode(''),'/6601/11022.html','true',[],'',''],
		['PAGE','11043',jdecode('Celebrations+%26+Services'),jdecode(''),'/6601/11043.html','true',[],'',''],
		['PAGE','92701',jdecode('Becoming+a+member'),jdecode(''),'/6601/92701.html','true',[],'',''],
		['PAGE','6664',jdecode('History'),jdecode(''),'/6601/6664.html','true',[],'',''],
		['PAGE','130501',jdecode('Peace+Site+Awards'),jdecode(''),'/6601/130501.html','true',[],'','']
	],'',''],
	['PAGE','57701',jdecode('Leader+Search+Open'),jdecode(''),'/57701.html','false',[],'',''],
	['PAGE','6685',jdecode('Programs'),jdecode(''),'/6685/index.html','true',[ 
		['PAGE','15001',jdecode('CSA'),jdecode(''),'/6685/15001.html','true',[],'','']
	],'',''],
	['PAGE','34301',jdecode('Upcoming+Events'),jdecode(''),'/34301.html','true',[],'',''],
	['PAGE','8743',jdecode('Upcoming+Events'),jdecode(''),'/8743.html','false',[],'',''],
	['PAGE','137801',jdecode('Platforms'),jdecode(''),'/137801/index.html','true',[ 
		['PAGE','8722',jdecode('Good+Coffee+House'),jdecode(''),'/137801/8722.html','true',[],'','']
	],'',''],
	['PAGE','126801',jdecode('Study+Groups'),jdecode(''),'/126801.html','true',[],'',''],
	['PAGE','112201',jdecode('Good+Coffeehouse'),jdecode(''),'/112201.html','true',[],'',''],
	['PAGE','112222',jdecode('CSA+%28FELIX+HELIX%29'),jdecode(''),'/112222.html','true',[],'',''],
	['PAGE','119901',jdecode('Brooklyn+Forum+%28BFEJ%29'),jdecode(''),'/119901.html','true',[],'',''],
	['PAGE','98001',jdecode('Newsletters'),jdecode(''),'/98001.html','true',[],'',''],
	['PAGE','96301',jdecode('Recent+Platforms'),jdecode(''),'/96301/index.html','true',[ 
		['PAGE','96501',jdecode('Sunday%2C+February+15%2C+2009'),jdecode(''),'/96301/96501.html','true',[],'',''],
		['PAGE','100401',jdecode('Sunday%2C+March+22%2C+2009'),jdecode(''),'/96301/100401.html','true',[],'',''],
		['PAGE','104401',jdecode('Sunday%2C+March+29%2C+2009'),jdecode(''),'/96301/104401.html','true',[],'','']
	],'',''],
	['PAGE','92801',jdecode('%28Discussion%29+forum'),jdecode(''),'/92801.html','false',[],'',''],
	['PAGE','22701',jdecode('Calendar'),jdecode(''),'/22701.html','true',[],'',''],
	['PAGE','9901',jdecode('Event+Space+Rental'),jdecode(''),'/9901/index.html','true',[ 
		['PAGE','49901',jdecode('Event+Space+Album'),jdecode(''),'/9901/49901.html','true',[],'','']
	],'',''],
	['PAGE','14301',jdecode('Weddings+%26+Ceremonies'),jdecode(''),'/14301.html','true',[],'',''],
	['PAGE','111301',jdecode('Thoughts+to+Ponder'),jdecode(''),'/111301.html','true',[],'',''],
	['PAGE','16422',jdecode('BSEC+Tenants'),jdecode(''),'/16422.html','true',[],'',''],
	['PAGE','16401',jdecode('Ethical+Links'),jdecode(''),'/16401.html','true',[],'',''],
	['PAGE','6748',jdecode('Contact+Us'),jdecode(''),'/6748.html','true',[],'',''],
	['PAGE','17501',jdecode('Directions'),jdecode(''),'/17501.html','true',[],'',''],
	['PAGE','5806',jdecode('Guestbook'),jdecode(''),'/5806/index.html','true',[ 
		['PAGE','5801',jdecode('Read+Guestbook'),jdecode(''),'/5806/5801.html','false',[],'','']
	],'',''],
	['PAGE','106301',jdecode('Donations'),jdecode(''),'/106301.html','true',[],'','']];
var siteelementCount=39;
theSitetree.topTemplateName='Medium';
theSitetree.paletteFamily='F8F2E6';
theSitetree.keyvisualId='2165';
theSitetree.keyvisualName='garten.jpg';
theSitetree.fontsetId='356';
theSitetree.graphicsetId='410';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F8F2E6';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Medium',
				paletteFamily: 	'F8F2E6',
				keyvisualId: 	'2165',
				keyvisualName: 	'garten.jpg',
				fontsetId: 		'356',
				graphicsetId: 	'410',
				contentColor: 	'000000',
				contentBGColor: 'F8F2E6',
				a_color: 		'F8F2E6',
				b_color: 		'8EBFC6',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20071110-021950'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '17501',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8743',
internalId:  '',
customField: '20081218-093832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '901',
internalId:  '',
customField: '20100824-142841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137801',
internalId:  '',
customField: '20100824-143722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34301',
internalId:  '',
customField: '20100811-215753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20090810-111129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6622',
internalId:  '',
customField: '20071111-154628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6643',
internalId:  '',
customField: '20071110-222618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20071110-174437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11022',
internalId:  '',
customField: '20071110-173825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11043',
internalId:  '',
customField: '20071110-182022'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6664',
internalId:  '',
customField: '20071110-175517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6685',
internalId:  '',
customField: '20080109-024437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20100811-215955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8722',
internalId:  '',
customField: '20090218-111944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92801',
internalId:  '',
customField: '20090218-111000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22701',
internalId:  '',
customField: '20071115-013637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20100811-214904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49901',
internalId:  '',
customField: '20080403-130744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14301',
internalId:  '',
customField: '20090106-091445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16422',
internalId:  '',
customField: '20091104-085327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16401',
internalId:  '',
customField: '20100105-155652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6748',
internalId:  '',
customField: '20090731-173449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17501',
internalId:  '',
customField: '20071110-203030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5806',
internalId:  '',
customField: '20071110-021950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57701',
internalId:  '',
customField: '20091119-075936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92701',
internalId:  '',
customField: '20090218-110843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96301',
internalId:  '',
customField: '20090520-163750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96501',
internalId:  '',
customField: '20090310-173207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98001',
internalId:  '',
customField: '20100602-162646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100401',
internalId:  '',
customField: '20090331-150920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104401',
internalId:  '',
customField: '20090427-112424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106301',
internalId:  '',
customField: '20090501-181710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111301',
internalId:  '',
customField: '20090528-161611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112201',
internalId:  '',
customField: '20100811-213156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112222',
internalId:  '',
customField: '20090606-093149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119901',
internalId:  '',
customField: '20100316-220511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126801',
internalId:  '',
customField: '20100811-220339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130501',
internalId:  '',
customField: '20100316-230847'
};
webappMappings['7008']=webappMappings['7008-597']={
webappId:    '7008',
documentId:  '5806',
internalId:  '597',
customField: 'language:en;country:US;'
};
var canonHostname = 'cm4all01.west-datacenter.net';
var accountId     = 'AWH020IN24YC';
var companyName   = 'BROOKLYN+SOCIETY+FOR+ETHICAL+CULTURE';
var htmlTitle	  = 'Brooklyn+Society+for+Ethical+Culture';
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();
};
