/* [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','1901',jdecode('Home'),jdecode(''),'/1901.html','true',[],''],
	['PAGE','1952',jdecode('About+Us'),jdecode(''),'/1952/index.html','true',[ 
		['PAGE','9001',jdecode('Financials'),jdecode(''),'/1952/9001.html','true',[],''],
		['PAGE','12401',jdecode('Program+Impact'),jdecode(''),'/1952/12401.html','true',[],''],
		['PAGE','11801',jdecode('SAVE+Fast+Facts'),jdecode(''),'/1952/11801.html','true',[],'']
	],''],
	['PAGE','2036',jdecode('Media+Violence+Education'),jdecode(''),'/2036/index.html','true',[ 
		['PAGE','19601',jdecode('MVEP+Workshops'),jdecode(''),'/2036/19601.html','false',[],'']
	],''],
	['PAGE','1994',jdecode('SAVE+Awards+Program'),jdecode(''),'/1994/index.html','true',[ 
		['PAGE','46612',jdecode('2010+SAVE+Awards+Training+Photos'),jdecode(''),'/1994/46612.html','true',[],''],
		['PAGE','22901',jdecode('2009+SAVE+Awards+Photos'),jdecode(''),'/1994/22901.html','true',[],''],
		['PAGE','24201',jdecode('2008+SAVE+Awards+Photos'),jdecode(''),'/1994/24201.html','true',[],'']
	],''],
	['PAGE','2015',jdecode('SAVE+Students+Network'),jdecode(''),'/2015/index.html','true',[ 
		['PAGE','9801',jdecode('SAVESNet%40Linden+McKinley+HS'),jdecode(''),'/2015/9801.html','true',[],''],
		['PAGE','17301',jdecode('Linden+Photos'),jdecode(''),'/2015/17301.html','false',[],''],
		['PAGE','9822',jdecode('SAVESNet%40South+HS'),jdecode(''),'/2015/9822.html','true',[],''],
		['PAGE','29501',jdecode('Real+Talk+Book'),jdecode(''),'/2015/29501.html','true',[],'']
	],''],
	['PAGE','30101',jdecode('Support+SAVE'),jdecode(''),'/30101/index.html','true',[ 
		['PAGE','26901',jdecode('Be+a+Sponsor'),jdecode(''),'/30101/26901.html','true',[],''],
		['PAGE','30201',jdecode('Donate+Now'),jdecode(''),'/30101/30201.html','true',[],''],
		['PAGE','2057',jdecode('Get+Involved-Volunteer'),jdecode(''),'/30101/2057.html','true',[],'']
	],''],
	['PAGE','27501',jdecode('Youth+Success+Stories'),jdecode(''),'/27501.html','true',[],''],
	['PAGE','7301',jdecode('In+The+News'),jdecode(''),'/7301.html','true',[],''],
	['PAGE','2099',jdecode('Contact+Us'),jdecode(''),'/2099.html','true',[],''],
	['PAGE','34601',jdecode('Job+Postings'),jdecode(''),'/34601.html','true',[],''],
	['PAGE','13201',jdecode('Search'),jdecode(''),'/13201.html','false',[],''],
	['PAGE','39701',jdecode('Newsletter'),jdecode(''),'/39701.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Focus';
theSitetree.paletteFamily='6B3D76';
theSitetree.keyvisualId='7398';
theSitetree.keyvisualName='kv_7398.jpg';
theSitetree.fontsetId='16507';
theSitetree.graphicsetId='12175';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='8B5997';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Focus',
				paletteFamily: 	'6B3D76',
				keyvisualId: 	'7398',
				keyvisualName: 	'kv_7398.jpg',
				fontsetId: 		'16507',
				graphicsetId: 	'12175',
				contentColor: 	'FFFFFF',
				contentBGColor: '8B5997',
				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: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1901',
internalId:  '',
customField: '20091214-113343'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1952',
internalId:  '',
customField: '20090914-215541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9801',
internalId:  '',
customField: '20090901-180616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1994',
internalId:  '',
customField: '20100219-211652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2015',
internalId:  '',
customField: '20091112-172319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2036',
internalId:  '',
customField: '20090908-164321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2057',
internalId:  '',
customField: '20090914-220138'
};
webappMappings['7060']=webappMappings['7060-0d765d17347f6627eeb0ffbd0e43eb3e']={
webappId:    '7060',
documentId:  '17301',
internalId:  '0d765d17347f6627eeb0ffbd0e43eb3e',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2099',
internalId:  '',
customField: '20090914-215311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7301',
internalId:  '',
customField: '20091103-161045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20090914-200033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9822',
internalId:  '',
customField: '20090901-153123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11801',
internalId:  '',
customField: '20091124-161505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20090831-141107'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '13201',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13201',
internalId:  '',
customField: '20090831-142220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17301',
internalId:  '',
customField: '20090901-180534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20090902-135224'
};
webappMappings['7060']=webappMappings['7060-377e0c768ad657d2180c31b50413f8d1']={
webappId:    '7060',
documentId:  '22901',
internalId:  '377e0c768ad657d2180c31b50413f8d1',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22901',
internalId:  '',
customField: '20090908-172629'
};
webappMappings['7060']=webappMappings['7060-68aa8d41e0b765b094d9fd5ff5bda78f']={
webappId:    '7060',
documentId:  '24201',
internalId:  '68aa8d41e0b765b094d9fd5ff5bda78f',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24201',
internalId:  '',
customField: '20090908-172923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26901',
internalId:  '',
customField: '20091112-173715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27501',
internalId:  '',
customField: '20090930-111553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29501',
internalId:  '',
customField: '20091112-172659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30201',
internalId:  '',
customField: '20091124-150429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30101',
internalId:  '',
customField: '20100126-112807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34601',
internalId:  '',
customField: '20091124-145148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39701',
internalId:  '',
customField: '20100121-083045'
};
webappMappings['7060']=webappMappings['7060-60bfaa9fb3f02346870645756e9b5f6e']={
webappId:    '7060',
documentId:  '46612',
internalId:  '60bfaa9fb3f02346870645756e9b5f6e',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46612',
internalId:  '',
customField: '20100224-105035'
};
var canonHostname = 'wsc1.brinkster.com';
var accountId     = 'ABR330INLSH1';
var companyName   = 'Strategies+Against+Violence+Everywhere+%28SAVE%29';
var htmlTitle	  = '';
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();
};
