/* [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','52013',jdecode('Symposium+2009'),jdecode(''),'/52013.html','true',[],''],
	['PAGE','50813',jdecode('Symposium+2008'),jdecode(''),'/50813.html','true',[],''],
	['PAGE','13201',jdecode('Symposium+2007'),jdecode(''),'/13201.html','true',[],''],
	['PAGE','24542',jdecode('Symposium+2006'),jdecode(''),'/24542.html','true',[],''],
	['PAGE','7155',jdecode('Symposium+2005'),jdecode(''),'/7155/index.html','true',[ 
		['PAGE','17626',jdecode('2005+Schedule'),jdecode(''),'/7155/17626.html','true',[],'']
	],''],
	['PAGE','24573',jdecode('John+James+WS'),jdecode(''),'/24573/index.html','true',[ 
		['PAGE','24427',jdecode('About+John+James'),jdecode(''),'/24573/24427.html','true',[],'']
	],''],
	['PAGE','21201',jdecode('Artists+Guild'),jdecode(''),'/21201/index.html','true',[ 
		['PAGE','28301',jdecode('Newsletter'),jdecode(''),'/21201/28301.html','true',[],'']
	],''],
	['PAGE','24697',jdecode('NHAG+Papers'),jdecode(''),'/24697.html','true',[],''],
	['PAGE','12232',jdecode('New+Harmony+Pics'),jdecode(''),'/12232.html','true',[],''],
	['PAGE','7128',jdecode('Contact'),jdecode(''),'/7128.html','true',[],''],
	['PAGE','12801',jdecode('Links'),jdecode(''),'/12801.html','true',[],''],
	['PAGE','25402',jdecode('Guestbook'),jdecode(''),'/25402/index.html','true',[ 
		['PAGE','25403',jdecode('Read+Guestbook'),jdecode(''),'/25402/25403.html','true',[],'']
	],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Seifenblase';
					                                                                    
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 */					                                                            
