/* [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','4556',jdecode('Flexible+Lining+Products'),jdecode(''),'/4556.html','true',[],''],
	['PAGE','120900',jdecode('Firestone+PondGard'),jdecode(''),'/120900.html','true',[],''],
	['PAGE','75502',jdecode('Greenseal+Pond+Liners'),jdecode(''),'/75502.html','true',[],''],
	['PAGE','250736',jdecode('Greenseal+Lake+Liners'),jdecode(''),'/250736.html','true',[],''],
	['PAGE','112985',jdecode('Greenseal+Tailored+Liners'),jdecode(''),'/112985.html','true',[],''],
	['PAGE','241059',jdecode('Greenseal+Green+Roof'),jdecode(''),'/241059.html','true',[],''],
	['PAGE','43810',jdecode('Butyl+Pond+Liners'),jdecode(''),'/43810.html','true',[],''],
	['PAGE','75529',jdecode('PVC+Pond+Liners'),jdecode(''),'/75529.html','true',[],''],
	['PAGE','66905',jdecode('Polyfelt+Liner+Protection'),jdecode(''),'/66905.html','true',[],''],
	['PAGE','203664',jdecode('Pond+Liner+Selection'),jdecode(''),'/203664.html','true',[],''],
	['PAGE','127962',jdecode('Drainage+%26+Filtration'),jdecode(''),'/127962.html','true',[],''],
	['PAGE','70502',jdecode('Weed+Control+Fabric+'),jdecode(''),'/70502.html','true',[],''],
	['PAGE','244949',jdecode('Root+Protection+%26+Barriers'),jdecode(''),'/244949.html','true',[],''],
	['PAGE','192356',jdecode('Driveway%2CPatio+%26+Pathways'),jdecode(''),'/192356.html','true',[],''],
	['PAGE','197052',jdecode('Slope+%26+Ground+Reinforcement.'),jdecode(''),'/197052.html','true',[],''],
	['PAGE','241624',jdecode('Fixing+Staples+%26+Pegs'),jdecode(''),'/241624.html','true',[],''],
	['PAGE','219707',jdecode('Aquatic+Planter+Pockets'),jdecode(''),'/219707.html','true',[],''],
	['PAGE','240024',jdecode('Roofing+Accessories'),jdecode(''),'/240024.html','true',[],''],
	['PAGE','243153',jdecode('Ground+Contamination'),jdecode(''),'/243153.html','true',[],''],
	['PAGE','74002',jdecode('Flexible+Lining+News'),jdecode(''),'/74002.html','true',[],''],
	['PAGE','197997',jdecode('Geosynthetics+Explained'),jdecode(''),'/197997.html','true',[],''],
	['PAGE','107984',jdecode('Pre-Pack+Packaging'),jdecode(''),'/107984.html','true',[],''],
	['PAGE','75202',jdecode('Projects+%26+Links'),jdecode(''),'/75202.html','true',[],''],
	['PAGE','74029',jdecode('Terms+and+Conditions'),jdecode(''),'/74029.html','true',[],''],
	['PAGE','43918',jdecode('Contact+Us'),jdecode(''),'/43918.html','true',[],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Logg';
					                                                                    
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 */					                                                            
