/* [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','4466',jdecode('Home'),jdecode(''),'/4466.html','true',[],''],
	['PAGE','9601',jdecode('Fjord-Fishing+AS'),jdecode(''),'/9601/index.html','true',[ 
		['PAGE','10601',jdecode('Aktuelles'),jdecode(''),'/9601/10601.html','true',[],''],
		['PAGE','10663',jdecode('Veranstaltungen'),jdecode(''),'/9601/10663.html','true',[],'']
	],''],
	['PAGE','9632',jdecode('Ferienh%E4user'),jdecode(''),'/9632/index.html','true',[ 
		['PAGE','10725',jdecode('Anreise'),jdecode(''),'/9632/10725.html','true',[],''],
		['PAGE','10694',jdecode('Online-Anfragen'),jdecode(''),'/9632/10694/index.html','true',[ 
			['PAGE','11502',jdecode('Online-Anfragen+%28Folgeseite%29'),jdecode(''),'/9632/10694/11502.html','false',[],'']
		],'']
	],''],
	['PAGE','9801',jdecode('Ihr+Ferienort'),jdecode(''),'/9801/index.html','true',[ 
		['PAGE','10925',jdecode('Aktuelle+Wetterlage'),jdecode(''),'/9801/10925.html','true',[],''],
		['PAGE','10863',jdecode('Geographische+Lage'),jdecode(''),'/9801/10863.html','true',[],''],
		['PAGE','10894',jdecode('Klimatabelle'),jdecode(''),'/9801/10894.html','true',[],''],
		['PAGE','10801',jdecode('Der+Ort'),jdecode(''),'/9801/10801.html','true',[],''],
		['PAGE','10832',jdecode('Die+Umgebung'),jdecode(''),'/9801/10832.html','true',[],''],
		['PAGE','10956',jdecode('Webcam'),jdecode(''),'/9801/10956.html','true',[],'']
	],''],
	['PAGE','9832',jdecode('Zum+Yachthafen'),jdecode(''),'/9832/index.html','true',[ 
		['PAGE','11101',jdecode('Waeller+Marina'),jdecode(''),'/9832/11101.html','true',[],''],
		['PAGE','11018',jdecode('Aktueller+Baustatus'),jdecode(''),'/9832/11018.html','true',[],'']
	],''],
	['PAGE','9925',jdecode('%DCber+uns'),jdecode(''),'/9925/index.html','true',[ 
		['PAGE','11163',jdecode('AGBs'),jdecode(''),'/9925/11163.html','true',[],''],
		['PAGE','10632',jdecode('Historie'),jdecode(''),'/9925/10632.html','true',[],''],
		['PAGE','11194',jdecode('Impressum'),jdecode(''),'/9925/11194.html','true',[],''],
		['PAGE','11225',jdecode('Disclaimer'),jdecode(''),'/9925/11225.html','true',[],'']
	],''],
	['PAGE','9863',jdecode('Referenzen'),jdecode(''),'/9863/index.html','true',[ 
		['PAGE','11132',jdecode('Kundenstimmen'),jdecode(''),'/9863/11132.html','true',[],''],
		['PAGE','11701',jdecode('G%E4stebuch'),jdecode(''),'/9863/11701.html','true',[],'']
	],''],
	['PAGE','9894',jdecode('Kontakt'),jdecode(''),'/9894/index.html','true',[ 
		['PAGE','12405',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/9894/12405.html','false',[],'']
	],''],
	['PAGE','13102',jdecode('G%E4stebuch'),jdecode(''),'/13102/index.html','true',[ 
		['PAGE','13103',jdecode('Eintr%E4ge'),jdecode(''),'/13102/13103.html','true',[],'']
	],'']];
var siteelementCount=30;
theSitetree.topTemplateName='Activate';
					                                                                    
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 */					                                                            
