/* [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','4436',jdecode('Home'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','7001',jdecode('About+us'),jdecode(''),'/7001.html','true',[],''],
	['PAGE','7028',jdecode('Service'),jdecode(''),'/7028.html','true',[],''],
	['PAGE','25240',jdecode('Vortex+Construction+Edition'),jdecode(''),'/25240.html','true',[],''],
	['PAGE','11836',jdecode('Products+%26+Information'),jdecode(''),'/11836/index.html','true',[ 
		['PAGE','11901',jdecode('Flatbed+Platforms'),jdecode(''),'/11836/11901.html','true',[],''],
		['PAGE','12001',jdecode('Flatbed+Dump+Configurations'),jdecode(''),'/11836/12001.html','true',[],''],
		['PAGE','19159',jdecode('Buyers+Toolboxes'),jdecode(''),'/11836/19159.html','true',[],''],
		['PAGE','18901',jdecode('Weather+Guard+Boxes'),jdecode(''),'/11836/18901.html','true',[],''],
		['PAGE','28340',jdecode('Van+Storage+Equipment'),jdecode(''),'/11836/28340.html','true',[],''],
		['PAGE','12301',jdecode('Lumber+Racks'),jdecode(''),'/11836/12301.html','true',[],''],
		['PAGE','12094',jdecode('Lift+Gates'),jdecode(''),'/11836/12094.html','true',[],''],
		['PAGE','12401',jdecode('Contractor+Body'),jdecode(''),'/11836/12401.html','true',[],''],
		['PAGE','12032',jdecode('Dump+Body'),jdecode(''),'/11836/12032.html','true',[],''],
		['PAGE','12063',jdecode('Service+Body'),jdecode(''),'/11836/12063.html','true',[],''],
		['PAGE','27365',jdecode('Switch-N-Go'),jdecode(''),'/11836/27365.html','true',[],''],
		['PAGE','12187',jdecode('Side+Racks'),jdecode(''),'/11836/12187.html','true',[],''],
		['PAGE','12125',jdecode('Trailer+Towing'),jdecode(''),'/11836/12125.html','true',[],''],
		['PAGE','12156',jdecode('Hiway+Safety+Products'),jdecode(''),'/11836/12156.html','true',[],'']
	],''],
	['PAGE','4501',jdecode('Product+Images'),jdecode(''),'/4501.html','true',[],''],
	['PAGE','7055',jdecode('News'),jdecode(''),'/7055.html','true',[],''],
	['PAGE','7109',jdecode('Contact+and+Quotes'),jdecode(''),'/7109.html','true',[],''],
	['PAGE','11802',jdecode('How+to+find+us'),jdecode(''),'/11802.html','true',[],''],
	['PAGE','20440',jdecode('Specials'),jdecode(''),'/20440.html','true',[],''],
	['PAGE','28640',jdecode('Stahl+Truck+Body'),jdecode(''),'/28640.html','true',[],''],
	['PAGE','28940',jdecode('In+Stock'),jdecode(''),'/28940.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Movement';
					                                                                    
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 */					                                                            
