/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],'',''],
	['PAGE','9101',jdecode('About+us'),jdecode(''),'/9101.html','true',[],'',''],
	['PAGE','250201',jdecode('Guestbook'),jdecode(''),'/250201.html','true',[],'',''],
	['PAGE','220701',jdecode('Junior+Section'),jdecode(''),'/220701.html','true',[],'',''],
	['PAGE','192001',jdecode('Match+Section'),jdecode(''),'/192001/index.html','true',[ 
		['PAGE','9185',jdecode('Fixtures'),jdecode(''),'/192001/9185.html','true',[],'',''],
		['PAGE','72201',jdecode('League+Results'),jdecode(''),'/192001/72201.html','true',[],'',''],
		['PAGE','72222',jdecode('League+Tables'),jdecode(''),'/192001/72222.html','true',[],'','']
	],'',''],
	['PAGE','147901',jdecode('Club+House+%2F+Social'),jdecode(''),'/147901.html','true',[],'',''],
	['PAGE','192327',jdecode('Contact+%2F+Find+us'),jdecode(''),'/192327/index.html','true',[ 
		['PAGE','11501',jdecode('Directions'),jdecode(''),'/192327/11501.html','true',[],'',''],
		['PAGE','244801',jdecode('Leicestershire+League+grounds'),jdecode(''),'/192327/244801.html','true',[],'','']
	],'',''],
	['PAGE','16501',jdecode('Gallery'),jdecode(''),'/16501/index.html','true',[ 
		['PAGE','182601',jdecode('Members+Photos'),jdecode(''),'/16501/182601.html','true',[],'','']
	],'',''],
	['PAGE','108801',jdecode('Club+Kit'),jdecode(''),'/108801.html','true',[],'',''],
	['PAGE','9122',jdecode('History'),jdecode(''),'/9122/index.html','true',[ 
		['PAGE','10101',jdecode('First+Scorecard'),jdecode(''),'/9122/10101.html','true',[],'',''],
		['PAGE','9164',jdecode('Honours+Board'),jdecode(''),'/9122/9164.html','true',[],'','']
	],'',''],
	['PAGE','9143',jdecode('Club+Officials'),jdecode(''),'/9143.html','true',[],'',''],
	['PAGE','192701',jdecode('Archived+Pages'),jdecode(''),'/192701/index.html','true',[ 
		['PAGE','133201',jdecode('The+%26%23x27%3BKibworth+Bard%26%23x27%3B'),jdecode(''),'/192701/133201.html','true',[],'',''],
		['PAGE','149401',jdecode('Barbados+2007'),jdecode(''),'/192701/149401.html','true',[],'',''],
		['PAGE','149422',jdecode('The+Account'),jdecode(''),'/192701/149422.html','true',[],'',''],
		['PAGE','149443',jdecode('The+Pics'),jdecode(''),'/192701/149443.html','true',[],'',''],
		['PAGE','66201',jdecode('Nico'),jdecode(''),'/192701/66201.html','true',[],'',''],
		['PAGE','64401',jdecode('Pre-Season+Karaoke'),jdecode(''),'/192701/64401.html','true',[],'',''],
		['PAGE','62701',jdecode('Our+Cousins+Over+The+Pond'),jdecode(''),'/192701/62701.html','true',[],'',''],
		['PAGE','60601',jdecode('Get+Stuck+In+For+Crying+Out+Loud'),jdecode(''),'/192701/60601.html','true',[],'',''],
		['PAGE','58901',jdecode('Losing+Your+Bottle'),jdecode(''),'/192701/58901.html','true',[],'',''],
		['PAGE','56901',jdecode('The+Comeback+Kids'),jdecode(''),'/192701/56901.html','true',[],'',''],
		['PAGE','53501',jdecode('A+Bit+On+The+Side'),jdecode(''),'/192701/53501.html','true',[],'',''],
		['PAGE','52101',jdecode('Transfer+Fun'),jdecode(''),'/192701/52101.html','true',[],'',''],
		['PAGE','50201',jdecode('Anyone+for+Nets%3F'),jdecode(''),'/192701/50201.html','true',[],'',''],
		['PAGE','48301',jdecode('I+was+having+a+drink+then'),jdecode(''),'/192701/48301.html','true',[],'',''],
		['PAGE','47101',jdecode('4th+Team'),jdecode(''),'/192701/47101.html','true',[],'',''],
		['PAGE','41301',jdecode('Tall+Tales'),jdecode(''),'/192701/41301.html','true',[],'',''],
		['PAGE','40101',jdecode('Winter+Draws+on'),jdecode(''),'/192701/40101.html','true',[],'',''],
		['PAGE','38401',jdecode('Sledging'),jdecode(''),'/192701/38401.html','true',[],'',''],
		['PAGE','36501',jdecode('Mix+and+Match'),jdecode(''),'/192701/36501.html','true',[],'',''],
		['PAGE','33901',jdecode('It%26%23x27%3Bs+a+Bullseye'),jdecode(''),'/192701/33901.html','true',[],'',''],
		['PAGE','30101',jdecode('New+Year+Punch'),jdecode(''),'/192701/30101.html','true',[],'',''],
		['PAGE','31801',jdecode('Wizards+of+Oz'),jdecode(''),'/192701/31801.html','true',[],'',''],
		['PAGE','63701',jdecode('Shake+Off+The+Cobwebs'),jdecode(''),'/192701/63701.html','true',[],'',''],
		['PAGE','76701',jdecode('Ode+To+Captaincy'),jdecode(''),'/192701/76701.html','true',[],'',''],
		['PAGE','78601',jdecode('Don%26%23x27%3Bt+Look+Back+In+Anger'),jdecode(''),'/192701/78601.html','true',[],'',''],
		['PAGE','89201',jdecode('What+Does+He+Mean%3F'),jdecode(''),'/192701/89201.html','true',[],'',''],
		['PAGE','123701',jdecode('Tour+Survival'),jdecode(''),'/192701/123701.html','true',[],'',''],
		['PAGE','139501',jdecode('Bard+at+Lords'),jdecode(''),'/192701/139501.html','true',[],'',''],
		['PAGE','11101',jdecode('2008+AGM'),jdecode(''),'/192701/11101.html','true',[],'',''],
		['PAGE','100101',jdecode('Selection+Fun+and+Games'),jdecode(''),'/192701/100101.html','true',[],'',''],
		['PAGE','160201',jdecode('Kiwi+Bleat'),jdecode(''),'/192701/160201.html','true',[],'',''],
		['PAGE','115401',jdecode('Bard%26%23x27%3Bs+Blather'),jdecode(''),'/192701/115401.html','true',[],'',''],
		['PAGE','152401',jdecode('New+Years+Day'),jdecode(''),'/192701/152401.html','true',[],'',''],
		['PAGE','276201',jdecode('Sunday+XI'),jdecode(''),'/192701/276201.html','true',[],'',''],
		['PAGE','232501',jdecode('51+all+out%3F'),jdecode(''),'/192701/232501.html','true',[],'','']
	],'',''],
	['PAGE','284301',jdecode('2010+match+reports'),jdecode(''),'/284301.html','true',[],'',''],
	['PAGE','244827',jdecode('Match+Reports+Archive'),jdecode(''),'/244827.html','true',[],'',''],
	['PAGE','210601',jdecode('Policies+%26+Documents'),jdecode(''),'/210601.html','true',[],'',''],
	['PAGE','230401',jdecode('Club+News%2FBanter%2FChatter'),jdecode(''),'/230401.html','true',[],'',''],
	['PAGE','224101',jdecode('Pavilion+Hire+Brochure'),jdecode(''),'/224101.html','true',[],'',''],
	['PAGE','239401',jdecode('Join+KCC'),jdecode(''),'/239401.html','true',[],'',''],
	['PAGE','273401',jdecode('Fundraising'),jdecode(''),'/273401.html','true',[],'','']];
