/* [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','1154',jdecode('Home'),jdecode(''),'/1154.html','true',[],''],
	['PAGE','1414',jdecode('THE+RALLY'),jdecode(''),'/1414/index.html','true',[ 
		['PAGE','20706',jdecode('Scramblers'),jdecode(''),'/1414/20706.html','true',[],''],
		['PAGE','23845',jdecode('Singles'),jdecode(''),'/1414/23845.html','true',[],''],
		['PAGE','32269',jdecode('Bevel+Twins'),jdecode(''),'/1414/32269.html','true',[],''],
		['PAGE','32296',jdecode('Laverda'),jdecode(''),'/1414/32296.html','true',[],''],
		['PAGE','32323',jdecode('Winners'),jdecode(''),'/1414/32323.html','true',[],''],
		['PAGE','32350',jdecode('Other+Views'),jdecode(''),'/1414/32350.html','true',[],''],
		['PAGE','32377',jdecode('Sidecars'),jdecode(''),'/1414/32377.html','true',[],'']
	],''],
	['PAGE','21203',jdecode('Ducatisti+event+reviews'),jdecode(''),'/21203/index.html','true',[ 
		['PAGE','1368',jdecode('Moto+Giro+2002+report'),jdecode(''),'/21203/1368.html','true',[],''],
		['PAGE','27403',jdecode('BMF+with+the+DOC'),jdecode(''),'/21203/27403.html','true',[],''],
		['PAGE','24503',jdecode('DOC+at+Bristol+'),jdecode(''),'/21203/24503.html','true',[],''],
		['PAGE','25615',jdecode('Gallery+1'),jdecode(''),'/21203/25615.html','true',[],''],
		['PAGE','25642',jdecode('Gallery+2'),jdecode(''),'/21203/25642.html','true',[],''],
		['PAGE','40101',jdecode('BMF+2005'),jdecode(''),'/21203/40101.html','true',[],'']
	],''],
	['PAGE','19630',jdecode('Ducatisti+Rallies'),jdecode(''),'/19630/index.html','true',[ 
		['PAGE','19657',jdecode('Welsh+Ducati+rally'),jdecode(''),'/19630/19657.html','true',[],'']
	],''],
	['PAGE','36101',jdecode('V+twin+rally'),jdecode(''),'/36101/index.html','true',[ 
		['PAGE','1345',jdecode('V+Twin+Rally+2002'),jdecode(''),'/36101/1345.html','true',[],''],
		['PAGE','36201',jdecode('V+twin+rally+2004'),jdecode(''),'/36101/36201.html','true',[],''],
		['PAGE','36332',jdecode('V+twin+rally+gallery'),jdecode(''),'/36101/36332.html','true',[],'']
	],''],
	['PAGE','19684',jdecode('Classic+Ducati'),jdecode(''),'/19684/index.html','true',[ 
		['PAGE','1391',jdecode('Silver+shotgun'),jdecode(''),'/19684/1391.html','true',[],''],
		['PAGE','24903',jdecode('TS+175'),jdecode(''),'/19684/24903.html','true',[],''],
		['PAGE','31103',jdecode('Mike+Hailwood+Ducati'),jdecode(''),'/19684/31103.html','true',[],'']
	],''],
	['PAGE','21603',jdecode('Technical+Tips'),jdecode(''),'/21603/index.html','true',[ 
		['PAGE','21630',jdecode('Lucas+Rita'),jdecode(''),'/21603/21630.html','true',[],''],
		['PAGE','21684',jdecode('Belt+drive+tips'),jdecode(''),'/21603/21684.html','true',[],''],
		['PAGE','28603',jdecode('Pantah+tips'),jdecode(''),'/21603/28603.html','true',[],'']
	],''],
	['PAGE','19711',jdecode('Desmo.org+bikes'),jdecode(''),'/19711/index.html','true',[ 
		['PAGE','1276',jdecode('450+Street+Scrambler'),jdecode(''),'/19711/1276.html','true',[],''],
		['PAGE','1437',jdecode('600+Spondon'),jdecode(''),'/19711/1437.html','true',[],''],
		['PAGE','1299',jdecode('900+Monster'),jdecode(''),'/19711/1299.html','true',[],''],
		['PAGE','1322',jdecode('500+Pantah'),jdecode(''),'/19711/1322.html','true',[],''],
		['PAGE','34503',jdecode('The+916%21%21'),jdecode(''),'/19711/34503.html','true',[],''],
		['PAGE','39249',jdecode('900SS+Bevel'),jdecode(''),'/19711/39249.html','true',[],''],
		['PAGE','39218',jdecode('Guzzi+outfit%21'),jdecode(''),'/19711/39218.html','true',[],''],
		['PAGE','39608',jdecode('600+Monster'),jdecode(''),'/19711/39608.html','true',[],''],
		['PAGE','42041',jdecode('450RT'),jdecode(''),'/19711/42041.html','true',[],''],
		['PAGE','42201',jdecode('Gromit+on+Acid'),jdecode(''),'/19711/42201.html','true',[],'']
	],''],
	['PAGE','19738',jdecode('Links'),jdecode(''),'/19738.html','true',[],''],
	['PAGE','19765',jdecode('For+Sale%2FWanted'),jdecode(''),'/19765/index.html','true',[ 
		['PAGE','23308',jdecode('INTERACTIVE%21+%28follow+up+page%29'),jdecode(''),'/19765/23308.html','false',[],'']
	],''],
	['PAGE','19975',jdecode('Guestbook'),jdecode(''),'/19975/index.html','true',[ 
		['PAGE','19976',jdecode('Read+Guestbook'),jdecode(''),'/19975/19976.html','true',[],''],
		['PAGE','22903',jdecode('INTERACTIVE%21'),jdecode(''),'/19975/22903.html','true',[],''],
		['PAGE','33103',jdecode('Odd+stuff'),jdecode(''),'/19975/33103.html','true',[],'']
	],''],
	['PAGE','39827',jdecode('Ducati+club+pics'),jdecode(''),'/39827/index.html','true',[ 
		['PAGE','41101',jdecode('Bevels+at+the+Ace'),jdecode(''),'/39827/41101.html','true',[],'']
	],''],
	['PAGE','41401',jdecode('Manx+GP+2005'),jdecode(''),'/41401.html','true',[],''],
	['PAGE','41801',jdecode('MG01+at+the+Manx'),jdecode(''),'/41801.html','true',[],''],
	['PAGE','42301',jdecode('The+Isle+of+Man'),jdecode(''),'/42301/index.html','true',[ 
		['PAGE','42363',jdecode('Manx+GP+2006'),jdecode(''),'/42301/42363.html','true',[],''],
		['PAGE','42394',jdecode('IOM+scenes'),jdecode(''),'/42301/42394.html','true',[],'']
	],''],
	['PAGE','42332',jdecode('TT+2006'),jdecode(''),'/42332/index.html','true',[ 
		['PAGE','42501',jdecode('Junior+supersport+06'),jdecode(''),'/42332/42501.html','true',[],''],
		['PAGE','42532',jdecode('Superbike+06'),jdecode(''),'/42332/42532.html','true',[],''],
		['PAGE','42563',jdecode('Senior+06'),jdecode(''),'/42332/42563.html','true',[],''],
		['PAGE','42594',jdecode('Superstocks+06'),jdecode(''),'/42332/42594.html','true',[],''],
		['PAGE','42625',jdecode('Sidecars'),jdecode(''),'/42332/42625.html','true',[],''],
		['PAGE','42656',jdecode('Ducati+Club+at+TT+06'),jdecode(''),'/42332/42656.html','true',[],'']
	],''],
	['PAGE','43501',jdecode('All+year+round+biking+in+the+sun%21'),jdecode(''),'/43501.html','true',[],''],
	['PAGE','43801',jdecode('TT+07'),jdecode(''),'/43801.html','true',[],'']];
var siteelementCount=64;
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 */					                                                            
