/* [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','4556',jdecode('Home'),jdecode(''),'/4556.html','true',[],''],
	['PAGE','4613',jdecode('Contact'),jdecode(''),'/4613.html','true',[],''],
	['PAGE','43166',jdecode('Request+for+Membership'),jdecode(''),'/43166.html','true',[],''],
	['PAGE','4640',jdecode('About+us'),jdecode(''),'/4640/index.html','true',[ 
		['PAGE','26919',jdecode('Pictures'),jdecode(''),'/4640/26919.html','true',[],''],
		['PAGE','6301',jdecode('Road+Map'),jdecode(''),'/4640/6301.html','true',[],''],
		['PAGE','4667',jdecode('Committee+2010'),jdecode(''),'/4640/4667.html','true',[],''],
		['PAGE','7701',jdecode('The+Teams'),jdecode(''),'/4640/7701.html','true',[],'']
	],''],
	['PAGE','114984',jdecode('Club++Friendly+Fixtures+2010'),jdecode(''),'/114984.html','true',[],''],
	['PAGE','7178',jdecode('Mens+Fixtures+2010'),jdecode(''),'/7178/index.html','true',[ 
		['PAGE','114922',jdecode('1st.+Team+Fixtures'),jdecode(''),'/7178/114922.html','true',[],''],
		['PAGE','114953',jdecode('%22A%22+Team+Fixtures'),jdecode(''),'/7178/114953.html','true',[],''],
		['PAGE','58781',jdecode('Midweek+League+'),jdecode(''),'/7178/58781.html','true',[],''],
		['PAGE','55766',jdecode('Alliance+Section'),jdecode(''),'/7178/55766.html','true',[],''],
		['PAGE','154222',jdecode('Men%26%23x27%3Bs+Tables'),jdecode(''),'/7178/154222.html','true',[],'']
	],''],
	['PAGE','28875',jdecode('Ladies+Fixtures+2010'),jdecode(''),'/28875.html','true',[],''],
	['PAGE','6962',jdecode('Competitions+2010'),jdecode(''),'/6962/index.html','true',[ 
		['PAGE','6989',jdecode('Championship'),jdecode(''),'/6962/6989.html','true',[],''],
		['PAGE','7016',jdecode('Handicap'),jdecode(''),'/6962/7016.html','true',[],''],
		['PAGE','19347',jdecode('Two+Wood'),jdecode(''),'/6962/19347.html','true',[],''],
		['PAGE','7043',jdecode('Pairs'),jdecode(''),'/6962/7043.html','true',[],''],
		['PAGE','7070',jdecode('Triples'),jdecode(''),'/6962/7070.html','true',[],''],
		['PAGE','7097',jdecode('Family+Pairs'),jdecode(''),'/6962/7097.html','true',[],''],
		['PAGE','113956',jdecode('Mixed+Pairs'),jdecode(''),'/6962/113956.html','true',[],''],
		['PAGE','7124',jdecode('Mixed+Rinks'),jdecode(''),'/6962/7124.html','true',[],''],
		['PAGE','7151',jdecode('Novices'),jdecode(''),'/6962/7151.html','true',[],''],
		['PAGE','9635',jdecode('Over+Fifty+Fives'),jdecode(''),'/6962/9635.html','true',[],''],
		['PAGE','9662',jdecode('Under+Eighteens'),jdecode(''),'/6962/9662.html','true',[],''],
		['PAGE','20483',jdecode('Ladies+Singles'),jdecode(''),'/6962/20483.html','true',[],''],
		['PAGE','20510',jdecode('Ladies+Pairs'),jdecode(''),'/6962/20510.html','true',[],''],
		['PAGE','57914',jdecode('Ladies+Two+Wood'),jdecode(''),'/6962/57914.html','true',[],''],
		['PAGE','17015',jdecode('Finals+Day+1'),jdecode(''),'/6962/17015.html','true',[],''],
		['PAGE','26566',jdecode('Finals+Day+2'),jdecode(''),'/6962/26566.html','true',[],'']
	],''],
	['PAGE','20537',jdecode('Invitation+Triples'),jdecode(''),'/20537.html','true',[],''],
	['PAGE','9993',jdecode('Shop'),jdecode(''),'/9993.html','true',[],''],
	['PAGE','6032',jdecode('Guestbook'),jdecode(''),'/6032/index.html','true',[ 
		['PAGE','6033',jdecode('Read+Guestbook'),jdecode(''),'/6032/6033.html','true',[],'']
	],'']];
var siteelementCount=37;
theSitetree.topTemplateName='Disco';
					                                                                    
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 */					                                                            
