/* [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(''),'/10612.html','true',[],'',''],
	['PAGE','33512',jdecode('Purchase+Camps+Here'),jdecode(''),'/33512.html','true',[],'',''],
	['PAGE','10136',jdecode('Online+Registration'),jdecode(''),'/10136.html','true',[],'',''],
	['PAGE','40312',jdecode('Printable+Registration'),jdecode(''),'/40312.html','true',[],'',''],
	['PAGE','78422',jdecode('Summer+Schedule'),jdecode(''),'/78422/index.html','true',[ 
		['PAGE','80533',jdecode('June+14+-+18'),jdecode(''),'/78422/80533.html','true',[],'',''],
		['PAGE','80554',jdecode('June+21+-+25'),jdecode(''),'/78422/80554.html','true',[],'',''],
		['PAGE','80575',jdecode('June+28+-+July+2'),jdecode(''),'/78422/80575.html','true',[],'',''],
		['PAGE','80596',jdecode('July+12+-+16'),jdecode(''),'/78422/80596.html','true',[],'',''],
		['PAGE','80617',jdecode('July+19+-+23'),jdecode(''),'/78422/80617.html','true',[],'',''],
		['PAGE','80638',jdecode('July+26+-+30'),jdecode(''),'/78422/80638.html','true',[],'',''],
		['PAGE','80659',jdecode('August+2+-+6'),jdecode(''),'/78422/80659.html','true',[],'',''],
		['PAGE','80680',jdecode('August+9+-+13'),jdecode(''),'/78422/80680.html','true',[],'','']
	],'',''],
	['PAGE','144310',jdecode('Before%2FAfter+Care'),jdecode(''),'/144310.html','true',[],'',''],
	['PAGE','10094',jdecode('Camp+Staff'),jdecode(''),'/10094.html','true',[],'',''],
	['PAGE','141610',jdecode('Volunteers%2FEmployment'),jdecode(''),'/141610.html','true',[],'',''],
	['PAGE','10115',jdecode('FAQs'),jdecode(''),'/10115.html','true',[],'',''],
	['PAGE','133399',jdecode('HoneyBaked+Lunch'),jdecode(''),'/133399.html','true',[],'',''],
	['PAGE','62100',jdecode('%26%23x27%3B09+Camp+Pics'),jdecode(''),'/62100.html','true',[],'',''],
	['PAGE','146310',jdecode('%26%23x27%3B10+Camp+Pics'),jdecode(''),'/146310.html','true',[],'',''],
	['PAGE','44912',jdecode('Camp+T-Shirts'),jdecode(''),'/44912.html','true',[],'',''],
	['PAGE','56300',jdecode('Little+Miss+SPX+2009'),jdecode(''),'/56300.html','true',[],'',''],
	['PAGE','90755',jdecode('Little+Miss+SPX+2010'),jdecode(''),'/90755.html','true',[],'',''],
	['PAGE','132599',jdecode('Hoop+Dreams+2010'),jdecode(''),'/132599.html','true',[],'',''],
	['PAGE','123077',jdecode('Location'),jdecode(''),'/123077.html','true',[],'',''],
	['PAGE','123098',jdecode('Links'),jdecode(''),'/123098.html','true',[],'',''],
	['PAGE','23212',jdecode('Contact+Us'),jdecode(''),'/23212.html','true',[],'','']];
var siteelementCount=27;
theSitetree.topTemplateName='Blowout';
theSitetree.paletteFamily='ABFDFE';
theSitetree.keyvisualId='3768';
theSitetree.keyvisualName='kv_3768.jpg';
theSitetree.fontsetId='10477';
theSitetree.graphicsetId='10977';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Blowout',
				paletteFamily: 	'ABFDFE',
				keyvisualId: 	'3768',
				keyvisualName: 	'kv_3768.jpg',
				fontsetId: 		'10477',
				graphicsetId: 	'10977',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'F30E0E',
				e_color: 		'F30E0E',
				f_color: 		'F30E0E',
				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: '20100622-105406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132599',
internalId:  '',
customField: '20100511-105355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40312',
internalId:  '',
customField: '20100628-140038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10094',
internalId:  '',
customField: '20100312-222435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10115',
internalId:  '',
customField: '20100622-111118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10136',
internalId:  '',
customField: '20100503-084606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80575',
internalId:  '',
customField: '20100601-131213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80596',
internalId:  '',
customField: '20100525-083325'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '10612',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78422',
internalId:  '',
customField: '20100628-140132'
};
webappMappings['7060']=webappMappings['7060-fcb5c304ae7756f2f132aa88f206e28e']={
webappId:    '7060',
documentId:  '62100',
internalId:  'fcb5c304ae7756f2f132aa88f206e28e',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80617',
internalId:  '',
customField: '20100628-140314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80638',
internalId:  '',
customField: '20100601-131620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80659',
internalId:  '',
customField: '20100601-131758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23212',
internalId:  '',
customField: '20100622-101142'
};
webappMappings['1501']=webappMappings['1501-4164331']={
webappId:    '1501',
documentId:  '10612',
internalId:  '4164331',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33512',
internalId:  '',
customField: '20100518-103123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44912',
internalId:  '',
customField: '20100503-104253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80554',
internalId:  '',
customField: '20100601-131206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62100',
internalId:  '',
customField: '20100107-104810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80533',
internalId:  '',
customField: '20100601-131100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56300',
internalId:  '',
customField: '20100302-134829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80680',
internalId:  '',
customField: '20100525-083340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90755',
internalId:  '',
customField: '20100302-134850'
};
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: '20100321-221234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123098',
internalId:  '',
customField: '20100622-101158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133399',
internalId:  '',
customField: '20100507-143304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141610',
internalId:  '',
customField: '20100601-131807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144310',
internalId:  '',
customField: '20100622-112617'
};
webappMappings['7060']=webappMappings['7060-38fc0f1dc781d49e1cf2afb5f3b18ab3']={
webappId:    '7060',
documentId:  '146310',
internalId:  '38fc0f1dc781d49e1cf2afb5f3b18ab3',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146310',
internalId:  '',
customField: '20100624-140409'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INLCUX';
var companyName   = 'Saint+Pius+X+Camps+2010';
var htmlTitle	  = 'SPX+Summer+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';
var metaContents  = 'Saint+Pius+X+Summer+Camps+%28SPX+Camps%29+offers+9+weeks+packed+full+of+fun%21++Whether+its+art%2C+enrichment%2C+sports%2C+spa%2C+science%2C+pets%2C+clowns%2C+water+fun%2C+cooking+or+cheerleading+that+your+child+enjoys%2C+weve+got+you+covered%21++Camps+run+from+9%3A00+-+3%3A00+pm+Monday+through+Friday+at+the+cost+of+%24140+per+week.++Check+us+out%21++www.spxcamps.com.++For+more+information+contact+Lori+Warren%2C+Camp+Director%2C+at+%28336%29+273-9865+or+email%3A+spxcounselor%40yahoo.com++NOW+OFFERING+HOLIDAY+CAMPS%21%21';
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();
};
