/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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 theSitetree=[ 
	['PAGE','7901',jdecode('Home'),jdecode(''),'/7901.html','true',[],''],
	['PAGE','7952',jdecode('Background'),jdecode(''),'/7952.html','true',[],''],
	['PAGE','7973',jdecode('Experience'),jdecode(''),'/7973.html','true',[],''],
	['PAGE','7994',jdecode('Key+Work+Areas'),jdecode(''),'/7994.html','true',[],''],
	['PAGE','8015',jdecode('Added+Value+Areas'),jdecode(''),'/8015.html','true',[],''],
	['PAGE','8036',jdecode('Contact'),jdecode(''),'/8036.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Collage';
theSitetree.paletteFamily='6683B6';
theSitetree.keyvisualId='2440';
theSitetree.keyvisualName='architektur.jpg';
theSitetree.fontsetId='405';
theSitetree.graphicsetId='461';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Collage',
				paletteFamily: 	'6683B6',
				keyvisualId: 	'2440',
				keyvisualName: 	'architektur.jpg',
				fontsetId: 		'405',
				graphicsetId: 	'461',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'6683B6',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '7901',
internalId:  '1006',
customField: '1006'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '8036',
internalId:  '529003',
customField: 'en:GB:'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10INX22Z';
var companyName   = 'UTILITY+LAW+SOLUTIONS';
var htmlTitle	  = 'Utility+Law+Solutions+-+New+Thinking+-+Delivering+the+Right+Answer';
var metaKeywords  = 'Utility++Law++Legal++Legislation++Litigation++Water+Industry++Gas+++Electric++Highway++Council++Developers++Builder++Ofwat++Environment+Agency++Defra++SUDS++Statutory++Sewage++Sewerage++Water+Supply++Pipes++Sewers++Water+Main++Drains++Services++Lateral+Drain++Disposal+Main++Discharge+Pipe++Service+Pipe++Adoption++Self+Lay++Water+Industry+Act++Traffic+Management+Act++New+Roads+and+Street+Works+Act++Asset+Management++Water+Resources+Act++Environment++Environmental+Information+Regulations++Sustainable+Drainage+Systems++Home+Information+Packs++HIPS++CON29DW++Drainage+Searches++Environmental+Liability+Directive++101A++104++51A++98++IT++GIS++Land+Terrier++Mediation++Dispute+Resolution++Infrastructure+Charges++Water+Regulations++Statutory+Notices++158++159++Right+of+Connection++Requisitions++Insurance++Operating+Agreements';
var metaContents  = 'Utility+Law+Solutions+brings+new+thinking+and+delivers+the+right+answer+to+help+you+manage+and+resolve+the+activities+and+problems+that+face+a+wide+range+of+organisations+and+businesses+on+a+day+to+day+basis.';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            
