/* [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.html','true',[],''],
	['PAGE','14184',jdecode('News'),jdecode(''),'/14184.html','true',[],''],
	['PAGE','5903',jdecode('Club+Information'),jdecode(''),'/5903.html','true',[],''],
	['PAGE','5930',jdecode('History'),jdecode(''),'/5930.html','true',[],''],
	['PAGE','5957',jdecode('Manager'),jdecode(''),'/5957.html','true',[],''],
	['PAGE','5984',jdecode('Coaches'),jdecode(''),'/5984.html','true',[],''],
	['PAGE','6011',jdecode('Squad'),jdecode(''),'/6011/index.html','true',[ 
		['PAGE','476712',jdecode('Stevie+Bainbridge'),jdecode(''),'/6011/476712.html','true',[],''],
		['PAGE','400965',jdecode('Jay+Boyd'),jdecode(''),'/6011/400965.html','true',[],''],
		['PAGE','374742',jdecode('Matt+Boyd'),jdecode(''),'/6011/374742.html','true',[],''],
		['PAGE','319864',jdecode('Ronnie+Burns'),jdecode(''),'/6011/319864.html','true',[],''],
		['PAGE','167005',jdecode('Paddy+Flood'),jdecode(''),'/6011/167005.html','true',[],''],
		['PAGE','8881',jdecode('Andy+Forsythe'),jdecode(''),'/6011/8881.html','true',[],''],
		['PAGE','436385',jdecode('Stuart+Galbraith'),jdecode(''),'/6011/436385.html','true',[],''],
		['PAGE','523881',jdecode('Mark+Hadden'),jdecode(''),'/6011/523881.html','true',[],''],
		['PAGE','320501',jdecode('Allen+Huxley'),jdecode(''),'/6011/320501.html','true',[],''],
		['PAGE','421317',jdecode('Scott+Irvine'),jdecode(''),'/6011/421317.html','true',[],''],
		['PAGE','374711',jdecode('Marty+McAvoy'),jdecode(''),'/6011/374711.html','true',[],''],
		['PAGE','435971',jdecode('Mark+McClelland'),jdecode(''),'/6011/435971.html','true',[],''],
		['PAGE','460212',jdecode('Stuart+McCullough'),jdecode(''),'/6011/460212.html','true',[],''],
		['PAGE','475012',jdecode('Stevie+McDowell'),jdecode(''),'/6011/475012.html','true',[],''],
		['PAGE','233258',jdecode('Simon+McGowan'),jdecode(''),'/6011/233258.html','true',[],''],
		['PAGE','444319',jdecode('Neil+McGrath'),jdecode(''),'/6011/444319.html','true',[],''],
		['PAGE','436002',jdecode('Sam+McWilliams'),jdecode(''),'/6011/436002.html','true',[],''],
		['PAGE','438081',jdecode('Darren+Munster'),jdecode(''),'/6011/438081.html','true',[],''],
		['PAGE','437905',jdecode('Davy+Officer'),jdecode(''),'/6011/437905.html','true',[],''],
		['PAGE','473812',jdecode('Lee+Rushe'),jdecode(''),'/6011/473812.html','true',[],''],
		['PAGE','193043',jdecode('Andy+Simms'),jdecode(''),'/6011/193043.html','true',[],'']
	],''],
	['PAGE','14130',jdecode('Personnel+%26+Committee'),jdecode(''),'/14130.html','true',[],''],
	['PAGE','521181',jdecode('BCFC+Fixtures+%26+Results'),jdecode(''),'/521181.html','true',[],''],
	['PAGE','345134',jdecode('Match+Reports+10%2F11'),jdecode(''),'/345134.html','true',[],''],
	['PAGE','313256',jdecode('Friendly+Reports'),jdecode(''),'/313256/index.html','true',[ 
		['PAGE','524081',jdecode('v+Chimney+Corner'),jdecode(''),'/313256/524081.html','true',[],''],
		['PAGE','524681',jdecode('v+Glenavon'),jdecode(''),'/313256/524681.html','true',[],'']
	],''],
	['PAGE','16303',jdecode('Player+Records+10%2F11'),jdecode(''),'/16303/index.html','true',[ 
		['PAGE','458870',jdecode('Player+of+the+Month'),jdecode(''),'/16303/458870.html','true',[],''],
		['PAGE','374264',jdecode('Suspensions'),jdecode(''),'/16303/374264.html','true',[],'']
	],''],
	['PAGE','16330',jdecode('Transfers'),jdecode(''),'/16330.html','true',[],''],
	['PAGE','16357',jdecode('Latest+Results'),jdecode(''),'/16357/index.html','true',[ 
		['PAGE','40701',jdecode('Premiership'),jdecode(''),'/16357/40701.html','true',[],''],
		['PAGE','40801',jdecode('Championship+1'),jdecode(''),'/16357/40801.html','true',[],''],
		['PAGE','328931',jdecode('Championship+2'),jdecode(''),'/16357/328931.html','true',[],''],
		['PAGE','322403',jdecode('Irish+Cup'),jdecode(''),'/16357/322403.html','true',[],''],
		['PAGE','322434',jdecode('Co-operative+Insurance+'),jdecode(''),'/16357/322434.html','true',[],''],
		['PAGE','322465',jdecode('County+Antrim+Shield'),jdecode(''),'/16357/322465.html','true',[],''],
		['PAGE','322558',jdecode('Intermediate+Cup'),jdecode(''),'/16357/322558.html','true',[],''],
		['PAGE','322527',jdecode('Steel+%26+Sons+Cup'),jdecode(''),'/16357/322527.html','true',[],'']
	],''],
	['PAGE','341079',jdecode('Tables'),jdecode(''),'/341079/index.html','true',[ 
		['PAGE','34101',jdecode('Premiership'),jdecode(''),'/341079/34101.html','true',[],''],
		['PAGE','341110',jdecode('Championship+1'),jdecode(''),'/341079/341110.html','true',[],''],
		['PAGE','341141',jdecode('Championship+2'),jdecode(''),'/341079/341141.html','true',[],'']
	],''],
	['PAGE','263713',jdecode('Reserves'),jdecode(''),'/263713/index.html','true',[ 
		['PAGE','337534',jdecode('Match+Reports'),jdecode(''),'/263713/337534.html','true',[],'']
	],''],
	['PAGE','18003',jdecode('Colts+%28Under+18s%29'),jdecode(''),'/18003.html','true',[],''],
	['PAGE','329558',jdecode('Youth+Teams'),jdecode(''),'/329558/index.html','true',[ 
		['PAGE','330634',jdecode('Under+17s'),jdecode(''),'/329558/330634.html','true',[],''],
		['PAGE','18030',jdecode('Under+16s+'),jdecode(''),'/329558/18030.html','true',[],''],
		['PAGE','19603',jdecode('Under+15s'),jdecode(''),'/329558/19603.html','true',[],''],
		['PAGE','19630',jdecode('Under+14s+'),jdecode(''),'/329558/19630.html','true',[],''],
		['PAGE','19657',jdecode('Under+13s+'),jdecode(''),'/329558/19657.html','true',[],''],
		['PAGE','19711',jdecode('Under+12s+'),jdecode(''),'/329558/19711.html','true',[],''],
		['PAGE','19738',jdecode('Under+11s'),jdecode(''),'/329558/19738.html','true',[],'']
	],''],
	['PAGE','14103',jdecode('Youth+Development'),jdecode(''),'/14103.html','true',[],''],
	['PAGE','18057',jdecode('Apex+Soccer+Academy'),jdecode(''),'/18057.html','true',[],''],
	['PAGE','18111',jdecode('Sponsors'),jdecode(''),'/18111/index.html','true',[ 
		['PAGE','20303',jdecode('Match+%26+Ball+Sponsors'),jdecode(''),'/18111/20303.html','true',[],'']
	],''],
	['PAGE','448336',jdecode('Advertising'),jdecode(''),'/448336/index.html','true',[ 
		['PAGE','20357',jdecode('Ground+Advertising'),jdecode(''),'/448336/20357.html','true',[],''],
		['PAGE','448367',jdecode('Website+Advertising'),jdecode(''),'/448336/448367.html','true',[],'']
	],''],
	['PAGE','18165',jdecode('Dixon+Park'),jdecode(''),'/18165/index.html','true',[ 
		['PAGE','465722',jdecode('Ground+Improvements'),jdecode(''),'/18165/465722.html','true',[],''],
		['PAGE','18327',jdecode('Ground+Safety'),jdecode(''),'/18165/18327.html','true',[],'']
	],''],
	['PAGE','18273',jdecode('Supporters+Club'),jdecode(''),'/18273.html','true',[],''],
	['PAGE','18354',jdecode('Links'),jdecode(''),'/18354.html','true',[],''],
	['PAGE','379260',jdecode('Historical+Records'),jdecode(''),'/379260/index.html','true',[ 
		['PAGE','388202',jdecode('1990%2F91'),jdecode(''),'/379260/388202.html','true',[],''],
		['PAGE','388233',jdecode('1991%2F92'),jdecode(''),'/379260/388233.html','true',[],''],
		['PAGE','388264',jdecode('1992%2F93'),jdecode(''),'/379260/388264.html','true',[],''],
		['PAGE','388295',jdecode('1993%2F94'),jdecode(''),'/379260/388295.html','true',[],''],
		['PAGE','388326',jdecode('1994%2F95'),jdecode(''),'/379260/388326.html','true',[],''],
		['PAGE','388171',jdecode('1995%2F96'),jdecode(''),'/379260/388171.html','true',[],''],
		['PAGE','385343',jdecode('1996%2F97'),jdecode(''),'/379260/385343.html','true',[],''],
		['PAGE','385312',jdecode('1997%2F98'),jdecode(''),'/379260/385312.html','true',[],''],
		['PAGE','385281',jdecode('1998%2F99'),jdecode(''),'/379260/385281.html','true',[],''],
		['PAGE','383970',jdecode('1999%2F00'),jdecode(''),'/379260/383970.html','true',[],''],
		['PAGE','383939',jdecode('2000%2F01'),jdecode(''),'/379260/383939.html','true',[],''],
		['PAGE','382782',jdecode('2001%2F02'),jdecode(''),'/379260/382782.html','true',[],''],
		['PAGE','382751',jdecode('2002%2F03'),jdecode(''),'/379260/382751.html','true',[],''],
		['PAGE','381565',jdecode('2003%2F04'),jdecode(''),'/379260/381565.html','true',[],''],
		['PAGE','381534',jdecode('2004%2F05'),jdecode(''),'/379260/381534.html','true',[],''],
		['PAGE','380165',jdecode('2005%2F06'),jdecode(''),'/379260/380165.html','true',[],''],
		['PAGE','380134',jdecode('2006%2F07'),jdecode(''),'/379260/380134.html','true',[],''],
		['PAGE','379291',jdecode('2007%2F08'),jdecode(''),'/379260/379291.html','true',[],''],
		['PAGE','14211',jdecode('2008%2F09'),jdecode(''),'/379260/14211.html','true',[],''],
		['PAGE','419589',jdecode('2009%2F10'),jdecode(''),'/379260/419589.html','true',[],'']
	],''],
	['PAGE','158976',jdecode('Gallery+05%2F06'),jdecode(''),'/158976.html','true',[],''],
	['PAGE','213924',jdecode('Gallery+06%2F07'),jdecode(''),'/213924.html','true',[],''],
	['PAGE','263426',jdecode('Gallery+07%2F08'),jdecode(''),'/263426.html','true',[],''],
	['PAGE','324635',jdecode('Gallery+08%2F09'),jdecode(''),'/324635.html','true',[],''],
	['PAGE','422772',jdecode('Gallery+09%2F10'),jdecode(''),'/422772.html','true',[],'']];
var siteelementCount=100;
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 */					                                                            
