/* [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','4598',jdecode('Home'),jdecode(''),'/4598/index.html','true',[ 
		['PAGE','4682',jdecode('Wo+bin+ich+hier%3F'),jdecode(''),'/4598/4682.html','true',[],''],
		['PAGE','5165',jdecode('Auftragsarbeiten'),jdecode(''),'/4598/5165.html','true',[],''],
		['PAGE','33026',jdecode('Impressum'),jdecode(''),'/4598/33026.html','true',[],''],
		['PAGE','26546',jdecode('Ein+Bild+entsteht'),jdecode(''),'/4598/26546.html','true',[],''],
		['PAGE','42834',jdecode('Termine'),jdecode(''),'/4598/42834.html','true',[],'']
	],''],
	['PAGE','5030',jdecode('Was+macht+der%3F'),jdecode(''),'/5030/index.html','true',[ 
		['PAGE','5057',jdecode('Stilleben1'),jdecode(''),'/5030/5057.html','true',[],''],
		['PAGE','15986',jdecode('Stilleben2'),jdecode(''),'/5030/15986.html','true',[],''],
		['PAGE','30118',jdecode('B.Rossas+Welt'),jdecode(''),'/5030/30118.html','true',[],''],
		['PAGE','16386',jdecode('Impressionen'),jdecode(''),'/5030/16386.html','true',[],''],
		['PAGE','14385',jdecode('Aktstudien'),jdecode(''),'/5030/14385.html','true',[],''],
		['PAGE','29072',jdecode('Portraitstudien'),jdecode(''),'/5030/29072.html','true',[],''],
		['PAGE','34718',jdecode('Impressioniertes'),jdecode(''),'/5030/34718.html','true',[],''],
		['PAGE','38518',jdecode('Stilleben-Album'),jdecode(''),'/5030/38518.html','true',[],'']
	],''],
	['PAGE','25719',jdecode('The+true+story'),jdecode(''),'/25719/index.html','true',[ 
		['PAGE','21973',jdecode('The+true+story+I'),jdecode(''),'/25719/21973.html','true',[],''],
		['PAGE','22419',jdecode('The+true+story+II'),jdecode(''),'/25719/22419.html','true',[],''],
		['PAGE','22446',jdecode('The+true+story+III'),jdecode(''),'/25719/22446.html','true',[],''],
		['PAGE','22473',jdecode('The+true+story+IV'),jdecode(''),'/25719/22473.html','true',[],''],
		['PAGE','25746',jdecode('The+true+story+V'),jdecode(''),'/25719/25746.html','true',[],''],
		['PAGE','35419',jdecode('The+true+story+VI'),jdecode(''),'/25719/35419.html','true',[],'']
	],''],
	['PAGE','21919',jdecode('Ein+Cyberm%E4rchen'),jdecode(''),'/21919/index.html','true',[ 
		['PAGE','21946',jdecode('Hanks+story'),jdecode(''),'/21919/21946.html','true',[],''],
		['PAGE','23619',jdecode('Hanks+story+II'),jdecode(''),'/21919/23619.html','true',[],''],
		['PAGE','25019',jdecode('Hanks+story+III'),jdecode(''),'/21919/25019.html','true',[],''],
		['PAGE','25046',jdecode('Hanks+story+IV'),jdecode(''),'/21919/25046.html','true',[],''],
		['PAGE','25773',jdecode('Hanks+story+V'),jdecode(''),'/21919/25773.html','true',[],''],
		['PAGE','40621',jdecode('Hanks+Story+VI'),jdecode(''),'/21919/40621.html','true',[],''],
		['PAGE','41017',jdecode('Hanks+Story+VII'),jdecode(''),'/21919/41017.html','true',[],''],
		['PAGE','41217',jdecode('Hanks+Story+VIII'),jdecode(''),'/21919/41217.html','true',[],''],
		['PAGE','42417',jdecode('Hanks+Story+IX'),jdecode(''),'/21919/42417.html','true',[],''],
		['PAGE','42617',jdecode('Hanks+Story+X'),jdecode(''),'/21919/42617.html','true',[],'']
	],''],
	['PAGE','7010',jdecode('G%E4stebuch'),jdecode(''),'/7010/index.html','true',[ 
		['PAGE','7011',jdecode('Eintr%E4ge'),jdecode(''),'/7010/7011.html','true',[],'']
	],''],
	['PAGE','36273',jdecode('Links'),jdecode(''),'/36273.html','true',[],'']];
var siteelementCount=36;
theSitetree.topTemplateName='Linear';
					                                                                    
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 */					                                                            
