/* [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','10612',jdecode('Home'),jdecode(''), jdecode('%2F10612.html'), 'true',[],'',''],
	['PAGE','78422',jdecode('Summer+Schedule'),jdecode(''), jdecode('%2F78422.html'), 'true',[],'',''],
	['PAGE','10115',jdecode('FAQs'),jdecode(''), jdecode('%2F10115.html'), 'true',[],'',''],
	['PAGE','224298',jdecode('Holiday+Camps'),jdecode(''), jdecode('%2F224298.html'), 'true',[],'',''],
	['PAGE','226898',jdecode('Holiday+Camp+FAQs'),jdecode(''), jdecode('%2F226898.html'), 'true',[],'',''],
	['PAGE','10136',jdecode('Online+Registration'),jdecode(''), jdecode('%2F10136.html'), 'true',[],'',''],
	['PAGE','233298',jdecode('Camp+Fees'),jdecode(''), jdecode('%2F233298.html'), 'true',[],'',''],
	['PAGE','40312',jdecode('Printable+Registration'),jdecode(''), jdecode('%2F40312.html'), 'false',[],'',''],
	['PAGE','33512',jdecode('Purchase+Camps+Here'),jdecode(''), jdecode('%2F33512.html'), 'true',[],'',''],
	['PAGE','144310',jdecode('Before%2FAfter+Care'),jdecode(''), jdecode('%2F144310.html'), 'true',[],'',''],
	['PAGE','10094',jdecode('Camp+Staff'),jdecode(''), jdecode('%2F10094.html'), 'true',[],'',''],
	['PAGE','133399',jdecode('HoneyBaked%C2%AE+Lunch'),jdecode(''), jdecode('%2F133399.html'), 'true',[],'',''],
	['PAGE','141610',jdecode('Job+Opportunities'),jdecode(''), jdecode('%2F141610.html'), 'true',[],'',''],
	['PAGE','123077',jdecode('Location'),jdecode(''), jdecode('%2F123077.html'), 'true',[],'',''],
	['PAGE','123098',jdecode('Links'),jdecode(''), jdecode('%2F123098.html'), 'true',[],'',''],
	['PAGE','23212',jdecode('Contact+Us'),jdecode(''), jdecode('%2F23212.html'), 'true',[],'','']];
var siteelementCount=16;
theSitetree.topTemplateName='Beach';
theSitetree.paletteFamily='E7D794';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10469';
theSitetree.graphicsetId='10926';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E7C794';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Beach',
				paletteFamily: 	'E7D794',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10469',
				graphicsetId: 	'10926',
				contentColor: 	'000000',
				contentBGColor: 'E7C794',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FF503F',
				e_color: 		'FF503F',
				f_color: 		'FF503F',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-1720']={
webappId:    '7008',
documentId:  '10136',
internalId:  '1720',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10612',
internalId:  '',
customField: '20120203-172449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40312',
internalId:  '',
customField: '20120104-150236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10094',
internalId:  '',
customField: '20120201-114103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10115',
internalId:  '',
customField: '20120203-203238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10136',
internalId:  '',
customField: '20120203-171748'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '10612',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78422',
internalId:  '',
customField: '20120104-150002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23212',
internalId:  '',
customField: '20110926-082003'
};
webappMappings['1501']=webappMappings['1501-4164331']={
webappId:    '1501',
documentId:  '10612',
internalId:  '4164331',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33512',
internalId:  '',
customField: '20120203-203334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '233298',
internalId:  '',
customField: '20120203-204906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '224298',
internalId:  '',
customField: '20120208-082302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '226898',
internalId:  '',
customField: '20120203-171540'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '123077',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123077',
internalId:  '',
customField: '20110315-203232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123098',
internalId:  '',
customField: '20110315-203300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133399',
internalId:  '',
customField: '20110502-131809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141610',
internalId:  '',
customField: '20120203-172330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144310',
internalId:  '',
customField: '20110607-193840'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INLCUX';
var companyName   = '++++++Saint+Pius+X+Camps';
var htmlTitle	  = 'SPX+Summer+and+Holiday+Camps';
var metaKeywords  = 'SPX+Saint+Pius+X+Summer+Camps+Camp+Lori+Warren+St+St.+the+tenth+day+week+weekly+Greensboro+NC+North+Carolina+Elm+Street+School+27408+Zumba';
var metaContents  = 'Saint+Pius+X+Camps+in+Greensboro%2C+NC+is+excited+to+be+offering+44+fun-filled+summer+camps+for+children+in+rising+K-9th+grades+across+the+Triad%21++Join+our+experienced+staff+for+8+weeks+packed+with+sports%2C+enrichment%2C+art%2C+science%2C+technology%2C+and+stage+performance+camps.++We+offer+a+variety+of+topics+sure+to+delight+every+child%E2%80%A6.basketball%2C+3D+art%2C+chess%2C+spa%2C+construction%2C+cheerleading%2C+rescue+9-1-1%2C+talent+showcase%2C+science+explorers%2C+and+much+more+-+complete+with+surprise+guests%21++Be+sure+to+check+out+our+Adult+Zumba+Classes%21++Camp+hours+are+9-3+pm%3B+extended+day+care+available.++Multiple+and+family+discounts+provided.++Visit+www.spxcamps.com+for+complete+registration+information.++';
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();
};

