/* [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','801',jdecode('About+Our+Company'),jdecode(''),'/801.html','true',[],'',''],
	['PAGE','852',jdecode('What%26%23x27%3Bs+New%3F'),jdecode(''),'/852.html','true',[],'',''],
	['PAGE','76362',jdecode('Abojeb+launches+new+incentives+for+SF+crew'),jdecode(''),'/76362.html','false',[],'',''],
	['PAGE','76112',jdecode('Abojeb+Mans+Best+Quality+Ship'),jdecode(''),'/76112.html','false',[],'',''],
	['PAGE','75742',jdecode('Aboitiz+Sells+Transport+Unit'),jdecode(''),'/75742/index.html','false',[ 
		['PAGE','75892',jdecode('Info+Watch'),jdecode(''),'/75742/75892.html','true',[],'',''],
		['PAGE','76173',jdecode('medlop'),jdecode(''),'/75742/76173.html','false',[],'',''],
		['PAGE','70201',jdecode('What+is+WES%3F'),jdecode(''),'/75742/70201.html','false',[],'',''],
		['PAGE','75715',jdecode('Our+Pride%21'),jdecode(''),'/75742/75715.html','true',[],'',''],
		['PAGE','39101',jdecode('Board+Passers'),jdecode(''),'/75742/39101.html','false',[],'',''],
		['PAGE','13964',jdecode('Loyalty+Awardees'),jdecode(''),'/75742/13964.html','false',[],'',''],
		['PAGE','75919',jdecode('Alerts%21'),jdecode(''),'/75742/75919.html','true',[],'',''],
		['PAGE','61501',jdecode('Important+Notices'),jdecode(''),'/75742/61501.html','false',[],'',''],
		['PAGE','13901',jdecode('What%26%23x27%3Bs+New%21'),jdecode(''),'/75742/13901.html','false',[],'',''],
		['PAGE','13943',jdecode('Our+Pride%21'),jdecode(''),'/75742/13943.html','false',[],'',''],
		['PAGE','78474',jdecode('PAFPI'),jdecode(''),'/75742/78474.html','false',[],'',''],
		['PAGE','71401',jdecode('Refer-an-Officer%2C+Get-A-Reward'),jdecode(''),'/75742/71401.html','false',[],'',''],
		['PAGE','59601',jdecode('Officer+Referral+Form'),jdecode(''),'/75742/59601.html','false',[],'',''],
		['PAGE','76709',jdecode('Natural+Gallstone+Removal'),jdecode(''),'/75742/76709.html','false',[],'',''],
		['PAGE','13985',jdecode('Useful+Links'),jdecode(''),'/75742/13985.html','false',[],'',''],
		['PAGE','81349',jdecode('Beware+of+Hepa+B'),jdecode(''),'/75742/81349.html','false',[],'','']
	],'',''],
	['PAGE','894',jdecode('Seafarers+%26+Families%26%23x27%3B+Nook'),jdecode(''),'/894/index.html','true',[ 
		['PAGE','78598',jdecode('Seafarers+%26+Families+activity'),jdecode(''),'/894/78598.html','true',[],'',''],
		['PAGE','76935',jdecode('2010+Monthly+seminar+Manila'),jdecode(''),'/894/76935.html','false',[],'',''],
		['PAGE','75724',jdecode('Invitation'),jdecode(''),'/894/75724.html','false',[],'',''],
		['PAGE','13922',jdecode('Crew+Benefits'),jdecode(''),'/894/13922.html','false',[],'',''],
		['PAGE','75733',jdecode('Incentive+Programs'),jdecode(''),'/894/75733.html','false',[],'',''],
		['PAGE','45301',jdecode('Health+Tips'),jdecode(''),'/894/45301.html','false',[],'',''],
		['PAGE','13622',jdecode('Crewing+Policies'),jdecode(''),'/894/13622.html','false',[],'',''],
		['PAGE','76608',jdecode('Money+Matters'),jdecode(''),'/894/76608.html','false',[],'','']
	],'',''],
	['PAGE','13601',jdecode('Applicants%26%23x27%3B+Corner'),jdecode(''),'/13601/index.html','true',[ 
		['PAGE','50501',jdecode('Recruitment+Process'),jdecode(''),'/13601/50501.html','false',[],'',''],
		['PAGE','75507',jdecode('Job+Postings'),jdecode(''),'/13601/75507.html','false',[],'',''],
		['PAGE','81846',jdecode('Crew+Requirements'),jdecode(''),'/13601/81846.html','false',[],'',''],
		['PAGE','41401',jdecode('Other+Services'),jdecode(''),'/13601/41401.html','false',[],'','']
	],'',''],
	['PAGE','48701',jdecode('Photo+Gallery'),jdecode(''),'/48701/index.html','false',[ 
		['PAGE','78255',jdecode('March+Activity'),jdecode(''),'/48701/78255.html','false',[],'','']
	],'',''],
	['PAGE','38306',jdecode('Contact++Us'),jdecode(''),'/38306/index.html','true',[ 
		['PAGE','38301',jdecode('Read+Feedback'),jdecode(''),'/38306/38301.html','false',[],'','']
	],'',''],
	['PAGE','58301',jdecode('Crew+Payslip+Login'),jdecode(''),'/58301/index.html','true',[ 
		['PAGE','75623',jdecode('Procedure-Payslip+Online'),jdecode(''),'/58301/75623.html','false',[],'','']
	],'',''],
	['PAGE','76260',jdecode('SEAFARERS%26%23x27%3B+XMAS+PARTY+2009'),jdecode(''),'/76260.html','false',[],'',''],
	['PAGE','77407',jdecode('Principals+News'),jdecode(''),'/77407.html','true',[],'',''],
	['PAGE','78681',jdecode('What%26%23x27%3Bs+new%3F'),jdecode(''),'/78681.html','false',[],'','']];
var siteelementCount=44;
theSitetree.topTemplateName='Easy';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='52';
theSitetree.graphicsetId='57';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Easy',
				paletteFamily: 	'003366',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'52',
				graphicsetId: 	'57',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'003366',
				b_color: 		'FFFFFF',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '801',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1008810']={
webappId:    '1501',
documentId:  '801',
internalId:  '1008810',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-627']={
webappId:    '7008',
documentId:  '38306',
internalId:  '627',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78255',
internalId:  '',
customField: '20100429-212210'
};
webappMappings['7060']=webappMappings['7060-bdea321f538005c3f1e44746a298a420']={
webappId:    '7060',
documentId:  '48701',
internalId:  'bdea321f538005c3f1e44746a298a420',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78474',
internalId:  '',
customField: '20100504-220535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20100531-202151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13901',
internalId:  '',
customField: '20100503-203227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61501',
internalId:  '',
customField: '20080929-230247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71401',
internalId:  '',
customField: '20080312-044452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70201',
internalId:  '',
customField: '20080312-040905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '852',
internalId:  '',
customField: '20100707-034443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13622',
internalId:  '',
customField: '20070705-062211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13922',
internalId:  '',
customField: '20100224-071151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13943',
internalId:  '',
customField: '20070726-015805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13964',
internalId:  '',
customField: '20080116-224614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39101',
internalId:  '',
customField: '20100623-014627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '894',
internalId:  '',
customField: '20100609-042632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45301',
internalId:  '',
customField: '20100302-051431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13601',
internalId:  '',
customField: '20081111-083824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50501',
internalId:  '',
customField: '20070713-040051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41401',
internalId:  '',
customField: '20100426-055043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59601',
internalId:  '',
customField: '20071011-144009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78681',
internalId:  '',
customField: '20100513-200043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48701',
internalId:  '',
customField: '20100429-221529'
};
webappMappings['7060']=webappMappings['7060-bb4edb6138295e0d4c6626fea7849e5c']={
webappId:    '7060',
documentId:  '78255',
internalId:  'bb4edb6138295e0d4c6626fea7849e5c',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38306',
internalId:  '',
customField: '20081126-043607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38301',
internalId:  '',
customField: '20070612-093647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13985',
internalId:  '',
customField: '20070726-053452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58301',
internalId:  '',
customField: '20100331-003105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75507',
internalId:  '',
customField: '20100628-212510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75623',
internalId:  '',
customField: '20100331-003220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75715',
internalId:  '',
customField: '20081114-082920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75742',
internalId:  '',
customField: '20081114-090634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75733',
internalId:  '',
customField: '20100507-051437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75892',
internalId:  '',
customField: '20081114-095000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75724',
internalId:  '',
customField: '20100628-214407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75919',
internalId:  '',
customField: '20081114-101147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76112',
internalId:  '',
customField: '20100215-022911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76173',
internalId:  '',
customField: '20090824-221237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76260',
internalId:  '',
customField: '20090917-054728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76362',
internalId:  '',
customField: '20100215-004058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76608',
internalId:  '',
customField: '20100224-060956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76709',
internalId:  '',
customField: '20100302-045303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76935',
internalId:  '',
customField: '20100311-015200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77407',
internalId:  '',
customField: '20100426-035639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78598',
internalId:  '',
customField: '20100506-005604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81349',
internalId:  '',
customField: '20100513-203638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81846',
internalId:  '',
customField: '20100615-014638'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INEDX9';
var companyName   = 'Get+Onboard+with+the+Leader+in+Marine+Crewing';
var htmlTitle	  = 'jebsencrew.com';
var metaKeywords  = 'maritime+crewingmarine+crewingcrewingmaritimemarine';
var metaContents  = 'Get+onboard+with+the+leader+in+marine+crewing';
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();
};
