/* [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','4595',jdecode('Home'),jdecode(''),'/4595/index.html','true',[ 
		['PAGE','5561',jdecode('Home+%28follow+up+page%29'),jdecode(''),'/4595/5561.html','false',[],'']
	],''],
	['PAGE','4652',jdecode('Tony+Sheridan'),jdecode(''),'/4652.html','true',[],''],
	['PAGE','6303',jdecode('Tony+Sheridan'),jdecode(''),'/6303.html','true',[],''],
	['PAGE','7972',jdecode('Tony+Sheridan'),jdecode(''),'/7972.html','true',[],''],
	['PAGE','8221',jdecode('Tony+Sheridan'),jdecode(''),'/8221.html','true',[],''],
	['PAGE','10303',jdecode('Tony+Sheridan'),jdecode(''),'/10303.html','true',[],''],
	['PAGE','11323',jdecode('Tony+Sheridan'),jdecode(''),'/11323.html','true',[],''],
	['PAGE','8813',jdecode('Beat'),jdecode(''),'/8813.html','true',[],''],
	['PAGE','4679',jdecode('Beatles'),jdecode(''),'/4679.html','true',[],''],
	['PAGE','4706',jdecode('Rory+Gallagher'),jdecode(''),'/4706.html','true',[],''],
	['PAGE','4733',jdecode('Led+Zeppelin'),jdecode(''),'/4733.html','true',[],''],
	['PAGE','4760',jdecode('Ten+Years+After'),jdecode(''),'/4760.html','true',[],''],
	['PAGE','4787',jdecode('Jimi+Hendrix'),jdecode(''),'/4787.html','true',[],''],
	['PAGE','4841',jdecode('Free'),jdecode(''),'/4841.html','true',[],''],
	['PAGE','7103',jdecode('Who'),jdecode(''),'/7103.html','true',[],''],
	['PAGE','7130',jdecode('Louis+Armstrong'),jdecode(''),'/7130.html','true',[],''],
	['PAGE','7157',jdecode('Joe+Cocker'),jdecode(''),'/7157.html','true',[],''],
	['PAGE','7184',jdecode('Wings'),jdecode(''),'/7184.html','true',[],''],
	['PAGE','4868',jdecode('Frank+Zappa'),jdecode(''),'/4868.html','true',[],''],
	['PAGE','11834',jdecode('Frank+Zappa'),jdecode(''),'/11834.html','true',[],''],
	['PAGE','7211',jdecode('Bill+Haley'),jdecode(''),'/7211.html','true',[],''],
	['PAGE','8470',jdecode('Roy+Black'),jdecode(''),'/8470.html','true',[],''],
	['PAGE','8497',jdecode('Cliff+Richard'),jdecode(''),'/8497.html','true',[],''],
	['PAGE','9264',jdecode('Cliff+Richard'),jdecode(''),'/9264.html','true',[],''],
	['PAGE','8524',jdecode('Grand+Funk'),jdecode(''),'/8524.html','true',[],''],
	['PAGE','9734',jdecode('The+Sabres'),jdecode(''),'/9734.html','true',[],''],
	['PAGE','10766',jdecode('Rattles'),jdecode(''),'/10766.html','true',[],''],
	['PAGE','9983',jdecode('Beat+Beat+Beat'),jdecode(''),'/9983.html','true',[],''],
	['PAGE','4895',jdecode('Other+Bands+'),jdecode(''),'/4895.html','true',[],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Speed';
					                                                                    
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 */					                                                            
