/* [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','1002',jdecode('Home'),jdecode(''),'/1002.html','true',[],''],
	['PAGE','74093',jdecode('2D%2F3D+Grundriss'),jdecode(''),'/74093/index.html','true',[ 
		['PAGE','1055',jdecode('2D+Classic'),jdecode(''),'/74093/1055.html','true',[],''],
		['PAGE','3141',jdecode('2D+Shadow'),jdecode(''),'/74093/3141.html','true',[],''],
		['PAGE','74120',jdecode('3D+Shadow'),jdecode(''),'/74093/74120.html','true',[],''],
		['PAGE','75727',jdecode('2D+Galerie'),jdecode(''),'/74093/75727.html','true',[],'']
	],''],
	['PAGE','3118',jdecode('2D+Lageplan'),jdecode(''),'/3118.html','true',[],''],
	['PAGE','72659',jdecode('3D+VisualArt+-+EFH'),jdecode(''),'/72659/index.html','true',[ 
		['PAGE','3095',jdecode('Bild+1'),jdecode(''),'/72659/3095.html','true',[],''],
		['PAGE','73693',jdecode('Bild+2'),jdecode(''),'/72659/73693.html','true',[],''],
		['PAGE','74147',jdecode('Bild+3'),jdecode(''),'/72659/74147.html','true',[],''],
		['PAGE','74995',jdecode('Bild+4'),jdecode(''),'/72659/74995.html','true',[],''],
		['PAGE','75022',jdecode('Bild+5'),jdecode(''),'/72659/75022.html','true',[],'']
	],''],
	['PAGE','72686',jdecode('3D+VisualArt+-+RH%2FDH'),jdecode(''),'/72686/index.html','true',[ 
		['PAGE','73747',jdecode('Bild+1'),jdecode(''),'/72686/73747.html','true',[],''],
		['PAGE','73774',jdecode('Bild+2'),jdecode(''),'/72686/73774.html','true',[],''],
		['PAGE','73801',jdecode('Bild+3'),jdecode(''),'/72686/73801.html','true',[],''],
		['PAGE','73828',jdecode('Bild+4'),jdecode(''),'/72686/73828.html','true',[],'']
	],''],
	['PAGE','82527',jdecode('3D+VisualArt+-+Toskana'),jdecode(''),'/82527.html','true',[],''],
	['PAGE','3395',jdecode('3D+VisualArt+-+MFH'),jdecode(''),'/3395/index.html','true',[ 
		['PAGE','77727',jdecode('Bild+1'),jdecode(''),'/3395/77727.html','true',[],''],
		['PAGE','77754',jdecode('Bild+2'),jdecode(''),'/3395/77754.html','true',[],''],
		['PAGE','77781',jdecode('Bild+3'),jdecode(''),'/3395/77781.html','true',[],''],
		['PAGE','77808',jdecode('Bild+4'),jdecode(''),'/3395/77808.html','true',[],'']
	],''],
	['PAGE','72713',jdecode('3D+VisualArt+-+Jugendstil'),jdecode(''),'/72713/index.html','true',[ 
		['PAGE','74174',jdecode('Stadthaus'),jdecode(''),'/72713/74174.html','true',[],''],
		['PAGE','74201',jdecode('Jugendstil'),jdecode(''),'/72713/74201.html','true',[],'']
	],''],
	['PAGE','4096',jdecode('3D+VisualArt+-+Gewerbe'),jdecode(''),'/4096.html','true',[],''],
	['PAGE','74228',jdecode('3D+Interieur'),jdecode(''),'/74228.html','true',[],''],
	['PAGE','3418',jdecode('Bauschilder'),jdecode(''),'/3418.html','true',[],''],
	['PAGE','75754',jdecode('Architektur-Design'),jdecode(''),'/75754.html','true',[],''],
	['PAGE','85427',jdecode('Links'),jdecode(''),'/85427.html','true',[],''],
	['PAGE','2736',jdecode('Kontakt'),jdecode(''),'/2736/index.html','true',[ 
		['PAGE','2837',jdecode('Kontakt'),jdecode(''),'/2736/2837.html','false',[],'']
	],''],
	['PAGE','85454',jdecode('Impressum'),jdecode(''),'/85454.html','true',[],'']];
var siteelementCount=35;
theSitetree.topTemplateName='Moonflight';
					                                                                    
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 */					                                                            
