/* [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','166',jdecode('Home'),jdecode(''),'/166.html','true',[],'',''],
	['PAGE','1763',jdecode('President%26%23x27%3Bs+Corner'),jdecode(''),'/1763.html','true',[],'',''],
	['PAGE','187',jdecode('About+Us'),jdecode(''),'/187/index.html','true',[ 
		['PAGE','196',jdecode('2008+Officers'),jdecode(''),'/187/196.html','true',[],'',''],
		['PAGE','205',jdecode('Board+of+Directors'),jdecode(''),'/187/205.html','true',[],'','']
	],'',''],
	['PAGE','214',jdecode('Reunions'),jdecode(''),'/214.html','true',[],'',''],
	['PAGE','232',jdecode('The+Ships'),jdecode(''),'/232.html','true',[],'',''],
	['PAGE','241',jdecode('The+Battle'),jdecode(''),'/241.html','true',[],'',''],
	['PAGE','6015',jdecode('Casualties'),jdecode(''),'/6015/index.html','true',[ 
		['PAGE','6024',jdecode('USS+Hoel'),jdecode(''),'/6015/6024.html','true',[],'',''],
		['PAGE','6033',jdecode('USS+Johnston'),jdecode(''),'/6015/6033.html','true',[],'','']
	],'',''],
	['PAGE','6042',jdecode('Survivors'),jdecode(''),'/6042/index.html','true',[ 
		['PAGE','6051',jdecode('USS+Hoel'),jdecode(''),'/6042/6051.html','true',[],'',''],
		['PAGE','6060',jdecode('USS+Johnston'),jdecode(''),'/6042/6060.html','true',[],'','']
	],'',''],
	['PAGE','304',jdecode('Search+and+Rescue'),jdecode(''),'/304.html','true',[],'',''],
	['PAGE','322',jdecode('Action+Report'),jdecode(''),'/322/index.html','true',[ 
		['PAGE','367',jdecode('USS+HOEL'),jdecode(''),'/322/367.html','true',[],'',''],
		['PAGE','376',jdecode('USS+JOHNSTON'),jdecode(''),'/322/376.html','true',[],'','']
	],'',''],
	['PAGE','6163',jdecode('Captain%26%23x27%3Bs'),jdecode(''),'/6163/index.html','true',[ 
		['PAGE','6172',jdecode('Evans'),jdecode(''),'/6163/6172.html','true',[],'',''],
		['PAGE','6181',jdecode('Kinterger'),jdecode(''),'/6163/6181.html','true',[],'',''],
		['PAGE','6190',jdecode('Thomas'),jdecode(''),'/6163/6190.html','true',[],'','']
	],'',''],
	['PAGE','6199',jdecode('Fred+Green+Report'),jdecode(''),'/6199.html','true',[],'',''],
	['PAGE','6208',jdecode('Kwajalein'),jdecode(''),'/6208.html','true',[],'',''],
	['PAGE','6217',jdecode('We+Asked..+%26+We+Got+It'),jdecode(''),'/6217.html','true',[],'',''],
	['PAGE','6226',jdecode('The+Last+13+Days'),jdecode(''),'/6226.html','true',[],'',''],
	['PAGE','6244',jdecode('Just+a+Piece+of+Cloth'),jdecode(''),'/6244.html','true',[],'',''],
	['PAGE','6253',jdecode('A+Survivors+Story'),jdecode(''),'/6253.html','true',[],'',''],
	['PAGE','6262',jdecode('Obituaries'),jdecode(''),'/6262.html','true',[],'',''],
	['PAGE','6271',jdecode('In+Memory-Bill+Mercer'),jdecode(''),'/6271.html','true',[],'',''],
	['PAGE','6289',jdecode('Bronze+Star+Medal'),jdecode(''),'/6289.html','true',[],'',''],
	['PAGE','6298',jdecode('Other+Related+Sites'),jdecode(''),'/6298.html','true',[],'',''],
	['PAGE','7230',jdecode('Monuments'),jdecode(''),'/7230/index.html','true',[ 
		['PAGE','7239',jdecode('Small+Boys'),jdecode(''),'/7230/7239.html','true',[],'',''],
		['PAGE','7248',jdecode('Taffy+III'),jdecode(''),'/7230/7248.html','true',[],'','']
	],'','']];
var siteelementCount=35;
theSitetree.topTemplateName='Antique';
theSitetree.paletteFamily='7C8EFE';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='11064';
theSitetree.graphicsetId='11838';
theSitetree.contentColor='D1C3A6';
theSitetree.contentBGColor='856A3B';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Antique',
				paletteFamily: 	'7C8EFE',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'11064',
				graphicsetId: 	'11838',
				contentColor: 	'D1C3A6',
				contentBGColor: '856A3B',
				a_color: 		'664F23',
				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:  '166',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166',
internalId:  '',
customField: '20080810-114835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214',
internalId:  '',
customField: '20110419-220120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6262',
internalId:  '',
customField: '20100705-125720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6015',
internalId:  '',
customField: '20080401-002442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6033',
internalId:  '',
customField: '20080401-002820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1763',
internalId:  '',
customField: '20091111-195810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '187',
internalId:  '',
customField: '20080831-161040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196',
internalId:  '',
customField: '20080401-001903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '205',
internalId:  '',
customField: '20080401-001952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232',
internalId:  '',
customField: '20080401-002126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '241',
internalId:  '',
customField: '20110807-093255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6024',
internalId:  '',
customField: '20080327-192256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6042',
internalId:  '',
customField: '20080304-210838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6051',
internalId:  '',
customField: '20080401-003008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6060',
internalId:  '',
customField: '20100126-121750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '304',
internalId:  '',
customField: '20080228-195908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '322',
internalId:  '',
customField: '20080416-003041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '367',
internalId:  '',
customField: '20080304-201510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '376',
internalId:  '',
customField: '20080327-192517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6163',
internalId:  '',
customField: '20080305-002426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6172',
internalId:  '',
customField: '20080304-202749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6181',
internalId:  '',
customField: '20080304-210137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6190',
internalId:  '',
customField: '20080304-205736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6199',
internalId:  '',
customField: '20080304-212100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6208',
internalId:  '',
customField: '20080304-212741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6217',
internalId:  '',
customField: '20080327-192956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6226',
internalId:  '',
customField: '20080327-191454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6244',
internalId:  '',
customField: '20080327-192045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6253',
internalId:  '',
customField: '20080318-194645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6271',
internalId:  '',
customField: '20091229-084133'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6289',
internalId:  '',
customField: '20080327-185201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6298',
internalId:  '',
customField: '20080327-185536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7230',
internalId:  '',
customField: '20080331-154143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7239',
internalId:  '',
customField: '20080327-194732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7248',
internalId:  '',
customField: '20080327-194123'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INV0BA';
var companyName   = 'USS+JOHNSTON-HOEL+ASSOCIATION';
var htmlTitle	  = 'USSJOHNSTON-HOEL.COM';
var metaKeywords  = 'Associations%2C+Navy%2C+WWII+Ships%2C+USS+Johnston+DD557%2C+USS+Hoel+DD533';
var metaContents  = 'Associations%2C+Navy%2C+WWII+Ships%2C+USS+Johnston+DD557%2C+USS+Hoel+DD533';
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();
};

