/* [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','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],''],
	['PAGE','79885',jdecode('About+itznige'),jdecode(''),'/79885.html','true',[],''],
	['PAGE','41037',jdecode('From+the+pen+of...'),jdecode(''),'/41037/index.html','true',[ 
		['PAGE','79298',jdecode('whatever+happened+to+Harry+Potter'),jdecode(''),'/41037/79298.html','true',[],''],
		['PAGE','65852',jdecode('Race+For+Life'),jdecode(''),'/41037/65852.html','true',[],''],
		['PAGE','64852',jdecode('But+I+am+not+Gordon+Ramsey'),jdecode(''),'/41037/64852.html','true',[],''],
		['PAGE','51427',jdecode('The+Caterham+near+death+experience'),jdecode(''),'/41037/51427.html','true',[],''],
		['PAGE','51470',jdecode('The+%26%23x27%3BF%26%23x27%3B+word'),jdecode(''),'/41037/51470.html','true',[],''],
		['PAGE','51552',jdecode('Santa+-+A+night+on+the+tiles'),jdecode(''),'/41037/51552.html','true',[],''],
		['PAGE','40837',jdecode('My+Ramblings'),jdecode(''),'/41037/40837.html','true',[],''],
		['PAGE','63252',jdecode('Run+for+Glory+-+'),jdecode(''),'/41037/63252.html','true',[],''],
		['PAGE','64352',jdecode('World+Cup+2006'),jdecode(''),'/41037/64352.html','true',[],'']
	],''],
	['PAGE','80225',jdecode('All+about+me'),jdecode(''),'/80225/index.html','true',[ 
		['PAGE','80185',jdecode('Shaken+Not+Sturred'),jdecode(''),'/80225/80185.html','true',[],'']
	],''],
	['PAGE','41887',jdecode('The+world+around+us'),jdecode(''),'/41887.html','true',[],''],
	['PAGE','23502',jdecode('My+Diary'),jdecode(''),'/23502.html','true',[],''],
	['PAGE','68785',jdecode('Top+of+the+Pops'),jdecode(''),'/68785.html','true',[],''],
	['PAGE','66585',jdecode('Running+Bloggs'),jdecode(''),'/66585.html','true',[],''],
	['PAGE','39537',jdecode('Whizz+Kidz'),jdecode(''),'/39537/index.html','true',[ 
		['PAGE','65352',jdecode('Keep+on+moving'),jdecode(''),'/39537/65352.html','true',[],''],
		['PAGE','66885',jdecode('London+Marathon+Expo+2005'),jdecode(''),'/39537/66885.html','true',[],''],
		['PAGE','63652',jdecode('Birmingham+Whizz+Kidz+Centre+opening'),jdecode(''),'/39537/63652.html','true',[],''],
		['PAGE','66616',jdecode('Marathon+Training+Day'),jdecode(''),'/39537/66616.html','true',[],''],
		['PAGE','65452',jdecode('London+Marathon+2006'),jdecode(''),'/39537/65452.html','true',[],''],
		['PAGE','64952',jdecode('Birmingham+to+London+Bike+ride'),jdecode(''),'/39537/64952.html','true',[],''],
		['PAGE','79394',jdecode('Whizz+Walk'),jdecode(''),'/39537/79394.html','true',[],'']
	],''],
	['PAGE','42471',jdecode('Marathon+hero'),jdecode(''),'/42471.html','true',[],''],
	['PAGE','68485',jdecode('Itznige+Gallery'),jdecode(''),'/68485/index.html','true',[ 
		['PAGE','23529',jdecode('The+Gallery'),jdecode(''),'/68485/23529.html','true',[],''],
		['PAGE','40868',jdecode('Running+Gallery'),jdecode(''),'/68485/40868.html','true',[],''],
		['PAGE','39050',jdecode('Buddies+Gallery'),jdecode(''),'/68485/39050.html','true',[],''],
		['PAGE','41241',jdecode('Rubbing+Shoulders+with...'),jdecode(''),'/68485/41241.html','true',[],'']
	],''],
	['PAGE','42437',jdecode('Buddies+Corner'),jdecode(''),'/42437/index.html','true',[ 
		['PAGE','42552',jdecode('Rouges+Gallery'),jdecode(''),'/42437/42552.html','true',[],'']
	],''],
	['PAGE','40037',jdecode('Mylene+Farmer'),jdecode(''),'/40037/index.html','true',[ 
		['PAGE','40237',jdecode('Mylene+Gallery'),jdecode(''),'/40037/40237.html','true',[],'']
	],''],
	['PAGE','39345',jdecode('Little+Nige'),jdecode(''),'/39345.html','true',[],''],
	['PAGE','48537',jdecode('Testimonials'),jdecode(''),'/48537.html','true',[],''],
	['PAGE','64983',jdecode('Warley+Woods'),jdecode(''),'/64983.html','true',[],''],
	['PAGE','51352',jdecode('Out+and+About'),jdecode(''),'/51352/index.html','true',[ 
		['PAGE','51383',jdecode('London'),jdecode(''),'/51352/51383.html','true',[],'']
	],''],
	['PAGE','5202',jdecode('Guestbook'),jdecode(''),'/5202/index.html','true',[ 
		['PAGE','5203',jdecode('Read+Guestbook'),jdecode(''),'/5202/5203.html','true',[],'']
	],''],
	['PAGE','79616',jdecode('London+Marathon+2008'),jdecode(''),'/79616.html','true',[],''],
	['PAGE','79647',jdecode('Team+itznige'),jdecode(''),'/79647.html','true',[],''],
	['PAGE','79585',jdecode('Links'),jdecode(''),'/79585.html','true',[],'']];
var siteelementCount=46;
theSitetree.topTemplateName='Dots';
					                                                                    
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 */					                                                            
