/* [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','701',jdecode('Home'),jdecode(''),'/701.html','true',[],''],
	['PAGE','752',jdecode('About+Us'),jdecode(''),'/752/index.html','true',[ 
		['PAGE','23301',jdecode('Xavier%26%23x27%3Bs+Philosophy'),jdecode(''),'/752/23301.html','true',[],''],
		['PAGE','23322',jdecode('A+Charter+School%3F'),jdecode(''),'/752/23322.html','true',[],''],
		['PAGE','23343',jdecode('Classical+Education'),jdecode(''),'/752/23343.html','true',[],''],
		['PAGE','23364',jdecode('Character+Education+'),jdecode(''),'/752/23364.html','true',[],''],
		['PAGE','23385',jdecode('School%2FClass+Creeds'),jdecode(''),'/752/23385.html','true',[],''],
		['PAGE','106301',jdecode('Student+Handbook'),jdecode(''),'/752/106301.html','true',[],''],
		['PAGE','170501',jdecode('Dress+Code+Policy'),jdecode(''),'/752/170501.html','true',[],''],
		['PAGE','112201',jdecode('Secondary+Course+Catalogs'),jdecode(''),'/752/112201.html','true',[],''],
		['PAGE','127201',jdecode('State+Report+Card'),jdecode(''),'/752/127201.html','true',[],'']
	],''],
	['PAGE','773',jdecode('Events'),jdecode(''),'/773.html','true',[],''],
	['PAGE','815',jdecode('Faculty'),jdecode(''),'/815/index.html','true',[ 
		['PAGE','154701',jdecode('Elementary+Teachers'),jdecode(''),'/815/154701.html','true',[],''],
		['PAGE','154722',jdecode('Secondary+Teachers'),jdecode(''),'/815/154722.html','true',[],''],
		['PAGE','169001',jdecode('Pre-Algebra+Handbook'),jdecode(''),'/815/169001.html','false',[],'']
	],''],
	['PAGE','86401',jdecode('Enrollment'),jdecode(''),'/86401.html','true',[],''],
	['PAGE','74101',jdecode('Parent+Resources'),jdecode(''),'/74101.html','true',[],''],
	['PAGE','50401',jdecode('Newsletter'),jdecode(''),'/50401.html','true',[],''],
	['PAGE','74122',jdecode('Title+1'),jdecode(''),'/74122/index.html','true',[ 
		['PAGE','157801',jdecode('December+2009'),jdecode(''),'/74122/157801.html','true',[],''],
		['PAGE','153501',jdecode('November+2009'),jdecode(''),'/74122/153501.html','true',[],''],
		['PAGE','152422',jdecode('October+2009'),jdecode(''),'/74122/152422.html','true',[],''],
		['PAGE','152401',jdecode('August+2009'),jdecode(''),'/74122/152401.html','true',[],''],
		['PAGE','152101',jdecode('May+29%2C+2009'),jdecode(''),'/74122/152101.html','true',[],'']
	],''],
	['PAGE','74143',jdecode('PFA'),jdecode(''),'/74143/index.html','true',[ 
		['PAGE','173501',jdecode('February+2010'),jdecode(''),'/74143/173501.html','true',[],''],
		['PAGE','167901',jdecode('January+2010'),jdecode(''),'/74143/167901.html','true',[],''],
		['PAGE','161501',jdecode('December+2009'),jdecode(''),'/74143/161501.html','true',[],''],
		['PAGE','157101',jdecode('November+2009+Minutes'),jdecode(''),'/74143/157101.html','true',[],''],
		['PAGE','166401',jdecode('PFA+Newsletter'),jdecode(''),'/74143/166401.html','true',[],'']
	],''],
	['PAGE','30601',jdecode('Volunteers'),jdecode(''),'/30601/index.html','true',[ 
		['PAGE','164301',jdecode('Volunteer+Info'),jdecode(''),'/30601/164301.html','true',[],'']
	],''],
	['PAGE','878',jdecode('School+Board'),jdecode(''),'/878/index.html','true',[ 
		['PAGE','37022',jdecode('Members+%26+Contact+Info'),jdecode(''),'/878/37022.html','true',[],''],
		['PAGE','97901',jdecode('Board+Policy'),jdecode(''),'/878/97901.html','true',[],''],
		['PAGE','168301',jdecode('Current+Agenda'),jdecode(''),'/878/168301.html','true',[],''],
		['PAGE','158901',jdecode('January+2010'),jdecode(''),'/878/158901.html','true',[],''],
		['PAGE','26701',jdecode('January+2009'),jdecode(''),'/878/26701.html','true',[],''],
		['PAGE','26722',jdecode('February+2009'),jdecode(''),'/878/26722.html','true',[],''],
		['PAGE','26743',jdecode('March+2009'),jdecode(''),'/878/26743.html','true',[],''],
		['PAGE','48301',jdecode('April+2009'),jdecode(''),'/878/48301.html','true',[],''],
		['PAGE','55201',jdecode('May+2009'),jdecode(''),'/878/55201.html','true',[],''],
		['PAGE','161801',jdecode('June+2009'),jdecode(''),'/878/161801.html','true',[],''],
		['PAGE','161822',jdecode('July+2009'),jdecode(''),'/878/161822.html','true',[],''],
		['PAGE','161843',jdecode('August+2009'),jdecode(''),'/878/161843.html','true',[],''],
		['PAGE','161864',jdecode('September+2009'),jdecode(''),'/878/161864.html','true',[],''],
		['PAGE','161885',jdecode('October+2009'),jdecode(''),'/878/161885.html','true',[],''],
		['PAGE','161906',jdecode('November+2009'),jdecode(''),'/878/161906.html','true',[],''],
		['PAGE','161927',jdecode('December+2009'),jdecode(''),'/878/161927.html','true',[],'']
	],''],
	['PAGE','899',jdecode('Contact+Us'),jdecode(''),'/899.html','true',[],''],
	['PAGE','117001',jdecode('FAQs'),jdecode(''),'/117001.html','true',[],''],
	['PAGE','121501',jdecode('Student+Supply+Lists'),jdecode(''),'/121501.html','true',[],''],
	['PAGE','148701',jdecode('Yearbook'),jdecode(''),'/148701.html','true',[],''],
	['PAGE','163722',jdecode('Art+Gala+2009'),jdecode(''),'/163722.html','false',[],''],
	['PAGE','170301',jdecode('Giving'),jdecode(''),'/170301.html','false',[],''],
	['PAGE','171801',jdecode('Building+Progress'),jdecode(''),'/171801.html','true',[],'']];
var siteelementCount=57;
theSitetree.topTemplateName='Fellow';
theSitetree.paletteFamily='003C73';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10637';
theSitetree.graphicsetId='10691';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Fellow',
				paletteFamily: 	'003C73',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10637',
				graphicsetId: 	'10691',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48301',
internalId:  '',
customField: '20090610-144758'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164301',
internalId:  '',
customField: '20100309-143552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '701',
internalId:  '',
customField: '20100301-005619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74143',
internalId:  '',
customField: '20100308-165154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '752',
internalId:  '',
customField: '20091021-100641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23301',
internalId:  '',
customField: '20080214-205342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23322',
internalId:  '',
customField: '20080224-230250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23343',
internalId:  '',
customField: '20080224-230823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23364',
internalId:  '',
customField: '20080214-210940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23385',
internalId:  '',
customField: '20091021-130251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106301',
internalId:  '',
customField: '20090915-191002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '773',
internalId:  '',
customField: '20091209-153219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55201',
internalId:  '',
customField: '20080516-115911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '815',
internalId:  '',
customField: '20100301-012113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86401',
internalId:  '',
customField: '20100106-121454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50401',
internalId:  '',
customField: '20100309-144105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30601',
internalId:  '',
customField: '20100107-151347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '878',
internalId:  '',
customField: '20100225-152844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26701',
internalId:  '',
customField: '20090308-155456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26722',
internalId:  '',
customField: '20090308-154256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26743',
internalId:  '',
customField: '20090407-134121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154701',
internalId:  '',
customField: '20091220-131028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '899',
internalId:  '',
customField: '20100221-195950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37022',
internalId:  '',
customField: '20090820-113351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97901',
internalId:  '',
customField: '20090819-192113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170501',
internalId:  '',
customField: '20100221-202849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169001',
internalId:  '',
customField: '20100218-103158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '170301',
internalId:  '',
customField: '20100219-190511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167901',
internalId:  '',
customField: '20100205-133204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168301',
internalId:  '',
customField: '20100205-135737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74122',
internalId:  '',
customField: '20100112-154323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74101',
internalId:  '',
customField: '20091214-110341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166401',
internalId:  '',
customField: '20100204-165349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163722',
internalId:  '',
customField: '20100122-123216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112201',
internalId:  '',
customField: '20090515-213608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117001',
internalId:  '',
customField: '20090901-164521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121501',
internalId:  '',
customField: '20090902-135032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127201',
internalId:  '',
customField: '20091021-101433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148701',
internalId:  '',
customField: '20091109-151901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152101',
internalId:  '',
customField: '20091207-113837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152401',
internalId:  '',
customField: '20091207-113646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152422',
internalId:  '',
customField: '20091207-111853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153501',
internalId:  '',
customField: '20091209-153713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154722',
internalId:  '',
customField: '20091220-135036'
};
webappMappings['1501']=webappMappings['1501-4007303']={
webappId:    '1501',
documentId:  '701',
internalId:  '4007303',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157101',
internalId:  '',
customField: '20100107-120955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157801',
internalId:  '',
customField: '20100112-154352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158901',
internalId:  '',
customField: '20100113-104033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161501',
internalId:  '',
customField: '20100120-110217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161801',
internalId:  '',
customField: '20100120-112146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161822',
internalId:  '',
customField: '20100120-120906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161843',
internalId:  '',
customField: '20100120-120754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161864',
internalId:  '',
customField: '20100120-120518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161885',
internalId:  '',
customField: '20100120-120408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161906',
internalId:  '',
customField: '20100120-120257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161927',
internalId:  '',
customField: '20100120-120016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '171801',
internalId:  '',
customField: '20100304-175210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '173501',
internalId:  '',
customField: '20100308-164918'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN29F1';
var companyName   = 'Xavier+Charter+School';
var htmlTitle	  = 'Xavier+Charter+School';
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();
};
