/* [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','301',jdecode('Home'),jdecode(''), jdecode('%2F301.html'), 'true',[],'',''],
	['PAGE','108801',jdecode('Vote'),jdecode(''), jdecode('%2F108801.html'), 'false',[],'',''],
	['PAGE','168401',jdecode('Golf+Day'),jdecode(''), jdecode('%2F168401.html'), 'false',[],'',''],
	['PAGE','6501',jdecode('News'),jdecode(''), jdecode('%2F6501.html'), 'true',[],'',''],
	['PAGE','120301',jdecode('Fixtures+and+Results'),jdecode(''), jdecode('%2F120301%2Findex.html'), 'true',[ 
		['PAGE','47901',jdecode('Helensburgh+1st+XI'),jdecode(''), jdecode('%2F120301%2F47901.html'), 'true',[],'',''],
		['PAGE','137701',jdecode('Prestick+away'),jdecode(''), jdecode('%2F120301%2F137701.html'), 'false',[],'',''],
		['PAGE','139801',jdecode('report'),jdecode(''), jdecode('%2F120301%2F139801.html'), 'false',[],'',''],
		['PAGE','142401',jdecode('Glasgow+Accies+away'),jdecode(''), jdecode('%2F120301%2F142401.html'), 'false',[],'',''],
		['PAGE','145201',jdecode('Hillhead+at+Home'),jdecode(''), jdecode('%2F120301%2F145201.html'), 'false',[],'',''],
		['PAGE','145227',jdecode('report'),jdecode(''), jdecode('%2F120301%2F145227.html'), 'false',[],'',''],
		['PAGE','150701',jdecode('Galloway+at+Home'),jdecode(''), jdecode('%2F120301%2F150701.html'), 'false',[],'',''],
		['PAGE','150727',jdecode('report'),jdecode(''), jdecode('%2F120301%2F150727.html'), 'false',[],'',''],
		['PAGE','164601',jdecode('St+Michaels+Scorecard'),jdecode(''), jdecode('%2F120301%2F164601.html'), 'false',[],'',''],
		['PAGE','153701',jdecode('St+Michaels+away'),jdecode(''), jdecode('%2F120301%2F153701.html'), 'false',[],'',''],
		['PAGE','160601',jdecode('GUSCC++away'),jdecode(''), jdecode('%2F120301%2F160601.html'), 'false',[],'',''],
		['PAGE','156401',jdecode('GUSCC+Report'),jdecode(''), jdecode('%2F120301%2F156401.html'), 'false',[],'',''],
		['PAGE','164627',jdecode('Vale+of+Leven+Scorecard'),jdecode(''), jdecode('%2F120301%2F164627.html'), 'true',[],'',''],
		['PAGE','161701',jdecode('Vale+of+Leven+report'),jdecode(''), jdecode('%2F120301%2F161701.html'), 'false',[],'',''],
		['PAGE','163101',jdecode('Kilmarnock+report'),jdecode(''), jdecode('%2F120301%2F163101.html'), 'false',[],'',''],
		['PAGE','163801',jdecode('Irvine+Report'),jdecode(''), jdecode('%2F120301%2F163801.html'), 'false',[],'',''],
		['PAGE','166601',jdecode('Glasgow+Accies+Home'),jdecode(''), jdecode('%2F120301%2F166601.html'), 'false',[],'',''],
		['PAGE','47922',jdecode('Ardencaple+XI'),jdecode(''), jdecode('%2F120301%2F47922.html'), 'true',[],'',''],
		['PAGE','137727',jdecode('Bees+at+Home'),jdecode(''), jdecode('%2F120301%2F137727.html'), 'false',[],'',''],
		['PAGE','139827',jdecode('report'),jdecode(''), jdecode('%2F120301%2F139827.html'), 'false',[],'',''],
		['PAGE','146601',jdecode('Hamilton+away'),jdecode(''), jdecode('%2F120301%2F146601.html'), 'false',[],'',''],
		['PAGE','146627',jdecode('report'),jdecode(''), jdecode('%2F120301%2F146627.html'), 'false',[],'',''],
		['PAGE','148401',jdecode('ALPs+Away'),jdecode(''), jdecode('%2F120301%2F148401.html'), 'false',[],'',''],
		['PAGE','148427',jdecode('report'),jdecode(''), jdecode('%2F120301%2F148427.html'), 'false',[],'',''],
		['PAGE','155701',jdecode('Bees+away'),jdecode(''), jdecode('%2F120301%2F155701.html'), 'true',[],'',''],
		['PAGE','155727',jdecode('report'),jdecode(''), jdecode('%2F120301%2F155727.html'), 'true',[],'',''],
		['PAGE','155753',jdecode('Marress+away'),jdecode(''), jdecode('%2F120301%2F155753.html'), 'true',[],'',''],
		['PAGE','167601',jdecode('Alps+Away'),jdecode(''), jdecode('%2F120301%2F167601.html'), 'false',[],'',''],
		['PAGE','167901',jdecode('Marress+at+Home'),jdecode(''), jdecode('%2F120301%2F167901.html'), 'false',[],'',''],
		['PAGE','155779',jdecode('report'),jdecode(''), jdecode('%2F120301%2F155779.html'), 'false',[],'',''],
		['PAGE','47943',jdecode('Sunday+League+XI'),jdecode(''), jdecode('%2F120301%2F47943.html'), 'true',[],'',''],
		['PAGE','142427',jdecode('Kilmarnock+at+home'),jdecode(''), jdecode('%2F120301%2F142427.html'), 'false',[],'',''],
		['PAGE','151801',jdecode('Bute+-+Cup'),jdecode(''), jdecode('%2F120301%2F151801.html'), 'false',[],'',''],
		['PAGE','151827',jdecode('report'),jdecode(''), jdecode('%2F120301%2F151827.html'), 'false',[],'',''],
		['PAGE','154601',jdecode('Motherwell+Away'),jdecode(''), jdecode('%2F120301%2F154601.html'), 'false',[],'',''],
		['PAGE','154401',jdecode('report'),jdecode(''), jdecode('%2F120301%2F154401.html'), 'false',[],'',''],
		['PAGE','163401',jdecode('Greenock+Report'),jdecode(''), jdecode('%2F120301%2F163401.html'), 'false',[],'',''],
		['PAGE','165401',jdecode('Greenock+Scorecard'),jdecode(''), jdecode('%2F120301%2F165401.html'), 'false',[],'',''],
		['PAGE','146301',jdecode('Junior+Section'),jdecode(''), jdecode('%2F120301%2F146301.html'), 'true',[],'',''],
		['PAGE','146327',jdecode('West+of+Scotland+report'),jdecode(''), jdecode('%2F120301%2F146327.html'), 'false',[],'',''],
		['PAGE','159201',jdecode('Glasgow+Accies+away'),jdecode(''), jdecode('%2F120301%2F159201.html'), 'false',[],'',''],
		['PAGE','162001',jdecode('Drumpellier+home'),jdecode(''), jdecode('%2F120301%2F162001.html'), 'false',[],'',''],
		['PAGE','165701',jdecode('Uddingston+away'),jdecode(''), jdecode('%2F120301%2F165701.html'), 'false',[],'',''],
		['PAGE','169101',jdecode('Renfrew+Away'),jdecode(''), jdecode('%2F120301%2F169101.html'), 'false',[],'',''],
		['PAGE','169127',jdecode('Ferguslie+Away'),jdecode(''), jdecode('%2F120301%2F169127.html'), 'false',[],'',''],
		['PAGE','169153',jdecode('Glasgow+Accies+Home'),jdecode(''), jdecode('%2F120301%2F169153.html'), 'false',[],'',''],
		['PAGE','169179',jdecode('Drumpellier+Away'),jdecode(''), jdecode('%2F120301%2F169179.html'), 'false',[],'','']
	],'',''],
	['PAGE','135001',jdecode('Players'),jdecode(''), jdecode('%2F135001%2Findex.html'), 'true',[ 
		['PAGE','124801',jdecode('Player+Averages'),jdecode(''), jdecode('%2F135001%2F124801.html'), 'true',[],'',''],
		['PAGE','124827',jdecode('1st+XI+2010'),jdecode(''), jdecode('%2F135001%2F124827.html'), 'true',[],'',''],
		['PAGE','124853',jdecode('2nd+XI+2010'),jdecode(''), jdecode('%2F135001%2F124853.html'), 'true',[],'',''],
		['PAGE','150401',jdecode('1st+XI+2011'),jdecode(''), jdecode('%2F135001%2F150401.html'), 'true',[],'',''],
		['PAGE','150427',jdecode('2nd+XI+2011'),jdecode(''), jdecode('%2F135001%2F150427.html'), 'true',[],'',''],
		['PAGE','111601',jdecode('Player+Profiles'),jdecode(''), jdecode('%2F135001%2F111601.html'), 'true',[],'',''],
		['PAGE','111801',jdecode('A+N+Other'),jdecode(''), jdecode('%2F135001%2F111801.html'), 'false',[],'','']
	],'',''],
	['PAGE','7901',jdecode('Junior+Section'),jdecode(''), jdecode('%2F7901.html'), 'true',[],'',''],
	['PAGE','22801',jdecode('Social+Diary'),jdecode(''), jdecode('%2F22801%2Findex.html'), 'true',[ 
		['PAGE','122401',jdecode('SCU+Winners+2008'),jdecode(''), jdecode('%2F22801%2F122401.html'), 'true',[],'',''],
		['PAGE','123001',jdecode('Boxing+Day+Cricket+2010'),jdecode(''), jdecode('%2F22801%2F123001.html'), 'true',[],'',''],
		['PAGE','157701',jdecode('Charity+Auction+Items'),jdecode(''), jdecode('%2F22801%2F157701.html'), 'true',[],'','']
	],'',''],
	['PAGE','5027',jdecode('Location'),jdecode(''), jdecode('%2F5027%2Findex.html'), 'true',[ 
		['PAGE','134701',jdecode('Directions+to+Ardencaple'),jdecode(''), jdecode('%2F5027%2F134701.html'), 'true',[],'','']
	],'',''],
	['PAGE','4985',jdecode('Merchandise'),jdecode(''), jdecode('%2F4985%2Findex.html'), 'true',[ 
		['PAGE','116653',jdecode('Order+Form'),jdecode(''), jdecode('%2F4985%2F116653.html'), 'true',[],'','']
	],'',''],
	['PAGE','36701',jdecode('Photos'),jdecode(''), jdecode('%2F36701.html'), 'true',[],'',''],
	['PAGE','5006',jdecode('Sponsors'),jdecode(''), jdecode('%2F5006.html'), 'true',[],'',''],
	['PAGE','5069',jdecode('Contact'),jdecode(''), jdecode('%2F5069.html'), 'true',[],'',''],
	['PAGE','6770',jdecode('Guestbook'),jdecode(''), jdecode('%2F6770.html'), 'true',[],'',''],
	['PAGE','5048',jdecode('Links'),jdecode(''), jdecode('%2F5048.html'), 'true',[],'','']];
var siteelementCount=74;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='479949';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10895';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
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: 			'Alpha',
				paletteFamily: 	'479949',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10895',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'479949',
				e_color: 		'479949',
				f_color: 		'479949',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-6770anbt10inxh9x']={
webappId:    '1002',
documentId:  '6770',
internalId:  '6770anbt10inxh9x',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111601',
internalId:  '',
customField: '20110408-190554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169101',
internalId:  '',
customField: '20110812-095314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '301',
internalId:  '',
customField: '20111027-114415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22801',
internalId:  '',
customField: '20110711-132724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20111027-115709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122401',
internalId:  '',
customField: '20101222-092412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111801',
internalId:  '',
customField: '20100209-105734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120301',
internalId:  '',
customField: '20110612-122516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7901',
internalId:  '',
customField: '20110802-134323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4985',
internalId:  '',
customField: '20110612-122325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5006',
internalId:  '',
customField: '20110802-134921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5027',
internalId:  '',
customField: '20101102-112110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5048',
internalId:  '',
customField: '20110201-090827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5069',
internalId:  '',
customField: '20110608-202216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6770',
internalId:  '',
customField: '20070502-135005'
};
webappMappings['7060']=webappMappings['7060-c323aec8171920492f32520524259097']={
webappId:    '7060',
documentId:  '36701',
internalId:  'c323aec8171920492f32520524259097',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36701',
internalId:  '',
customField: '20101222-092446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47901',
internalId:  '',
customField: '20110711-132613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47922',
internalId:  '',
customField: '20110719-133336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47943',
internalId:  '',
customField: '20110802-132550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116653',
internalId:  '',
customField: '20101204-133635'
};
webappMappings['7005']=webappMappings['7005-179']={
webappId:    '7005',
documentId:  '108801',
internalId:  '179',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108801',
internalId:  '',
customField: '20091204-164405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123001',
internalId:  '',
customField: '20110131-132900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124801',
internalId:  '',
customField: '20110121-175100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124827',
internalId:  '',
customField: '20110121-182904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124853',
internalId:  '',
customField: '20110122-123801'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '134701',
internalId:  'routing',
customField: 'en_GB'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134701',
internalId:  '',
customField: '20110331-122824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135001',
internalId:  '',
customField: '20110408-190543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137701',
internalId:  '',
customField: '20110426-095617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163101',
internalId:  '',
customField: '20110622-230521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137727',
internalId:  '',
customField: '20110427-124616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139801',
internalId:  '',
customField: '20110426-091156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139827',
internalId:  '',
customField: '20110427-124520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142401',
internalId:  '',
customField: '20110509-160734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142427',
internalId:  '',
customField: '20110503-112637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145201',
internalId:  '',
customField: '20110510-130004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '145227',
internalId:  '',
customField: '20110509-134212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146327',
internalId:  '',
customField: '20110612-123512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146301',
internalId:  '',
customField: '20110812-094501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146601',
internalId:  '',
customField: '20110511-122602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146627',
internalId:  '',
customField: '20110511-123620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148401',
internalId:  '',
customField: '20110515-101842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '148427',
internalId:  '',
customField: '20110515-095139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150401',
internalId:  '',
customField: '20110515-103249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150427',
internalId:  '',
customField: '20110515-103249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150701',
internalId:  '',
customField: '20110516-084750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150727',
internalId:  '',
customField: '20110520-093908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151801',
internalId:  '',
customField: '20110520-094136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151827',
internalId:  '',
customField: '20110520-093636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153701',
internalId:  '',
customField: '20110525-144811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154401',
internalId:  '',
customField: '20110531-125415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154601',
internalId:  '',
customField: '20110531-131448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155779',
internalId:  '',
customField: '20110605-104820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155701',
internalId:  '',
customField: '20110605-104338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155727',
internalId:  '',
customField: '20110605-104338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155753',
internalId:  '',
customField: '20110605-104338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156401',
internalId:  '',
customField: '20110607-132026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157701',
internalId:  '',
customField: '20110613-085711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159201',
internalId:  '',
customField: '20110612-123731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160601',
internalId:  '',
customField: '20110616-124241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161701',
internalId:  '',
customField: '20110620-130712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162001',
internalId:  '',
customField: '20110620-131642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163401',
internalId:  '',
customField: '20110707-133204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163801',
internalId:  '',
customField: '20110622-231706'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164601',
internalId:  '',
customField: '20110622-234801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164627',
internalId:  '',
customField: '20110622-233641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165401',
internalId:  '',
customField: '20110707-131216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165701',
internalId:  '',
customField: '20110707-133614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166601',
internalId:  '',
customField: '20110711-132459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167601',
internalId:  '',
customField: '20110719-133038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167901',
internalId:  '',
customField: '20110719-133254'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '301',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168401',
internalId:  '',
customField: '20110802-133709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169127',
internalId:  '',
customField: '20110812-095407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169153',
internalId:  '',
customField: '20110812-093656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '169179',
internalId:  '',
customField: '20110812-093743'
};
webappMappings['1501']=webappMappings['1501-1717393']={
webappId:    '1501',
documentId:  '301',
internalId:  '1717393',
customField: '1501'
};
var webAppHostname = 'cgi.easily.co.uk:80';
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10INXH9X';
var companyName   = 'Helensburgh+Cricket+Club';
var htmlTitle	  = 'Helensburgh+Cricket+Club';
var metaKeywords  = 'Helensburgh+cricket+club+CC+ardencaple';
var metaContents  = 'Helensburgh+Cricket+Club+CC+Ardencaple';
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();
};

