/* [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(''), jdecode('%2F801.html'), 'true',[],'',''],
	['PAGE','2601',jdecode('Association'),jdecode(''), jdecode('%2F2601%2Findex.html'), 'true',[ 
		['PAGE','5601',jdecode('Chairman'),jdecode(''), jdecode('%2F2601%2F5601.html'), 'true',[],'',''],
		['PAGE','50001',jdecode('Past+Chairmen'),jdecode(''), jdecode('%2F2601%2F50001.html'), 'true',[],'',''],
		['PAGE','50027',jdecode('Honorary+Life+Members'),jdecode(''), jdecode('%2F2601%2F50027.html'), 'true',[],'',''],
		['PAGE','5622',jdecode('Committee'),jdecode(''), jdecode('%2F2601%2F5622.html'), 'true',[],'','']
	],'',''],
	['PAGE','51101',jdecode('Member+Info'),jdecode(''), jdecode('%2F51101%2Findex.html'), 'true',[ 
		['PAGE','5664',jdecode('Constitution'),jdecode(''), jdecode('%2F51101%2F5664.html'), 'true',[],'','']
	],'',''],
	['PAGE','2622',jdecode('Education'),jdecode(''), jdecode('%2F2622%2Findex.html'), 'true',[ 
		['PAGE','55701',jdecode('2010+Events'),jdecode(''), jdecode('%2F2622%2F55701.html'), 'true',[],'',''],
		['PAGE','59101',jdecode('2011+Events'),jdecode(''), jdecode('%2F2622%2F59101.html'), 'true',[],'','']
	],'',''],
	['PAGE','2643',jdecode('Information'),jdecode(''), jdecode('%2F2643%2Findex.html'), 'true',[ 
		['PAGE','6701',jdecode('Useful+Links'),jdecode(''), jdecode('%2F2643%2F6701.html'), 'true',[],'',''],
		['PAGE','6722',jdecode('Chairman%26%23x27%3Bs+Report'),jdecode(''), jdecode('%2F2643%2F6722.html'), 'true',[],'',''],
		['PAGE','6743',jdecode('Committee+Minutes'),jdecode(''), jdecode('%2F2643%2F6743.html'), 'true',[],'',''],
		['PAGE','6764',jdecode('AGM+Minutes'),jdecode(''), jdecode('%2F2643%2F6764.html'), 'true',[],'',''],
		['PAGE','6785',jdecode('Archive'),jdecode(''), jdecode('%2F2643%2F6785.html'), 'true',[],'',''],
		['PAGE','6806',jdecode('2005'),jdecode(''), jdecode('%2F2643%2F6806.html'), 'true',[],'',''],
		['PAGE','6827',jdecode('2006'),jdecode(''), jdecode('%2F2643%2F6827.html'), 'true',[],'',''],
		['PAGE','6848',jdecode('2007'),jdecode(''), jdecode('%2F2643%2F6848.html'), 'true',[],'',''],
		['PAGE','39101',jdecode('2008'),jdecode(''), jdecode('%2F2643%2F39101.html'), 'true',[],'',''],
		['PAGE','39701',jdecode('2008+%28continued%29'),jdecode(''), jdecode('%2F2643%2F39701.html'), 'true',[],'','']
	],'',''],
	['PAGE','2664',jdecode('Sports+%26+Social'),jdecode(''), jdecode('%2F2664%2Findex.html'), 'true',[ 
		['PAGE','55301',jdecode('Quiz+Night+2010'),jdecode(''), jdecode('%2F2664%2F55301.html'), 'true',[],'',''],
		['PAGE','58901',jdecode('Quiz+Night+2011'),jdecode(''), jdecode('%2F2664%2F58901.html'), 'true',[],'',''],
		['PAGE','66001',jdecode('Barbecue+2011'),jdecode(''), jdecode('%2F2664%2F66001.html'), 'true',[],'','']
	],'',''],
	['PAGE','59501',jdecode('Annual+Dinner'),jdecode(''), jdecode('%2F59501.html'), 'true',[],'',''],
	['PAGE','71701',jdecode('Christmas+Lunch'),jdecode(''), jdecode('%2F71701.html'), 'true',[],'',''],
	['PAGE','68801',jdecode('Golf+Day'),jdecode(''), jdecode('%2F68801.html'), 'true',[],'',''],
	['PAGE','36401',jdecode('Charity'),jdecode(''), jdecode('%2F36401.html'), 'true',[],'',''],
	['PAGE','2685',jdecode('Legal'),jdecode(''), jdecode('%2F2685.html'), 'true',[],'',''],
	['PAGE','2706',jdecode('Contact+Us'),jdecode(''), jdecode('%2F2706.html'), 'true',[],'',''],
	['PAGE','2727',jdecode('Privacy'),jdecode(''), jdecode('%2F2727%2Findex.html'), 'true',[ 
		['PAGE','4201',jdecode('Privacy+Policy'),jdecode(''), jdecode('%2F2727%2F4201.html'), 'true',[],'',''],
		['PAGE','4222',jdecode('Terms+and+Conditions'),jdecode(''), jdecode('%2F2727%2F4222.html'), 'true',[],'','']
	],'',''],
	['PAGE','72601',jdecode('Picture+Gallery'),jdecode(''), jdecode('%2F72601.html'), 'true',[],'','']];
var siteelementCount=36;
theSitetree.topTemplateName='Enjoy';
theSitetree.paletteFamily='93A6CC';
theSitetree.keyvisualId='2224';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='364';
theSitetree.graphicsetId='415';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='93A6CC';
var localeDef={
  language: 'en',
  country: 'GB'
};
var prodDef={
  wl_name: 'easily_co_uk',
  product: 'WSCSYSSSSLY0XVD7'
};
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: 	'000000',
				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: '20111020-144133'
};
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: '20110630-121354'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2622',
internalId:  '',
customField: '20110630-121702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2643',
internalId:  '',
customField: '20080221-120430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2664',
internalId:  '',
customField: '20111020-144802'
};
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: '20110630-121307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5601',
internalId:  '',
customField: '20110419-122600'
};
webappMappings['1501']=webappMappings['1501-4726449']={
webappId:    '1501',
documentId:  '801',
internalId:  '4726449',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5664',
internalId:  '',
customField: '20080207-194151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20110309-145415'
};
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:  '68801',
internalId:  '',
customField: '20111014-145216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66001',
internalId:  '',
customField: '20110630-120241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55301',
internalId:  '',
customField: '20100217-142920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55701',
internalId:  '',
customField: '20110630-121719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36401',
internalId:  '',
customField: '20110721-110636'
};
webappMappings['7060']=webappMappings['7060-fb2ced3761cb644d4cadc1ca454fd9da']={
webappId:    '7060',
documentId:  '72601',
internalId:  'fb2ced3761cb644d4cadc1ca454fd9da',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58901',
internalId:  '',
customField: '20110630-104318'
};
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:  '72601',
internalId:  '',
customField: '20111020-145134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51101',
internalId:  '',
customField: '20111020-144112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59501',
internalId:  '',
customField: '20110630-122149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71701',
internalId:  '',
customField: '20111014-150128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59101',
internalId:  '',
customField: '20110309-150310'
};
var webAppHostname = 'cgi.easily.co.uk:80';
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  = '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();
};

