/* [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','43423',jdecode('Home'),jdecode(''), jdecode('%2F43423.html'), 'true',[],'',''],
	['PAGE','1811',jdecode('About+us'),jdecode(''), jdecode('%2F1811.html'), 'true',[],'',''],
	['PAGE','40423',jdecode('2012+Events'),jdecode(''), jdecode('%2F40423%2Findex.html'), 'true',[ 
		['PAGE','48123',jdecode('2012+to+date'),jdecode(''), jdecode('%2F40423%2F48123.html'), 'true',[],'','']
	],'',''],
	['PAGE','48149',jdecode('Past+experiences...'),jdecode(''), jdecode('%2F48149%2Findex.html'), 'true',[ 
		['PAGE','47323',jdecode('2011'),jdecode(''), jdecode('%2F48149%2F47323.html'), 'true',[],'',''],
		['PAGE','32001',jdecode('2010'),jdecode(''), jdecode('%2F48149%2F32001.html'), 'true',[],'',''],
		['PAGE','32101',jdecode('March+2010+-+Ladies+with+Hammers'),jdecode(''), jdecode('%2F48149%2F32101.html'), 'true',[],'',''],
		['PAGE','32127',jdecode('April+2010+-+Our+1st+Birthday+Party+'),jdecode(''), jdecode('%2F48149%2F32127.html'), 'true',[],'',''],
		['PAGE','32027',jdecode('April+2010+-+Curry+Quiz+night'),jdecode(''), jdecode('%2F48149%2F32027.html'), 'true',[],'',''],
		['PAGE','36201',jdecode('May+2010+-+Walking+with+Wolves+Outing+'),jdecode(''), jdecode('%2F48149%2F36201.html'), 'true',[],'',''],
		['PAGE','36801',jdecode('June+2010+-+Molesey+Carnival'),jdecode(''), jdecode('%2F48149%2F36801.html'), 'true',[],'',''],
		['PAGE','37001',jdecode('June+2010+-+Bee-Keepers+Association+Outing'),jdecode(''), jdecode('%2F48149%2F37001.html'), 'true',[],'',''],
		['PAGE','37601',jdecode('June+2010+-+Garsons+Farm'),jdecode(''), jdecode('%2F48149%2F37601.html'), 'true',[],'',''],
		['PAGE','38223',jdecode('July+2010+-+Summer+Ball'),jdecode(''), jdecode('%2F48149%2F38223.html'), 'true',[],'',''],
		['PAGE','29001',jdecode('2009'),jdecode(''), jdecode('%2F48149%2F29001.html'), 'true',[],'',''],
		['PAGE','18901',jdecode('April+09+-+Launch+photos'),jdecode(''), jdecode('%2F48149%2F18901.html'), 'true',[],'',''],
		['PAGE','20601',jdecode('May+09+-+Garsons+Farm'),jdecode(''), jdecode('%2F48149%2F20601.html'), 'true',[],'',''],
		['PAGE','24201',jdecode('June+09+-+Summer+style'),jdecode(''), jdecode('%2F48149%2F24201.html'), 'true',[],'',''],
		['PAGE','26201',jdecode('July+09+-+Flower+power'),jdecode(''), jdecode('%2F48149%2F26201.html'), 'true',[],'',''],
		['PAGE','28001',jdecode('Aug+09+-+photography'),jdecode(''), jdecode('%2F48149%2F28001.html'), 'true',[],'',''],
		['PAGE','29301',jdecode('Girls+about+town'),jdecode(''), jdecode('%2F48149%2F29301.html'), 'true',[],'',''],
		['PAGE','23601',jdecode('Out+and+about+-+June'),jdecode(''), jdecode('%2F48149%2F23601.html'), 'true',[],'',''],
		['PAGE','26227',jdecode('Out+and+about+-+July'),jdecode(''), jdecode('%2F48149%2F26227.html'), 'true',[],'','']
	],'',''],
	['PAGE','30909',jdecode('Charity+of+the+Year'),jdecode(''), jdecode('%2F30909%2Findex.html'), 'true',[ 
		['PAGE','30935',jdecode('Shooting+Star+Childrens%26%23x27%3B+Hospice'),jdecode(''), jdecode('%2F30909%2F30935.html'), 'true',[],'','']
	],'',''],
	['PAGE','30701',jdecode('Clubs'),jdecode(''), jdecode('%2F30701%2Findex.html'), 'true',[ 
		['PAGE','34201',jdecode('Special+Outings'),jdecode(''), jdecode('%2F30701%2F34201.html'), 'true',[],'',''],
		['PAGE','30727',jdecode('Sing-it+for+fun'),jdecode(''), jdecode('%2F30701%2F30727.html'), 'true',[],'',''],
		['PAGE','30753',jdecode('Book+Club'),jdecode(''), jdecode('%2F30701%2F30753.html'), 'true',[],'',''],
		['PAGE','30779',jdecode('PC+Skills+for+Beginners'),jdecode(''), jdecode('%2F30701%2F30779.html'), 'true',[],'',''],
		['PAGE','30805',jdecode('Gardening+Club'),jdecode(''), jdecode('%2F30701%2F30805.html'), 'true',[],'',''],
		['PAGE','30831',jdecode('Ramblers+'),jdecode(''), jdecode('%2F30701%2F30831.html'), 'true',[],'',''],
		['PAGE','30857',jdecode('Cinema+Club+%28Daytime%29'),jdecode(''), jdecode('%2F30701%2F30857.html'), 'true',[],'',''],
		['PAGE','30883',jdecode('Cinema+Club+%28Evening%29'),jdecode(''), jdecode('%2F30701%2F30883.html'), 'true',[],'',''],
		['PAGE','34301',jdecode('Bridge+Club'),jdecode(''), jdecode('%2F30701%2F34301.html'), 'true',[],'','']
	],'',''],
	['PAGE','48227',jdecode('Local+news+and+events'),jdecode(''), jdecode('%2F48227.html'), 'true',[],'',''],
	['PAGE','26301',jdecode('Membership+perks...'),jdecode(''), jdecode('%2F26301.html'), 'true',[],'',''],
	['PAGE','15127',jdecode('Contact+us'),jdecode(''), jdecode('%2F15127.html'), 'true',[],'',''],
	['PAGE','1853',jdecode('My+Photos'),jdecode(''), jdecode('%2F1853.html'), 'false',[],'',''],
	['PAGE','1874',jdecode('My+Blog'),jdecode(''), jdecode('%2F1874.html'), 'false',[],'',''],
	['PAGE','1885',jdecode('Guestbook'),jdecode(''), jdecode('%2F1885.html'), 'false',[],'',''],
	['PAGE','1906',jdecode('Contact'),jdecode(''), jdecode('%2F1906.html'), 'false',[],'','']];
var siteelementCount=43;
theSitetree.topTemplateName='Vienna';
theSitetree.paletteFamily='D6D2C5';
theSitetree.keyvisualId='11869';
theSitetree.keyvisualName='kv_11869.jpg';
theSitetree.fontsetId='33181';
theSitetree.graphicsetId='14088';
theSitetree.contentColor='696146';
theSitetree.contentBGColor='ebe8df';
var localeDef={
  language: 'en',
  country: 'GB'
};
var prodDef={
  wl_name: 'easily_co_uk_ce',
  product: 'WSCSYSSSSLY0XKQS'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Vienna',
				paletteFamily: 	'D6D2C5',
				keyvisualId: 	'11869',
				keyvisualName: 	'kv_11869.jpg',
				fontsetId: 		'33181',
				graphicsetId: 	'14088',
				contentColor: 	'696146',
				contentBGColor: 'ebe8df',
				a_color: 		'EBE8DF',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7060']=webappMappings['7060-890c7c1533f72be24f9c1d64c99fa9b6']={
webappId:    '7060',
documentId:  '1853',
internalId:  '890c7c1533f72be24f9c1d64c99fa9b6',
customField: 'language:en;country:GB;'
};
webappMappings['7050']=webappMappings['7050-2068']={
webappId:    '7050',
documentId:  '1874',
internalId:  '2068',
customField: 'language:en;country:GB;'
};
webappMappings['7002']=webappMappings['7002-1854']={
webappId:    '7002',
documentId:  '1885',
internalId:  '1854',
customField: 'language:en;country:GB;'
};
webappMappings['7008']=webappMappings['7008-4249']={
webappId:    '7008',
documentId:  '1906',
internalId:  '4249',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1811',
internalId:  '',
customField: '20120214-174134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1853',
internalId:  '',
customField: '20090323-204343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1874',
internalId:  '',
customField: '20090323-204344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1885',
internalId:  '',
customField: '20090323-204344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1906',
internalId:  '',
customField: '20090323-204344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15127',
internalId:  '',
customField: '20120214-172748'
};
webappMappings['7060']=webappMappings['7060-4274ddb885dfc73eed9c079bf25ef401']={
webappId:    '7060',
documentId:  '18901',
internalId:  '4274ddb885dfc73eed9c079bf25ef401',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18901',
internalId:  '',
customField: '20090528-073920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20601',
internalId:  '',
customField: '20090528-081156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23601',
internalId:  '',
customField: '20090630-224938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24201',
internalId:  '',
customField: '20090630-231439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26201',
internalId:  '',
customField: '20090730-000123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26227',
internalId:  '',
customField: '20090730-004400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26301',
internalId:  '',
customField: '20090730-000447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28001',
internalId:  '',
customField: '20090902-104631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29001',
internalId:  '',
customField: '20100128-112028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29301',
internalId:  '',
customField: '20100128-114322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30909',
internalId:  '',
customField: '20100504-181433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30701',
internalId:  '',
customField: '20100504-181641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30727',
internalId:  '',
customField: '20100504-201516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30753',
internalId:  '',
customField: '20100504-201843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30779',
internalId:  '',
customField: '20100504-202159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30805',
internalId:  '',
customField: '20100504-195710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30831',
internalId:  '',
customField: '20100504-182910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30857',
internalId:  '',
customField: '20100504-203337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30883',
internalId:  '',
customField: '20100504-183055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30935',
internalId:  '',
customField: '20100524-194156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32001',
internalId:  '',
customField: '20100504-171919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32101',
internalId:  '',
customField: '20100504-181057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32127',
internalId:  '',
customField: '20100504-172721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32027',
internalId:  '',
customField: '20100504-181338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34301',
internalId:  '',
customField: '20100504-184156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34201',
internalId:  '',
customField: '20100504-201459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43423',
internalId:  '',
customField: '20120214-195343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36201',
internalId:  '',
customField: '20100511-205557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36801',
internalId:  '',
customField: '20100608-205205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37001',
internalId:  '',
customField: '20100615-154755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37601',
internalId:  '',
customField: '20100615-155240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38223',
internalId:  '',
customField: '20100722-120536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40423',
internalId:  '',
customField: '20120214-193230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47323',
internalId:  '',
customField: '20120214-174331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48123',
internalId:  '',
customField: '20120214-194512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48149',
internalId:  '',
customField: '20120214-194512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48227',
internalId:  '',
customField: '20120214-194513'
};
var webAppHostname = 'cgi.easily.co.uk:80';
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT20INEFP6';
var companyName   = 'Welcome+to+the+Molesey+WI+for+crafty+ladies';
var htmlTitle	  = 'Molesey+WI+Is+Online%21';
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();
};

