/* [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','53',jdecode('Home'),jdecode(''), jdecode('%2F53.html'), 'true',[],'',''],
	['PAGE','1134',jdecode('Contact'),jdecode(''), jdecode('%2F1134%2Findex.html'), 'true',[ 
		['PAGE','1152',jdecode('How+to+find+us'),jdecode(''), jdecode('%2F1134%2F1152.html'), 'true',[],'','']
	],'',''],
	['PAGE','1281',jdecode('Program+Schedule'),jdecode(''), jdecode('%2F1281.html'), 'true',[],'',''],
	['PAGE','1353',jdecode('Calendar'),jdecode(''), jdecode('%2F1353.html'), 'true',[],'',''],
	['PAGE','7854',jdecode('Forms'),jdecode(''), jdecode('%2F7854.html'), 'true',[],'',''],
	['PAGE','9294',jdecode('Tuition+Price+List'),jdecode(''), jdecode('%2F9294.html'), 'true',[],'',''],
	['PAGE','74',jdecode('Anderson+School'),jdecode(''), jdecode('%2F74%2Findex.html'), 'false',[ 
		['PAGE','1218',jdecode('Curriculum'),jdecode(''), jdecode('%2F74%2F1218.html'), 'true',[],'',''],
		['PAGE','6836',jdecode('Two+Year+Olds'),jdecode(''), jdecode('%2F74%2F6836.html'), 'true',[],'',''],
		['PAGE','6845',jdecode('Three+Year+Olds'),jdecode(''), jdecode('%2F74%2F6845.html'), 'true',[],'',''],
		['PAGE','6854',jdecode('Four+Year+Olds'),jdecode(''), jdecode('%2F74%2F6854.html'), 'true',[],'',''],
		['PAGE','6863',jdecode('Pre-Kindergarten'),jdecode(''), jdecode('%2F74%2F6863.html'), 'true',[],'',''],
		['PAGE','1245',jdecode('Our+Teachers'),jdecode(''), jdecode('%2F74%2F1245.html'), 'true',[],'',''],
		['PAGE','1254',jdecode('Photo+Gallery'),jdecode(''), jdecode('%2F74%2F1254.html'), 'true',[],'',''],
		['PAGE','9091',jdecode('Tour+our+school'),jdecode(''), jdecode('%2F74%2F9091.html'), 'true',[],'','']
	],'',''],
	['PAGE','83',jdecode('Eastgate+School'),jdecode(''), jdecode('%2F83%2Findex.html'), 'true',[ 
		['PAGE','1272',jdecode('Curriculum'),jdecode(''), jdecode('%2F83%2F1272.html'), 'true',[],'',''],
		['PAGE','6872',jdecode('Two+Year+Olds'),jdecode(''), jdecode('%2F83%2F6872.html'), 'true',[],'',''],
		['PAGE','6881',jdecode('Three+Year+Olds'),jdecode(''), jdecode('%2F83%2F6881.html'), 'true',[],'',''],
		['PAGE','6890',jdecode('Four+Year+Olds'),jdecode(''), jdecode('%2F83%2F6890.html'), 'true',[],'',''],
		['PAGE','6899',jdecode('Pre-Kindergarten'),jdecode(''), jdecode('%2F83%2F6899.html'), 'true',[],'',''],
		['PAGE','7220',jdecode('Calendar'),jdecode(''), jdecode('%2F83%2F7220.html'), 'true',[],'',''],
		['PAGE','7229',jdecode('Our+Teachers'),jdecode(''), jdecode('%2F83%2F7229.html'), 'true',[],'',''],
		['PAGE','7238',jdecode('Photo+Gallery'),jdecode(''), jdecode('%2F83%2F7238.html'), 'true',[],'',''],
		['PAGE','9100',jdecode('Tour+our+school'),jdecode(''), jdecode('%2F83%2F9100.html'), 'true',[],'','']
	],'',''],
	['PAGE','1326',jdecode('Children%26%23x27%3Bs+Center'),jdecode(''), jdecode('%2F1326%2Findex.html'), 'true',[ 
		['PAGE','1335',jdecode('Toddler+Curriculum'),jdecode(''), jdecode('%2F1326%2F1335.html'), 'true',[],'',''],
		['PAGE','8510',jdecode('Three+Year+Old+Curriculum'),jdecode(''), jdecode('%2F1326%2F8510.html'), 'true',[],'',''],
		['PAGE','8519',jdecode('Four+Year+Old+Curriculum'),jdecode(''), jdecode('%2F1326%2F8519.html'), 'true',[],'',''],
		['PAGE','8958',jdecode('Kindergarten+Curriculum'),jdecode(''), jdecode('%2F1326%2F8958.html'), 'true',[],'',''],
		['PAGE','8242',jdecode('Price+list'),jdecode(''), jdecode('%2F1326%2F8242.html'), 'true',[],'',''],
		['PAGE','8251',jdecode('Photo+Gallery'),jdecode(''), jdecode('%2F1326%2F8251.html'), 'true',[],'',''],
		['PAGE','8661',jdecode('Tour+our+Facility'),jdecode(''), jdecode('%2F1326%2F8661.html'), 'true',[],'','']
	],'','']];
var siteelementCount=34;
theSitetree.topTemplateName='Clearline';
theSitetree.paletteFamily='B71602';
theSitetree.keyvisualId='3299';
theSitetree.keyvisualName='kv_3299.jpg';
theSitetree.fontsetId='10421';
theSitetree.graphicsetId='10715';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'hps_testtown',
  product: 'WSCSYSSSSLYTCPH7'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Clearline',
				paletteFamily: 	'B71602',
				keyvisualId: 	'3299',
				keyvisualName: 	'kv_3299.jpg',
				fontsetId: 		'10421',
				graphicsetId: 	'10715',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'B71602',
				e_color: 		'989696',
				f_color: 		'989696',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-1462043']={
webappId:    '1501',
documentId:  '53',
internalId:  '1462043',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '53',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53',
internalId:  '',
customField: '20111214-120139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9294',
internalId:  '',
customField: '20111213-131257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1353',
internalId:  '',
customField: '20111213-130111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1134',
internalId:  '',
customField: '20111213-124836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1281',
internalId:  '',
customField: '20111213-125926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74',
internalId:  '',
customField: '20080314-150735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6836',
internalId:  '',
customField: '20070105-150937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1245',
internalId:  '',
customField: '20080917-134526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1254',
internalId:  '',
customField: '20090227-142214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9091',
internalId:  '',
customField: '20070824-193705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83',
internalId:  '',
customField: '20111212-130326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7229',
internalId:  '',
customField: '20111214-125944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7238',
internalId:  '',
customField: '20111214-130501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9100',
internalId:  '',
customField: '20070824-192623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1326',
internalId:  '',
customField: '20100723-092230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8251',
internalId:  '',
customField: '20100319-123939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8661',
internalId:  '',
customField: '20070712-160828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1152',
internalId:  '',
customField: '20090603-103516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7854',
internalId:  '',
customField: '20111213-130730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1218',
internalId:  '',
customField: '20070105-192226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6845',
internalId:  '',
customField: '20070105-192210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6854',
internalId:  '',
customField: '20070105-151809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6863',
internalId:  '',
customField: '20070105-152201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1272',
internalId:  '',
customField: '20111212-130927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6872',
internalId:  '',
customField: '20111214-122841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6881',
internalId:  '',
customField: '20111214-123259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6890',
internalId:  '',
customField: '20111214-124602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6899',
internalId:  '',
customField: '20111214-125749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7220',
internalId:  '',
customField: '20111214-130107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1335',
internalId:  '',
customField: '20070711-193454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8510',
internalId:  '',
customField: '20070711-202316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8519',
internalId:  '',
customField: '20070711-205254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8958',
internalId:  '',
customField: '20070808-190214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8242',
internalId:  '',
customField: '20100319-121436'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050IN39MW';
var companyName   = 'Winnie-the-Pooh+Preschool';
var htmlTitle	  = 'Winnie+The+Pooh+Schools';
var metaKeywords  = 'Anderson+Township+preschool+daycare%2C+Eastgate%2C+childrens+center%2C+Withamsville%2C+Cincinnati';
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();
};

