/* [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','502',jdecode('Home'),jdecode(''),'/502.html','true',[],'',''],
	['PAGE','5404',jdecode('Wedding+Suppliers'),jdecode(''),'/5404/index.html','true',[ 
		['PAGE','11902',jdecode('Bedfordshire+weddings'),jdecode(''),'/5404/11902.html','true',[],'',''],
		['PAGE','8190',jdecode('Berkshire+weddings'),jdecode(''),'/5404/8190.html','true',[],'',''],
		['PAGE','11911',jdecode('Bristol+weddings'),jdecode(''),'/5404/11911.html','true',[],'',''],
		['PAGE','10825',jdecode('Buckinghamshire+weddings'),jdecode(''),'/5404/10825.html','true',[],'',''],
		['PAGE','11920',jdecode('Cambridge+weddings'),jdecode(''),'/5404/11920.html','true',[],'',''],
		['PAGE','11929',jdecode('Cornwall+weddings'),jdecode(''),'/5404/11929.html','true',[],'',''],
		['PAGE','12013',jdecode('Cumbria+weddings'),jdecode(''),'/5404/12013.html','true',[],'',''],
		['PAGE','11938',jdecode('Cheshire+weddings'),jdecode(''),'/5404/11938.html','true',[],'',''],
		['PAGE','12267',jdecode('Derbyshire+weddings'),jdecode(''),'/5404/12267.html','true',[],'',''],
		['PAGE','12276',jdecode('Devon+weddings'),jdecode(''),'/5404/12276.html','true',[],'',''],
		['PAGE','12285',jdecode('Dorset+weddings'),jdecode(''),'/5404/12285.html','true',[],'',''],
		['PAGE','12294',jdecode('Durham+weddings'),jdecode(''),'/5404/12294.html','true',[],'',''],
		['PAGE','12483',jdecode('E.Yorkshire+weddings'),jdecode(''),'/5404/12483.html','true',[],'',''],
		['PAGE','12492',jdecode('East+Sussex+weddings'),jdecode(''),'/5404/12492.html','true',[],'',''],
		['PAGE','11817',jdecode('Essex+weddings'),jdecode(''),'/5404/11817.html','true',[],'',''],
		['PAGE','12501',jdecode('Gloucestershire+weddings'),jdecode(''),'/5404/12501.html','true',[],'',''],
		['PAGE','12510',jdecode('Hampshire+weddings'),jdecode(''),'/5404/12510.html','true',[],'',''],
		['PAGE','11826',jdecode('Herefordshire+weddings'),jdecode(''),'/5404/11826.html','true',[],'',''],
		['PAGE','35201',jdecode('Hertfordshire+weddings'),jdecode(''),'/5404/35201.html','true',[],'',''],
		['PAGE','12519',jdecode('Isle+of+Wight+weddings'),jdecode(''),'/5404/12519.html','true',[],'',''],
		['PAGE','10538',jdecode('Kent+weddings'),jdecode(''),'/5404/10538.html','true',[],'',''],
		['PAGE','12528',jdecode('Lancashire+weddings'),jdecode(''),'/5404/12528.html','true',[],'',''],
		['PAGE','12537',jdecode('Leicestershire+weddings'),jdecode(''),'/5404/12537.html','true',[],'',''],
		['PAGE','12546',jdecode('Lincolnshire+weddings'),jdecode(''),'/5404/12546.html','true',[],'',''],
		['PAGE','31201',jdecode('London+weddings'),jdecode(''),'/5404/31201.html','true',[],'',''],
		['PAGE','31222',jdecode('Manchester+weddings'),jdecode(''),'/5404/31222.html','true',[],'',''],
		['PAGE','31243',jdecode('Merseyside+weddings'),jdecode(''),'/5404/31243.html','true',[],'',''],
		['PAGE','8181',jdecode('Middlesex++weddings'),jdecode(''),'/5404/8181.html','true',[],'',''],
		['PAGE','31264',jdecode('Norfolk+weddings'),jdecode(''),'/5404/31264.html','true',[],'',''],
		['PAGE','31285',jdecode('N.+Yorkshire+weddings'),jdecode(''),'/5404/31285.html','true',[],'',''],
		['PAGE','31306',jdecode('Northamptonshire+weddings'),jdecode(''),'/5404/31306.html','true',[],'',''],
		['PAGE','31327',jdecode('Northumberland+weddings'),jdecode(''),'/5404/31327.html','true',[],'',''],
		['PAGE','31348',jdecode('Nottinghamshire+weddings'),jdecode(''),'/5404/31348.html','true',[],'',''],
		['PAGE','31369',jdecode('Oxfordshire+weddings'),jdecode(''),'/5404/31369.html','true',[],'',''],
		['PAGE','31901',jdecode('Rutland+weddings'),jdecode(''),'/5404/31901.html','true',[],'',''],
		['PAGE','31922',jdecode('Shropshire+weddings'),jdecode(''),'/5404/31922.html','true',[],'',''],
		['PAGE','8126',jdecode('Surrey+weddings'),jdecode(''),'/5404/8126.html','true',[],'',''],
		['PAGE','31943',jdecode('Somerset+weddings'),jdecode(''),'/5404/31943.html','true',[],'',''],
		['PAGE','31964',jdecode('S.+Yorkshire+weddings'),jdecode(''),'/5404/31964.html','true',[],'',''],
		['PAGE','31985',jdecode('Staffordshire+weddings'),jdecode(''),'/5404/31985.html','true',[],'',''],
		['PAGE','32006',jdecode('Suffolk+weddings'),jdecode(''),'/5404/32006.html','true',[],'',''],
		['PAGE','32027',jdecode('Tyne+%26+Wear+weddings'),jdecode(''),'/5404/32027.html','true',[],'',''],
		['PAGE','32048',jdecode('Warwickshire+weddings'),jdecode(''),'/5404/32048.html','true',[],'',''],
		['PAGE','32069',jdecode('West+Midlands+weddings'),jdecode(''),'/5404/32069.html','true',[],'',''],
		['PAGE','10547',jdecode('West+Sussex+weddings'),jdecode(''),'/5404/10547.html','true',[],'',''],
		['PAGE','32090',jdecode('West+Yorkshire+weddings'),jdecode(''),'/5404/32090.html','true',[],'',''],
		['PAGE','32111',jdecode('Wiltshire+weddings'),jdecode(''),'/5404/32111.html','true',[],'',''],
		['PAGE','32132',jdecode('Worcestershire+weddings'),jdecode(''),'/5404/32132.html','true',[],'','']
	],'',''],
	['PAGE','2112',jdecode('Getting+Married'),jdecode(''),'/2112/index.html','true',[ 
		['PAGE','2121',jdecode('Planning+Your+Wedding'),jdecode(''),'/2112/2121.html','true',[],'',''],
		['PAGE','2130',jdecode('Countdown+to+Your+Wedding'),jdecode(''),'/2112/2130.html','true',[],'',''],
		['PAGE','4601',jdecode('Brides+FAO'),jdecode(''),'/2112/4601.html','true',[],'','']
	],'',''],
	['PAGE','36401',jdecode('Website+Advertisers+Info'),jdecode(''),'/36401.html','true',[],'',''],
	['PAGE','2240',jdecode('Wedding+Show+Dates'),jdecode(''),'/2240.html','true',[],'',''],
	['PAGE','2184',jdecode('Wedding+Show+Venues'),jdecode(''),'/2184.html','true',[],'',''],
	['PAGE','2157',jdecode('Booking+Your+Space+'),jdecode(''),'/2157.html','true',[],'',''],
	['PAGE','2148',jdecode('Exhibitor+information'),jdecode(''),'/2148/index.html','true',[ 
		['PAGE','2166',jdecode('Exhibitors+Beware%21%21%21'),jdecode(''),'/2148/2166.html','true',[],'',''],
		['PAGE','10093',jdecode('Website+Advertising'),jdecode(''),'/2148/10093.html','true',[],'',''],
		['PAGE','2175',jdecode('2010+Exhibitor+News'),jdecode(''),'/2148/2175.html','true',[],'',''],
		['PAGE','4610',jdecode('Exhibitors+FAO'),jdecode(''),'/2148/4610.html','true',[],'','']
	],'',''],
	['PAGE','1909',jdecode('About+us'),jdecode(''),'/1909.html','true',[],'',''],
	['PAGE','2103',jdecode('Contact+Details'),jdecode(''),'/2103.html','true',[],'',''],
	['PAGE','6886',jdecode('Model+Search+-+bridal+shows'),jdecode(''),'/6886.html','true',[],'','']];
var siteelementCount=66;
theSitetree.topTemplateName='Weekend';
theSitetree.paletteFamily='874F91';
theSitetree.keyvisualId='4131';
theSitetree.keyvisualName='kv_4131.jpg';
theSitetree.fontsetId='10526';
theSitetree.graphicsetId='11146';
theSitetree.contentColor='D9D9D9';
theSitetree.contentBGColor='9964A3';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Weekend',
				paletteFamily: 	'874F91',
				keyvisualId: 	'4131',
				keyvisualName: 	'kv_4131.jpg',
				fontsetId: 		'10526',
				graphicsetId: 	'11146',
				contentColor: 	'D9D9D9',
				contentBGColor: '9964A3',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '502',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-303']={
webappId:    '1501',
documentId:  '502',
internalId:  '303',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '502',
internalId:  '',
customField: '20100326-123747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5404',
internalId:  '',
customField: '20100808-035217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11902',
internalId:  '',
customField: '20100808-033550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8190',
internalId:  '',
customField: '20100808-033011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11911',
internalId:  '',
customField: '20100808-033808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10825',
internalId:  '',
customField: '20100620-111032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11920',
internalId:  '',
customField: '20100808-034116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11929',
internalId:  '',
customField: '20100808-034343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12013',
internalId:  '',
customField: '20100808-034600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11938',
internalId:  '',
customField: '20100808-034804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12267',
internalId:  '',
customField: '20100808-034954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12276',
internalId:  '',
customField: '20081121-052218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12285',
internalId:  '',
customField: '20090504-121550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12294',
internalId:  '',
customField: '20081121-052607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12483',
internalId:  '',
customField: '20081120-055107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12492',
internalId:  '',
customField: '20081121-053124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11817',
internalId:  '',
customField: '20081222-065849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20081121-053410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12510',
internalId:  '',
customField: '20090504-121550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11826',
internalId:  '',
customField: '20081121-054731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35201',
internalId:  '',
customField: '20090504-121550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12519',
internalId:  '',
customField: '20090504-121549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10538',
internalId:  '',
customField: '20090504-121549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12528',
internalId:  '',
customField: '20081121-055309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12537',
internalId:  '',
customField: '20081121-055429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12546',
internalId:  '',
customField: '20081121-055615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31201',
internalId:  '',
customField: '20090113-081631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31222',
internalId:  '',
customField: '20090504-121549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31243',
internalId:  '',
customField: '20081121-055940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8181',
internalId:  '',
customField: '20091230-150757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31264',
internalId:  '',
customField: '20081218-045552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31285',
internalId:  '',
customField: '20081121-060305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31306',
internalId:  '',
customField: '20090504-121550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31327',
internalId:  '',
customField: '20090504-121550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31348',
internalId:  '',
customField: '20081121-060617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31369',
internalId:  '',
customField: '20081121-060721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31901',
internalId:  '',
customField: '20081121-061815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31922',
internalId:  '',
customField: '20081121-061912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8126',
internalId:  '',
customField: '20100620-111328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31943',
internalId:  '',
customField: '20090504-121550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31964',
internalId:  '',
customField: '20081121-062210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31985',
internalId:  '',
customField: '20081121-062315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32006',
internalId:  '',
customField: '20081121-062420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32027',
internalId:  '',
customField: '20090504-121550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32048',
internalId:  '',
customField: '20081121-062559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32069',
internalId:  '',
customField: '20081121-062711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10547',
internalId:  '',
customField: '20081218-050846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32090',
internalId:  '',
customField: '20081121-062907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32111',
internalId:  '',
customField: '20081121-063005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32132',
internalId:  '',
customField: '20081121-063106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2112',
internalId:  '',
customField: '20090504-121549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2121',
internalId:  '',
customField: '20090504-121549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2130',
internalId:  '',
customField: '20090504-121549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4601',
internalId:  '',
customField: '20070808-170928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36401',
internalId:  '',
customField: '20090501-004111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2240',
internalId:  '',
customField: '20100325-161034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2184',
internalId:  '',
customField: '20100325-161330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2157',
internalId:  '',
customField: '20100103-103850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2148',
internalId:  '',
customField: '20100103-104301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2166',
internalId:  '',
customField: '20090504-121549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10093',
internalId:  '',
customField: '20080711-095912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2175',
internalId:  '',
customField: '20100325-161755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4610',
internalId:  '',
customField: '20060612-083208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1909',
internalId:  '',
customField: '20090504-122550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2103',
internalId:  '',
customField: '20090504-122627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6886',
internalId:  '',
customField: '20090504-121549'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHC010INXSOB';
var companyName   = 'Celebrated+Affairs+';
var htmlTitle	  = 'wedding+companies+%2Fwedding+services%2F+wedding+shows';
var metaKeywords  = 'wedding+shows+wedding+companies+weddings+wedding+suppliers+weddings+surrey+weddings+middlesex+Bedfordshire+Bristol+Buckinghamshire+cambridge+cornwall+cumbria+derbyshire+devon+dorset+durham+yorkshire+east+sussex+essex+gloucstershire+hampshire+herefordshire+isle+of+wight+kent+lancashire+leicestershire+lincolnshire';
var metaContents  = 'How+to+plan+your+wedding%2FHow+to+organise+a+wedding%2Fwedding+shows+%2Fwedding+fayres%2F+wedding+exhibitions%2F+weding+services%2Fwedding+companies%2Fwedding+suppliers%2Fwedding+companies%2C+wedding+services++wedding+suppliers+Surrey%2F+wedding+companies%2C+wedding+services++wedding+suppliers+Middlesex%2F+wedding+companies%2Cwedding+services++wedding+suppliers+Derbyshire+%2Fwedding+companies+%2Cwedding+services++wedding+suppliers+Berkshire+%2F+wedding+companies%2Cwedding+services++wedding+suppliers+Kent%2F+wedding+companies%2Cwedding+services++wedding+suppliers+Bristol%2F+wedding+companies%2Cwedding+services++wedding+suppliers+Buckinghamshire+%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Cambridge+%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Cornwall+%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Cumbria+%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Devon+%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Dorset+%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Durham+%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Yorkshire%2F+wedding+companies%2Cwedding+services++wedding+suppliers+East+Sussex%2F+wedding+companies%2Cwedding+services++wedding+suppliers+Essex+%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Gloucestershire+%2Fwedding+companies%2Cweding+services++wedding+suppliers+Hampshire%2F+wedding+companies%2Cwedding+services++wedding+suppliers+Isle+of+Wight+%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Lancashire%2F+wedding+companies%2Cwedding+services++wedding+suppliers+Leicestershire+%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Lincolnshire%2Fwedding+companies%2Cwedding+services++wedding+suppliers+London%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Manchester%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Merseyside%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Norfolk%2Fwedding+companies%2Cwedding+services++wedding+suppliers+North+Yorkshire%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Northamptonshire%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Nottinghamshire%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Oxfordshire%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Rutland%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Shropshire%2Fwedding+companies%2Cwedding+services++wedding+suppliers+South+Yorkshire%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Staffordshire%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Suffolk%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Tyne+and+Wear+%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Warwickshire%2Fwedding+companies%2Cwedding+services++wedding+suppliers+West+Midlands%2Fwedding+companies%2Cwedding+services++wedding+suppliers+West+Yorkshire%2F+wedding+companies%2Cwedding+services++wedding+suppliers+Wiltshire%2Fwedding+companies%2Cwedding+services++wedding+suppliers+Worcestershire';
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();
};
