/* [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','4901',jdecode('CTDA'),jdecode(''),'/4901.html','true',[],''],
	['PAGE','4928',jdecode('Die+Basis'),jdecode(''),'/4928.html','true',[],''],
	['PAGE','4955',jdecode('Wracks'),jdecode(''),'/4955.html','true',[],''],
	['PAGE','24810',jdecode('Bilder'),jdecode(''),'/24810.html','true',[],''],
	['PAGE','4982',jdecode('Sonstiges+%2F+Touren'),jdecode(''),'/4982/index.html','true',[ 
		['PAGE','53310',jdecode('Suex+Scooter'),jdecode(''),'/4982/53310.html','true',[],''],
		['PAGE','5009',jdecode('Links'),jdecode(''),'/4982/5009.html','true',[],''],
		['PAGE','58104',jdecode('Sv.Istvan+Tour+2005'),jdecode(''),'/4982/58104.html','true',[],''],
		['PAGE','53541',jdecode('News'),jdecode(''),'/4982/53541.html','true',[],''],
		['PAGE','70104',jdecode('Fu+Shan+Hai+Tour+Juni+2007'),jdecode(''),'/4982/70104.html','true',[],'']
	],''],
	['PAGE','48701',jdecode('Ausbildung'),jdecode(''),'/48701/index.html','true',[ 
		['PAGE','49138',jdecode('Nitrox'),jdecode(''),'/48701/49138.html','true',[],''],
		['PAGE','49165',jdecode('Advanced++Nitrox+%2F+Decompression+Procedures'),jdecode(''),'/48701/49165.html','true',[],''],
		['PAGE','49192',jdecode('Extendet+Range+%2F+Trimix'),jdecode(''),'/48701/49192.html','true',[],'']
	],''],
	['PAGE','80604',jdecode('Forum'),jdecode(''),'/80604.html','true',[],''],
	['PAGE','47602',jdecode('Meinungen'),jdecode(''),'/47602/index.html','true',[ 
		['PAGE','47603',jdecode('Eintr%E4ge'),jdecode(''),'/47602/47603.html','true',[],'']
	],''],
	['PAGE','57005',jdecode('Bilderalbum'),jdecode(''),'/57005.html','true',[],''],
	['PAGE','58504',jdecode('Videos'),jdecode(''),'/58504.html','true',[],''],
	['PAGE','68304',jdecode('Impressum'),jdecode(''),'/68304.html','true',[],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Circulation';
					                                                                    
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 */					                                                            

