/* [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','4519',jdecode('Home'),jdecode(''),'/4519.html','true',[],''],
	['PAGE','4576',jdecode('Wir+%FCber+uns'),jdecode(''),'/4576/index.html','true',[ 
		['PAGE','4603',jdecode('Adresse'),jdecode(''),'/4576/4603/index.html','true',[ 
			['PAGE','6008',jdecode('Adresse+%28Folgeseite%29'),jdecode(''),'/4576/4603/6008.html','false',[],'']
		],''],
		['PAGE','4630',jdecode('Unsere+Geschichte'),jdecode(''),'/4576/4630.html','true',[],''],
		['PAGE','4657',jdecode('Unser+Team'),jdecode(''),'/4576/4657.html','true',[],''],
		['PAGE','4684',jdecode('%D6ffnungszeiten'),jdecode(''),'/4576/4684.html','true',[],'']
	],''],
	['PAGE','4711',jdecode('Kinoprogramm'),jdecode(''),'/4711.html','true',[],''],
	['PAGE','4738',jdecode('Specials'),jdecode(''),'/4738/index.html','true',[ 
		['PAGE','4765',jdecode('Happy+Monday'),jdecode(''),'/4738/4765.html','true',[],''],
		['PAGE','4792',jdecode('Sneak+Preview'),jdecode(''),'/4738/4792.html','true',[],''],
		['PAGE','6702',jdecode('Previews'),jdecode(''),'/4738/6702.html','true',[],''],
		['PAGE','7168',jdecode('Chat'),jdecode(''),'/4738/7168.html','true',[],'']
	],''],
	['PAGE','5118',jdecode('G%E4stebuch'),jdecode(''),'/5118/index.html','true',[ 
		['PAGE','5119',jdecode('Eintr%E4ge'),jdecode(''),'/5118/5119.html','true',[],'']
	],''],
	['PAGE','5254',jdecode('Fotos'),jdecode(''),'/5254.html','true',[],''],
	['PAGE','5289',jdecode('Anfahrt'),jdecode(''),'/5289.html','true',[],''],
	['PAGE','9801',jdecode('Kunden-Login'),jdecode(''),'/9801.html','true',[],''],
	['PAGE','11701',jdecode('Impressum'),jdecode(''),'/11701.html','true',[],''],
	['PAGE','16301',jdecode('Interessante+Partnerseiten'),jdecode(''),'/16301.html','true',[],''],
	['PAGE','11739',jdecode('Caf%E9+WESERBLICK'),jdecode(''),'/11739/index.html','true',[ 
		['PAGE','11771',jdecode('Fotos'),jdecode(''),'/11739/11771.html','true',[],'']
	],''],
	['PAGE','13302',jdecode('Open+Air+vom+09.+August+2008'),jdecode(''),'/13302.html','true',[],''],
	['PAGE','14002',jdecode('Bond+Premiere+05.11.08'),jdecode(''),'/14002.html','true',[],''],
	['PAGE','14802',jdecode('80+Jahre+Filmhof+Hoya'),jdecode(''),'/14802.html','true',[],''],
	['PAGE','15901',jdecode('Kino+und+mehr...'),jdecode(''),'/15901.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Enjoy';
					                                                                    
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 */					                                                            
