/* [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','276201',jdecode('Family+House+For+Sale+'),jdecode(''),'/276201.html','true',[],''],
	['PAGE','268034',jdecode('Magazine+Articles'),jdecode(''),'/268034.html','true',[],''],
	['PAGE','16226',jdecode('Cars+for+Sale'),jdecode(''),'/16226/index.html','true',[ 
		['PAGE','274601',jdecode('1932+Ford+Model+B+Roadster'),jdecode(''),'/16226/274601.html','true',[],''],
		['PAGE','250063',jdecode('1937+Oldsmobile+L37++'),jdecode(''),'/16226/250063.html','true',[],''],
		['PAGE','203420',jdecode('1946+Studebaker+Pickup'),jdecode(''),'/16226/203420.html','true',[],''],
		['PAGE','270001',jdecode('1950+Bentley+MKvi+Park+Ward'),jdecode(''),'/16226/270001.html','true',[],''],
		['PAGE','276712',jdecode('1956+BENTLEY+S1+CONTINENTAL+'),jdecode(''),'/16226/276712.html','true',[],''],
		['PAGE','286601',jdecode('1956+Bentley+S1+Saloon'),jdecode(''),'/16226/286601.html','true',[],''],
		['PAGE','93801',jdecode('1957+Cadillac'),jdecode(''),'/16226/93801.html','true',[],''],
		['PAGE','269001',jdecode('1963+Jaguar+MK2+3.8+MOD'),jdecode(''),'/16226/269001.html','true',[],''],
		['PAGE','287901',jdecode('1965+Bentley+S3+Continental+'),jdecode(''),'/16226/287901.html','true',[],''],
		['PAGE','285290',jdecode('1966+Plymouth+Hemi+Satellite+Coupe'),jdecode(''),'/16226/285290.html','true',[],''],
		['PAGE','288901',jdecode('1966+Rolls+Royce+Silver+Cloud+III'),jdecode(''),'/16226/288901.html','true',[],''],
		['PAGE','249601',jdecode('1967+Jaguar+E+Type+Roadster+4.2++'),jdecode(''),'/16226/249601.html','true',[],''],
		['PAGE','286093',jdecode('1968+Plymouth+440+GTX+Convertible'),jdecode(''),'/16226/286093.html','true',[],''],
		['PAGE','278401',jdecode('1968+426+Hemi+Engine'),jdecode(''),'/16226/278401.html','true',[],''],
		['PAGE','259801',jdecode('Teal+Type+59+Bugatti+Recreation'),jdecode(''),'/16226/259801.html','true',[],''],
		['PAGE','284301',jdecode('1994+Bentley+Continental+R'),jdecode(''),'/16226/284301.html','true',[],'']
	],''],
	['PAGE','62652',jdecode('Restoration'),jdecode(''),'/62652/index.html','true',[ 
		['PAGE','121079',jdecode('Stage+1'),jdecode(''),'/62652/121079.html','true',[],''],
		['PAGE','121110',jdecode('Stage+2'),jdecode(''),'/62652/121110.html','true',[],''],
		['PAGE','121141',jdecode('Stage+3'),jdecode(''),'/62652/121141.html','true',[],''],
		['PAGE','121172',jdecode('Stage+4'),jdecode(''),'/62652/121172.html','true',[],''],
		['PAGE','121203',jdecode('Stage+5'),jdecode(''),'/62652/121203.html','true',[],''],
		['PAGE','121234',jdecode('Stage+6'),jdecode(''),'/62652/121234.html','true',[],''],
		['PAGE','121265',jdecode('Stage+7'),jdecode(''),'/62652/121265.html','true',[],''],
		['PAGE','121296',jdecode('Stage+8'),jdecode(''),'/62652/121296.html','true',[],''],
		['PAGE','121327',jdecode('Stage+9'),jdecode(''),'/62652/121327.html','true',[],''],
		['PAGE','121358',jdecode('Stage+10'),jdecode(''),'/62652/121358.html','true',[],''],
		['PAGE','121389',jdecode('Stage+11'),jdecode(''),'/62652/121389.html','true',[],''],
		['PAGE','121420',jdecode('Stage+12'),jdecode(''),'/62652/121420.html','true',[],''],
		['PAGE','121451',jdecode('Stage+13'),jdecode(''),'/62652/121451.html','true',[],''],
		['PAGE','121482',jdecode('Stage+14'),jdecode(''),'/62652/121482.html','true',[],''],
		['PAGE','121513',jdecode('Stage+15'),jdecode(''),'/62652/121513.html','true',[],''],
		['PAGE','126579',jdecode('Stage+16'),jdecode(''),'/62652/126579.html','true',[],''],
		['PAGE','101679',jdecode('Complete'),jdecode(''),'/62652/101679.html','true',[],'']
	],''],
	['PAGE','62616',jdecode('Transportation'),jdecode(''),'/62616.html','true',[],''],
	['PAGE','144906',jdecode('Service+%26+Restore'),jdecode(''),'/144906.html','true',[],''],
	['PAGE','145206',jdecode('Work+in+Progress'),jdecode(''),'/145206.html','true',[],''],
	['PAGE','211201',jdecode('Cherished+Numbers'),jdecode(''),'/211201.html','true',[],''],
	['PAGE','113910',jdecode('Finance'),jdecode(''),'/113910.html','true',[],''],
	['PAGE','34502',jdecode('How+to+find+us'),jdecode(''),'/34502.html','true',[],''],
	['PAGE','62481',jdecode('Directions'),jdecode(''),'/62481.html','true',[],''],
	['PAGE','16334',jdecode('Contact+us'),jdecode(''),'/16334/index.html','true',[ 
		['PAGE','243502',jdecode('Contact+us+%28follow+up+page%29'),jdecode(''),'/16334/243502.html','false',[],''],
		['PAGE','243402',jdecode('Contact+us+%28follow+up+page%29'),jdecode(''),'/16334/243402.html','false',[],''],
		['PAGE','197524',jdecode('Contact+us+%28follow+up+page%29'),jdecode(''),'/16334/197524.html','false',[],'']
	],''],
	['PAGE','165860',jdecode('Links'),jdecode(''),'/165860.html','true',[],'']];
var siteelementCount=50;
theSitetree.topTemplateName='Metal';
					                                                                    
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 */					                                                            

