/* [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','501',jdecode('Home'),jdecode(''), jdecode('%2F501.html'), 'true',[],'',''],
	['PAGE','97177',jdecode('Registration'),jdecode(''), jdecode('%2F97177.html'), 'true',[],'',''],
	['PAGE','55101',jdecode('Calendar'),jdecode(''), jdecode('%2F55101.html'), 'true',[],'',''],
	['PAGE','69101',jdecode('Newsletters+'),jdecode(''), jdecode('%2F69101.html'), 'true',[],'',''],
	['PAGE','23143',jdecode('Helpers+%26+Snack'),jdecode(''), jdecode('%2F23143.html'), 'true',[],'',''],
	['PAGE','82334',jdecode('Monthly+Themes'),jdecode(''), jdecode('%2F82334.html'), 'true',[],'',''],
	['PAGE','81434',jdecode('4K+Letter+of+the+Week'),jdecode(''), jdecode('%2F81434.html'), 'true',[],'',''],
	['PAGE','20001',jdecode('Play+Dough'),jdecode(''), jdecode('%2F20001.html'), 'true',[],'',''],
	['PAGE','96777',jdecode('Farm+Field+Trip'),jdecode(''), jdecode('%2F96777.html'), 'false',[],'',''],
	['PAGE','58043',jdecode('Scholastic'),jdecode(''), jdecode('%2F58043.html'), 'true',[],'',''],
	['PAGE','80623',jdecode('Artsonia'),jdecode(''), jdecode('%2F80623.html'), 'true',[],'',''],
	['PAGE','72401',jdecode('PCP+Logo+Wear'),jdecode(''), jdecode('%2F72401.html'), 'false',[],'',''],
	['PAGE','94487',jdecode('Photos'),jdecode(''), jdecode('%2F94487.html'), 'false',[],'',''],
	['PAGE','699',jdecode('Required+Forms'),jdecode(''), jdecode('%2F699.html'), 'true',[],'',''],
	['PAGE','657',jdecode('Tuition+%26+Fees'),jdecode(''), jdecode('%2F657.html'), 'true',[],'',''],
	['PAGE','52922',jdecode('School+Supplies'),jdecode(''), jdecode('%2F52922.html'), 'true',[],'',''],
	['PAGE','92966',jdecode('Orientation+Night'),jdecode(''), jdecode('%2F92966.html'), 'false',[],'',''],
	['PAGE','47801',jdecode('Summer+School'),jdecode(''), jdecode('%2F47801.html'), 'false',[],'',''],
	['PAGE','60801',jdecode('Survey'),jdecode(''), jdecode('%2F60801.html'), 'false',[],'',''],
	['PAGE','58001',jdecode('Holiday+Info'),jdecode(''), jdecode('%2F58001.html'), 'false',[],'',''],
	['PAGE','56601',jdecode('09-10+Newsletters+'),jdecode(''), jdecode('%2F56601.html'), 'false',[],'',''],
	['PAGE','73812',jdecode('All+Downloads'),jdecode(''), jdecode('%2F73812.html'), 'false',[],'',''],
	['PAGE','552',jdecode('About+Us'),jdecode(''), jdecode('%2F552.html'), 'true',[],'',''],
	['PAGE','594',jdecode('Our+Mission'),jdecode(''), jdecode('%2F594.html'), 'true',[],'',''],
	['PAGE','73512',jdecode('Our+Staff'),jdecode(''), jdecode('%2F73512.html'), 'true',[],'',''],
	['PAGE','615',jdecode('Classrooms'),jdecode(''), jdecode('%2F615.html'), 'true',[],'',''],
	['PAGE','636',jdecode('Curriculum'),jdecode(''), jdecode('%2F636.html'), 'true',[],'',''],
	['PAGE','58022',jdecode('Fundraisers'),jdecode(''), jdecode('%2F58022.html'), 'true',[],'',''],
	['PAGE','71501',jdecode('+Handbook'),jdecode(''), jdecode('%2F71501.html'), 'true',[],'',''],
	['PAGE','573',jdecode('Photos'),jdecode(''), jdecode('%2F573.html'), 'false',[],'',''],
	['PAGE','720',jdecode('Newsletters+08-09'),jdecode(''), jdecode('%2F720.html'), 'false',[],'',''],
	['PAGE','44201',jdecode('Interested%3F'),jdecode(''), jdecode('%2F44201.html'), 'false',[],'',''],
	['PAGE','741',jdecode('Contact+Us'),jdecode(''), jdecode('%2F741.html'), 'true',[],'',''],
	['PAGE','3701',jdecode('FAQ%26%23x27%3Bs'),jdecode(''), jdecode('%2F3701.html'), 'false',[],'',''],
	['PAGE','762',jdecode('Links'),jdecode(''), jdecode('%2F762.html'), 'true',[],'',''],
	['PAGE','22201',jdecode('PCP+Webmail'),jdecode(''), jdecode('%2F22201.html'), 'false',[],'',''],
	['PAGE','57501',jdecode('New+page'),jdecode(''), jdecode('%2F57501.html'), 'false',[],'','']];
var siteelementCount=37;
theSitetree.topTemplateName='Comedy';
theSitetree.paletteFamily='4871C0';
theSitetree.keyvisualId='2803';
theSitetree.keyvisualName='hand.jpg';
theSitetree.fontsetId='10601';
theSitetree.graphicsetId='10722';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='698BCB';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Comedy',
				paletteFamily: 	'4871C0',
				keyvisualId: 	'2803',
				keyvisualName: 	'hand.jpg',
				fontsetId: 		'10601',
				graphicsetId: 	'10722',
				contentColor: 	'000000',
				contentBGColor: '698BCB',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'36599C',
				e_color: 		'36599C',
				f_color: 		'36599C',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71501',
internalId:  '',
customField: '20110915-124741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20120209-104233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96777',
internalId:  '',
customField: '20110925-210554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52922',
internalId:  '',
customField: '20110804-181328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23143',
internalId:  '',
customField: '20120126-120954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20090104-194202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20090730-184516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20090118-234219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20090730-191054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20100913-093937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '720',
internalId:  '',
customField: '20090602-102404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44201',
internalId:  '',
customField: '20090120-005408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55101',
internalId:  '',
customField: '20111107-120640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20001',
internalId:  '',
customField: '20110922-122509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20110804-184122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20100222-132209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3701',
internalId:  '',
customField: '20090830-141928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '741',
internalId:  '',
customField: '20111107-123608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '762',
internalId:  '',
customField: '20090310-104650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22201',
internalId:  '',
customField: '20080728-151524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47801',
internalId:  '',
customField: '20100322-100624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56601',
internalId:  '',
customField: '20100504-141002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57501',
internalId:  '',
customField: '20090927-170848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58001',
internalId:  '',
customField: '20091207-105103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58022',
internalId:  '',
customField: '20111110-142720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58043',
internalId:  '',
customField: '20101013-093224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60801',
internalId:  '',
customField: '20100119-105140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69101',
internalId:  '',
customField: '20120209-105148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72401',
internalId:  '',
customField: '20110925-210954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73512',
internalId:  '',
customField: '20100913-085057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73812',
internalId:  '',
customField: '20101102-102236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80623',
internalId:  '',
customField: '20110925-210709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81434',
internalId:  '',
customField: '20110922-120058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82334',
internalId:  '',
customField: '20110922-115701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92966',
internalId:  '',
customField: '20110915-083629'
};
webappMappings['7060']=webappMappings['7060-b4d2f597641e237b6c283bfbdc5fee4b']={
webappId:    '7060',
documentId:  '94487',
internalId:  'b4d2f597641e237b6c283bfbdc5fee4b',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94487',
internalId:  '',
customField: '20110915-103055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97177',
internalId:  '',
customField: '20110925-211754'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INPCVV';
var companyName   = 'Parents+Cooperative+Preschool';
var htmlTitle	  = 'Parents+Cooperative+Preschool';
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();
};

