/* [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','2201',jdecode('Home'),jdecode(''),'/2201.html','true',[],'',''],
	['PAGE','17601',jdecode('About+our+Council'),jdecode(''),'/17601.html','true',[],'',''],
	['PAGE','2252',jdecode('Officers'),jdecode(''),'/2252/index.html','true',[ 
		['PAGE','54001',jdecode('Past+Grand+Knights'),jdecode(''),'/2252/54001.html','true',[],'',''],
		['PAGE','7801',jdecode('Officers+Duties'),jdecode(''),'/2252/7801.html','true',[],'','']
	],'',''],
	['PAGE','3985',jdecode('Membership'),jdecode(''),'/3985.html','true',[],'',''],
	['PAGE','15401',jdecode('Knights+of+Columbus'),jdecode(''),'/15401/index.html','true',[ 
		['PAGE','15101',jdecode('K+of+C+Mission'),jdecode(''),'/15401/15101.html','true',[],'',''],
		['PAGE','15422',jdecode('K+of+C+History'),jdecode(''),'/15401/15422.html','true',[],'',''],
		['PAGE','15443',jdecode('The+Legacy+of+Fr.+McGivney'),jdecode(''),'/15401/15443.html','true',[],'',''],
		['PAGE','46001',jdecode('Fr.+McGivney+Prayer'),jdecode(''),'/15401/46001.html','true',[],'','']
	],'',''],
	['PAGE','3922',jdecode('Fourth+Degree'),jdecode(''),'/3922.html','true',[],'',''],
	['PAGE','94801',jdecode('First+Degree+Team'),jdecode(''),'/94801.html','true',[],'',''],
	['PAGE','23301',jdecode('Southbury'),jdecode(''),'/23301.html','true',[],'',''],
	['PAGE','3943',jdecode('Committees'),jdecode(''),'/3943.html','true',[],'',''],
	['PAGE','20301',jdecode('Gallery'),jdecode(''),'/20301/index.html','true',[ 
		['PAGE','104701',jdecode('2009+Annual+Dinner'),jdecode(''),'/20301/104701.html','true',[],'',''],
		['PAGE','92201',jdecode('Gallery+of+Recent+Events'),jdecode(''),'/20301/92201.html','true',[],'',''],
		['PAGE','103422',jdecode('Monsignor+Sabia+-+Birthday%2FAnniversary'),jdecode(''),'/20301/103422.html','true',[],'',''],
		['PAGE','103443',jdecode('Fr.+Skip+Birthday+Mass'),jdecode(''),'/20301/103443.html','true',[],'',''],
		['PAGE','103401',jdecode('Reception+for+Krzysztof+Kuczynski'),jdecode(''),'/20301/103401.html','true',[],'',''],
		['PAGE','84801',jdecode('Bluefish+Game+-+5%2F09'),jdecode(''),'/20301/84801.html','true',[],'',''],
		['PAGE','77401',jdecode('2009+Mini-Olympics'),jdecode(''),'/20301/77401.html','true',[],'',''],
		['PAGE','71401',jdecode('Roast+Beef+Dinner+-+April+2009'),jdecode(''),'/20301/71401.html','true',[],'',''],
		['PAGE','68201',jdecode('Regional+Spelling+Bee'),jdecode(''),'/20301/68201.html','true',[],'',''],
		['PAGE','67201',jdecode('Keltic+Kick+-+2009'),jdecode(''),'/20301/67201.html','true',[],'',''],
		['PAGE','47701',jdecode('2009+Valentine%26%23x27%3Bs+Day+Dance'),jdecode(''),'/20301/47701.html','true',[],'',''],
		['PAGE','40301',jdecode('2008+Knight+of+Year+Dinner'),jdecode(''),'/20301/40301.html','true',[],'',''],
		['PAGE','43401',jdecode('Archive_2'),jdecode(''),'/20301/43401.html','true',[],'','']
	],'',''],
	['PAGE','10301',jdecode('Insurance'),jdecode(''),'/10301.html','true',[],'',''],
	['PAGE','3901',jdecode('Links'),jdecode(''),'/3901.html','true',[],'',''],
	['PAGE','29301',jdecode('In++Memorium'),jdecode(''),'/29301.html','true',[],'','']];
var siteelementCount=32;
theSitetree.topTemplateName='Gaudy';
theSitetree.paletteFamily='5C5D96';
theSitetree.keyvisualId='5967';
theSitetree.keyvisualName='kv_5967.jpg';
theSitetree.fontsetId='11113';
theSitetree.graphicsetId='11905';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='6E8BCE';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Gaudy',
				paletteFamily: 	'5C5D96',
				keyvisualId: 	'5967',
				keyvisualName: 	'kv_5967.jpg',
				fontsetId: 		'11113',
				graphicsetId: 	'11905',
				contentColor: 	'FFFFFF',
				contentBGColor: '6E8BCE',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20100725-202622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2252',
internalId:  '',
customField: '20100725-191631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3943',
internalId:  '',
customField: '20090523-195914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67201',
internalId:  '',
customField: '20090406-195952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103422',
internalId:  '',
customField: '20090910-204940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3985',
internalId:  '',
customField: '20090523-194744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3922',
internalId:  '',
customField: '20090626-114545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3901',
internalId:  '',
customField: '20090803-201934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7801',
internalId:  '',
customField: '20080906-083352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103443',
internalId:  '',
customField: '20090910-205836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103401',
internalId:  '',
customField: '20090910-210804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92201',
internalId:  '',
customField: '20090605-211104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94801',
internalId:  '',
customField: '20100815-180010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10301',
internalId:  '',
customField: '20090523-200334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47701',
internalId:  '',
customField: '20090308-223751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40301',
internalId:  '',
customField: '20081006-214253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43401',
internalId:  '',
customField: '20081012-213020'
};
webappMappings['7060']=webappMappings['7060-d1fc86260290011efafce2373b4096c5']={
webappId:    '7060',
documentId:  '40301',
internalId:  'd1fc86260290011efafce2373b4096c5',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15101',
internalId:  '',
customField: '20080915-184432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15401',
internalId:  '',
customField: '20080913-102735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15443',
internalId:  '',
customField: '20081002-200056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15422',
internalId:  '',
customField: '20080906-160352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46001',
internalId:  '',
customField: '20081016-212338'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54001',
internalId:  '',
customField: '20100725-192001'
};
webappMappings['7060']=webappMappings['7060-be0a41e4f04116ea4fe562ec20533253']={
webappId:    '7060',
documentId:  '67201',
internalId:  'be0a41e4f04116ea4fe562ec20533253',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20090617-201125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68201',
internalId:  '',
customField: '20090321-203938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20090605-214920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23301',
internalId:  '',
customField: '20090523-195652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29301',
internalId:  '',
customField: '20100725-192827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71401',
internalId:  '',
customField: '20090406-221626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77401',
internalId:  '',
customField: '20090508-201536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84801',
internalId:  '',
customField: '20090517-151059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104701',
internalId:  '',
customField: '20090922-204923'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0INEM2R';
var companyName   = 'Blessed+Pope+John+XXIII+Council+5987';
var htmlTitle	  = 'Knights+of+Columbus+Council+5987';
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();
};
