/* [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','2001',jdecode('Home'),jdecode(''), jdecode('%2F2001.html'), 'true',[],'',''],
	['PAGE','2052',jdecode('About+Our+School'),jdecode(''), jdecode('%2F2052.html'), 'true',[],'',''],
	['PAGE','46541',jdecode('School+Learning+Expectations'),jdecode(''), jdecode('%2F46541.html'), 'true',[],'',''],
	['PAGE','53341',jdecode('Administration'),jdecode(''), jdecode('%2F53341.html'), 'true',[],'',''],
	['PAGE','51841',jdecode('Teachers'),jdecode(''), jdecode('%2F51841%2Findex.html'), 'true',[ 
		['PAGE','53041',jdecode('Pre-Kindergarten'),jdecode(''), jdecode('%2F51841%2F53041.html'), 'true',[],'',''],
		['PAGE','53062',jdecode('Kindergarten'),jdecode(''), jdecode('%2F51841%2F53062.html'), 'true',[],'',''],
		['PAGE','51862',jdecode('First+Grade'),jdecode(''), jdecode('%2F51841%2F51862.html'), 'true',[],'',''],
		['PAGE','51883',jdecode('Second+Grade'),jdecode(''), jdecode('%2F51841%2F51883.html'), 'true',[],'',''],
		['PAGE','51904',jdecode('Third+Grade'),jdecode(''), jdecode('%2F51841%2F51904.html'), 'true',[],'',''],
		['PAGE','51925',jdecode('Fourth+Grade'),jdecode(''), jdecode('%2F51841%2F51925.html'), 'true',[],'',''],
		['PAGE','51946',jdecode('Fifth+Grade'),jdecode(''), jdecode('%2F51841%2F51946.html'), 'true',[],'',''],
		['PAGE','51967',jdecode('Sixth+Grade'),jdecode(''), jdecode('%2F51841%2F51967.html'), 'true',[],'',''],
		['PAGE','51988',jdecode('Seventh+Grade'),jdecode(''), jdecode('%2F51841%2F51988.html'), 'true',[],'',''],
		['PAGE','52009',jdecode('Eighth+Grade'),jdecode(''), jdecode('%2F51841%2F52009.html'), 'true',[],'',''],
		['PAGE','53083',jdecode('Physical+Education+%28PE%29'),jdecode(''), jdecode('%2F51841%2F53083.html'), 'true',[],'',''],
		['PAGE','53125',jdecode('Music'),jdecode(''), jdecode('%2F51841%2F53125.html'), 'true',[],'',''],
		['PAGE','53146',jdecode('Choir'),jdecode(''), jdecode('%2F51841%2F53146.html'), 'true',[],'',''],
		['PAGE','53167',jdecode('Library'),jdecode(''), jdecode('%2F51841%2F53167.html'), 'true',[],'','']
	],'',''],
	['PAGE','53541',jdecode('Weekly+Lunch+Menu'),jdecode(''), jdecode('%2F53541.html'), 'true',[],'',''],
	['PAGE','29019',jdecode('Wednesday+Newsletter'),jdecode(''), jdecode('%2F29019.html'), 'true',[],'',''],
	['PAGE','52441',jdecode('Student+Council'),jdecode(''), jdecode('%2F52441%2Findex.html'), 'true',[ 
		['PAGE','52541',jdecode('Council+Officers'),jdecode(''), jdecode('%2F52441%2F52541.html'), 'true',[],'',''],
		['PAGE','52562',jdecode('Council+News'),jdecode(''), jdecode('%2F52441%2F52562.html'), 'true',[],'','']
	],'',''],
	['PAGE','10501',jdecode('Athletics'),jdecode(''), jdecode('%2F10501.html'), 'true',[],'',''],
	['PAGE','45641',jdecode('Upcoming+Events'),jdecode(''), jdecode('%2F45641.html'), 'true',[],'',''],
	['PAGE','49141',jdecode('Parent-Student+Handbook'),jdecode(''), jdecode('%2F49141.html'), 'true',[],'',''],
	['PAGE','17815',jdecode('School+Calendars'),jdecode(''), jdecode('%2F17815%2Findex.html'), 'true',[ 
		['PAGE','49225',jdecode('School+Year+Calendar'),jdecode(''), jdecode('%2F17815%2F49225.html'), 'true',[],'',''],
		['PAGE','52030',jdecode('Monthly+Calendars'),jdecode(''), jdecode('%2F17815%2F52030.html'), 'true',[],'',''],
		['PAGE','27619',jdecode('Parking+Lot+Duty+Calendar'),jdecode(''), jdecode('%2F17815%2F27619.html'), 'true',[],'','']
	],'',''],
	['PAGE','11101',jdecode('Schedules'),jdecode(''), jdecode('%2F11101.html'), 'true',[],'',''],
	['PAGE','10822',jdecode('Supply+Lists'),jdecode(''), jdecode('%2F10822%2Findex.html'), 'true',[ 
		['PAGE','49841',jdecode('Kindergarten'),jdecode(''), jdecode('%2F10822%2F49841.html'), 'true',[],'',''],
		['PAGE','49862',jdecode('First+Grade'),jdecode(''), jdecode('%2F10822%2F49862.html'), 'true',[],'',''],
		['PAGE','49883',jdecode('Second+Grade'),jdecode(''), jdecode('%2F10822%2F49883.html'), 'true',[],'',''],
		['PAGE','49904',jdecode('Third+Grade'),jdecode(''), jdecode('%2F10822%2F49904.html'), 'true',[],'',''],
		['PAGE','49925',jdecode('Fourth+Grade'),jdecode(''), jdecode('%2F10822%2F49925.html'), 'true',[],'',''],
		['PAGE','49946',jdecode('Fifth+Grade'),jdecode(''), jdecode('%2F10822%2F49946.html'), 'true',[],'',''],
		['PAGE','49967',jdecode('Sixth+Grade'),jdecode(''), jdecode('%2F10822%2F49967.html'), 'true',[],'',''],
		['PAGE','49988',jdecode('Seventh+Grade'),jdecode(''), jdecode('%2F10822%2F49988.html'), 'true',[],'',''],
		['PAGE','50009',jdecode('Eighth+Grade'),jdecode(''), jdecode('%2F10822%2F50009.html'), 'true',[],'','']
	],'',''],
	['PAGE','11301',jdecode('Forms'),jdecode(''), jdecode('%2F11301.html'), 'true',[],'',''],
	['PAGE','10522',jdecode('Parents%26%23x27%3B+Association'),jdecode(''), jdecode('%2F10522%2Findex.html'), 'true',[ 
		['PAGE','52051',jdecode('Association+Officers'),jdecode(''), jdecode('%2F10522%2F52051.html'), 'true',[],'',''],
		['PAGE','49341',jdecode('Association++Minutes'),jdecode(''), jdecode('%2F10522%2F49341.html'), 'true',[],'','']
	],'',''],
	['PAGE','52072',jdecode('Fundraisers'),jdecode(''), jdecode('%2F52072%2Findex.html'), 'true',[ 
		['PAGE','52093',jdecode('Fall+Festival'),jdecode(''), jdecode('%2F52072%2F52093.html'), 'true',[],'',''],
		['PAGE','52114',jdecode('Sees+Candy'),jdecode(''), jdecode('%2F52072%2F52114.html'), 'true',[],'',''],
		['PAGE','52135',jdecode('Casino+Night'),jdecode(''), jdecode('%2F52072%2F52135.html'), 'true',[],'',''],
		['PAGE','56141',jdecode('Golf+Tournament'),jdecode(''), jdecode('%2F52072%2F56141.html'), 'true',[],'','']
	],'',''],
	['PAGE','49204',jdecode('School+Board'),jdecode(''), jdecode('%2F49204%2Findex.html'), 'true',[ 
		['PAGE','52156',jdecode('Board+Members'),jdecode(''), jdecode('%2F49204%2F52156.html'), 'true',[],'',''],
		['PAGE','52177',jdecode('Board+Minutes'),jdecode(''), jdecode('%2F49204%2F52177.html'), 'true',[],'','']
	],'',''],
	['PAGE','21819',jdecode('General+Information-+FAQ'),jdecode(''), jdecode('%2F21819.html'), 'true',[],'',''],
	['PAGE','2094',jdecode('Directions'),jdecode(''), jdecode('%2F2094.html'), 'true',[],'',''],
	['PAGE','2115',jdecode('Contact'),jdecode(''), jdecode('%2F2115.html'), 'true',[],'',''],
	['PAGE','42641',jdecode('Surveys'),jdecode(''), jdecode('%2F42641.html'), 'true',[],'','']];
var siteelementCount=58;
theSitetree.topTemplateName='Jakarta';
theSitetree.paletteFamily='6176B2';
theSitetree.keyvisualId='7885';
theSitetree.keyvisualName='kv_7885.jpg';
theSitetree.fontsetId='16854';
theSitetree.graphicsetId='12296';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='ABBBE8';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'true',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Jakarta',
				paletteFamily: 	'6176B2',
				keyvisualId: 	'7885',
				keyvisualName: 	'kv_7885.jpg',
				fontsetId: 		'16854',
				graphicsetId: 	'12296',
				contentColor: 	'000000',
				contentBGColor: 'ABBBE8',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'6176B2',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20120129-180850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2052',
internalId:  '',
customField: '20120202-144000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49341',
internalId:  '',
customField: '20120202-183604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10822',
internalId:  '',
customField: '20120129-175512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2094',
internalId:  '',
customField: '20091002-233031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2115',
internalId:  '',
customField: '20120202-194702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11101',
internalId:  '',
customField: '20120129-165652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10501',
internalId:  '',
customField: '20120202-193535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10522',
internalId:  '',
customField: '20120202-150553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11301',
internalId:  '',
customField: '20120129-171322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52562',
internalId:  '',
customField: '20120208-173826'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49141',
internalId:  '',
customField: '20120202-143647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17815',
internalId:  '',
customField: '20120202-182720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45641',
internalId:  '',
customField: '20120202-182606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21819',
internalId:  '',
customField: '20120202-194407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27619',
internalId:  '',
customField: '20120202-182953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29019',
internalId:  '',
customField: '20120208-172230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52441',
internalId:  '',
customField: '20120201-204118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42641',
internalId:  '',
customField: '20120202-194821'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46541',
internalId:  '',
customField: '20120129-181053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49204',
internalId:  '',
customField: '20120202-192431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49225',
internalId:  '',
customField: '20120202-175012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49841',
internalId:  '',
customField: '20120129-180351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49862',
internalId:  '',
customField: '20120129-180351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49883',
internalId:  '',
customField: '20120129-180351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49904',
internalId:  '',
customField: '20120129-180351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49925',
internalId:  '',
customField: '20120129-180351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49946',
internalId:  '',
customField: '20120129-180351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49967',
internalId:  '',
customField: '20120129-180351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49988',
internalId:  '',
customField: '20120129-180352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50009',
internalId:  '',
customField: '20120129-180352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53341',
internalId:  '',
customField: '20120202-122927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51841',
internalId:  '',
customField: '20120202-145509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53041',
internalId:  '',
customField: '20120201-204919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53062',
internalId:  '',
customField: '20120201-204919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51862',
internalId:  '',
customField: '20120201-201905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51883',
internalId:  '',
customField: '20120201-201905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51904',
internalId:  '',
customField: '20120201-201905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51925',
internalId:  '',
customField: '20120201-201905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51946',
internalId:  '',
customField: '20120201-201905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51967',
internalId:  '',
customField: '20120201-201905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51988',
internalId:  '',
customField: '20120201-201905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52009',
internalId:  '',
customField: '20120201-201905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53083',
internalId:  '',
customField: '20120201-204920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53541',
internalId:  '',
customField: '20120202-130108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53125',
internalId:  '',
customField: '20120201-204920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53146',
internalId:  '',
customField: '20120201-204920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53167',
internalId:  '',
customField: '20120201-204920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52541',
internalId:  '',
customField: '20120201-202145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52030',
internalId:  '',
customField: '20120202-174548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52051',
internalId:  '',
customField: '20120202-183445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52072',
internalId:  '',
customField: '20120202-193755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52093',
internalId:  '',
customField: '20120202-193953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52114',
internalId:  '',
customField: '20120202-184019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52135',
internalId:  '',
customField: '20120202-185404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52156',
internalId:  '',
customField: '20120202-191530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52177',
internalId:  '',
customField: '20120202-191323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56141',
internalId:  '',
customField: '20120202-185926'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHVCO';
var companyName   = 'Mary+Immaculate+Queen+School';
var htmlTitle	  = '';
var metaKeywords  = 'Catholic%2C+Lemoore%2C+CA%2C+California%2C+Lemoore%2C+St.+Peters%2C+Elementary+Schools%2C+MIQ%2C+MIQ+School%2C+Elementary+School+in+Lemoore%2C+CA%2C+MIQ+School+Website%2C+MIQ+Website';
var metaContents  = 'Catholic+Schools+in+Lemoore%2C+CA+Elementary+Schools+Schools+in+Lemoore%0AMIQ+School';
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();
};