var siteelementCount=62;
theSitetree.topTemplateName='elliptic';
theSitetree.paletteFamily='FFFFFF';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10358';
theSitetree.graphicsetId='10504';
theSitetree.contentColor='666666';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'elliptic',
				paletteFamily: 	'FFFFFF',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10358',
				graphicsetId: 	'10504',
				contentColor: 	'666666',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				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['1002']=webappMappings['1002-250201anbt10inxxdz']={
webappId:    '1002',
documentId:  '250201',
internalId:  '250201anbt10inxxdz',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '250201',
internalId:  '',
customField: '20090910-142539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9185',
internalId:  '',
customField: '20100406-104350'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-292896']={
webappId:    '1501',
documentId:  '401',
internalId:  '292896',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20100816-123121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232501',
internalId:  '',
customField: '20090210-195033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '224101',
internalId:  '',
customField: '20100406-110432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9101',
internalId:  '',
customField: '20100402-094325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9122',
internalId:  '',
customField: '20100814-193138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10101',
internalId:  '',
customField: '20061224-160446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9143',
internalId:  '',
customField: '20080928-110419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9164',
internalId:  '',
customField: '20100211-182813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '230401',
internalId:  '',
customField: '20100816-125049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '244801',
internalId:  '',
customField: '20090815-085317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '192001',
internalId:  '',
customField: '20090308-212950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '192701',
internalId:  '',
customField: '20080807-170917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '284301',
internalId:  '',
customField: '20100902-133220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72201',
internalId:  '',
customField: '20080807-151114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72222',
internalId:  '',
customField: '20100607-224712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '182601',
internalId:  '',
customField: '20080928-105920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '220701',
internalId:  '',
customField: '20100825-184911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '210601',
internalId:  '',
customField: '20080824-141631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11501',
internalId:  '',
customField: '20090815-091833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '192327',
internalId:  '',
customField: '20100716-195718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273401',
internalId:  '',
customField: '20100406-110117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '276201',
internalId:  '',
customField: '20100422-122218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66201',
internalId:  '',
customField: '20070828-130643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64401',
internalId:  '',
customField: '20070329-082856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62701',
internalId:  '',
customField: '20070319-083616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60601',
internalId:  '',
customField: '20070319-083632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58901',
internalId:  '',
customField: '20070221-140558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56901',
internalId:  '',
customField: '20070214-104701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53501',
internalId:  '',
customField: '20070206-084457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52101',
internalId:  '',
customField: '20070202-102344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50201',
internalId:  '',
customField: '20070130-132406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48301',
internalId:  '',
customField: '20070126-134758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47101',
internalId:  '',
customField: '20070123-112029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41301',
internalId:  '',
customField: '20070119-162818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40101',
internalId:  '',
customField: '20070115-134950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38401',
internalId:  '',
customField: '20070112-181405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36501',
internalId:  '',
customField: '20070110-134744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33901',
internalId:  '',
customField: '20070107-190155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30101',
internalId:  '',
customField: '20070105-183253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31801',
internalId:  '',
customField: '20070105-134840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63701',
internalId:  '',
customField: '20070320-155731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76701',
internalId:  '',
customField: '20070510-130123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78601',
internalId:  '',
customField: '20070514-133621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89201',
internalId:  '',
customField: '20070529-130632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11101',
internalId:  '',
customField: '20080126-183203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16501',
internalId:  '',
customField: '20090102-133211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '239401',
internalId:  '',
customField: '20090507-180051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100101',
internalId:  '',
customField: '20070620-130410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '244827',
internalId:  '',
customField: '20091213-095614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108801',
internalId:  '',
customField: '20100402-095603'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115401',
internalId:  '',
customField: '20070719-130320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123701',
internalId:  '',
customField: '20070801-152230'
};
webappMappings['7060']=webappMappings['7060-158c0bcb651d0bdc27727b6275b4b4b1']={
webappId:    '7060',
documentId:  '182601',
internalId:  '158c0bcb651d0bdc27727b6275b4b4b1',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133201',
internalId:  '',
customField: '20070916-185445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139501',
internalId:  '',
customField: '20070912-195046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147901',
internalId:  '',
customField: '20100716-195703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149401',
internalId:  '',
customField: '20100727-213844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149422',
internalId:  '',
customField: '20071203-172011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149443',
internalId:  '',
customField: '20071203-172312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152401',
internalId:  '',
customField: '20080102-130114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160201',
internalId:  '',
customField: '20080311-125436'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10INXXDZ';
var companyName   = 'Kibworth+Cricket+Club';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
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();
};
