/* [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','10401',jdecode('Home+page'),jdecode(''), jdecode('%2F10401.html'), 'true',[],'',''],
	['PAGE','12401',jdecode('About+our+Club'),jdecode(''), jdecode('%2F12401.html'), 'true',[],'',''],
	['PAGE','91001',jdecode('Committee+Meetings%2F+Present+Committee'),jdecode(''), jdecode('%2F91001%2Findex.html'), 'true',[ 
		['PAGE','95101',jdecode('December+2010'),jdecode(''), jdecode('%2F91001%2F95101.html'), 'true',[],'',''],
		['PAGE','95122',jdecode('January+2011'),jdecode(''), jdecode('%2F91001%2F95122.html'), 'true',[],'',''],
		['PAGE','99612',jdecode('February+2011'),jdecode(''), jdecode('%2F91001%2F99612.html'), 'true',[],'',''],
		['PAGE','95143',jdecode('March+2011'),jdecode(''), jdecode('%2F91001%2F95143.html'), 'true',[],'',''],
		['PAGE','98812',jdecode('April+2011'),jdecode(''), jdecode('%2F91001%2F98812.html'), 'true',[],'',''],
		['PAGE','98833',jdecode('May+2011'),jdecode(''), jdecode('%2F91001%2F98833.html'), 'true',[],'',''],
		['PAGE','110312',jdecode('June+2011'),jdecode(''), jdecode('%2F91001%2F110312.html'), 'true',[],'',''],
		['PAGE','110333',jdecode('July+2011'),jdecode(''), jdecode('%2F91001%2F110333.html'), 'true',[],'',''],
		['PAGE','110354',jdecode('August+2011'),jdecode(''), jdecode('%2F91001%2F110354.html'), 'true',[],'',''],
		['PAGE','116312',jdecode('September+2011'),jdecode(''), jdecode('%2F91001%2F116312.html'), 'true',[],'',''],
		['PAGE','120623',jdecode('October+2011'),jdecode(''), jdecode('%2F91001%2F120623.html'), 'true',[],'',''],
		['PAGE','120644',jdecode('November+2011'),jdecode(''), jdecode('%2F91001%2F120644.html'), 'true',[],'',''],
		['PAGE','120665',jdecode('December+2011'),jdecode(''), jdecode('%2F91001%2F120665.html'), 'true',[],'','']
	],'',''],
	['PAGE','12601',jdecode('Membership'),jdecode(''), jdecode('%2F12601%2Findex.html'), 'true',[ 
		['PAGE','12622',jdecode('Application'),jdecode(''), jdecode('%2F12601%2F12622.html'), 'true',[],'','']
	],'',''],
	['PAGE','12643',jdecode('Activities'),jdecode(''), jdecode('%2F12643%2Findex.html'), 'true',[ 
		['PAGE','12664',jdecode('Coaching'),jdecode(''), jdecode('%2F12643%2F12664.html'), 'true',[],'',''],
		['PAGE','12685',jdecode('Trips'),jdecode(''), jdecode('%2F12643%2F12685.html'), 'true',[],'',''],
		['PAGE','84001',jdecode('Swimming+Pool'),jdecode(''), jdecode('%2F12643%2F84001.html'), 'true',[],'','']
	],'',''],
	['PAGE','89201',jdecode('Disciplines'),jdecode(''), jdecode('%2F89201%2Findex.html'), 'true',[ 
		['PAGE','89222',jdecode('Northern+Region'),jdecode(''), jdecode('%2F89201%2F89222.html'), 'true',[],'',''],
		['PAGE','89243',jdecode('Slalom'),jdecode(''), jdecode('%2F89201%2F89243.html'), 'true',[],'',''],
		['PAGE','89264',jdecode('Open+Canoeing'),jdecode(''), jdecode('%2F89201%2F89264.html'), 'true',[],'',''],
		['PAGE','89285',jdecode('White+Water+Racing'),jdecode(''), jdecode('%2F89201%2F89285.html'), 'true',[],'',''],
		['PAGE','89306',jdecode('Sea+Kayaking'),jdecode(''), jdecode('%2F89201%2F89306.html'), 'true',[],'',''],
		['PAGE','89327',jdecode('Canoe+Polo'),jdecode(''), jdecode('%2F89201%2F89327.html'), 'true',[],'','']
	],'',''],
	['PAGE','12706',jdecode('Youth+section'),jdecode(''), jdecode('%2F12706.html'), 'true',[],'',''],
	['PAGE','57601',jdecode('Photos+from+Events'),jdecode(''), jdecode('%2F57601.html'), 'true',[],'',''],
	['PAGE','93701',jdecode('Tyne+Tour'),jdecode(''), jdecode('%2F93701%2Findex.html'), 'true',[ 
		['PAGE','94101',jdecode('Trade+Stands'),jdecode(''), jdecode('%2F93701%2F94101.html'), 'true',[],'','']
	],'',''],
	['PAGE','12001',jdecode('Notice+Board'),jdecode(''), jdecode('%2F12001.html'), 'true',[],'',''],
	['PAGE','91701',jdecode('Discounted+Suppliers'),jdecode(''), jdecode('%2F91701.html'), 'true',[],'',''],
	['PAGE','53801',jdecode('Clothing+%26+Order+form'),jdecode(''), jdecode('%2F53801.html'), 'true',[],'',''],
	['PAGE','21101',jdecode('Classified+'),jdecode(''), jdecode('%2F21101%2Findex.html'), 'true',[ 
		['PAGE','12748',jdecode('For+Sale'),jdecode(''), jdecode('%2F21101%2F12748.html'), 'true',[],'',''],
		['PAGE','21122',jdecode('Wanted'),jdecode(''), jdecode('%2F21101%2F21122.html'), 'true',[],'',''],
		['PAGE','52901',jdecode(''),jdecode(''), jdecode('%2F21101%2F52901.html'), 'true',[],'','']
	],'',''],
	['PAGE','51101',jdecode('Facebook'),jdecode(''), jdecode('%2F51101.html'), 'true',[],'',''],
	['PAGE','52943',jdecode(''),jdecode(''), jdecode('%2F52943.html'), 'true',[],'',''],
	['PAGE','52922',jdecode(''),jdecode(''), jdecode('%2F52922.html'), 'true',[],'','']];
var siteelementCount=43;
theSitetree.topTemplateName='Delta';
theSitetree.paletteFamily='080245';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10440';
theSitetree.graphicsetId='10811';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='080245';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'hostway',
  product: 'WSCSYSSSSLYTC245'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Delta',
				paletteFamily: 	'080245',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10440',
				graphicsetId: 	'10811',
				contentColor: 	'FFFFFF',
				contentBGColor: '080245',
				a_color: 		'221785',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '10401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '10401',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10401',
internalId:  '',
customField: '20120118-153155'
};
webappMappings['1003']=webappMappings['1003-ahw050in3cpx11e7e613819']={
webappId:    '1003',
documentId:  '12001',
internalId:  'ahw050in3cpx11e7e613819',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12001',
internalId:  '',
customField: '20090714-160339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20100526-145141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12643',
internalId:  '',
customField: '20110423-020741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12664',
internalId:  '',
customField: '20110502-040732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20110101-132113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12622',
internalId:  '',
customField: '20110502-040932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12685',
internalId:  '',
customField: '20110101-051740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12706',
internalId:  '',
customField: '20110101-025441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89306',
internalId:  '',
customField: '20110101-042433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12748',
internalId:  '',
customField: '20111116-011454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110312',
internalId:  '',
customField: '20111220-194616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20111118-012039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21122',
internalId:  '',
customField: '20110101-130252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89327',
internalId:  '',
customField: '20110103-032122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89243',
internalId:  '',
customField: '20110201-143243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89264',
internalId:  '',
customField: '20110103-032024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98812',
internalId:  '',
customField: '20110622-143430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51101',
internalId:  '',
customField: '20090826-060341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52901',
internalId:  '',
customField: '20090717-143119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52943',
internalId:  '',
customField: '20090717-143119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57601',
internalId:  '',
customField: '20100418-134845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53801',
internalId:  '',
customField: '20101020-170015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52922',
internalId:  '',
customField: '20090717-143119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84001',
internalId:  '',
customField: '20110915-161049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89285',
internalId:  '',
customField: '20110201-144112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89201',
internalId:  '',
customField: '20110101-042147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89222',
internalId:  '',
customField: '20110101-040503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91001',
internalId:  '',
customField: '20110423-020235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91701',
internalId:  '',
customField: '20120121-164149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93701',
internalId:  '',
customField: '20110814-121948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94101',
internalId:  '',
customField: '20110103-041834'
};
webappMappings['1501']=webappMappings['1501-3649460']={
webappId:    '1501',
documentId:  '10401',
internalId:  '3649460',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95101',
internalId:  '',
customField: '20110119-171919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95122',
internalId:  '',
customField: '20110216-224134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95143',
internalId:  '',
customField: '20110415-032332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98833',
internalId:  '',
customField: '20110717-025956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99612',
internalId:  '',
customField: '20110415-045705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110333',
internalId:  '',
customField: '20110817-170658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110354',
internalId:  '',
customField: '20111220-185512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116312',
internalId:  '',
customField: '20111220-185530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120644',
internalId:  '',
customField: '20111221-023203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120623',
internalId:  '',
customField: '20111220-194602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120665',
internalId:  '',
customField: '20120118-161329'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050IN3CPX';
var companyName   = 'Hexham+Canoe+Club';
var htmlTitle	  = 'Hexham+Canoe+Club';
var metaKeywords  = 'Outdoors%2C+sport%2C+canoe%2C+kayak%2C+paddlesport%2C+Hexham%2C+Northumberland%2C+north+east+England';
var metaContents  = 'The+website+of+Hexham+Canoe+Club.+We+have+Sport+England+Clubmark+accreditation+and+our+aim+is+to+introduce+all+members+of+the+community+to+the+joys+of+paddlesport.+We+are+based+in+Northumberland+in+the+beautiful+north+east+of+England.';
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();
};

