/* [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 theSitetree=[ 
	['PAGE','5801',jdecode('Home'),jdecode(''),'/5801.html','true',[],''],
	['PAGE','85601',jdecode('Contact'),jdecode(''),'/85601.html','true',[],''],
	['PAGE','7522',jdecode('Officers'),jdecode(''),'/7522.html','true',[],''],
	['PAGE','7501',jdecode('Members'),jdecode(''),'/7501.html','true',[],''],
	['PAGE','7543',jdecode('Apparatus'),jdecode(''),'/7543.html','true',[],''],
	['PAGE','9701',jdecode('Ladies+Auxiliary'),jdecode(''),'/9701.html','true',[],''],
	['PAGE','62301',jdecode('Calendar+Of+Events'),jdecode(''),'/62301.html','true',[],''],
	['PAGE','7585',jdecode('Latest+Calls'),jdecode(''),'/7585.html','true',[],''],
	['PAGE','7627',jdecode('Training'),jdecode(''),'/7627.html','true',[],''],
	['PAGE','7606',jdecode('Fire+Prevention'),jdecode(''),'/7606.html','true',[],''],
	['PAGE','41301',jdecode('Guestbook'),jdecode(''),'/41301.html','true',[],''],
	['PAGE','40001',jdecode('Links'),jdecode(''),'/40001.html','true',[],''],
	['PAGE','7564',jdecode('History'),jdecode(''),'/7564.html','true',[],''],
	['PAGE','60001',jdecode('Call+Archive'),jdecode(''),'/60001.html','true',[],''],
	['PAGE','47101',jdecode('Bentoski'),jdecode(''),'/47101.html','false',[],''],
	['PAGE','47501',jdecode('GRussell'),jdecode(''),'/47501.html','false',[],''],
	['PAGE','49501',jdecode('Swinney'),jdecode(''),'/49501.html','false',[],''],
	['PAGE','48001',jdecode('Moses'),jdecode(''),'/48001.html','false',[],''],
	['PAGE','48501',jdecode('Rollins'),jdecode(''),'/48501.html','false',[],''],
	['PAGE','52701',jdecode('mrussell'),jdecode(''),'/52701.html','false',[],''],
	['PAGE','53201',jdecode('tchestnutt'),jdecode(''),'/53201.html','false',[],''],
	['PAGE','53801',jdecode('salt'),jdecode(''),'/53801.html','false',[],''],
	['PAGE','55101',jdecode('R.Chestnut'),jdecode(''),'/55101.html','false',[],''],
	['PAGE','55122',jdecode('T.Hylton'),jdecode(''),'/55122.html','false',[],''],
	['PAGE','55701',jdecode('Steve+Clark'),jdecode(''),'/55701.html','false',[],''],
	['PAGE','55722',jdecode('Greg+Falin'),jdecode(''),'/55722.html','false',[],''],
	['PAGE','56101',jdecode('t.hall'),jdecode(''),'/56101.html','false',[],''],
	['PAGE','57101',jdecode('M.Church'),jdecode(''),'/57101.html','false',[],''],
	['PAGE','57801',jdecode('alambert'),jdecode(''),'/57801.html','false',[],''],
	['PAGE','58901',jdecode('The+Brotherhood'),jdecode(''),'/58901.html','false',[],''],
	['PAGE','63201',jdecode('B.Chandler'),jdecode(''),'/63201.html','false',[],''],
	['PAGE','63601',jdecode('T.Chandler'),jdecode(''),'/63601.html','false',[],''],
	['PAGE','64001',jdecode('d.gibson'),jdecode(''),'/64001.html','false',[],''],
	['PAGE','64501',jdecode('G.Johnson'),jdecode(''),'/64501.html','false',[],''],
	['PAGE','65001',jdecode('ngardner'),jdecode(''),'/65001.html','false',[],''],
	['PAGE','68701',jdecode('S.Eldridge'),jdecode(''),'/68701.html','false',[],''],
	['PAGE','72101',jdecode('C.Rutherford'),jdecode(''),'/72101.html','false',[],''],
	['PAGE','72501',jdecode('Gene+Giles'),jdecode(''),'/72501.html','false',[],''],
	['PAGE','72901',jdecode('James+Taylor'),jdecode(''),'/72901.html','false',[],''],
	['PAGE','75401',jdecode('ClintBarker'),jdecode(''),'/75401.html','false',[],''],
	['PAGE','75801',jdecode('G.Mahan'),jdecode(''),'/75801.html','false',[],''],
	['PAGE','75822',jdecode('B.Hughes'),jdecode(''),'/75822.html','false',[],''],
	['PAGE','75843',jdecode('T.Newberry'),jdecode(''),'/75843.html','false',[],''],
	['PAGE','75864',jdecode('J.Herron'),jdecode(''),'/75864.html','false',[],''],
	['PAGE','76001',jdecode('T.Dillon'),jdecode(''),'/76001.html','false',[],''],
	['PAGE','76022',jdecode('C.Holcomb'),jdecode(''),'/76022.html','false',[],''],
	['PAGE','89401',jdecode('Joey+W.+Herron'),jdecode(''),'/89401.html','false',[],'']];
var siteelementCount=47;
theSitetree.topTemplateName='Georgia';
theSitetree.paletteFamily='E02C2C';
theSitetree.keyvisualId='5988';
theSitetree.keyvisualName='kv_5988.jpg';
theSitetree.fontsetId='11118';
theSitetree.graphicsetId='11910';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='E02C2C';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Georgia',
				paletteFamily: 	'E02C2C',
				keyvisualId: 	'5988',
				keyvisualName: 	'kv_5988.jpg',
				fontsetId: 		'11118',
				graphicsetId: 	'11910',
				contentColor: 	'FFFFFF',
				contentBGColor: 'E02C2C',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20100223-184832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7501',
internalId:  '',
customField: '20100215-191630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7522',
internalId:  '',
customField: '20100111-225153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7543',
internalId:  '',
customField: '20091221-203703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7564',
internalId:  '',
customField: '20100111-225256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7585',
internalId:  '',
customField: '20100215-191440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7606',
internalId:  '',
customField: '20100223-184955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7627',
internalId:  '',
customField: '20100128-161607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9701',
internalId:  '',
customField: '20100215-191529'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40001',
internalId:  '',
customField: '20091221-204928'
};
webappMappings['1002']=webappMappings['1002-41301aendu0in2dvu']={
webappId:    '1002',
documentId:  '41301',
internalId:  '41301aendu0in2dvu',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41301',
internalId:  '',
customField: '20090710-002130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47101',
internalId:  '',
customField: '20090802-145034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47501',
internalId:  '',
customField: '20091210-023234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48001',
internalId:  '',
customField: '20090802-152542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48501',
internalId:  '',
customField: '20091012-165048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49501',
internalId:  '',
customField: '20091210-023657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52701',
internalId:  '',
customField: '20090806-212733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53201',
internalId:  '',
customField: '20091210-023411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53801',
internalId:  '',
customField: '20091011-172626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55101',
internalId:  '',
customField: '20090812-224936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55122',
internalId:  '',
customField: '20090812-225245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55722',
internalId:  '',
customField: '20091227-112206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55701',
internalId:  '',
customField: '20090812-231133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56101',
internalId:  '',
customField: '20091210-023328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57101',
internalId:  '',
customField: '20091210-023057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57801',
internalId:  '',
customField: '20091210-023555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58901',
internalId:  '',
customField: '20091012-171328'
};
webappMappings['7060']=webappMappings['7060-c8a0aaf3c739e4f1753240d52cc0f1a8']={
webappId:    '7060',
documentId:  '58901',
internalId:  'c8a0aaf3c739e4f1753240d52cc0f1a8',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60001',
internalId:  '',
customField: '20091221-205003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62301',
internalId:  '',
customField: '20100204-154930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63201',
internalId:  '',
customField: '20090904-122853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63601',
internalId:  '',
customField: '20090904-124447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64001',
internalId:  '',
customField: '20090904-125436'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64501',
internalId:  '',
customField: '20090904-131816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65001',
internalId:  '',
customField: '20090904-133324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68701',
internalId:  '',
customField: '20090921-203010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72101',
internalId:  '',
customField: '20100124-204120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72501',
internalId:  '',
customField: '20091008-123759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72901',
internalId:  '',
customField: '20091227-111956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75401',
internalId:  '',
customField: '20091015-184210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75864',
internalId:  '',
customField: '20091015-193010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75801',
internalId:  '',
customField: '20091015-185218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76001',
internalId:  '',
customField: '20091015-190054'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75822',
internalId:  '',
customField: '20091015-193910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75843',
internalId:  '',
customField: '20091015-184555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76022',
internalId:  '',
customField: '20091015-220006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85601',
internalId:  '',
customField: '20091227-111527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89401',
internalId:  '',
customField: '20100124-204157'
};
var canonHostname = 'cmworker01.yourhostingaccount.com';
var accountId     = 'AENDU0IN2DVU';
var companyName   = 'Big+Stone+Gap+Fire+Department';
var htmlTitle	  = 'Big+Stone+Gap+Fire+Department';
var metaKeywords  = '';
var metaContents  = 'Big+Stone+Gap+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();
};

