/* [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','22',jdecode('Home'),jdecode(''),'/22.html','true',[],'',''],
	['PAGE','1368',jdecode('Leo+Ledger'),jdecode(''),'/1368.html','true',[],'',''],
	['PAGE','1332',jdecode('Upcoming+Events'),jdecode(''),'/1332.html','true',[],'',''],
	['PAGE','76301',jdecode('Past+Events'),jdecode(''),'/76301.html','true',[],'',''],
	['PAGE','1386',jdecode('About+Us'),jdecode(''),'/1386.html','true',[],'',''],
	['PAGE','4179',jdecode('SAA+Thon'),jdecode(''),'/4179/index.html','true',[ 
		['PAGE','4464',jdecode('Join+Us%21+'),jdecode(''),'/4179/4464.html','true',[],'',''],
		['PAGE','5418',jdecode('FAQ'),jdecode(''),'/4179/5418.html','true',[],'',''],
		['PAGE','5233',jdecode('Impact+on+participants'),jdecode(''),'/4179/5233.html','true',[],'',''],
		['PAGE','4843',jdecode('Recruiting+a+team'),jdecode(''),'/4179/4843.html','true',[],'',''],
		['PAGE','4852',jdecode('Fundraising+Tips'),jdecode(''),'/4179/4852.html','true',[],'',''],
		['PAGE','5174',jdecode('Survivor+information'),jdecode(''),'/4179/5174.html','true',[],'',''],
		['PAGE','4870',jdecode('Where+your+money+will+go'),jdecode(''),'/4179/4870.html','true',[],'',''],
		['PAGE','4297',jdecode('Schedule+of+Events'),jdecode(''),'/4179/4297.html','true',[],'',''],
		['PAGE','4306',jdecode('Committee+Chair'),jdecode(''),'/4179/4306.html','true',[],'',''],
		['PAGE','4315',jdecode('Team+Captain'),jdecode(''),'/4179/4315.html','true',[],'',''],
		['PAGE','5073',jdecode('Team+Cptn+Handbook'),jdecode(''),'/4179/5073.html','true',[],'',''],
		['PAGE','4861',jdecode('Website+Problems'),jdecode(''),'/4179/4861.html','true',[],'',''],
		['PAGE','5082',jdecode('Instruction+manual+for+fundraising+site'),jdecode(''),'/4179/5082.html','true',[],'',''],
		['PAGE','4990',jdecode('Off+line+registration+form'),jdecode(''),'/4179/4990.html','true',[],'',''],
		['PAGE','5685',jdecode('Staying+overnight'),jdecode(''),'/4179/5685.html','true',[],'',''],
		['PAGE','68801',jdecode('Luminaries+ceremony+'),jdecode(''),'/4179/68801.html','true',[],'','']
	],'',''],
	['PAGE','1359',jdecode('Membership'),jdecode(''),'/1359.html','true',[],'',''],
	['PAGE','3094',jdecode('Photo+Album'),jdecode(''),'/3094/index.html','true',[ 
		['PAGE','6051',jdecode('SAA+Thon'),jdecode(''),'/3094/6051.html','true',[],'',''],
		['PAGE','6277',jdecode('Member+Inductions'),jdecode(''),'/3094/6277.html','true',[],'',''],
		['PAGE','40901',jdecode('Van%26%23x27%3Bs+Year'),jdecode(''),'/3094/40901.html','true',[],'','']
	],'',''],
	['PAGE','1377',jdecode('Contact+Us'),jdecode(''),'/1377.html','true',[],'',''],
	['PAGE','2950',jdecode('Guestbook'),jdecode(''),'/2950/index.html','true',[ 
		['PAGE','2949',jdecode('Read+Guestbook'),jdecode(''),'/2950/2949.html','false',[],'','']
	],'',''],
	['PAGE','1404',jdecode('Links'),jdecode(''),'/1404.html','true',[],'',''],
	['PAGE','1395',jdecode('Lions+Club'),jdecode(''),'/1395.html','true',[],'','']];
var siteelementCount=32;
theSitetree.topTemplateName='Objects';
theSitetree.paletteFamily='9B2D2D';
theSitetree.keyvisualId='6541';
theSitetree.keyvisualName='kv_6541.jpg';
theSitetree.fontsetId='11185';
theSitetree.graphicsetId='11993';
theSitetree.contentColor='5E0F0F';
theSitetree.contentBGColor='FFE2A7';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Objects',
				paletteFamily: 	'9B2D2D',
				keyvisualId: 	'6541',
				keyvisualName: 	'kv_6541.jpg',
				fontsetId: 		'11185',
				graphicsetId: 	'11993',
				contentColor: 	'5E0F0F',
				contentBGColor: 'FFE2A7',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '22',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-145169']={
webappId:    '1501',
documentId:  '22',
internalId:  '145169',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-2950AHW050INXEYX']={
webappId:    '1002',
documentId:  '2950',
internalId:  '2950AHW050INXEYX',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-e1783675ae52239f14804abf0416ab13']={
webappId:    '7060',
documentId:  '3094',
internalId:  'e1783675ae52239f14804abf0416ab13',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-f25eeaa40f2a57d7a1306d3e25417e02']={
webappId:    '7060',
documentId:  '6051',
internalId:  'f25eeaa40f2a57d7a1306d3e25417e02',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-70a1de262d0c609f5ce5a95d52693b48']={
webappId:    '7060',
documentId:  '6277',
internalId:  '70a1de262d0c609f5ce5a95d52693b48',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-f63e62935281cc519db6850508f0ea46']={
webappId:    '7060',
documentId:  '40901',
internalId:  'f63e62935281cc519db6850508f0ea46',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22',
internalId:  '',
customField: '20091012-074636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1332',
internalId:  '',
customField: '20091012-074556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1368',
internalId:  '',
customField: '20091012-074459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76301',
internalId:  '',
customField: '20091012-074746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1386',
internalId:  '',
customField: '20080830-095503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1359',
internalId:  '',
customField: '20091012-074433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3094',
internalId:  '',
customField: '20080603-050320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6051',
internalId:  '',
customField: '20080603-050409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6277',
internalId:  '',
customField: '20080603-171211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40901',
internalId:  '',
customField: '20081126-123808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4179',
internalId:  '',
customField: '20090119-142439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4464',
internalId:  '',
customField: '20081011-133038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5418',
internalId:  '',
customField: '20080928-212008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5233',
internalId:  '',
customField: '20081020-193737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4843',
internalId:  '',
customField: '20080928-212235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4852',
internalId:  '',
customField: '20080928-213402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5174',
internalId:  '',
customField: '20080819-105640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4870',
internalId:  '',
customField: '20081011-133007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4297',
internalId:  '',
customField: '20080824-114626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4306',
internalId:  '',
customField: '20080819-105907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4315',
internalId:  '',
customField: '20080927-080620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5073',
internalId:  '',
customField: '20080127-005216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4861',
internalId:  '',
customField: '20080927-080754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5082',
internalId:  '',
customField: '20081001-114910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4990',
internalId:  '',
customField: '20080126-193932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5685',
internalId:  '',
customField: '20081001-114330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68801',
internalId:  '',
customField: '20090224-212126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1377',
internalId:  '',
customField: '20090621-135201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2950',
internalId:  '',
customField: '20070916-210736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2949',
internalId:  '',
customField: '20070916-210736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1404',
internalId:  '',
customField: '20070914-231231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1395',
internalId:  '',
customField: '20080726-090156'
};
webappMappings['7060']=webappMappings['7060-f334f1ae90663593c875395ff0ba4e0f']={
webappId:    '7060',
documentId:  '76301',
internalId:  'f334f1ae90663593c875395ff0ba4e0f',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INXEYX';
var companyName   = 'Hendrick+Hudson+Leos+Club';
var htmlTitle	  = 'Hen+Hud+Leos';
var metaKeywords  = 'Hen+Hud+Leos++Community+service+organization++Hendrick+Hudson+Leos';
var metaContents  = 'Hen+Hud+Leos++Community+service+organization++Hendrick+Hudson+Leos';
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();
};
