/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','552',jdecode('About+us'),jdecode(''),'/552/index.html','true',[ 
		['PAGE','573',jdecode('Members'),jdecode(''),'/552/573.html','true',[],'',''],
		['PAGE','2101',jdecode('Officers'),jdecode(''),'/552/2101.html','true',[],'',''],
		['PAGE','2122',jdecode('Auxiliary'),jdecode(''),'/552/2122.html','true',[],'',''],
		['PAGE','2143',jdecode('Apparatus'),jdecode(''),'/552/2143.html','true',[],'',''],
		['PAGE','2164',jdecode('History'),jdecode(''),'/552/2164.html','true',[],'','']
	],'',''],
	['PAGE','594',jdecode('Contact'),jdecode(''),'/594/index.html','true',[ 
		['PAGE','615',jdecode('Recruitment'),jdecode(''),'/594/615.html','true',[],'','']
	],'',''],
	['PAGE','636',jdecode('Fundraisers'),jdecode(''),'/636/index.html','true',[ 
		['PAGE','25801',jdecode('Breakfast+with+Santa'),jdecode(''),'/636/25801.html','true',[],'',''],
		['PAGE','657',jdecode('Fire+Prevention'),jdecode(''),'/636/657.html','true',[],'',''],
		['PAGE','2185',jdecode('Hall+Rental'),jdecode(''),'/636/2185.html','true',[],'',''],
		['PAGE','27101',jdecode('Beef+and+Oyster+Dinner'),jdecode(''),'/636/27101.html','true',[],'',''],
		['PAGE','2206',jdecode('Shrimp+Feed'),jdecode(''),'/636/2206.html','true',[],'',''],
		['PAGE','24001',jdecode('Soup+%26+Sandwich+Sale'),jdecode(''),'/636/24001.html','true',[],'',''],
		['PAGE','2227',jdecode('Gun+Raffle'),jdecode(''),'/636/2227.html','true',[],'',''],
		['PAGE','2248',jdecode('Lottery'),jdecode(''),'/636/2248.html','true',[],'',''],
		['PAGE','2269',jdecode('Basket+Bingo'),jdecode(''),'/636/2269.html','true',[],'',''],
		['PAGE','2290',jdecode('Pancake+Breakfast'),jdecode(''),'/636/2290.html','true',[],'',''],
		['PAGE','2311',jdecode('Bingo'),jdecode(''),'/636/2311.html','true',[],'',''],
		['PAGE','21101',jdecode('Pool+Fill'),jdecode(''),'/636/21101.html','true',[],'',''],
		['PAGE','21122',jdecode('Car+Show+%2F+Dyno+Day'),jdecode(''),'/636/21122.html','true',[],'',''],
		['PAGE','28901',jdecode('2010+Lottery+Calendar'),jdecode(''),'/636/28901.html','true',[],'',''],
		['PAGE','28922',jdecode('Fish+Fry'),jdecode(''),'/636/28922.html','true',[],'','']
	],'',''],
	['PAGE','699',jdecode('Photo+Gallery'),jdecode(''),'/699/index.html','true',[ 
		['PAGE','13501',jdecode('The+Lighter+Side'),jdecode(''),'/699/13501.html','true',[],'',''],
		['PAGE','16601',jdecode('Training'),jdecode(''),'/699/16601.html','true',[],'',''],
		['PAGE','17001',jdecode('2007+Dover+Water+Battle'),jdecode(''),'/699/17001.html','true',[],'',''],
		['PAGE','17401',jdecode('2008+Incidents'),jdecode(''),'/699/17401.html','true',[],'','']
	],'',''],
	['PAGE','2416',jdecode('Donations'),jdecode(''),'/2416.html','true',[],'',''],
	['PAGE','3506',jdecode('Guestbook'),jdecode(''),'/3506/index.html','true',[ 
		['PAGE','3501',jdecode('Read+Guestbook'),jdecode(''),'/3506/3501.html','false',[],'','']
	],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Delta';
theSitetree.paletteFamily='450202';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10615';
theSitetree.graphicsetId='10810';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='450202';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Delta',
				paletteFamily: 	'450202',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10615',
				graphicsetId: 	'10810',
				contentColor: 	'FFFFFF',
				contentBGColor: '450202',
				a_color: 		'910F0F',
				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['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-3506avec10inf20w']={
webappId:    '1002',
documentId:  '3506',
internalId:  '3506avec10inf20w',
customField: 'icq=false'
};
webappMappings['7060']=webappMappings['7060-cfb93d0fcf9ef0dbe5bd6a1cba92f98e']={
webappId:    '7060',
documentId:  '13501',
internalId:  'cfb93d0fcf9ef0dbe5bd6a1cba92f98e',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-e02b0d7035a0de46ad4ab22fe0d84dca']={
webappId:    '7060',
documentId:  '16601',
internalId:  'e02b0d7035a0de46ad4ab22fe0d84dca',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-0a6b953f2e5b700762182456292a6f44']={
webappId:    '7060',
documentId:  '17001',
internalId:  '0a6b953f2e5b700762182456292a6f44',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-db824d0aeb57a83ebfce09dff3e25c4d']={
webappId:    '7060',
documentId:  '17401',
internalId:  'db824d0aeb57a83ebfce09dff3e25c4d',
customField: 'language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-9747690']={
webappId:    '1501',
documentId:  '501',
internalId:  '9747690',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20090601-212131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '636',
internalId:  '',
customField: '20080822-200221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25801',
internalId:  '',
customField: '20100313-151444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20100313-151608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2206',
internalId:  '',
customField: '20100328-211048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24001',
internalId:  '',
customField: '20100313-152122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2227',
internalId:  '',
customField: '20100314-184503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2269',
internalId:  '',
customField: '20100313-152433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2290',
internalId:  '',
customField: '20100313-152639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20100328-210621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21122',
internalId:  '',
customField: '20100313-153243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27101',
internalId:  '',
customField: '20100313-151756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20090601-212801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '573',
internalId:  '',
customField: '20100328-212214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2101',
internalId:  '',
customField: '20100313-145213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2122',
internalId:  '',
customField: '20100313-145816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2143',
internalId:  '',
customField: '20100328-212047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2164',
internalId:  '',
customField: '20080714-212122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20080730-211714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20080714-202939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2185',
internalId:  '',
customField: '20100313-151725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2248',
internalId:  '',
customField: '20080922-204107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2311',
internalId:  '',
customField: '20080922-204238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '699',
internalId:  '',
customField: '20080730-210602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13501',
internalId:  '',
customField: '20080730-204639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16601',
internalId:  '',
customField: '20080730-205028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17001',
internalId:  '',
customField: '20080730-210230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17401',
internalId:  '',
customField: '20080730-205836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2416',
internalId:  '',
customField: '20100313-155025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3506',
internalId:  '',
customField: '20080529-205121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3501',
internalId:  '',
customField: '20080529-205121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28922',
internalId:  '',
customField: '20100313-154034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28901',
internalId:  '',
customField: '20100313-153525'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVEC10INF20W';
var companyName   = 'Nashville+Volunteer+Fire+Co';
var htmlTitle	  = '';
var metaKeywords  = 'Nashville%3B+Jackson+Township%3B+Pa%3B+Bingo%3B+Shrimp+Feed%3B+Fire+Department%3B+';
var metaContents  = 'Fire+Department';
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();
};
