/* [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','4558',jdecode('Home'),jdecode(''),'/4558.html','true',[],''],
	['PAGE','4615',jdecode('Biography'),jdecode(''),'/4615.html','true',[],''],
	['PAGE','59868',jdecode('Photographs'),jdecode(''),'/59868/index.html','true',[ 
		['PAGE','59895',jdecode('Tours+abroad'),jdecode(''),'/59868/59895.html','true',[],''],
		['PAGE','59922',jdecode('Kung+Fu+Days'),jdecode(''),'/59868/59922.html','true',[],''],
		['PAGE','59949',jdecode('Action+photos'),jdecode(''),'/59868/59949.html','true',[],''],
		['PAGE','59976',jdecode('Reunion+Photos'),jdecode(''),'/59868/59976.html','true',[],''],
		['PAGE','60003',jdecode('Rhyl+Shows'),jdecode(''),'/59868/60003.html','true',[],''],
		['PAGE','60030',jdecode('Family+Photo+Album'),jdecode(''),'/59868/60030.html','true',[],'']
	],''],
	['PAGE','37202',jdecode('The+Inside+Story'),jdecode(''),'/37202.html','true',[],''],
	['PAGE','30302',jdecode('Bet+you+didn%26%23x27%3Bt+know+this+'),jdecode(''),'/30302.html','true',[],''],
	['PAGE','59409',jdecode('Anecdotes+2007'),jdecode(''),'/59409.html','true',[],''],
	['PAGE','59841',jdecode('Anecdotes+2006'),jdecode(''),'/59841.html','true',[],''],
	['PAGE','36002',jdecode('Anecdotes+2005'),jdecode(''),'/36002.html','true',[],''],
	['PAGE','24802',jdecode('Anecdotes+2004'),jdecode(''),'/24802.html','true',[],''],
	['PAGE','48501',jdecode('Interviews'),jdecode(''),'/48501/index.html','true',[ 
		['PAGE','48528',jdecode('For+Piledriver+Magazine'),jdecode(''),'/48501/48528.html','true',[],''],
		['PAGE','48555',jdecode('For+Two+Sheds+website'),jdecode(''),'/48501/48555.html','true',[],'']
	],''],
	['PAGE','4669',jdecode('Miscellaneous+'),jdecode(''),'/4669.html','true',[],''],
	['PAGE','59679',jdecode('Kung+Fu+Bouts+Results'),jdecode(''),'/59679/index.html','true',[ 
		['PAGE','59706',jdecode('Non+TV+Results+66+-+77'),jdecode(''),'/59679/59706.html','true',[],''],
		['PAGE','59733',jdecode('Non+TV+Results+78+-+90'),jdecode(''),'/59679/59733.html','true',[],'']
	],''],
	['PAGE','59436',jdecode('Canadian+Results+Page'),jdecode(''),'/59436.html','true',[],''],
	['PAGE','59490',jdecode('Handbills+%26+Programmes'),jdecode(''),'/59490/index.html','true',[ 
		['PAGE','59517',jdecode('1977'),jdecode(''),'/59490/59517.html','true',[],''],
		['PAGE','59544',jdecode('1978+-+1987'),jdecode(''),'/59490/59544.html','true',[],''],
		['PAGE','59571',jdecode('Programmes'),jdecode(''),'/59490/59571.html','true',[],''],
		['PAGE','59598',jdecode('Posters'),jdecode(''),'/59490/59598.html','true',[],''],
		['PAGE','59625',jdecode('Canadian+Programmes'),jdecode(''),'/59490/59625.html','true',[],'']
	],''],
	['PAGE','48609',jdecode('Posters'),jdecode(''),'/48609/index.html','true',[ 
		['PAGE','48636',jdecode('Posters+1975'),jdecode(''),'/48609/48636.html','true',[],''],
		['PAGE','48663',jdecode('Posters+1976'),jdecode(''),'/48609/48663.html','true',[],''],
		['PAGE','48690',jdecode('Posters+1977'),jdecode(''),'/48609/48690.html','true',[],''],
		['PAGE','48717',jdecode('Posters+1978+-+80s'),jdecode(''),'/48609/48717.html','true',[],'']
	],''],
	['PAGE','59652',jdecode('Fans+Page'),jdecode(''),'/59652.html','true',[],''],
	['PAGE','59760',jdecode('Hard+Men+of+Wrestling'),jdecode(''),'/59760.html','true',[],''],
	['PAGE','59787',jdecode('Strokes+Promoters+Pull'),jdecode(''),'/59787.html','true',[],''],
	['PAGE','59814',jdecode('The+Ring+Crew'),jdecode(''),'/59814.html','true',[],''],
	['PAGE','48582',jdecode('News+Page'),jdecode(''),'/48582.html','true',[],''],
	['PAGE','48744',jdecode('Competition+Page'),jdecode(''),'/48744.html','true',[],'']];
var siteelementCount=40;
theSitetree.topTemplateName='Kreis';
					                                                                    
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 */					                                                            
