/* [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','4597',jdecode('Home'),jdecode(''),'/4597.html','true',[],''],
	['PAGE','33542',jdecode('Outlets+UK'),jdecode(''),'/33542/index.html','true',[ 
		['PAGE','95948',jdecode('Wholesale'),jdecode(''),'/33542/95948.html','true',[],''],
		['PAGE','176801',jdecode('Trade'),jdecode(''),'/33542/176801.html','true',[],''],
		['PAGE','176770',jdecode('Retail'),jdecode(''),'/33542/176770.html','true',[],''],
		['PAGE','176976',jdecode('On-Line'),jdecode(''),'/33542/176976.html','true',[],''],
		['PAGE','176838',jdecode('OEM'),jdecode(''),'/33542/176838.html','true',[],''],
		['PAGE','176945',jdecode('International'),jdecode(''),'/33542/176945.html','true',[],'']
	],''],
	['PAGE','177935',jdecode('International'),jdecode(''),'/177935/index.html','true',[ 
		['PAGE','177346',jdecode('Austria'),jdecode(''),'/177935/177346.html','true',[],''],
		['PAGE','177315',jdecode('Australia'),jdecode(''),'/177935/177315.html','true',[],''],
		['PAGE','177377',jdecode('Belguim'),jdecode(''),'/177935/177377.html','true',[],''],
		['PAGE','177439',jdecode('China'),jdecode(''),'/177935/177439.html','true',[],''],
		['PAGE','177408',jdecode('Canada'),jdecode(''),'/177935/177408.html','true',[],''],
		['PAGE','177470',jdecode('Denmark'),jdecode(''),'/177935/177470.html','true',[],''],
		['PAGE','177501',jdecode('Finland'),jdecode(''),'/177935/177501.html','true',[],''],
		['PAGE','177532',jdecode('France'),jdecode(''),'/177935/177532.html','true',[],''],
		['PAGE','177563',jdecode('Germany'),jdecode(''),'/177935/177563.html','true',[],''],
		['PAGE','177594',jdecode('India'),jdecode(''),'/177935/177594.html','true',[],''],
		['PAGE','177625',jdecode('Italy'),jdecode(''),'/177935/177625.html','true',[],''],
		['PAGE','177656',jdecode('Malaysia'),jdecode(''),'/177935/177656.html','true',[],''],
		['PAGE','177687',jdecode('Mexico'),jdecode(''),'/177935/177687.html','true',[],''],
		['PAGE','177718',jdecode('Netherlands'),jdecode(''),'/177935/177718.html','true',[],''],
		['PAGE','177749',jdecode('Norway'),jdecode(''),'/177935/177749.html','true',[],''],
		['PAGE','177780',jdecode('Singapore'),jdecode(''),'/177935/177780.html','true',[],''],
		['PAGE','177811',jdecode('Spain'),jdecode(''),'/177935/177811.html','true',[],''],
		['PAGE','177842',jdecode('Sweden'),jdecode(''),'/177935/177842.html','true',[],''],
		['PAGE','177873',jdecode('Switzerland'),jdecode(''),'/177935/177873.html','true',[],''],
		['PAGE','178882',jdecode('United+Kingdom'),jdecode(''),'/177935/178882.html','true',[],''],
		['PAGE','177904',jdecode('USA'),jdecode(''),'/177935/177904.html','true',[],'']
	],''],
	['PAGE','23342',jdecode('Brochure'),jdecode(''),'/23342.html','true',[],''],
	['PAGE','81056',jdecode('Tite-Range%AE'),jdecode(''),'/81056/index.html','true',[ 
		['PAGE','19736',jdecode('Tongue-Tite'),jdecode(''),'/81056/19736.html','true',[],''],
		['PAGE','20153',jdecode('Features'),jdecode(''),'/81056/20153.html','true',[],''],
		['PAGE','9332',jdecode('Screw+-Tite%AE'),jdecode(''),'/81056/9332.html','true',[],''],
		['PAGE','16473',jdecode('Screw+-Tite+%AEFeatures'),jdecode(''),'/81056/16473.html','true',[],''],
		['PAGE','9305',jdecode('Deck-Tite%AE'),jdecode(''),'/81056/9305.html','true',[],''],
		['PAGE','17899',jdecode('Features'),jdecode(''),'/81056/17899.html','true',[],''],
		['PAGE','9359',jdecode('Timber-Tite%AE'),jdecode(''),'/81056/9359.html','true',[],''],
		['PAGE','17930',jdecode('Features'),jdecode(''),'/81056/17930.html','true',[],''],
		['PAGE','21536',jdecode('Timber-Tite+Stainless'),jdecode(''),'/81056/21536.html','true',[],''],
		['PAGE','24242',jdecode('Timber-Tite+Bolts'),jdecode(''),'/81056/24242.html','true',[],''],
		['PAGE','15793',jdecode('Deck-Tite%AE+Rail+Bracket'),jdecode(''),'/81056/15793.html','true',[],''],
		['PAGE','9386',jdecode('MDF-Tite%AE'),jdecode(''),'/81056/9386.html','true',[],''],
		['PAGE','17961',jdecode('Features'),jdecode(''),'/81056/17961.html','true',[],''],
		['PAGE','9413',jdecode('Floor-Tite'),jdecode(''),'/81056/9413.html','true',[],''],
		['PAGE','17992',jdecode('Features'),jdecode(''),'/81056/17992.html','true',[],''],
		['PAGE','17775',jdecode('Deck-Tite%AE+Composite'),jdecode(''),'/81056/17775.html','true',[],''],
		['PAGE','17806',jdecode('Features'),jdecode(''),'/81056/17806.html','true',[],''],
		['PAGE','17837',jdecode('Deck-Tite%AE+Plus'),jdecode(''),'/81056/17837.html','true',[],''],
		['PAGE','17868',jdecode('Features'),jdecode(''),'/81056/17868.html','true',[],''],
		['PAGE','79842',jdecode('Lost-Tite'),jdecode(''),'/81056/79842.html','true',[],''],
		['PAGE','79884',jdecode('Adjust-Tite'),jdecode(''),'/81056/79884.html','true',[],''],
		['PAGE','80142',jdecode('Hinge-Tite'),jdecode(''),'/81056/80142.html','true',[],''],
		['PAGE','21567',jdecode('Stainless+Bolts'),jdecode(''),'/81056/21567.html','true',[],''],
		['PAGE','33442',jdecode('Net-Coat'),jdecode(''),'/81056/33442.html','true',[],'']
	],''],
	['PAGE','194415',jdecode('Videos'),jdecode(''),'/194415.html','true',[],''],
	['PAGE','17223',jdecode('Applications'),jdecode(''),'/17223/index.html','true',[ 
		['PAGE','19014',jdecode('Which+Screw+To+Use'),jdecode(''),'/17223/19014.html','true',[],''],
		['PAGE','17254',jdecode('Deck-Tite%AE'),jdecode(''),'/17223/17254.html','true',[],''],
		['PAGE','17285',jdecode('Deck-Tite%AE+Composite'),jdecode(''),'/17223/17285.html','true',[],''],
		['PAGE','17316',jdecode('Deck-Tite%AE+Plus'),jdecode(''),'/17223/17316.html','true',[],''],
		['PAGE','17347',jdecode('Screw-Tite%AE'),jdecode(''),'/17223/17347.html','true',[],''],
		['PAGE','17378',jdecode('MDF-Tite%AE'),jdecode(''),'/17223/17378.html','true',[],''],
		['PAGE','17409',jdecode('Timber-Tite%AE'),jdecode(''),'/17223/17409.html','true',[],''],
		['PAGE','17440',jdecode('Floor-Tite'),jdecode(''),'/17223/17440.html','true',[],''],
		['PAGE','18193',jdecode('Deck-Tite%AE+Rail+Bracket'),jdecode(''),'/17223/18193.html','true',[],''],
		['PAGE','20184',jdecode('Tongue-Tite+Applications'),jdecode(''),'/17223/20184.html','true',[],'']
	],''],
	['PAGE','20936',jdecode('Product+Info'),jdecode(''),'/20936.html','true',[],''],
	['PAGE','21736',jdecode('Design'),jdecode(''),'/21736.html','true',[],''],
	['PAGE','23888',jdecode('Reviews'),jdecode(''),'/23888.html','true',[],''],
	['PAGE','16274',jdecode('Marketing'),jdecode(''),'/16274/index.html','true',[ 
		['PAGE','16073',jdecode('Point+of+Sale'),jdecode(''),'/16274/16073.html','true',[],''],
		['PAGE','14335',jdecode('News+%26+Information'),jdecode(''),'/16274/14335.html','true',[],''],
		['PAGE','16778',jdecode('Trade+Shows'),jdecode(''),'/16274/16778.html','true',[],''],
		['PAGE','19466',jdecode('Press'),jdecode(''),'/16274/19466.html','true',[],''],
		['PAGE','19506',jdecode('New+Woodworker'),jdecode(''),'/16274/19506.html','true',[],''],
		['PAGE','23857',jdecode('Independant+Tests'),jdecode(''),'/16274/23857.html','true',[],'']
	],''],
	['PAGE','14308',jdecode('Technical'),jdecode(''),'/14308/index.html','true',[ 
		['PAGE','17736',jdecode('RoHS'),jdecode(''),'/14308/17736.html','true',[],''],
		['PAGE','74973',jdecode('Specifications'),jdecode(''),'/14308/74973.html','true',[],'']
	],''],
	['PAGE','81087',jdecode('Development'),jdecode(''),'/81087/index.html','true',[ 
		['PAGE','80042',jdecode('Cladding'),jdecode(''),'/81087/80042.html','true',[],'']
	],''],
	['PAGE','14281',jdecode('About+us'),jdecode(''),'/14281/index.html','true',[ 
		['PAGE','14362',jdecode('Jobs'),jdecode(''),'/14281/14362.html','true',[],''],
		['PAGE','14389',jdecode('Contact'),jdecode(''),'/14281/14389.html','true',[],'']
	],''],
	['PAGE','118102',jdecode('Accolades'),jdecode(''),'/118102.html','true',[],'']];
var siteelementCount=87;
theSitetree.topTemplateName='Cuy';
					                                                                    
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 */					                                                            

