/* [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','10301',jdecode('Home'),jdecode(''), jdecode('%2F10301.html'), 'true',[],'',''],
	['PAGE','10701',jdecode('Areas+of+expertise'),jdecode(''), jdecode('%2F10701.html'), 'true',[],'',''],
	['PAGE','24301',jdecode('About+us'),jdecode(''), jdecode('%2F24301%2Findex.html'), 'true',[ 
		['PAGE','35101',jdecode('Our+accredited+specialist'),jdecode(''), jdecode('%2F24301%2F35101.html'), 'true',[],'',''],
		['PAGE','10430',jdecode('Our+network+of+experts'),jdecode(''), jdecode('%2F24301%2F10430.html'), 'true',[],'',''],
		['PAGE','24327',jdecode('Our+approach+'),jdecode(''), jdecode('%2F24301%2F24327.html'), 'true',[],'',''],
		['PAGE','26301',jdecode('Our+carbon+footprint'),jdecode(''), jdecode('%2F24301%2F26301.html'), 'true',[],'','']
	],'',''],
	['PAGE','10927',jdecode('News'),jdecode(''), jdecode('%2F10927%2Findex.html'), 'true',[ 
		['PAGE','80201',jdecode('January+2012+news'),jdecode(''), jdecode('%2F10927%2F80201.html'), 'true',[],'',''],
		['PAGE','80227',jdecode('December+2011+news'),jdecode(''), jdecode('%2F10927%2F80227.html'), 'true',[],'',''],
		['PAGE','80253',jdecode('November+2011+news'),jdecode(''), jdecode('%2F10927%2F80253.html'), 'true',[],'',''],
		['PAGE','78201',jdecode('October+2011+news'),jdecode(''), jdecode('%2F10927%2F78201.html'), 'true',[],'',''],
		['PAGE','80279',jdecode('September+2011+news'),jdecode(''), jdecode('%2F10927%2F80279.html'), 'true',[],'',''],
		['PAGE','80305',jdecode('August+2011+news'),jdecode(''), jdecode('%2F10927%2F80305.html'), 'true',[],'',''],
		['PAGE','75601',jdecode('July+2011+news'),jdecode(''), jdecode('%2F10927%2F75601.html'), 'true',[],'',''],
		['PAGE','75627',jdecode('June+2011+news'),jdecode(''), jdecode('%2F10927%2F75627.html'), 'true',[],'',''],
		['PAGE','74501',jdecode('May+2011+news'),jdecode(''), jdecode('%2F10927%2F74501.html'), 'true',[],'',''],
		['PAGE','72901',jdecode('April+2011+news'),jdecode(''), jdecode('%2F10927%2F72901.html'), 'true',[],'',''],
		['PAGE','72101',jdecode('March+2011+news'),jdecode(''), jdecode('%2F10927%2F72101.html'), 'true',[],'',''],
		['PAGE','71301',jdecode('February+2011+news'),jdecode(''), jdecode('%2F10927%2F71301.html'), 'true',[],'',''],
		['PAGE','70001',jdecode('January+2011+news'),jdecode(''), jdecode('%2F10927%2F70001.html'), 'true',[],'',''],
		['PAGE','68501',jdecode('December+2010+news'),jdecode(''), jdecode('%2F10927%2F68501.html'), 'true',[],'',''],
		['PAGE','67501',jdecode('November+2010+news'),jdecode(''), jdecode('%2F10927%2F67501.html'), 'true',[],'',''],
		['PAGE','66801',jdecode('October+2010+news'),jdecode(''), jdecode('%2F10927%2F66801.html'), 'true',[],'',''],
		['PAGE','66101',jdecode('September+2010+news'),jdecode(''), jdecode('%2F10927%2F66101.html'), 'true',[],'',''],
		['PAGE','63201',jdecode('August+2010+news'),jdecode(''), jdecode('%2F10927%2F63201.html'), 'true',[],'',''],
		['PAGE','62301',jdecode('July+2010+news'),jdecode(''), jdecode('%2F10927%2F62301.html'), 'true',[],'',''],
		['PAGE','60801',jdecode('June+2010+news'),jdecode(''), jdecode('%2F10927%2F60801.html'), 'true',[],'',''],
		['PAGE','59401',jdecode('May+2010+news'),jdecode(''), jdecode('%2F10927%2F59401.html'), 'true',[],'',''],
		['PAGE','56501',jdecode('April+2010+news'),jdecode(''), jdecode('%2F10927%2F56501.html'), 'true',[],'',''],
		['PAGE','36401',jdecode('March+2010+news'),jdecode(''), jdecode('%2F10927%2F36401.html'), 'true',[],'',''],
		['PAGE','23601',jdecode('February+2010+news'),jdecode(''), jdecode('%2F10927%2F23601.html'), 'true',[],'',''],
		['PAGE','23501',jdecode('January+2010+news'),jdecode(''), jdecode('%2F10927%2F23501.html'), 'true',[],'','']
	],'',''],
	['PAGE','41101',jdecode('Outsourcing'),jdecode(''), jdecode('%2F41101.html'), 'true',[],'',''],
	['PAGE','78501',jdecode('Comments+%26+Questions'),jdecode(''), jdecode('%2F78501.html'), 'true',[],'',''],
	['PAGE','10727',jdecode('Contact+Details'),jdecode(''), jdecode('%2F10727.html'), 'true',[],'',''],
	['PAGE','10953',jdecode('Information'),jdecode(''), jdecode('%2F10953.html'), 'true',[],'','']];
var siteelementCount=37;
theSitetree.topTemplateName='Global';
theSitetree.paletteFamily='0E6C84';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='85';
theSitetree.graphicsetId='106';
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: 			'Global',
				paletteFamily: 	'0E6C84',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'85',
				graphicsetId: 	'106',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'0E6C84',
				b_color: 		'FFE151',
				c_color: 		'000000',
				d_color: 		'E6EEF1',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23501',
internalId:  '',
customField: '20100908-132511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10301',
internalId:  '',
customField: '20120119-162642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10953',
internalId:  '',
customField: '20100908-132402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10727',
internalId:  '',
customField: '20100908-132333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10430',
internalId:  '',
customField: '20100908-133109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24301',
internalId:  '',
customField: '20100908-133010'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20100908-133331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10927',
internalId:  '',
customField: '20111021-142937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24327',
internalId:  '',
customField: '20100908-133038'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '10301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23601',
internalId:  '',
customField: '20100908-132652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26301',
internalId:  '',
customField: '20100908-133024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35101',
internalId:  '',
customField: '20111024-103909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36401',
internalId:  '',
customField: '20100908-132713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41101',
internalId:  '',
customField: '20100908-132311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60801',
internalId:  '',
customField: '20100908-132836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56501',
internalId:  '',
customField: '20100908-132741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59401',
internalId:  '',
customField: '20100908-132809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62301',
internalId:  '',
customField: '20100908-132901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63201',
internalId:  '',
customField: '20100908-132936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66101',
internalId:  '',
customField: '20100928-110523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66801',
internalId:  '',
customField: '20101108-114828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67501',
internalId:  '',
customField: '20101108-115423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68501',
internalId:  '',
customField: '20101217-123414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70001',
internalId:  '',
customField: '20110124-115655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71301',
internalId:  '',
customField: '20110307-151232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72101',
internalId:  '',
customField: '20110308-155524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72901',
internalId:  '',
customField: '20110624-111922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74501',
internalId:  '',
customField: '20110624-112209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75627',
internalId:  '',
customField: '20110729-150916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75601',
internalId:  '',
customField: '20110729-151120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78201',
internalId:  '',
customField: '20111021-143243'
};
webappMappings['7008']=webappMappings['7008-9375']={
webappId:    '7008',
documentId:  '78501',
internalId:  '9375',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78501',
internalId:  '',
customField: '20111021-143959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80201',
internalId:  '',
customField: '20120120-113026'
};
var webAppHostname = 'cgi.easily.co.uk:80';
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10IN3QL9';
var companyName   = 'Environmental+Law+Chambers';
var htmlTitle	  = 'Environmental+Law+Chambers';
var metaKeywords  = 'Barry+Love%2C+Environmental+Law+Chambers%2C+access+to+environmental+information%2C++air+pollution+law%2C++air+quality%2C++air+quality+act%2C++air+quality+assessment%2C++air+quality+guidelines%2C++air+quality+issues%2C++air+quality+laws%2C++air+quality+legislation%2C++air+quality+policy%2C++air+quality+pollution%2C++air+quality+regulation%2C++air+quality+regulations%2C++air+water+pollution%2C++animal+by+products+disposal%2C++animal+by+products+legislation%2C++biofuels%2C++biofuels+policy%2C++biofuels+problems%2C++biofuels+sustainability%2C++climate+change+law%2C++climate+change+laws%2C++comah%2C++comah+guidance%2C++comah+legislation%2C++comah+regs%2C++comah+regulations%2C++construction+environmental+policy%2C++contaminated+land%2C++contaminated+land+act%2C++contaminated+land+assessment%2C++contaminated+land+guidance%2C++contaminated+land+law%2C++contaminated+land+legislation%2C++contaminated+land+regulations%2C++crc%2C++crc+defra%2C++dangerous+substances+act%2C++defra+air+quality%2C++department+of+environment%2C++duty+of+care+regulations%2C++effects+pollution%2C++eia%2C++eia+assessment%2C++eia+directive%2C++eia+environment%2C++eia+environmental%2C++eia+guidelines%2C++eia+legislation%2C++eia+policy%2C++eia+projects%2C++eia+regulation%2C++eia+regulations%2C++elvs%2C++environment+agencies%2C++environment+agency%2C++environment+agency+gov%2C++environment+agency+logo%2C++environment+agency+waste%2C++environment+agency+website%2C++environment+agency+weee%2C++environment+job%2C++environment+law%2C++environment+laws%2C++environment+lawyer%2C++environment+lawyers%2C++environment+policy%2C++environment+pollution%2C++environment+regulation%2C++environment+regulations%2C++environmental+act%2C++environmental+agency%2C++environmental+agency+gov%2C++environmental+assessment%2C++environmental+attorney%2C++environmental+attorneys%2C++environmental+compliance%2C++environmental+due+diligence%2C++environmental+health+agency%2C++environmental+health+legislation%2C++environmental+impact%2C++environmental+impact+assessment%2C++environmental+impact+assessments%2C++environmental+law%2C++environmental+law+and+policy%2C++environmental+law+chambers%2C+environmental+law+enforcement%2C++environmental+law+firm%2C++environmental+law+issues%2C++environmental+law+regulation%2C++environmental+laws%2C++environmental+law+Scotland+environmental+lawyer%2C++environmental+lawyers%2C++environmental+legislation%2C++environmental+licence%2C++environmental+licensing%2C++environmental+management%2C++environmental+monitoring%2C++environmental+permitting+regulations%2C++environmental+planning%2C++environmental+policies%2C++environmental+policy%2C++environmental+policy+law%2C++environmental+pollution%2C++environmental+problems%2C++environmental+projects%2C++environmental+protection+act%2C++environmental+protection+law%2C++environmental+protection+laws%2C++environmental+protection+legislation%2C++environmental+protection+waste%2C++environmental+regulation%2C++environmental+regulations%2C++environmental+waste%2C++environmental+website%2C+epa+1990%2C++epa+air+quality%2C++epa+contaminated+land%2C++eu+air+quality%2C++eu+biofuels%2C++eu+directive%2C+eu+eia%2C++eu+environmental+directive%2C+eu+environmental+directives%2C+eu+ippc%2C++eu+licence%2C++eu+licensing%2C++eu+targets%2C++eu-ets%2C++european+air+quality%2C++european+environmental+legislation%2C++european+weee%2C++hazardous+waste+regulations%2C++industrial+waste%2C++ippc+pollution%2C++land+contamination%2C++law+environmental%2C++light+pollution%2C++littering+laws%2C++marine+regulation%2C+marine+protection%2C++marine+spatial+planning%2C+noise+pollution%2C++noise+regulation%2C++office+environment%2C++pollution+law%2C++pollution+laws%2C++pollution+legislation%2C++pollution+prevention%2C++pollution+problems%2C++ppc%2C++professional+appointments%2C++recycling+legislation%2C++renewable+biofuels%2C++renewable+energy+law%2C++renewable+energy+laws%2C++SEPA%2C+statutory+nuisance%2C++strategic+environmental+assessment%2C++sustainability+environmental%2C++sustainable+biofuels%2C++the+environment+agency%2C++the+environmental+agency%2C++waste+eu%2C++waste+law%2C++waste+laws%2C++waste+laws+Scotland+waste+legislation%2C++waste+licence%2C++waste+licensing%2C++waste+management+law%2C++waste+management+laws%2C++waste+management+legislation%2C++waste+management+licensing%2C++waste+management+regulations%2C++waste+packaging%2C++waste+reduction%2C++waste+regulations%2C++water+pollution%2C++water+pollution+act%2C++water+pollution+effects%2C++water+pollution+law%2C++water+pollution+laws%2C++water+pollution+legislation%2C++water+pollution+policies%2C++water+pollution+policy%2C++water+pollution+prevention%2C++water+pollution+problems%2C++water+pollution+regulations%2C++water+pollution+sources%2C++water+pollution%2C++weee%2C++weee+directive%2C++weee+disposal%2C++weee+environmental%2C++weee+eu%2C++weee+guidance%2C++weee+hazardous+waste%2C++weee+legislation%2C++weee+licence%2C++weee+policy%2C++weee+recycling%2C++weee+regs%2C++weee+regulation%2C++weee+regulations%2C++weee+transport%2C++weee+waste%2C++weee+waste+disposal%2C++wid%2C++';
var metaContents  = 'Solicitors+firm+specialising+in+the+wide+spectrum+of+Environmental+Law+%28including+Waste%2C+Water%2C+EIA%2C+Renewable+Energy%2C+Contaminated+Land%2C+Sewerage%2C+PPC%2C+COMAH%2C+and+Climate+Change+laws%29.+Lower+overheads+of+niche+firm+mean+lower+charge+out+rates+for+clients';
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();
};

