/* [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(''), jdecode('%2F5001.html'), 'true',[],'',''],
	['PAGE','5022',jdecode('Main+Page'),jdecode(''), jdecode('%2F5022.html'), 'true',[],'',''],
	['PAGE','16115',jdecode('History+of+RCTS'),jdecode(''), jdecode('%2F16115%2Findex.html'), 'true',[ 
		['PAGE','16015',jdecode('The+Years+1917+-+1939'),jdecode(''), jdecode('%2F16115%2F16015.html'), 'true',[],'',''],
		['PAGE','34329',jdecode('Principal+P.+Thigpen'),jdecode(''), jdecode('%2F16115%2F34329.html'), 'true',[],'',''],
		['PAGE','16815',jdecode('Classes+of+1936'),jdecode(''), jdecode('%2F16115%2F16815.html'), 'true',[],'',''],
		['PAGE','26815',jdecode('Graduates+of+1939'),jdecode(''), jdecode('%2F16115%2F26815.html'), 'true',[],'',''],
		['PAGE','17315',jdecode('The+Years+1940+-+1949'),jdecode(''), jdecode('%2F16115%2F17315.html'), 'true',[],'',''],
		['PAGE','26015',jdecode('RCTS+Burns+Down'),jdecode(''), jdecode('%2F16115%2F26015.html'), 'true',[],'',''],
		['PAGE','37529',jdecode('Class+of+1947'),jdecode(''), jdecode('%2F16115%2F37529.html'), 'true',[],'',''],
		['PAGE','23215',jdecode('1948+Football+Team'),jdecode(''), jdecode('%2F16115%2F23215.html'), 'true',[],'',''],
		['PAGE','45129',jdecode('Class+of+1949'),jdecode(''), jdecode('%2F16115%2F45129.html'), 'true',[],'','']
	],'',''],
	['PAGE','51529',jdecode('The+Years+1950-1959'),jdecode(''), jdecode('%2F51529%2Findex.html'), 'true',[ 
		['PAGE','17215',jdecode('Class+of+1950'),jdecode(''), jdecode('%2F51529%2F17215.html'), 'true',[],'',''],
		['PAGE','47950',jdecode('Class+of+1951+***New*'),jdecode(''), jdecode('%2F51529%2F47950.html'), 'true',[],'',''],
		['PAGE','36129',jdecode('Class+of+1952'),jdecode(''), jdecode('%2F51529%2F36129.html'), 'true',[],'',''],
		['PAGE','47971',jdecode('Class+of+1953+**New**'),jdecode(''), jdecode('%2F51529%2F47971.html'), 'true',[],'',''],
		['PAGE','47992',jdecode('Class+of+1954+**New**'),jdecode(''), jdecode('%2F51529%2F47992.html'), 'true',[],'',''],
		['PAGE','48013',jdecode('Class+of+1956+**New**'),jdecode(''), jdecode('%2F51529%2F48013.html'), 'true',[],'',''],
		['PAGE','48034',jdecode('Class+of+1957+**New**'),jdecode(''), jdecode('%2F51529%2F48034.html'), 'true',[],'',''],
		['PAGE','48055',jdecode('Class+of+1957+**New**'),jdecode(''), jdecode('%2F51529%2F48055.html'), 'true',[],'',''],
		['PAGE','31129',jdecode('1958+Student+Council'),jdecode(''), jdecode('%2F51529%2F31129.html'), 'true',[],'',''],
		['PAGE','35529',jdecode('Class+of+1958'),jdecode(''), jdecode('%2F51529%2F35529.html'), 'true',[],'',''],
		['PAGE','31829',jdecode('Class+of+1959'),jdecode(''), jdecode('%2F51529%2F31829.html'), 'true',[],'',''],
		['PAGE','48076',jdecode('Class+of+1959+in+Gowns'),jdecode(''), jdecode('%2F51529%2F48076.html'), 'true',[],'','']
	],'',''],
	['PAGE','51550',jdecode('The+Years+1960-1970'),jdecode(''), jdecode('%2F51550%2Findex.html'), 'true',[ 
		['PAGE','32929',jdecode('Class+of+1960'),jdecode(''), jdecode('%2F51550%2F32929.html'), 'true',[],'',''],
		['PAGE','36929',jdecode('Class+of+1961'),jdecode(''), jdecode('%2F51550%2F36929.html'), 'true',[],'',''],
		['PAGE','48097',jdecode('Class+of+1962+**New**'),jdecode(''), jdecode('%2F51550%2F48097.html'), 'true',[],'',''],
		['PAGE','26836',jdecode('Class+of+1963'),jdecode(''), jdecode('%2F51550%2F26836.html'), 'true',[],'',''],
		['PAGE','48118',jdecode('Class+of+1965+**New**'),jdecode(''), jdecode('%2F51550%2F48118.html'), 'true',[],'',''],
		['PAGE','48139',jdecode('Class+of+1968+**New**'),jdecode(''), jdecode('%2F51550%2F48139.html'), 'true',[],'',''],
		['PAGE','30829',jdecode('Class+of+1969'),jdecode(''), jdecode('%2F51550%2F30829.html'), 'true',[],'',''],
		['PAGE','48160',jdecode('Class+of+1970+**New**'),jdecode(''), jdecode('%2F51550%2F48160.html'), 'true',[],'',''],
		['PAGE','26857',jdecode('RCTS+Marching+Band'),jdecode(''), jdecode('%2F51550%2F26857.html'), 'true',[],'',''],
		['PAGE','33429',jdecode('Band+Beginnings'),jdecode(''), jdecode('%2F51550%2F33429.html'), 'true',[],'',''],
		['PAGE','28729',jdecode('School+Days'),jdecode(''), jdecode('%2F51550%2F28729.html'), 'true',[],'','']
	],'',''],
	['PAGE','32229',jdecode('Farewell+Old+Randolph'),jdecode(''), jdecode('%2F32229.html'), 'true',[],'',''],
	['PAGE','47929',jdecode('RCTS+as+Terry+Mfg.'),jdecode(''), jdecode('%2F47929.html'), 'true',[],'',''],
	['PAGE','48181',jdecode('RCTS+Reunions+**New**'),jdecode(''), jdecode('%2F48181.html'), 'true',[],'',''],
	['PAGE','19115',jdecode('Feeder+Schools'),jdecode(''), jdecode('%2F19115%2Findex.html'), 'true',[ 
		['PAGE','21015',jdecode('Mount+Carmel+School'),jdecode(''), jdecode('%2F19115%2F21015.html'), 'true',[],'',''],
		['PAGE','21036',jdecode('Rock+Mills+Junior+High'),jdecode(''), jdecode('%2F19115%2F21036.html'), 'true',[],'',''],
		['PAGE','21057',jdecode('Wehadkee+School'),jdecode(''), jdecode('%2F19115%2F21057.html'), 'true',[],'','']
	],'',''],
	['PAGE','13115',jdecode('About+us'),jdecode(''), jdecode('%2F13115%2Findex.html'), 'true',[ 
		['PAGE','13136',jdecode('History'),jdecode(''), jdecode('%2F13115%2F13136.html'), 'true',[],'',''],
		['PAGE','13157',jdecode('Board+of+directors'),jdecode(''), jdecode('%2F13115%2F13157.html'), 'true',[],'','']
	],'',''],
	['PAGE','20415',jdecode('Scholarships+Forms'),jdecode(''), jdecode('%2F20415.html'), 'true',[],'',''],
	['PAGE','13262',jdecode('News'),jdecode(''), jdecode('%2F13262.html'), 'true',[],'',''],
	['PAGE','13283',jdecode('Contribute+to+RCTSSF'),jdecode(''), jdecode('%2F13283.html'), 'true',[],'',''],
	['PAGE','13304',jdecode('Patrons'),jdecode(''), jdecode('%2F13304.html'), 'true',[],'',''],
	['PAGE','23815',jdecode('DVDs+and+Publications'),jdecode(''), jdecode('%2F23815%2Findex.html'), 'true',[ 
		['PAGE','24815',jdecode('DVD+Liner+Notes'),jdecode(''), jdecode('%2F23815%2F24815.html'), 'true',[],'','']
	],'',''],
	['PAGE','13325',jdecode('Contact'),jdecode(''), jdecode('%2F13325.html'), 'true',[],'',''],
	['PAGE','15715',jdecode('Guest+Book'),jdecode(''), jdecode('%2F15715.html'), 'true',[],'','']];
var siteelementCount=55;
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 prodDef={
  wl_name: 'netnation',
  product: 'WSCSYSSSSLYTC245'
};
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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5022',
internalId:  '',
customField: '20110530-000650'
};
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:  '51529',
internalId:  '',
customField: '20120203-190906'
};
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:  '48055',
internalId:  '',
customField: '20120131-195457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48034',
internalId:  '',
customField: '20120131-195731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13262',
internalId:  '',
customField: '20120201-133240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13283',
internalId:  '',
customField: '20110305-105726'
};
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: '20120201-131739'
};
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: '20110620-204538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20415',
internalId:  '',
customField: '20120201-132122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21015',
internalId:  '',
customField: '20090406-182928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21036',
internalId:  '',
customField: '20110620-202536'
};
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: '20110620-200732'
};
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: '20120201-131013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32229',
internalId:  '',
customField: '20110112-171052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32929',
internalId:  '',
customField: '20090518-162912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33429',
internalId:  '',
customField: '20110620-201320'
};
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'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45129',
internalId:  '',
customField: '20110927-215602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47992',
internalId:  '',
customField: '20120131-200014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48013',
internalId:  '',
customField: '20120131-195859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48076',
internalId:  '',
customField: '20120201-130837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48181',
internalId:  '',
customField: '20120131-212751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47971',
internalId:  '',
customField: '20120131-200135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47950',
internalId:  '',
customField: '20120201-125944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48097',
internalId:  '',
customField: '20120131-200706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48118',
internalId:  '',
customField: '20120131-200814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48139',
internalId:  '',
customField: '20120131-201039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48160',
internalId:  '',
customField: '20120131-201900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47929',
internalId:  '',
customField: '20120131-204356'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51550',
internalId:  '',
customField: '20120203-190906'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
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+history+DVD+book+';
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();
};

