/* [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','99156',jdecode('Home'),jdecode(''),'/99156.html','true',[],'',''],
	['PAGE','8401',jdecode('About+Us'),jdecode(''),'/8401.html','true',[],'',''],
	['PAGE','89056',jdecode('Our+History'),jdecode(''),'/89056.html','true',[],'',''],
	['PAGE','5901',jdecode('Links'),jdecode(''),'/5901.html','true',[],'',''],
	['PAGE','8464',jdecode('Employment'),jdecode(''),'/8464.html','true',[],'',''],
	['PAGE','29701',jdecode('OCA-Middle+School'),jdecode(''),'/29701/index.html','true',[ 
		['PAGE','49501',jdecode('Test+Scores'),jdecode(''),'/29701/49501.html','true',[],'',''],
		['PAGE','20101',jdecode('SARC'),jdecode(''),'/29701/20101.html','true',[],'',''],
		['PAGE','6601',jdecode('News'),jdecode(''),'/29701/6601.html','true',[],'',''],
		['PAGE','89077',jdecode('CTY%2FJohn+Hopkins'),jdecode(''),'/29701/89077.html','true',[],'',''],
		['PAGE','90856',jdecode('Enrichment+Programs'),jdecode(''),'/29701/90856.html','true',[],'',''],
		['PAGE','49522',jdecode('Calendar'),jdecode(''),'/29701/49522.html','true',[],'',''],
		['PAGE','4943',jdecode('Enrollment+Info.'),jdecode(''),'/29701/4943.html','true',[],'',''],
		['PAGE','4901',jdecode('Contact'),jdecode(''),'/29701/4901.html','true',[],'','']
	],'',''],
	['PAGE','29722',jdecode('OCHS+High+School'),jdecode(''),'/29722/index.html','true',[ 
		['PAGE','49543',jdecode('Test+Scores'),jdecode(''),'/29722/49543.html','true',[],'',''],
		['PAGE','80112',jdecode('SARC'),jdecode(''),'/29722/80112.html','true',[],'',''],
		['PAGE','29764',jdecode('News'),jdecode(''),'/29722/29764.html','true',[],'',''],
		['PAGE','49564',jdecode('Enrichment+Programs'),jdecode(''),'/29722/49564.html','true',[],'',''],
		['PAGE','89098',jdecode('OCHS+Merit+Programs'),jdecode(''),'/29722/89098.html','true',[],'',''],
		['PAGE','97856',jdecode('Athletics'),jdecode(''),'/29722/97856.html','true',[],'',''],
		['PAGE','29785',jdecode('Graduation+Requirements'),jdecode(''),'/29722/29785.html','true',[],'',''],
		['PAGE','84734',jdecode('College+Advising'),jdecode(''),'/29722/84734.html','true',[],'',''],
		['PAGE','93956',jdecode('Early+College+Program'),jdecode(''),'/29722/93956.html','true',[],'',''],
		['PAGE','89140',jdecode('Senior+Corner'),jdecode(''),'/29722/89140.html','true',[],'',''],
		['PAGE','42101',jdecode('Calendar'),jdecode(''),'/29722/42101.html','true',[],'',''],
		['PAGE','49585',jdecode('Enrollment+Info.'),jdecode(''),'/29722/49585.html','true',[],'',''],
		['PAGE','29806',jdecode('Contact'),jdecode(''),'/29722/29806.html','true',[],'','']
	],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Grace';
theSitetree.paletteFamily='FBB044';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='32047';
theSitetree.graphicsetId='13869';
theSitetree.contentColor='484848';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Grace',
				paletteFamily: 	'FBB044',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'32047',
				graphicsetId: 	'13869',
				contentColor: 	'484848',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99156',
internalId:  '',
customField: '20101001-154838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20101001-005055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29701',
internalId:  '',
customField: '20101001-075800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20080423-120533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4943',
internalId:  '',
customField: '20101001-144558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29722',
internalId:  '',
customField: '20101001-002410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49585',
internalId:  '',
customField: '20101001-144349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8401',
internalId:  '',
customField: '20101001-131846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8464',
internalId:  '',
customField: '20101001-075735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89056',
internalId:  '',
customField: '20100930-021425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49501',
internalId:  '',
customField: '20101001-004333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20101',
internalId:  '',
customField: '20100325-152655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20101001-151825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49522',
internalId:  '',
customField: '20100930-024028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89077',
internalId:  '',
customField: '20100930-021823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49543',
internalId:  '',
customField: '20101001-175414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49564',
internalId:  '',
customField: '20101001-155401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29764',
internalId:  '',
customField: '20101001-151730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29785',
internalId:  '',
customField: '20101001-155515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42101',
internalId:  '',
customField: '20100930-005628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29806',
internalId:  '',
customField: '20100928-234551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80112',
internalId:  '',
customField: '20100325-151659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84734',
internalId:  '',
customField: '20101001-155540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89140',
internalId:  '',
customField: '20101001-155626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89098',
internalId:  '',
customField: '20100928-234333'
};
webappMappings['1501']=webappMappings['1501-2899034']={
webappId:    '1501',
documentId:  '99156',
internalId:  '2899034',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90856',
internalId:  '',
customField: '20101001-141622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93956',
internalId:  '',
customField: '20101001-154141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97856',
internalId:  '',
customField: '20101001-150540'
};
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INEZBH';
var companyName   = 'Oakland+Charter+Academies';
var htmlTitle	  = 'Oakland+Charter+Academies';
var metaKeywords  = 'OCHS%2C+OCA%2C+Oakland+Charter+Academy%2C+Oakland+Charter+High+School%2C+High+Performing+School%2C+The+School+of+the+year.';
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();
};

