/* [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','4498',jdecode('Zu+Hause'),jdecode(''),'/4498.html','true',[],''],
['PAGE','18531',jdecode('Tauchprofil'),jdecode(''),'/18531.html','true',[],''],
['PAGE','18535',jdecode('Aktuelles'),jdecode(''),'/18535.html','true',[],''],
['PAGE','4555',jdecode('Der+Steinbruch'),jdecode(''),'/4555/index.html','true',[ 
	['PAGE','4582',jdecode('Historisches'),jdecode(''),'/4555/4582.html','true',[],''],
	['PAGE','18503',jdecode('Der+See+heute'),jdecode(''),'/4555/18503.html','true',[],'']
	],''
],
['PAGE','4501',jdecode('Die+Basis'),jdecode(''),'/4501/index.html','true',[ 
	['PAGE','4502',jdecode('Das+Hauptgeb&auml;ude'),jdecode(''),'/4501/4502.html', 
'true',[],''],
	['PAGE','4503',jdecode('Die+Bugalows'),jdecode(''),'/4501/4503.html','true',[],''],
['PAGE','4772',jdecode('Chronik+der+Basis'),jdecode(''),'/4501/4772.html','true',[],'']
	],''
],
['PAGE','18530',jdecode('360%B0-Ansicht'),jdecode(''),'/18530.html','true',[],''],
['PAGE','18557',jdecode('Galerie'),jdecode(''),'/18557.html','true',[],''],
['PAGE','4744',jdecode('Kontakt'),jdecode(''),'/4744/index.html','true',[
	['PAGE','4853',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),
	'/4744/4771/4853.html','false',[],'']
	],''
],
['PAGE','4771',jdecode('So+findet+ihr+uns'),jdecode(''),'/4771.html','true',[],''],
['PAGE','19126',jdecode('G%E4stebuch'),jdecode(''),'/19126/index.html','true',[ 
	['PAGE','19127',jdecode('Eintr%E4ge'),jdecode(''),'/19126/19127.html','true',[],'']
	],''],
['PAGE','21701',jdecode('Newsletter'),jdecode(''),'/21701/index.html','true',[

['PAGE','21702',jdecode('Newsletter+abonnieren'),jdecode(''),'/21701/21702.html','true',[
['PAGE','22027',jdecode('Newsletter+abonnieren+%28Folgeseite%29'),jdecode(''),
	'/21701/22001/22027.html','false',[],'']
],''],
['PAGE','21703',jdecode('Newsletter+abbestellen'),jdecode(''),'/21701/21703.html','true',[
['PAGE','22107',jdecode('Newsletter+abbestellen+%28Folgeseite%29'),jdecode(''),
	'/21701/22001/22107.html','false',[],'']
],'']
],''],
['PAGE','18565',jdecode('Links'),jdecode(''),'/18565.html','true',[],''],
['PAGE','18558',jdecode('Impressum'),jdecode(''),'/18558.html','true',[],'']
];
var siteelementCount=24;
theSitetree.topTemplateName='Inspiration';
					                                                                    
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 */					                                                            
