/* [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','4436',jdecode('Home'),jdecode(''),'/4436.html','true',[],''],
	['PAGE','16180',jdecode('News+%26+Information'),jdecode(''),'/16180.html','true',[],''],
	['PAGE','55132',jdecode('Concerts'),jdecode(''),'/55132/index.html','true',[ 
		['PAGE','55163',jdecode('Rehearsal+Schedule'),jdecode(''),'/55132/55163.html','true',[],''],
		['PAGE','16207',jdecode('Concerts+History'),jdecode(''),'/55132/16207.html','true',[],'']
	],''],
	['PAGE','61801',jdecode('MCO+Repertoire'),jdecode(''),'/61801/index.html','true',[ 
		['PAGE','59301',jdecode('Repertoire+by+Composer'),jdecode(''),'/61801/59301.html','true',[],''],
		['PAGE','61832',jdecode('Repertoire+by+Work'),jdecode(''),'/61801/61832.html','true',[],'']
	],''],
	['PAGE','4501',jdecode('MCO+In+Action'),jdecode(''),'/4501.html','true',[],''],
	['PAGE','56801',jdecode('MCO+Personalities'),jdecode(''),'/56801.html','true',[],''],
	['PAGE','61768',jdecode('Administration'),jdecode(''),'/61768/index.html','true',[ 
		['PAGE','56201',jdecode('Constitution'),jdecode(''),'/61768/56201.html','true',[],''],
		['PAGE','16153',jdecode('Membership'),jdecode(''),'/61768/16153.html','true',[],''],
		['PAGE','53325',jdecode('MCO+Committee'),jdecode(''),'/61768/53325.html','true',[],'']
	],''],
	['PAGE','55402',jdecode('Minutes+of+Meetings'),jdecode(''),'/55402/index.html','true',[ 
		['PAGE','55101',jdecode('AGM+Minutes'),jdecode(''),'/55402/55101.html','true',[],''],
		['PAGE','55371',jdecode('Committee+Minutes'),jdecode(''),'/55402/55371.html','true',[],'']
	],''],
	['PAGE','16234',jdecode('Contact'),jdecode(''),'/16234.html','true',[],''],
	['PAGE','54302',jdecode('Guestbook'),jdecode(''),'/54302/index.html','true',[ 
		['PAGE','54303',jdecode('Read+Guestbook'),jdecode(''),'/54302/54303.html','true',[],'']
	],''],
	['PAGE','54361',jdecode('How+to+find+us'),jdecode(''),'/54361/index.html','true',[ 
		['PAGE','54396',jdecode('Direction'),jdecode(''),'/54361/54396.html','true',[],'']
	],''],
	['PAGE','16126',jdecode('About+us'),jdecode(''),'/16126.html','true',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Deepcolor';
					                                                                    
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 */					                                                            
