/* [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','74946',jdecode('Performances'),jdecode(''),'/74946.html','true',[],''],
	['PAGE','4613',jdecode('Works'),jdecode(''),'/4613/index.html','true',[ 
		['PAGE','65496',jdecode('Solo+Piano'),jdecode(''),'/4613/65496.html','true',[],''],
		['PAGE','76264',jdecode('Songs'),jdecode(''),'/4613/76264.html','true',[],''],
		['PAGE','73854',jdecode('Verlaine+Poem'),jdecode(''),'/4613/73854.html','true',[],''],
		['PAGE','63796',jdecode('Programme+Notes+1'),jdecode(''),'/4613/63796.html','true',[],''],
		['PAGE','67718',jdecode('Programme+Notes+2'),jdecode(''),'/4613/67718.html','true',[],''],
		['PAGE','67806',jdecode('Programme+Notes+3'),jdecode(''),'/4613/67806.html','true',[],''],
		['PAGE','67873',jdecode('Programme+Notes+4'),jdecode(''),'/4613/67873.html','true',[],''],
		['PAGE','75546',jdecode('Programme+Notes+5'),jdecode(''),'/4613/75546.html','true',[],''],
		['PAGE','76648',jdecode('Programme+Notes+6'),jdecode(''),'/4613/76648.html','true',[],''],
		['PAGE','49801',jdecode('Prizes'),jdecode(''),'/4613/49801.html','true',[],''],
		['PAGE','70746',jdecode('5+Songs+of+Pindar'),jdecode(''),'/4613/70746.html','true',[],''],
		['PAGE','4667',jdecode('Marine+%E0+travers+les+arbres'),jdecode(''),'/4613/4667.html','true',[],''],
		['PAGE','45201',jdecode('Marine+Performances'),jdecode(''),'/4613/45201.html','true',[],''],
		['PAGE','4748',jdecode('Collaboration'),jdecode(''),'/4613/4748.html','true',[],''],
		['PAGE','47001',jdecode('Kingma+Alto+Flute'),jdecode(''),'/4613/47001.html','true',[],'']
	],''],
	['PAGE','59274',jdecode('News'),jdecode(''),'/59274.html','true',[],''],
	['PAGE','43594',jdecode('Publishing'),jdecode(''),'/43594.html','true',[],''],
	['PAGE','51201',jdecode('Sacred+Choral+Music'),jdecode(''),'/51201/index.html','true',[ 
		['PAGE','72873',jdecode('Secular+Choral'),jdecode(''),'/51201/72873.html','true',[],''],
		['PAGE','43563',jdecode('Be+Still+%26+Know'),jdecode(''),'/51201/43563.html','true',[],''],
		['PAGE','9313',jdecode('Online+Dealers'),jdecode(''),'/51201/9313.html','true',[],''],
		['PAGE','53401',jdecode('Texts%3A+1-3'),jdecode(''),'/51201/53401.html','true',[],''],
		['PAGE','55901',jdecode('Texts%3A+4-5'),jdecode(''),'/51201/55901.html','true',[],''],
		['PAGE','55932',jdecode('Texts%3A+6-8'),jdecode(''),'/51201/55932.html','true',[],''],
		['PAGE','61477',jdecode('Texts%3A+9-10'),jdecode(''),'/51201/61477.html','true',[],''],
		['PAGE','68596',jdecode('Texts%3A+11-12'),jdecode(''),'/51201/68596.html','true',[],''],
		['PAGE','73661',jdecode('Texts%3A+13'),jdecode(''),'/51201/73661.html','true',[],''],
		['PAGE','68296',jdecode('Choral+Collects'),jdecode(''),'/51201/68296.html','true',[],'']
	],''],
	['PAGE','12005',jdecode('CD+Recordings'),jdecode(''),'/12005/index.html','true',[ 
		['PAGE','62474',jdecode('Regina+Caeli+Tracks'),jdecode(''),'/12005/62474.html','true',[],'']
	],''],
	['PAGE','4694',jdecode('Radio+Broadcasts'),jdecode(''),'/4694.html','true',[],''],
	['PAGE','43532',jdecode('Reviews'),jdecode(''),'/43532.html','true',[],''],
	['PAGE','43501',jdecode('Links'),jdecode(''),'/43501.html','true',[],''],
	['PAGE','57448',jdecode('Contact'),jdecode(''),'/57448/index.html','true',[ 
		['PAGE','57487',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/57448/57487.html','false',[],'']
	],'']];
var siteelementCount=38;
theSitetree.topTemplateName='Startup';
					                                                                    
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 */					                                                            
