/* [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','4613',jdecode('n1pix+-+Bilder+%26+mehr'),jdecode(''),'/4613.html','true',[],''],
	['PAGE','45804',jdecode('Bildgalerie-Shop'),jdecode(''),'/45804.html','true',[],''],
	['PAGE','13484',jdecode('Nordlicht+Fotografie'),jdecode(''),'/13484/index.html','true',[ 
		['PAGE','39402',jdecode('Anfahrtskarte'),jdecode(''),'/13484/39402.html','true',[],''],
		['PAGE','39642',jdecode('So+finden+Sie+uns'),jdecode(''),'/13484/39642.html','true',[],'']
	],''],
	['PAGE','13403',jdecode('News'),jdecode(''),'/13403/index.html','true',[ 
		['PAGE','33302',jdecode('Kultur'),jdecode(''),'/13403/33302.html','true',[],''],
		['PAGE','33053',jdecode('Entertainment'),jdecode(''),'/13403/33053.html','true',[],''],
		['PAGE','46349',jdecode('Termine'),jdecode(''),'/13403/46349.html','true',[],''],
		['PAGE','34356',jdecode('Wissenschaft'),jdecode(''),'/13403/34356.html','true',[],''],
		['PAGE','41742',jdecode('Wirtschaft'),jdecode(''),'/13403/41742.html','true',[],''],
		['PAGE','41778',jdecode('Politik'),jdecode(''),'/13403/41778.html','true',[],''],
		['PAGE','34320',jdecode('Sport'),jdecode(''),'/13403/34320.html','true',[],''],
		['PAGE','33090',jdecode('Gesundheit'),jdecode(''),'/13403/33090.html','true',[],''],
		['PAGE','41850',jdecode('Familie'),jdecode(''),'/13403/41850.html','true',[],''],
		['PAGE','34284',jdecode('Essen+%26+Trinken'),jdecode(''),'/13403/34284.html','true',[],''],
		['PAGE','46241',jdecode('K%FCchentipp'),jdecode(''),'/13403/46241.html','true',[],''],
		['PAGE','46385',jdecode('Reise'),jdecode(''),'/13403/46385.html','true',[],''],
		['PAGE','34248',jdecode('Auto+%26+KFZ'),jdecode(''),'/13403/34248.html','true',[],''],
		['PAGE','46277',jdecode('Wohnen+%26+Bauen'),jdecode(''),'/13403/46277.html','true',[],''],
		['PAGE','46421',jdecode('Reiseinformationen'),jdecode(''),'/13403/46421.html','true',[],''],
		['PAGE','33902',jdecode('Urlaub'),jdecode(''),'/13403/33902.html','true',[],''],
		['PAGE','46205',jdecode('Schlaglichter'),jdecode(''),'/13403/46205.html','true',[],''],
		['PAGE','41814',jdecode('Kursdaten'),jdecode(''),'/13403/41814.html','true',[],''],
		['PAGE','46313',jdecode('Marktberichte'),jdecode(''),'/13403/46313.html','true',[],''],
		['PAGE','46457',jdecode('Top+%26+Flop'),jdecode(''),'/13403/46457.html','true',[],'']
	],''],
	['PAGE','41505',jdecode('Segeberger+Zeitung'),jdecode(''),'/41505/index.html','true',[ 
		['PAGE','10618',jdecode('SZ-Fotogalerie'),jdecode(''),'/41505/10618.html','true',[],'']
	],''],
	['PAGE','59549',jdecode('Karl-May-Spiele'),jdecode(''),'/59549.html','true',[],''],
	['PAGE','36584',jdecode('City+Map'),jdecode(''),'/36584.html','true',[],''],
	['PAGE','13511',jdecode('Branchen+%26+Links'),jdecode(''),'/13511.html','true',[],''],
	['PAGE','59756',jdecode('Wetter'),jdecode(''),'/59756.html','true',[],''],
	['PAGE','21905',jdecode('Aktuell'),jdecode(''),'/21905.html','true',[],''],
	['PAGE','27901',jdecode('Info'),jdecode(''),'/27901.html','true',[],''],
	['PAGE','46704',jdecode('AGB'),jdecode(''),'/46704.html','true',[],''],
	['PAGE','10003',jdecode('Impressum'),jdecode(''),'/10003.html','true',[],'']];
var siteelementCount=36;
theSitetree.topTemplateName='Movement';
					                                                                    
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 */					                                                            

