/* [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('Home'),jdecode(''),'/801.html','true',[],'',''],
	['PAGE','2601',jdecode('Association'),jdecode(''),'/2601/index.html','true',[ 
		['PAGE','5601',jdecode('Chairman'),jdecode(''),'/2601/5601.html','true',[],'',''],
		['PAGE','50001',jdecode('Past+Chairmen'),jdecode(''),'/2601/50001.html','true',[],'',''],
		['PAGE','50027',jdecode('Honorary+Life+Members'),jdecode(''),'/2601/50027.html','true',[],'',''],
		['PAGE','5622',jdecode('Committee'),jdecode(''),'/2601/5622.html','true',[],'','']
	],'',''],
	['PAGE','51101',jdecode('Member+Info'),jdecode(''),'/51101/index.html','true',[ 
		['PAGE','35601',jdecode('Members+-+Underwriting'),jdecode(''),'/51101/35601.html','true',[],'',''],
		['PAGE','50501',jdecode('Members+-+Associate'),jdecode(''),'/51101/50501.html','true',[],'',''],
		['PAGE','5664',jdecode('Constitution'),jdecode(''),'/51101/5664.html','true',[],'','']
	],'',''],
	['PAGE','2622',jdecode('Education'),jdecode(''),'/2622/index.html','true',[ 
		['PAGE','37401',jdecode('2009+Events'),jdecode(''),'/2622/37401.html','true',[],'',''],
		['PAGE','55701',jdecode('2010+Events'),jdecode(''),'/2622/55701.html','true',[],'','']
	],'',''],
	['PAGE','2643',jdecode('Information'),jdecode(''),'/2643/index.html','true',[ 
		['PAGE','6701',jdecode('Useful+Links'),jdecode(''),'/2643/6701.html','true',[],'',''],
		['PAGE','6722',jdecode('Chairman%26%23x27%3Bs+Report'),jdecode(''),'/2643/6722.html','true',[],'',''],
		['PAGE','6743',jdecode('Committee+Minutes'),jdecode(''),'/2643/6743.html','true',[],'',''],
		['PAGE','6764',jdecode('AGM+Minutes'),jdecode(''),'/2643/6764.html','true',[],'',''],
		['PAGE','6785',jdecode('Archive'),jdecode(''),'/2643/6785.html','true',[],'',''],
		['PAGE','6806',jdecode('2005'),jdecode(''),'/2643/6806.html','true',[],'',''],
		['PAGE','6827',jdecode('2006'),jdecode(''),'/2643/6827.html','true',[],'',''],
		['PAGE','6848',jdecode('2007'),jdecode(''),'/2643/6848.html','true',[],'',''],
		['PAGE','39101',jdecode('2008'),jdecode(''),'/2643/39101.html','true',[],'',''],
		['PAGE','39701',jdecode('2008+%28continued%29'),jdecode(''),'/2643/39701.html','true',[],'','']
	],'',''],
	['PAGE','2664',jdecode('Sports+%26+Social'),jdecode(''),'/2664/index.html','true',[ 
		['PAGE','35901',jdecode('Quiz+Night+2009'),jdecode(''),'/2664/35901.html','true',[],'',''],
		['PAGE','55301',jdecode('Quiz+Night+2010'),jdecode(''),'/2664/55301.html','true',[],'','']
	],'',''],
	['PAGE','35101',jdecode('Dates+for+the+Diary'),jdecode(''),'/35101/index.html','true',[ 
		['PAGE','36501',jdecode('2009+Events'),jdecode(''),'/35101/36501.html','true',[],'',''],
		['PAGE','53401',jdecode('2010+Events'),jdecode(''),'/35101/53401.html','true',[],'','']
	],'',''],
	['PAGE','36401',jdecode('Charity'),jdecode(''),'/36401/index.html','true',[ 
		['PAGE','53701',jdecode('2009'),jdecode(''),'/36401/53701.html','true',[],'',''],
		['PAGE','53727',jdecode('2010'),jdecode(''),'/36401/53727.html','true',[],'','']
	],'',''],
	['PAGE','2685',jdecode('Legal'),jdecode(''),'/2685.html','true',[],'',''],
	['PAGE','2706',jdecode('Contact+Us'),jdecode(''),'/2706.html','true',[],'',''],
	['PAGE','2727',jdecode('Privacy'),jdecode(''),'/2727/index.html','true',[ 
		['PAGE','4201',jdecode('Privacy+Policy'),jdecode(''),'/2727/4201.html','true',[],'',''],
		['PAGE','4222',jdecode('Terms+and+Conditions'),jdecode(''),'/2727/4222.html','true',[],'','']
	],'',''],
	['PAGE','57501',jdecode('Picture+Gallery'),jdecode(''),'/57501.html','true',[],'','']];
var siteelementCount=39;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='93A6CC';
theSitetree.keyvisualId='2224';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='364';
theSitetree.graphicsetId='415';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='93A6CC';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Enjoy',
				paletteFamily: 	'93A6CC',
				keyvisualId: 	'2224',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'364',
				graphicsetId: 	'415',
				contentColor: 	'FFFFFF',
				contentBGColor: '93A6CC',
				a_color: 		'93A6CC',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20090217-090342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2727',
internalId:  '',
customField: '20080220-154012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4201',
internalId:  '',
customField: '20080211-181100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4222',
internalId:  '',
customField: '20090217-091745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2706',
internalId:  '',
customField: '20080207-195507'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2601',
internalId:  '',
customField: '20080220-153759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2622',
internalId:  '',
customField: '20090129-145553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2643',
internalId:  '',
customField: '20080221-120430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2664',
internalId:  '',
customField: '20091216-161906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2685',
internalId:  '',
customField: '20080220-154147'
};
webappMappings['7008']=webappMappings['7008-1308']={
webappId:    '7008',
documentId:  '2706',
internalId:  '1308',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5622',
internalId:  '',
customField: '20091216-153753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20090617-095829'
};
webappMappings['1501']=webappMappings['1501-4726449']={
webappId:    '1501',
documentId:  '801',
internalId:  '4726449',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35601',
internalId:  '',
customField: '20100817-115138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5664',
internalId:  '',
customField: '20080207-194151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20080221-115334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6722',
internalId:  '',
customField: '20080208-204914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6743',
internalId:  '',
customField: '20080313-165809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6764',
internalId:  '',
customField: '20090302-144803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6785',
internalId:  '',
customField: '20080208-200018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6806',
internalId:  '',
customField: '20080208-200018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6827',
internalId:  '',
customField: '20080208-200018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6848',
internalId:  '',
customField: '20080208-200018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57501',
internalId:  '',
customField: '20100222-160533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55301',
internalId:  '',
customField: '20100217-142920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55701',
internalId:  '',
customField: '20100217-144508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35101',
internalId:  '',
customField: '20091216-163217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35901',
internalId:  '',
customField: '20090128-105427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36401',
internalId:  '',
customField: '20100219-121306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36501',
internalId:  '',
customField: '20091216-163330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37401',
internalId:  '',
customField: '20090129-145651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39101',
internalId:  '',
customField: '20090302-151818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39701',
internalId:  '',
customField: '20090302-152148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50001',
internalId:  '',
customField: '20091114-115601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50027',
internalId:  '',
customField: '20091114-115724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50501',
internalId:  '',
customField: '20100817-115322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51101',
internalId:  '',
customField: '20091216-151709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53401',
internalId:  '',
customField: '20100217-141638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53701',
internalId:  '',
customField: '20091216-153546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53727',
internalId:  '',
customField: '20091216-153547'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10IN2OY6';
var companyName   = 'Manchester+Marine+Insurance+Association';
var htmlTitle	  = 'Manchester+Marine+Insurance+Association';
var metaKeywords  = 'Marine+Insurance+cargo+freight+shipping+insurance';
var metaContents  = 'th+website+of+the+Manchester+Marine+Insurance+Association';
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();
};
