/* [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','16501',jdecode('Home'),jdecode(''), jdecode('%2F16501.html'), 'true',[],'',''],
	['PAGE','13701',jdecode('News+and+Calendar'),jdecode(''), jdecode('%2F13701.html'), 'true',[],'',''],
	['PAGE','88112',jdecode('Growing+Greatness+Summit'),jdecode(''), jdecode('%2F88112.html'), 'false',[],'',''],
	['PAGE','15101',jdecode('Mentoring+with+Proactive'),jdecode(''), jdecode('%2F15101.html'), 'true',[],'',''],
	['PAGE','60401',jdecode('Art+In+Action+Program'),jdecode(''), jdecode('%2F60401.html'), 'true',[],'',''],
	['PAGE','75312',jdecode('Sept.+17-24+-+Peace+Week'),jdecode(''), jdecode('%2F75312.html'), 'false',[],'',''],
	['PAGE','82012',jdecode('Get+Ya+Dreamin%26%23x27%3B+On%21'),jdecode(''), jdecode('%2F82012.html'), 'true',[],'',''],
	['PAGE','8436',jdecode('Support+Be+Proactive%21'),jdecode(''), jdecode('%2F8436.html'), 'true',[],'',''],
	['PAGE','48001',jdecode('Action+Heroes'),jdecode(''), jdecode('%2F48001.html'), 'true',[],'',''],
	['PAGE','67001',jdecode('Media+Gallery'),jdecode(''), jdecode('%2F67001.html'), 'true',[],'',''],
	['PAGE','8352',jdecode('About+Be+Proactive'),jdecode(''), jdecode('%2F8352.html'), 'true',[],'',''],
	['PAGE','94112',jdecode('Our+Accomplishments'),jdecode(''), jdecode('%2F94112.html'), 'true',[],'',''],
	['PAGE','8457',jdecode('Contact+Us'),jdecode(''), jdecode('%2F8457.html'), 'true',[],'',''],
	['PAGE','73712',jdecode('8%2F27+-+Going+Green+Fair%21'),jdecode(''), jdecode('%2F73712.html'), 'false',[],'',''],
	['PAGE','26101',jdecode('Art+In+Action+Fundraiser'),jdecode(''), jdecode('%2F26101.html'), 'false',[],'',''],
	['PAGE','57601',jdecode('Appreciation+Events'),jdecode(''), jdecode('%2F57601.html'), 'false',[],'',''],
	['PAGE','8478',jdecode('Resources'),jdecode(''), jdecode('%2F8478.html'), 'false',[],'',''],
	['PAGE','50601',jdecode('Art+In+Action+-+Sponsorship+Levels'),jdecode(''), jdecode('%2F50601.html'), 'false',[],'','']];
var siteelementCount=18;
theSitetree.topTemplateName='Hands';
theSitetree.paletteFamily='999999';
theSitetree.keyvisualId='7395';
theSitetree.keyvisualName='kv_7395.jpg';
theSitetree.fontsetId='16502';
theSitetree.graphicsetId='12167';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp13-cbeyon',
  product: 'WSCSYSSSSLYTC2ZA'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Hands',
				paletteFamily: 	'999999',
				keyvisualId: 	'7395',
				keyvisualName: 	'kv_7395.jpg',
				fontsetId: 		'16502',
				graphicsetId: 	'12167',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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:  '26101',
internalId:  '',
customField: '20110602-150156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8352',
internalId:  '',
customField: '20120125-140658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50601',
internalId:  '',
customField: '20110322-113026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48001',
internalId:  '',
customField: '20120127-162701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8457',
internalId:  '',
customField: '20111229-151207'
};
webappMappings['7008']=webappMappings['7008-15357']={
webappId:    '7008',
documentId:  '8457',
internalId:  '15357',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8478',
internalId:  '',
customField: '20110310-121605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8436',
internalId:  '',
customField: '20110926-133020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20120210-181235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15101',
internalId:  '',
customField: '20120210-173752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16501',
internalId:  '',
customField: '20120210-180954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57601',
internalId:  '',
customField: '20110516-130527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60401',
internalId:  '',
customField: '20120210-174035'
};
webappMappings['7060']=webappMappings['7060-f5451bc2d286ad63dfc242692adb9b35']={
webappId:    '7060',
documentId:  '67001',
internalId:  'f5451bc2d286ad63dfc242692adb9b35',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67001',
internalId:  '',
customField: '20111221-143804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73712',
internalId:  '',
customField: '20110725-163151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75312',
internalId:  '',
customField: '20110902-121046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82012',
internalId:  '',
customField: '20110916-195347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88112',
internalId:  '',
customField: '20111206-142615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94112',
internalId:  '',
customField: '20111228-162003'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVF340I7CR0K';
var companyName   = 'Growing+Greatness...One+Person+at+a+Time%21';
var htmlTitle	  = 'Be+Proactive+Foundation%2C+Inc.';
var metaKeywords  = 'mentor%2C+mentoring%2C+tutor%2C+tutoring%2C+youth%2C+youth+programs%2C+youth+enrichment%2C+skill+building%2C+character+building%2C+georgia+non-profits%2C+georgia+non+profits%2C+non-profits%2C+donate%2C+donations%2C+Atlanta%2C+youth+development';
var metaContents  = 'The+Be+Proactive+Foundation%E2%80%99s+mission+is+to+provide+education%2C+enrichment+and+mental+health+services+aimed+at+inspiring+and+coaching+metro+Atlanta+youth+and+families+to+overcome+hardships+and+become+more+productive%2C+contributing+members+of+society.+Current+programs+include+a+one-on-one+mentoring+program%2C+the+I+Am+Proactive+Youth+and+Family+Summit%2C+resource+fairs+and+other+community-building+activities.+The+Be+Proactive+Foundation+was+established+in+2008+and+received+its+IRS+tax-exempt+status+in+2009.+';
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();
};

