/* [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','31458',jdecode('Tutorial+Schedule'),jdecode(''),'/31458.html','true',[],''],
	['PAGE','45391',jdecode('Past+Tutorial+Cases'),jdecode(''),'/45391/index.html','true',[ 
		['PAGE','47473',jdecode('March'),jdecode(''),'/45391/47473.html','true',[],'']
	],''],
	['PAGE','51973',jdecode('Cardiac+Tutorial'),jdecode(''),'/51973.html','true',[],''],
	['PAGE','50080',jdecode('Bonus+Non-Chest+Classics'),jdecode(''),'/50080/index.html','true',[ 
		['PAGE','50107',jdecode('March'),jdecode(''),'/50080/50107.html','true',[],'']
	],''],
	['PAGE','88972',jdecode('2003-2004+Cases'),jdecode(''),'/88972/index.html','true',[ 
		['PAGE','45418',jdecode('March+Cases+of+the+Week'),jdecode(''),'/88972/45418.html','true',[],''],
		['PAGE','70873',jdecode('April+Cases+of+the+Week'),jdecode(''),'/88972/70873.html','true',[],''],
		['PAGE','79973',jdecode('May+Cases+of+the+Week'),jdecode(''),'/88972/79973.html','true',[],''],
		['PAGE','88373',jdecode('June+Cases+of+the+Week'),jdecode(''),'/88972/88373.html','true',[],'']
	],''],
	['PAGE','97772',jdecode('2004-2005+Cases'),jdecode(''),'/97772/index.html','true',[ 
		['PAGE','91172',jdecode('Sept+Cases+of+the+Week'),jdecode(''),'/97772/91172.html','true',[],''],
		['PAGE','92640',jdecode('October+Cases+of+the+Week'),jdecode(''),'/97772/92640.html','true',[],'']
	],''],
	['PAGE','65173',jdecode('Case+of+the+Week'),jdecode(''),'/65173/index.html','true',[ 
		['PAGE','89337',jdecode('Past+example'),jdecode(''),'/65173/89337.html','true',[],'']
	],''],
	['PAGE','67173',jdecode('Hall+of+Fame'),jdecode(''),'/67173/index.html','true',[ 
		['PAGE','86673',jdecode('2004+Winners+and+Standings'),jdecode(''),'/67173/86673.html','true',[],'']
	],''],
	['PAGE','39916',jdecode('Guestbook'),jdecode(''),'/39916/index.html','true',[ 
		['PAGE','39917',jdecode('Read+Guestbook'),jdecode(''),'/39916/39917.html','true',[],'']
	],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Kreis';
					                                                                    
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 */					                                                            
