/* [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','10001',jdecode('Home'),jdecode(''), jdecode('%2F10001%2Findex.html'), 'true',[ 
		['PAGE','15301',jdecode('Disclaimer'),jdecode(''), jdecode('%2F10001%2F15301.html'), 'true',[],'','']
	],'',''],
	['PAGE','16801',jdecode('Director%26%23x27%3Bs+Message'),jdecode(''), jdecode('%2F16801.html'), 'true',[],'',''],
	['PAGE','317647',jdecode('Mission+Statement'),jdecode(''), jdecode('%2F317647.html'), 'true',[],'',''],
	['PAGE','18201',jdecode('Board+of+Commissioners'),jdecode(''), jdecode('%2F18201.html'), 'true',[],'',''],
	['PAGE','81312',jdecode('Agenda+Info'),jdecode(''), jdecode('%2F81312.html'), 'false',[],'',''],
	['PAGE','19501',jdecode('Board+Meetings'),jdecode(''), jdecode('%2F19501.html'), 'true',[],'',''],
	['PAGE','26501',jdecode('Parks'),jdecode(''), jdecode('%2F26501%2Findex.html'), 'true',[ 
		['PAGE','295947',jdecode('Cushman+Trail'),jdecode(''), jdecode('%2F26501%2F295947.html'), 'true',[],'',''],
		['PAGE','295968',jdecode('Fox+Island+Fishing+Pier'),jdecode(''), jdecode('%2F26501%2F295968.html'), 'true',[],'',''],
		['PAGE','297447',jdecode('Hales+Pass+Park'),jdecode(''), jdecode('%2F26501%2F297447.html'), 'true',[],'',''],
		['PAGE','27701',jdecode('Harbor+Family+Park'),jdecode(''), jdecode('%2F26501%2F27701.html'), 'true',[],'',''],
		['PAGE','27722',jdecode('Kopachuck+Heights'),jdecode(''), jdecode('%2F26501%2F27722.html'), 'true',[],'',''],
		['PAGE','59301',jdecode('Madrona+Links+Golf+Course'),jdecode(''), jdecode('%2F26501%2F59301.html'), 'true',[],'',''],
		['PAGE','118934',jdecode('Maplewood+Park'),jdecode(''), jdecode('%2F26501%2F118934.html'), 'true',[],'',''],
		['PAGE','27743',jdecode('McCormick+Forest+Park'),jdecode(''), jdecode('%2F26501%2F27743.html'), 'true',[],'',''],
		['PAGE','295989',jdecode('Narrows+Park'),jdecode(''), jdecode('%2F26501%2F295989.html'), 'true',[],'',''],
		['PAGE','27764',jdecode('Peter%26%23x27%3Bs+Pond'),jdecode(''), jdecode('%2F26501%2F27764.html'), 'true',[],'',''],
		['PAGE','27785',jdecode('Rosedale+Park'),jdecode(''), jdecode('%2F26501%2F27785.html'), 'true',[],'',''],
		['PAGE','34501',jdecode('Sehmel+Homestead+Park'),jdecode(''), jdecode('%2F26501%2F34501.html'), 'true',[],'',''],
		['PAGE','295847',jdecode('Sunrise+Beach+Park'),jdecode(''), jdecode('%2F26501%2F295847.html'), 'true',[],'',''],
		['PAGE','27827',jdecode('Wollochet+Bay+Estuary+Park'),jdecode(''), jdecode('%2F26501%2F27827.html'), 'true',[],'','']
	],'',''],
	['PAGE','93023',jdecode('Facility+Reservations'),jdecode(''), jdecode('%2F93023.html'), 'true',[],'',''],
	['PAGE','153067',jdecode('RFQs'),jdecode(''), jdecode('%2F153067.html'), 'false',[],'',''],
	['PAGE','24001',jdecode('Recreation+Program'),jdecode(''), jdecode('%2F24001.html'), 'true',[],'',''],
	['PAGE','279747',jdecode('Event+Photos'),jdecode(''), jdecode('%2F279747%2Findex.html'), 'false',[ 
		['PAGE','265247',jdecode('Scarecrow+Festival+2010'),jdecode(''), jdecode('%2F279747%2F265247.html'), 'true',[],'',''],
		['PAGE','282547',jdecode('Breakfast+with+Santa+2010'),jdecode(''), jdecode('%2F279747%2F282547.html'), 'true',[],'','']
	],'',''],
	['PAGE','70401',jdecode('Employment'),jdecode(''), jdecode('%2F70401.html'), 'true',[],'',''],
	['PAGE','192722',jdecode('District+Policies'),jdecode(''), jdecode('%2F192722.html'), 'true',[],'',''],
	['PAGE','15701',jdecode('Grants'),jdecode(''), jdecode('%2F15701.html'), 'true',[],'',''],
	['PAGE','391578',jdecode('Comp+Plan'),jdecode(''), jdecode('%2F391578.html'), 'true',[],'',''],
	['PAGE','17401',jdecode('PenMet+Parks+History'),jdecode(''), jdecode('%2F17401.html'), 'true',[],'',''],
	['PAGE','18043',jdecode('Contact+Us%3A+District+Staff'),jdecode(''), jdecode('%2F18043.html'), 'true',[],'',''],
	['PAGE','24901',jdecode('Volunteers'),jdecode(''), jdecode('%2F24901.html'), 'true',[],'',''],
	['PAGE','25201',jdecode('RostersOLD'),jdecode(''), jdecode('%2F25201.html'), 'false',[],'',''],
	['PAGE','276447',jdecode('Rosters'),jdecode(''), jdecode('%2F276447.html'), 'true',[],'',''],
	['PAGE','164189',jdecode('Internships'),jdecode(''), jdecode('%2F164189.html'), 'true',[],'',''],
	['PAGE','174722',jdecode('Community+Gardens'),jdecode(''), jdecode('%2F174722.html'), 'true',[],'',''],
	['PAGE','77112',jdecode('Memorials+%26+Donations'),jdecode(''), jdecode('%2F77112.html'), 'true',[],'',''],
	['PAGE','26401',jdecode('Our+Partners'),jdecode(''), jdecode('%2F26401.html'), 'true',[],'',''],
	['PAGE','26601',jdecode('Public+Records'),jdecode(''), jdecode('%2F26601.html'), 'true',[],'',''],
	['PAGE','319947',jdecode('Annual+Report'),jdecode(''), jdecode('%2F319947.html'), 'true',[],'',''],
	['PAGE','163189',jdecode('PenMet+-+YMCA+Voucher'),jdecode(''), jdecode('%2F163189.html'), 'true',[],'',''],
	['PAGE','348756',jdecode('Budget+Information'),jdecode(''), jdecode('%2F348756.html'), 'true',[],'',''],
	['PAGE','409778',jdecode('Lost+%26+Found'),jdecode(''), jdecode('%2F409778.html'), 'true',[],'',''],
	['PAGE','25801',jdecode('FAQs'),jdecode(''), jdecode('%2F25801.html'), 'true',[],'',''],
	['PAGE','26622',jdecode('Site+Map'),jdecode(''), jdecode('%2F26622.html'), 'true',[],'',''],
	['PAGE','234903',jdecode('Proclamations'),jdecode(''), jdecode('%2F234903.html'), 'false',[],'',''],
	['PAGE','273947',jdecode('Home+Page+w+Event+Info'),jdecode(''), jdecode('%2F273947.html'), 'false',[],'',''],
	['PAGE','357456',jdecode('Volleyball+Tournament'),jdecode(''), jdecode('%2F357456.html'), 'false',[],'',''],
	['PAGE','371878',jdecode('Worm+Bin+Home+Page'),jdecode(''), jdecode('%2F371878.html'), 'false',[],'','']];
var siteelementCount=52;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='455339';
theSitetree.keyvisualId='2035';
theSitetree.keyvisualName='freizeit.jpg';
theSitetree.fontsetId='337';
theSitetree.graphicsetId='392';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='455339';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'comcast',
  product: 'WSCSYSSSSLYTC245'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Activate',
				paletteFamily: 	'455339',
				keyvisualId: 	'2035',
				keyvisualName: 	'freizeit.jpg',
				fontsetId: 		'337',
				graphicsetId: 	'392',
				contentColor: 	'FFFFFF',
				contentBGColor: '455339',
				a_color: 		'455339',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10001',
internalId:  '',
customField: '20120203-114911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20090228-143707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20110321-114407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16801',
internalId:  '',
customField: '20101213-114152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17401',
internalId:  '',
customField: '20090618-122620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18043',
internalId:  '',
customField: '20110802-132700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18201',
internalId:  '',
customField: '20111229-104959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19501',
internalId:  '',
customField: '20120203-114925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26501',
internalId:  '',
customField: '20120127-152407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25801',
internalId:  '',
customField: '20101102-150457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25201',
internalId:  '',
customField: '20101208-152417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24001',
internalId:  '',
customField: '20120127-152457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24901',
internalId:  '',
customField: '20120124-180541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26401',
internalId:  '',
customField: '20110715-112830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26601',
internalId:  '',
customField: '20111122-144447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26622',
internalId:  '',
customField: '20110801-175358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27701',
internalId:  '',
customField: '20110810-144311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27722',
internalId:  '',
customField: '20110630-131921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27743',
internalId:  '',
customField: '20110810-144341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27764',
internalId:  '',
customField: '20110214-130351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27785',
internalId:  '',
customField: '20110915-174033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34501',
internalId:  '',
customField: '20111223-120420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27827',
internalId:  '',
customField: '20110810-144656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59301',
internalId:  '',
customField: '20110630-131953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70401',
internalId:  '',
customField: '20110926-131301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77112',
internalId:  '',
customField: '20110720-180610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81312',
internalId:  '',
customField: '20090610-104800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153067',
internalId:  '',
customField: '20110520-120429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93023',
internalId:  '',
customField: '20120127-152535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118934',
internalId:  '',
customField: '20110630-132023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '234903',
internalId:  '',
customField: '20110801-131344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163189',
internalId:  '',
customField: '20110804-133231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164189',
internalId:  '',
customField: '20100415-154110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174722',
internalId:  '',
customField: '20100308-154031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '192722',
internalId:  '',
customField: '20110803-113519'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '10001',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-e9c3534f5edcedc0dcb38074004c200b']={
webappId:    '7060',
documentId:  '265247',
internalId:  'e9c3534f5edcedc0dcb38074004c200b',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '265247',
internalId:  '',
customField: '20101220-154731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273947',
internalId:  '',
customField: '20110816-120107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '276447',
internalId:  '',
customField: '20101208-153405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '279747',
internalId:  '',
customField: '20101220-144138'
};
webappMappings['7060']=webappMappings['7060-0609f8223b7c9008721895fa09a5403f']={
webappId:    '7060',
documentId:  '282547',
internalId:  '0609f8223b7c9008721895fa09a5403f',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '282547',
internalId:  '',
customField: '20101220-143928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '295947',
internalId:  '',
customField: '20110214-145919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '295968',
internalId:  '',
customField: '20110810-144148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '295847',
internalId:  '',
customField: '20110810-144608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '297447',
internalId:  '',
customField: '20111104-125323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '295989',
internalId:  '',
customField: '20110810-144416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '317647',
internalId:  '',
customField: '20110330-110812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '348756',
internalId:  '',
customField: '20111207-105952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '319947',
internalId:  '',
customField: '20110405-145551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '391578',
internalId:  '',
customField: '20120127-152608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357456',
internalId:  '',
customField: '20110719-110500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '371878',
internalId:  '',
customField: '20110814-091027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '409778',
internalId:  '',
customField: '20111229-114528'
};
webappMappings['1501']=webappMappings['1501-4258562']={
webappId:    '1501',
documentId:  '10001',
internalId:  '4258562',
customField: '1501'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INL0BJ';
var companyName   = 'PenMet+Parks';
var htmlTitle	  = '';
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();
};

