/* [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('Introduction'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','82408',jdecode('Associates+Welcome'),jdecode(''),'/82408.html','true',[],''],
	['PAGE','365910',jdecode('TV+%2F+Film+%2F+Advertising+Work'),jdecode(''),'/365910.html','true',[],''],
	['PAGE','136710',jdecode('1928+Ford+Model+%26%23x27%3BA%26%23x27%3B+'),jdecode(''),'/136710.html','true',[],''],
	['PAGE','368214',jdecode('1958+Cadillac+Sedan+%28Pink%29'),jdecode(''),'/368214.html','true',[],''],
	['PAGE','563184',jdecode('%22K.I.T.T.%22+Knight+Rider+Cars'),jdecode(''),'/563184.html','true',[],''],
	['PAGE','340710',jdecode('1963+Cadillac+Fleetwood+'),jdecode(''),'/340710.html','true',[],''],
	['PAGE','285210',jdecode('1965+Ford+Thunderbird'),jdecode(''),'/285210.html','true',[],''],
	['PAGE','340010',jdecode('1959+Ford+Skyliner'),jdecode(''),'/340010.html','true',[],''],
	['PAGE','562358',jdecode('Intl+Motor+Show+-+NEC+2009'),jdecode(''),'/562358.html','true',[],''],
	['PAGE','560484',jdecode('Selection+of+Non-American+Cars'),jdecode(''),'/560484.html','true',[],''],
	['PAGE','288013',jdecode('School+Proms'),jdecode(''),'/288013.html','true',[],''],
	['PAGE','21477',jdecode('Our+Brides+%28and+Grooms%21%29'),jdecode(''),'/21477.html','true',[],''],
	['PAGE','336410',jdecode('Enquiry+Form'),jdecode(''),'/336410.html','true',[],''],
	['PAGE','21322',jdecode('Terms+and+Conditions'),jdecode(''),'/21322.html','true',[],''],
	['PAGE','36801',jdecode('2010+Rates'),jdecode(''),'/36801.html','true',[],''],
	['PAGE','22804',jdecode('Customer+Comments'),jdecode(''),'/22804.html','true',[],''],
	['PAGE','16334',jdecode('Contact+Details'),jdecode(''),'/16334/index.html','true',[ 
		['PAGE','36321',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/16334/36321.html','false',[],''],
		['PAGE','36302',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/16334/36302.html','false',[],''],
		['PAGE','32530',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/16334/32530.html','false',[],'']
	],''],
	['PAGE','135911',jdecode('Guestbook'),jdecode(''),'/135911/index.html','true',[ 
		['PAGE','135912',jdecode('Read+Guestbook'),jdecode(''),'/135911/135912.html','true',[],'']
	],''],
	['PAGE','34774',jdecode('Links'),jdecode(''),'/34774.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Stylus';
					                                                                    
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 */					                                                            
