/* [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','4535',jdecode('Home'),jdecode(''),'/4535.html','true',[],''],
	['PAGE','4592',jdecode('About+me'),jdecode(''),'/4592.html','true',[],''],
	['PAGE','10303',jdecode('Publications'),jdecode(''),'/10303.html','true',[],''],
	['PAGE','10330',jdecode('Clients'),jdecode(''),'/10330/index.html','true',[ 
		['PAGE','30704',jdecode('Bike+Art'),jdecode(''),'/10330/30704.html','true',[],'']
	],''],
	['PAGE','11903',jdecode('Feature+Cars'),jdecode(''),'/11903/index.html','true',[ 
		['PAGE','29906',jdecode('Volksmagic+Pick-Up'),jdecode(''),'/11903/29906.html','true',[],''],
		['PAGE','31202',jdecode('Linzi'),jdecode(''),'/11903/31202.html','true',[],''],
		['PAGE','31233',jdecode('Desert+Samba'),jdecode(''),'/11903/31233.html','true',[],''],
		['PAGE','31264',jdecode('Cartridge+Volksrod'),jdecode(''),'/11903/31264.html','true',[],''],
		['PAGE','31326',jdecode('%A3250+Samba'),jdecode(''),'/11903/31326.html','true',[],''],
		['PAGE','31295',jdecode('Double+Trouble'),jdecode(''),'/11903/31295.html','true',[],''],
		['PAGE','31357',jdecode('Magic+%26%23x27%3B58'),jdecode(''),'/11903/31357.html','true',[],''],
		['PAGE','31388',jdecode('Retro+Rocket'),jdecode(''),'/11903/31388.html','true',[],'']
	],''],
	['PAGE','12011',jdecode('Show+coverage'),jdecode(''),'/12011/index.html','true',[ 
		['PAGE','31840',jdecode('Volksworld+Show+2005'),jdecode(''),'/12011/31840.html','true',[],'']
	],''],
	['PAGE','11930',jdecode('Int.+Motorsport'),jdecode(''),'/11930.html','true',[],''],
	['PAGE','28052',jdecode('Picture+Galleries'),jdecode(''),'/28052/index.html','true',[ 
		['PAGE','28084',jdecode('Rally'),jdecode(''),'/28052/28084.html','true',[],''],
		['PAGE','28119',jdecode('Race'),jdecode(''),'/28052/28119.html','true',[],''],
		['PAGE','28154',jdecode('Club+Motorsport'),jdecode(''),'/28052/28154.html','true',[],''],
		['PAGE','28189',jdecode('Drag+Racing'),jdecode(''),'/28052/28189.html','true',[],'']
	],''],
	['PAGE','11957',jdecode('Club+Motorsport'),jdecode(''),'/11957.html','true',[],''],
	['PAGE','11984',jdecode('Event+coverage'),jdecode(''),'/11984/index.html','true',[ 
		['PAGE','31442',jdecode('Majors+Memorial+Trial'),jdecode(''),'/11984/31442.html','true',[],''],
		['PAGE','31473',jdecode('Wiscombe+Hill+Climb'),jdecode(''),'/11984/31473.html','true',[],'']
	],''],
	['PAGE','16803',jdecode('Early+days'),jdecode(''),'/16803.html','true',[],''],
	['PAGE','10603',jdecode('Youth+with+a+lens'),jdecode(''),'/10603.html','true',[],''],
	['PAGE','27901',jdecode('Pikes+Peak'),jdecode(''),'/27901.html','true',[],''],
	['PAGE','30301',jdecode('The+story+of+Doon'),jdecode(''),'/30301/index.html','true',[ 
		['PAGE','4646',jdecode('Project+Doon+Buggy+'),jdecode(''),'/30301/4646.html','true',[],''],
		['PAGE','4673',jdecode('Doon+Buggy+Part+1'),jdecode(''),'/30301/4673.html','true',[],''],
		['PAGE','4700',jdecode('Doon+Buggy+Part+2'),jdecode(''),'/30301/4700.html','true',[],''],
		['PAGE','4727',jdecode('Doon+Buggy+Part+3'),jdecode(''),'/30301/4727.html','true',[],''],
		['PAGE','27501',jdecode('Volksworld+Project+Doon'),jdecode(''),'/30301/27501.html','true',[],''],
		['PAGE','27601',jdecode('Part+No.+1'),jdecode(''),'/30301/27601.html','true',[],''],
		['PAGE','27632',jdecode('Part+No.+2'),jdecode(''),'/30301/27632.html','true',[],''],
		['PAGE','27701',jdecode('Part+No.+3'),jdecode(''),'/30301/27701.html','true',[],''],
		['PAGE','27732',jdecode('Part+No.+4'),jdecode(''),'/30301/27732.html','true',[],''],
		['PAGE','27763',jdecode('Part+No.+5'),jdecode(''),'/30301/27763.html','true',[],''],
		['PAGE','27794',jdecode('Part+No.+6'),jdecode(''),'/30301/27794.html','true',[],''],
		['PAGE','28679',jdecode('Part+No.+7'),jdecode(''),'/30301/28679.html','true',[],''],
		['PAGE','28710',jdecode('Part+No.+8'),jdecode(''),'/30301/28710.html','true',[],'']
	],''],
	['PAGE','21481',jdecode('Interesting+Links'),jdecode(''),'/21481.html','true',[],''],
	['PAGE','21454',jdecode('Contact'),jdecode(''),'/21454.html','true',[],'']];
var siteelementCount=45;
theSitetree.topTemplateName='Logg';
					                                                                    
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 */					                                                            
