/* [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','1153',jdecode('Home'),jdecode(''),'/1153/index.html','true',[ 
		['PAGE','79012',jdecode('Pers%F6nliches'),jdecode(''),'/1153/79012.html','true',[],''],
		['PAGE','1643',jdecode('Impressum'),jdecode(''),'/1153/1643.html','true',[],'']
	],''],
	['PAGE','1252',jdecode('Portfolio'),jdecode(''),'/1252/index.html','true',[ 
		['PAGE','78413',jdecode('New'),jdecode(''),'/1252/78413.html','true',[],''],
		['PAGE','65613',jdecode('Portrait'),jdecode(''),'/1252/65613.html','true',[],''],
		['PAGE','67513',jdecode('Fashion'),jdecode(''),'/1252/67513.html','true',[],''],
		['PAGE','69313',jdecode('Nudes'),jdecode(''),'/1252/69313.html','true',[],''],
		['PAGE','70313',jdecode('Body-Art'),jdecode(''),'/1252/70313.html','true',[],'']
	],''],
	['PAGE','27000',jdecode('Pay-Shootings'),jdecode(''),'/27000/index.html','true',[ 
		['PAGE','12121',jdecode('Feedback-Formular+%28Folgeseite%29'),jdecode(''),'/27000/12121.html','false',[],'']
	],''],
	['PAGE','19686',jdecode('Gratis-Shootings'),jdecode(''),'/19686/index.html','true',[ 
		['PAGE','19740',jdecode('Kunst-Projekte'),jdecode(''),'/19686/19740.html','true',[],''],
		['PAGE','28005',jdecode('Modalit%E4ten'),jdecode(''),'/19686/28005.html','true',[],'']
	],''],
	['PAGE','1229',jdecode('Informationen'),jdecode(''),'/1229/index.html','true',[ 
		['PAGE','1206',jdecode('Studio+%26+Labor'),jdecode(''),'/1229/1206.html','true',[],''],
		['PAGE','19116',jdecode('Termine'),jdecode(''),'/1229/19116.html','true',[],''],
		['PAGE','19089',jdecode('Preise'),jdecode(''),'/1229/19089.html','true',[],''],
		['PAGE','19143',jdecode('Kontakt'),jdecode(''),'/1229/19143.html','true',[],''],
		['PAGE','19170',jdecode('Anfahrt'),jdecode(''),'/1229/19170.html','true',[],''],
		['PAGE','5095',jdecode('FAQ'),jdecode(''),'/1229/5095.html','true',[],''],
		['PAGE','1620',jdecode('Anfrage-Formular'),jdecode(''),'/1229/1620.html','true',[],'']
	],''],
	['PAGE','73512',jdecode('Links'),jdecode(''),'/73512.html','true',[],'']];
var siteelementCount=23;
theSitetree.topTemplateName='Galerie';
					                                                                    
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 */					                                                            
