/* [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','5001',jdecode('Home'),jdecode(''),'/5001.html','true',[],'',''],
	['PAGE','5022',jdecode('Main+Page'),jdecode(''),'/5022.html','true',[],'',''],
	['PAGE','16115',jdecode('History+of+RCTS'),jdecode(''),'/16115/index.html','true',[ 
		['PAGE','16015',jdecode('The+Years+1917+-+1947'),jdecode(''),'/16115/16015.html','true',[],'',''],
		['PAGE','34329',jdecode('Principal+P.+Thigpen'),jdecode(''),'/16115/34329.html','true',[],'',''],
		['PAGE','16815',jdecode('Classes+of+1936'),jdecode(''),'/16115/16815.html','true',[],'',''],
		['PAGE','26815',jdecode('Graduates+of+1939'),jdecode(''),'/16115/26815.html','true',[],'',''],
		['PAGE','37529',jdecode('Class+of+1947+**New**'),jdecode(''),'/16115/37529.html','true',[],'',''],
		['PAGE','26015',jdecode('RCTS+Burns+Down'),jdecode(''),'/16115/26015.html','true',[],'',''],
		['PAGE','17315',jdecode('The+Years+1948+-+1970'),jdecode(''),'/16115/17315.html','true',[],'',''],
		['PAGE','23215',jdecode('1948+Football+Team'),jdecode(''),'/16115/23215.html','true',[],'',''],
		['PAGE','17215',jdecode('Class+of+1950'),jdecode(''),'/16115/17215.html','true',[],'',''],
		['PAGE','36129',jdecode('Class+of+1952'),jdecode(''),'/16115/36129.html','true',[],'',''],
		['PAGE','31129',jdecode('1958+Student+Council'),jdecode(''),'/16115/31129.html','true',[],'',''],
		['PAGE','35529',jdecode('Class+of+1958'),jdecode(''),'/16115/35529.html','true',[],'',''],
		['PAGE','31829',jdecode('Class+of+1959'),jdecode(''),'/16115/31829.html','true',[],'',''],
		['PAGE','32929',jdecode('Class+of+1960'),jdecode(''),'/16115/32929.html','true',[],'',''],
		['PAGE','36929',jdecode('Class+of+1961+**New**'),jdecode(''),'/16115/36929.html','true',[],'',''],
		['PAGE','26836',jdecode('Class+of+1963'),jdecode(''),'/16115/26836.html','true',[],'',''],
		['PAGE','30829',jdecode('Class+of+1969'),jdecode(''),'/16115/30829.html','true',[],'',''],
		['PAGE','26857',jdecode('RCTS+Marching+Band'),jdecode(''),'/16115/26857.html','true',[],'',''],
		['PAGE','33429',jdecode('Band+Beginnings'),jdecode(''),'/16115/33429.html','true',[],'',''],
		['PAGE','28729',jdecode('School+Days'),jdecode(''),'/16115/28729.html','true',[],'','']
	],'',''],
	['PAGE','32229',jdecode('Farewell+Old+Randolph'),jdecode(''),'/32229.html','true',[],'',''],
	['PAGE','19115',jdecode('Feeder+Schools'),jdecode(''),'/19115/index.html','true',[ 
		['PAGE','21015',jdecode('Mount+Carmel+School'),jdecode(''),'/19115/21015.html','true',[],'',''],
		['PAGE','21036',jdecode('Rock+Mills+Junior+High'),jdecode(''),'/19115/21036.html','true',[],'',''],
		['PAGE','21057',jdecode('Wehadkee+School'),jdecode(''),'/19115/21057.html','true',[],'','']
	],'',''],
	['PAGE','13115',jdecode('About+us'),jdecode(''),'/13115/index.html','true',[ 
		['PAGE','13136',jdecode('History'),jdecode(''),'/13115/13136.html','true',[],'',''],
		['PAGE','13157',jdecode('Board+of+directors'),jdecode(''),'/13115/13157.html','true',[],'',''],
		['PAGE','13178',jdecode('Statute'),jdecode(''),'/13115/13178.html','false',[],'',''],
		['PAGE','13199',jdecode('Becoming+a+member'),jdecode(''),'/13115/13199.html','false',[],'',''],
		['PAGE','13220',jdecode('Patrons'),jdecode(''),'/13115/13220.html','false',[],'','']
	],'',''],
	['PAGE','13241',jdecode('Foundation'),jdecode(''),'/13241.html','false',[],'',''],
	['PAGE','20415',jdecode('Scholarships+Forms'),jdecode(''),'/20415.html','true',[],'',''],
	['PAGE','13262',jdecode('News'),jdecode(''),'/13262.html','true',[],'',''],
	['PAGE','13283',jdecode('Contribute+to+RCTSSF'),jdecode(''),'/13283.html','true',[],'',''],
	['PAGE','13304',jdecode('Patrons'),jdecode(''),'/13304.html','true',[],'',''],
	['PAGE','23815',jdecode('DVDs+and+Publications'),jdecode(''),'/23815/index.html','true',[ 
		['PAGE','24815',jdecode('DVD+Liner+Notes'),jdecode(''),'/23815/24815.html','true',[],'','']
	],'',''],
	['PAGE','13325',jdecode('Contact'),jdecode(''),'/13325.html','true',[],'',''],
	['PAGE','15715',jdecode('Guest+Book'),jdecode(''),'/15715.html','true',[],'','']];
var siteelementCount=43;
theSitetree.topTemplateName='Boston';
theSitetree.paletteFamily='832A2A';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='11067';
theSitetree.graphicsetId='11840';
theSitetree.contentColor='FFC77E';
theSitetree.contentBGColor='A34242';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Boston',
				paletteFamily: 	'832A2A',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'11067',
				graphicsetId: 	'11840',
				contentColor: 	'FFC77E',
				contentBGColor: 'A34242',
				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:  '5022',
internalId:  '',
customField: '20090414-203420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20090406-183556'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13115',
internalId:  '',
customField: '20090316-233921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13220',
internalId:  '',
customField: '20081114-191658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13136',
internalId:  '',
customField: '20081114-191658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13157',
internalId:  '',
customField: '20090317-224846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13178',
internalId:  '',
customField: '20081114-191658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13199',
internalId:  '',
customField: '20081114-191658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13241',
internalId:  '',
customField: '20081114-191658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13262',
internalId:  '',
customField: '20100524-224508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13283',
internalId:  '',
customField: '20090316-233457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13304',
internalId:  '',
customField: '20090317-005925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13325',
internalId:  '',
customField: '20090406-200612'
};
webappMappings['1002']=webappMappings['1002-15715ahw050in3y07']={
webappId:    '1002',
documentId:  '15715',
internalId:  '15715ahw050in3y07',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15715',
internalId:  '',
customField: '20090317-180109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16115',
internalId:  '',
customField: '20100316-221728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16015',
internalId:  '',
customField: '20100316-222609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16815',
internalId:  '',
customField: '20090319-205933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17215',
internalId:  '',
customField: '20090317-223504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17315',
internalId:  '',
customField: '20090328-205016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19115',
internalId:  '',
customField: '20090328-211734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20415',
internalId:  '',
customField: '20100317-001629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21015',
internalId:  '',
customField: '20090406-182928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21036',
internalId:  '',
customField: '20090406-183139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21057',
internalId:  '',
customField: '20090406-183253'
};
webappMappings['1501']=webappMappings['1501-4113345']={
webappId:    '1501',
documentId:  '5001',
internalId:  '4113345',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23215',
internalId:  '',
customField: '20090321-215935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23815',
internalId:  '',
customField: '20090811-221822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24815',
internalId:  '',
customField: '20090322-143935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26015',
internalId:  '',
customField: '20090406-184957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26815',
internalId:  '',
customField: '20090328-195931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26836',
internalId:  '',
customField: '20090328-203123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26857',
internalId:  '',
customField: '20090414-200404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28729',
internalId:  '',
customField: '20090406-182543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30829',
internalId:  '',
customField: '20090406-191312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31129',
internalId:  '',
customField: '20090406-193716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31829',
internalId:  '',
customField: '20090414-195322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32229',
internalId:  '',
customField: '20090414-202854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32929',
internalId:  '',
customField: '20090518-162912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33429',
internalId:  '',
customField: '20090811-212758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34329',
internalId:  '',
customField: '20090615-221934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35529',
internalId:  '',
customField: '20090908-214351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36129',
internalId:  '',
customField: '20090909-174855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36929',
internalId:  '',
customField: '20090916-092555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37529',
internalId:  '',
customField: '20091007-210028'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050IN3Y07';
var companyName   = 'Randolph+County+Training+School';
var htmlTitle	  = 'RCTS+Scholarship+Foundation+-+An+American+Institution+1917-1970';
var metaKeywords  = 'high+school+scholarship+roanoke+alabama+rosenwald+foundation+black+negro+African-+American+education+randolph+county';
var metaContents  = 'Randolph+County+Training+School+Scholarship+Foundation';
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();
};
