/* [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','30781',jdecode(''),jdecode(''),'/30781.html','true',[],''],
	['PAGE','35844',jdecode('News+and+Events'),jdecode(''),'/35844.html','true',[],''],
	['PAGE','34650',jdecode(''),jdecode(''),'/34650.html','true',[],''],
	['PAGE','35138',jdecode('Who+We+Are'),jdecode(''),'/35138.html','true',[],''],
	['PAGE','35107',jdecode(''),jdecode(''),'/35107.html','true',[],''],
	['PAGE','34227',jdecode('Our+Standards'),jdecode(''),'/34227.html','true',[],''],
	['PAGE','34196',jdecode(''),jdecode(''),'/34196.html','true',[],''],
	['PAGE','34401',jdecode('Testimonials'),jdecode(''),'/34401.html','true',[],''],
	['PAGE','30750',jdecode(''),jdecode(''),'/30750.html','true',[],''],
	['PAGE','30621',jdecode('CARS+FOR+SALE'),jdecode(''),'/30621/index.html','true',[ 
		['PAGE','107658',jdecode('300SL-24+Roadster+1993L'),jdecode(''),'/30621/107658.html','true',[],''],
		['PAGE','100958',jdecode('SL280+Roadster+1996N'),jdecode(''),'/30621/100958.html','true',[],''],
		['PAGE','44188',jdecode('SL320+Roadster+1999V'),jdecode(''),'/30621/44188.html','true',[],''],
		['PAGE','79413',jdecode('300SL+Roadster+1989G'),jdecode(''),'/30621/79413.html','true',[],''],
		['PAGE','94837',jdecode('300SL+Roadster+1986D'),jdecode(''),'/30621/94837.html','true',[],''],
		['PAGE','61457',jdecode('300SL+Roadster+1988F'),jdecode(''),'/30621/61457.html','true',[],''],
		['PAGE','116058',jdecode('300SL+Roadster+1988F+-+SOLD'),jdecode(''),'/30621/116058.html','true',[],''],
		['PAGE','58066',jdecode('E320+Cabriolet+LHD+1995N'),jdecode(''),'/30621/58066.html','true',[],''],
		['PAGE','113658',jdecode('E220+Cabriolet+1994L+-+SOLD'),jdecode(''),'/30621/113658.html','true',[],''],
		['PAGE','124458',jdecode('E320+Coupe+1996N'),jdecode(''),'/30621/124458.html','true',[],''],
		['PAGE','108258',jdecode('230CE+Coupe+1992K'),jdecode(''),'/30621/108258.html','true',[],''],
		['PAGE','48418',jdecode('200T+Estate+1983A'),jdecode(''),'/30621/48418.html','true',[],''],
		['PAGE','131936',jdecode('280CE+Coupe+1985C'),jdecode(''),'/30621/131936.html','true',[],''],
		['PAGE','47307',jdecode('230TE+Estate+1986C'),jdecode(''),'/30621/47307.html','true',[],''],
		['PAGE','132658',jdecode('230E+Saloon+1984B+-+SOLD'),jdecode(''),'/30621/132658.html','true',[],''],
		['PAGE','93737',jdecode('560SEC+Coupe+1987E+-+SOLD'),jdecode(''),'/30621/93737.html','true',[],'']
	],''],
	['PAGE','153902',jdecode(''),jdecode(''),'/153902.html','true',[],''],
	['PAGE','75613',jdecode('PART+EXCHANGES+FOR+SALE'),jdecode(''),'/75613/index.html','true',[ 
		['PAGE','41857',jdecode('230E+Saloon+1984A'),jdecode(''),'/75613/41857.html','true',[],''],
		['PAGE','162558',jdecode('300TD+Estate+1993L+-+SOLD'),jdecode(''),'/75613/162558.html','true',[],''],
		['PAGE','159558',jdecode('C180+Saloon+1996P+-+SOLD'),jdecode(''),'/75613/159558.html','true',[],'']
	],''],
	['PAGE','153933',jdecode(''),jdecode(''),'/153933.html','true',[],''],
	['PAGE','44957',jdecode('EXPORTING+CARS+TO+IRELAND'),jdecode(''),'/44957.html','true',[],''],
	['PAGE','30655',jdecode(''),jdecode(''),'/30655.html','true',[],''],
	['PAGE','102258',jdecode('STORAGE+FOR+YOUR+CAR'),jdecode(''),'/102258.html','true',[],''],
	['PAGE','35875',jdecode(''),jdecode(''),'/35875.html','true',[],''],
	['PAGE','120158',jdecode('CHERISHED+PLATES+FOR+SALE'),jdecode(''),'/120158.html','true',[],''],
	['PAGE','120189',jdecode(''),jdecode(''),'/120189.html','true',[],''],
	['PAGE','34619',jdecode('CARS+WANTED'),jdecode(''),'/34619.html','true',[],''],
	['PAGE','102289',jdecode(''),jdecode(''),'/102289.html','true',[],''],
	['PAGE','106889',jdecode('R107+POWER+SOFT+TOPS'),jdecode(''),'/106889.html','true',[],''],
	['PAGE','108877',jdecode(''),jdecode(''),'/108877.html','true',[],''],
	['PAGE','16126',jdecode('The+models+in+detail'),jdecode(''),'/16126/index.html','true',[ 
		['PAGE','29508',jdecode('Model+numbers'),jdecode(''),'/16126/29508.html','true',[],''],
		['PAGE','29539',jdecode('Why+these+models%3F'),jdecode(''),'/16126/29539.html','true',[],'']
	],''],
	['PAGE','30688',jdecode(''),jdecode(''),'/30688.html','true',[],''],
	['PAGE','16153',jdecode('Ownership+potential'),jdecode(''),'/16153/index.html','true',[ 
		['PAGE','29570',jdecode('Reliability'),jdecode(''),'/16153/29570.html','true',[],''],
		['PAGE','29601',jdecode('Typical+owners'),jdecode(''),'/16153/29601.html','true',[],''],
		['PAGE','29632',jdecode('Purchase+cost'),jdecode(''),'/16153/29632.html','true',[],''],
		['PAGE','29663',jdecode('Running+costs'),jdecode(''),'/16153/29663.html','true',[],'']
	],''],
	['PAGE','30719',jdecode(''),jdecode(''),'/30719.html','true',[],''],
	['PAGE','16180',jdecode('The+great+mileage+debate'),jdecode(''),'/16180.html','true',[],''],
	['PAGE','34901',jdecode(''),jdecode(''),'/34901.html','true',[],''],
	['PAGE','16234',jdecode('Contact+us'),jdecode(''),'/16234/index.html','true',[ 
		['PAGE','29802',jdecode('Contact+us+%28follow+up+page%29'),jdecode(''),'/16234/29802.html','false',[],'']
	],''],
	['PAGE','33522',jdecode(''),jdecode(''),'/33522.html','true',[],''],
	['PAGE','33491',jdecode('Visit+Us'),jdecode(''),'/33491.html','true',[],''],
	['PAGE','40043',jdecode(''),jdecode(''),'/40043.html','true',[],''],
	['PAGE','39957',jdecode('Finance'),jdecode(''),'/39957.html','true',[],''],
	['PAGE','34101',jdecode(''),jdecode(''),'/34101.html','true',[],''],
	['PAGE','34132',jdecode('Links'),jdecode(''),'/34132.html','true',[],'']];
var siteelementCount=63;
theSitetree.topTemplateName='Inspiration';
					                                                                    
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 */					                                                            
