/* [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','1003',jdecode('BS+Home'),jdecode(''),'/1003.html','true',[],''],
	['PAGE','36268',jdecode('Neues'),jdecode(''),'/36268/index.html','true',[ 
		['PAGE','39678',jdecode('Reisef%FChrer+CV'),jdecode(''),'/36268/39678.html','true',[],''],
		['PAGE','12758',jdecode('CV-Alemanha'),jdecode(''),'/36268/12758.html','true',[],'']
	],''],
	['PAGE','1079',jdecode('Print+%26+TV'),jdecode(''),'/1079/index.html','true',[ 
		['PAGE','10845',jdecode('Referenzen'),jdecode(''),'/1079/10845.html','true',[],''],
		['PAGE','1056',jdecode('Texte'),jdecode(''),'/1079/1056.html','true',[],''],
		['PAGE','10822',jdecode('Texte+I.'),jdecode(''),'/1079/10822.html','true',[],''],
		['PAGE','18503',jdecode('PR+%26+Werbung'),jdecode(''),'/1079/18503.html','true',[],'']
	],''],
	['PAGE','4295',jdecode('Individuelles'),jdecode(''),'/4295/index.html','true',[ 
		['PAGE','46786',jdecode('Kurzgeschichten'),jdecode(''),'/4295/46786.html','true',[],''],
		['PAGE','46755',jdecode('M%E4rchen'),jdecode(''),'/4295/46755.html','true',[],''],
		['PAGE','47598',jdecode('Gedichte'),jdecode(''),'/4295/47598.html','true',[],''],
		['PAGE','2203',jdecode('Gedichte+I'),jdecode(''),'/4295/2203.html','true',[],''],
		['PAGE','45955',jdecode('Gedichte+II'),jdecode(''),'/4295/45955.html','true',[],''],
		['PAGE','46917',jdecode('Neue+Gedichte'),jdecode(''),'/4295/46917.html','true',[],''],
		['PAGE','46886',jdecode('Mystik'),jdecode(''),'/4295/46886.html','true',[],''],
		['PAGE','12418',jdecode('Krimi'),jdecode(''),'/4295/12418.html','true',[],''],
		['PAGE','48166',jdecode('Belletristik'),jdecode(''),'/4295/48166.html','true',[],''],
		['PAGE','38558',jdecode('Fragmente'),jdecode(''),'/4295/38558.html','true',[],'']
	],''],
	['PAGE','1125',jdecode('Cabo+Verde'),jdecode(''),'/1125/index.html','true',[ 
		['PAGE','1148',jdecode('Tiempo+y+Silencio'),jdecode(''),'/1125/1148.html','true',[],''],
		['PAGE','2697',jdecode('Tiempo+y+Silencio+II.'),jdecode(''),'/1125/2697.html','true',[],''],
		['PAGE','1171',jdecode('Caminho+longue'),jdecode(''),'/1125/1171.html','true',[],''],
		['PAGE','23230',jdecode('Caminho+longue+II.'),jdecode(''),'/1125/23230.html','true',[],''],
		['PAGE','23253',jdecode('Terra+perdido'),jdecode(''),'/1125/23253.html','true',[],''],
		['PAGE','1194',jdecode('Futura'),jdecode(''),'/1125/1194.html','true',[],''],
		['PAGE','1217',jdecode('Imagem+e+fotos'),jdecode(''),'/1125/1217.html','true',[],''],
		['PAGE','25981',jdecode('Touristik'),jdecode(''),'/1125/25981.html','true',[],'']
	],''],
	['PAGE','35589',jdecode('Photos'),jdecode(''),'/35589/index.html','true',[ 
		['PAGE','35616',jdecode('Impressionen+'),jdecode(''),'/35589/35616.html','true',[],''],
		['PAGE','12610',jdecode('Galeria'),jdecode(''),'/35589/12610.html','true',[],'']
	],''],
	['PAGE','32799',jdecode('Links'),jdecode(''),'/32799/index.html','true',[ 
		['PAGE','1240',jdecode('...+zu+Lande...+'),jdecode(''),'/32799/1240.html','true',[],''],
		['PAGE','31889',jdecode('...+zu+Wasser...'),jdecode(''),'/32799/31889.html','true',[],'']
	],''],
	['PAGE','1263',jdecode('Kontakt'),jdecode(''),'/1263/index.html','true',[ 
		['PAGE','14802',jdecode('Contact'),jdecode(''),'/1263/14802.html','false',[],'']
	],''],
	['PAGE','49066',jdecode(''),jdecode(''),'/49066.html','true',[],'']];
var siteelementCount=38;
theSitetree.topTemplateName='Maschine';
					                                                                    
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 */					                                                            

