/* [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','3501',jdecode('Home'),jdecode(''),'/3501.html','true',[],'',''],
	['PAGE','3552',jdecode('About'),jdecode(''),'/3552.html','true',[],'',''],
	['PAGE','55023',jdecode('Race+for+Research'),jdecode(''),'/55023.html','true',[],'',''],
	['PAGE','37912',jdecode('No+Phone+Driver'),jdecode(''),'/37912.html','true',[],'',''],
	['PAGE','3573',jdecode('Governor%26%23x27%3Bs+Note'),jdecode(''),'/3573.html','true',[],'',''],
	['PAGE','3594',jdecode('District+Officers'),jdecode(''),'/3594.html','true',[],'',''],
	['PAGE','74923',jdecode('Hire+a+Junior+Civitan'),jdecode(''),'/74923.html','true',[],'',''],
	['PAGE','77723',jdecode('Junior+Civitan+sign+up'),jdecode(''),'/77723.html','true',[],'',''],
	['PAGE','20301',jdecode('Creed+Club'),jdecode(''),'/20301.html','true',[],'',''],
	['PAGE','10401',jdecode('News'),jdecode(''),'/10401.html','true',[],'',''],
	['PAGE','10422',jdecode('Calendar'),jdecode(''),'/10422.html','true',[],'',''],
	['PAGE','3615',jdecode('Newsletters'),jdecode(''),'/3615/index.html','true',[ 
		['PAGE','5501',jdecode('2008-2009'),jdecode(''),'/3615/5501.html','true',[],'',''],
		['PAGE','5522',jdecode('2009-2010'),jdecode(''),'/3615/5522.html','true',[],'',''],
		['PAGE','68423',jdecode('2010-2011'),jdecode(''),'/3615/68423.html','true',[],'','']
	],'',''],
	['PAGE','3636',jdecode('Clubs+%26+Websites'),jdecode(''),'/3636.html','true',[],'',''],
	['PAGE','17101',jdecode('Awards'),jdecode(''),'/17101.html','true',[],'',''],
	['PAGE','69723',jdecode('Community+Service+Projects'),jdecode(''),'/69723.html','true',[],'',''],
	['PAGE','18501',jdecode('Scholarships'),jdecode(''),'/18501.html','true',[],'',''],
	['PAGE','21101',jdecode('Honor+Club'),jdecode(''),'/21101.html','true',[],'',''],
	['PAGE','18801',jdecode('District+Convention'),jdecode(''),'/18801.html','true',[],'',''],
	['PAGE','19001',jdecode('International+Convention'),jdecode(''),'/19001.html','true',[],'',''],
	['PAGE','75323',jdecode('Campus+Club'),jdecode(''),'/75323.html','true',[],'',''],
	['PAGE','5543',jdecode('Message+Board'),jdecode(''),'/5543.html','true',[],'',''],
	['PAGE','3657',jdecode('Photo+Galleries'),jdecode(''),'/3657/index.html','true',[ 
		['PAGE','5564',jdecode('2008-2009'),jdecode(''),'/3657/5564.html','true',[],'',''],
		['PAGE','5585',jdecode('2009-2010'),jdecode(''),'/3657/5585.html','true',[],'',''],
		['PAGE','68444',jdecode('2010-2011'),jdecode(''),'/3657/68444.html','true',[],'','']
	],'',''],
	['PAGE','32101',jdecode('Grads'),jdecode(''),'/32101.html','true',[],'',''],
	['PAGE','46412',jdecode('Sponsors'),jdecode(''),'/46412.html','true',[],'',''],
	['PAGE','6901',jdecode('Guestbook'),jdecode(''),'/6901.html','true',[],'',''],
	['PAGE','3678',jdecode('Contact+Us'),jdecode(''),'/3678.html','true',[],'',''],
	['PAGE','48823',jdecode('Pics'),jdecode(''),'/48823.html','false',[],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Bow';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='12019';
theSitetree.keyvisualName='kv_12019.jpg';
theSitetree.fontsetId='33247';
theSitetree.graphicsetId='14117';
theSitetree.contentColor='333333';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Bow',
				paletteFamily: 	'000000',
				keyvisualId: 	'12019',
				keyvisualName: 	'kv_12019.jpg',
				fontsetId: 		'33247',
				graphicsetId: 	'14117',
				contentColor: 	'333333',
				contentBGColor: 'FFFFFF',
				a_color: 		'F2F5F8',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-6901aen330inf9k1']={
webappId:    '1002',
documentId:  '6901',
internalId:  '6901aen330inf9k1',
customField: 'icq=false'
};
webappMappings['7008']=webappMappings['7008-1800']={
webappId:    '7008',
documentId:  '3678',
internalId:  '1800',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3501',
internalId:  '',
customField: '20100819-081442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3552',
internalId:  '',
customField: '20100725-201445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3573',
internalId:  '',
customField: '20100725-202822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3594',
internalId:  '',
customField: '20100901-102503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3615',
internalId:  '',
customField: '20100725-212430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3636',
internalId:  '',
customField: '20100725-212550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3657',
internalId:  '',
customField: '20100725-213723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3678',
internalId:  '',
customField: '20100725-213847'
};
webappMappings['1003']=webappMappings['1003-aen330inf9k1122439ed3d0']={
webappId:    '1003',
documentId:  '5543',
internalId:  'aen330inf9k1122439ed3d0',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5543',
internalId:  '',
customField: '20091114-073126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5564',
internalId:  '',
customField: '20090817-195403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20090817-195032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5522',
internalId:  '',
customField: '20100831-162736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5585',
internalId:  '',
customField: '20100617-082531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6901',
internalId:  '',
customField: '20090817-195522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10422',
internalId:  '',
customField: '20100220-114409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10401',
internalId:  '',
customField: '20100725-212119'
};
webappMappings['7008']=webappMappings['7008-1843']={
webappId:    '7008',
documentId:  '3615',
internalId:  '1843',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17101',
internalId:  '',
customField: '20100831-145715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18501',
internalId:  '',
customField: '20100725-213049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18801',
internalId:  '',
customField: '20100902-044619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19001',
internalId:  '',
customField: '20100902-044931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20100725-212026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20100901-085811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32101',
internalId:  '',
customField: '20091109-183747'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '3501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37912',
internalId:  '',
customField: '20100725-202449'
};
webappMappings['7008']=webappMappings['7008-3059']={
webappId:    '7008',
documentId:  '37912',
internalId:  '3059',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46412',
internalId:  '',
customField: '20100725-213819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48823',
internalId:  '',
customField: '20100302-103819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55023',
internalId:  '',
customField: '20100819-081702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68444',
internalId:  '',
customField: '20100719-185802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68423',
internalId:  '',
customField: '20100831-162236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69723',
internalId:  '',
customField: '20100819-080746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74923',
internalId:  '',
customField: '20100831-183820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75323',
internalId:  '',
customField: '20100902-053807'
};
webappMappings['7008']=webappMappings['7008-3864']={
webappId:    '7008',
documentId:  '74923',
internalId:  '3864',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-3865']={
webappId:    '7008',
documentId:  '77723',
internalId:  '3865',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77723',
internalId:  '',
customField: '20100901-090147'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN330INF9K1';
var companyName   = 'Florida+District+Junior+Civitan';
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();
};
