/* [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','4520',jdecode('Home'),jdecode(''),'/4520.html','true',[],''],
	['PAGE','50908',jdecode('News+and+Events'),jdecode(''),'/50908.html','true',[],''],
	['PAGE','174151',jdecode('Committee+Meetings'),jdecode(''),'/174151.html','true',[],''],
	['PAGE','172445',jdecode('Club+Shop'),jdecode(''),'/172445.html','true',[],''],
	['PAGE','170069',jdecode('Club+Sponsors+'),jdecode(''),'/170069.html','true',[],''],
	['PAGE','9265',jdecode('Fixtures+2009%2F10'),jdecode(''),'/9265/index.html','true',[ 
		['PAGE','49140',jdecode('Team+Confirmation+%28follow+up+page%29'),jdecode(''),'/9265/49140.html','false',[],''],
		['PAGE','49208',jdecode('2nd+XV+Selection+%28follow+up+page%29'),jdecode(''),'/9265/49208.html','false',[],'']
	],''],
	['PAGE','55320',jdecode('Want+To+Play+Rugby%3F'),jdecode(''),'/55320/index.html','true',[ 
		['PAGE','55391',jdecode('Want+To+Play+Rugby%3F+%28follow+up+page%29'),jdecode(''),'/55320/55391.html','false',[],'']
	],''],
	['PAGE','44304',jdecode('RFU+Info+%26+Links'),jdecode(''),'/44304.html','true',[],''],
	['PAGE','9238',jdecode('Club+History'),jdecode(''),'/9238.html','true',[],''],
	['PAGE','63693',jdecode('Match+Reports'),jdecode(''),'/63693/index.html','true',[ 
		['PAGE','67084',jdecode('1st+XV+Reports'),jdecode(''),'/63693/67084.html','true',[],''],
		['PAGE','67115',jdecode('2nd+XV+Reports'),jdecode(''),'/63693/67115.html','true',[],''],
		['PAGE','74997',jdecode('3rd+XV+Reports'),jdecode(''),'/63693/74997.html','true',[],'']
	],''],
	['PAGE','61451',jdecode('Champions+2006'),jdecode(''),'/61451.html','true',[],''],
	['PAGE','53266',jdecode('Directions+to+KRUFC'),jdecode(''),'/53266.html','true',[],''],
	['PAGE','53778',jdecode('Photo+Album%26%23x27%3Bs'),jdecode(''),'/53778/index.html','true',[ 
		['PAGE','63923',jdecode('Team+Photo%26%23x27%3Bs'),jdecode(''),'/53778/63923.html','true',[],''],
		['PAGE','64000',jdecode('Player+Photo%26%23x27%3Bs'),jdecode(''),'/53778/64000.html','true',[],''],
		['PAGE','64155',jdecode('1st+XV+Match+Day'),jdecode(''),'/53778/64155.html','true',[],''],
		['PAGE','64804',jdecode('2nd+XV+Match+Day'),jdecode(''),'/53778/64804.html','true',[],''],
		['PAGE','65009',jdecode('Social+Photo%26%23x27%3Bs'),jdecode(''),'/53778/65009.html','true',[],'']
	],''],
	['PAGE','9842',jdecode('Contact'),jdecode(''),'/9842.html','true',[],''],
	['PAGE','59720',jdecode('Disclaimer'),jdecode(''),'/59720.html','true',[],''],
	['PAGE','170142',jdecode('Guestbook'),jdecode(''),'/170142/index.html','true',[ 
		['PAGE','170143',jdecode('Read+Guestbook'),jdecode(''),'/170142/170143.html','true',[],'']
	],''],
	['PAGE','171626',jdecode('Club+Forum'),jdecode(''),'/171626.html','true',[],''],
	['PAGE','174691',jdecode('Weblog'),jdecode(''),'/174691.html','true',[],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Galerie';
					                                                                    
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 */					                                                            
