/* [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','4554',jdecode('Home'),jdecode(''),'/4554.html','true',[],''],
	['PAGE','10129',jdecode('MBL+Modellbauer'),jdecode(''),'/10129/index.html','true',[ 
		['PAGE','118550',jdecode('J%FCrgen+Storck'),jdecode(''),'/10129/118550.html','true',[],''],
		['PAGE','129450',jdecode('J%FCrgens+K%E4fersammlung'),jdecode(''),'/10129/129450.html','true',[],''],
		['PAGE','36147',jdecode('Peter+Schu'),jdecode(''),'/10129/36147.html','true',[],''],
		['PAGE','36174',jdecode('Michael+Lagerpusch'),jdecode(''),'/10129/36174.html','true',[],''],
		['PAGE','36201',jdecode('Carsten+Merz'),jdecode(''),'/10129/36201.html','true',[],''],
		['PAGE','80080',jdecode('Conny+Storck'),jdecode(''),'/10129/80080.html','true',[],''],
		['PAGE','90009',jdecode('Annette+Lagerpusch'),jdecode(''),'/10129/90009.html','true',[],''],
		['PAGE','158635',jdecode('Nico+Storck+'),jdecode(''),'/10129/158635.html','true',[],''],
		['PAGE','90050',jdecode('Stefan+Rhein'),jdecode(''),'/10129/90050.html','true',[],'']
	],''],
	['PAGE','10183',jdecode('Bilder+on+Tour'),jdecode(''),'/10183/index.html','true',[ 
		['PAGE','52320',jdecode('Banana+Joe'),jdecode(''),'/10183/52320.html','true',[],''],
		['PAGE','114835',jdecode('Bergen-Enkheim'),jdecode(''),'/10183/114835.html','true',[],''],
		['PAGE','62447',jdecode('D%2FCDN+Maple+Leaf'),jdecode(''),'/10183/62447.html','true',[],''],
		['PAGE','110050',jdecode('DPMV'),jdecode(''),'/10183/110050.html','true',[],''],
		['PAGE','59393',jdecode('Faszination+Modellbau'),jdecode(''),'/10183/59393.html','true',[],''],
		['PAGE','84550',jdecode('IG+Modellbau+H%F6chst'),jdecode(''),'/10183/84550.html','true',[],''],
		['PAGE','105750',jdecode('Kurtscheid'),jdecode(''),'/10183/105750.html','true',[],''],
		['PAGE','166421',jdecode('NitrOlympx'),jdecode(''),'/10183/166421.html','true',[],''],
		['PAGE','131150',jdecode('Mainz'),jdecode(''),'/10183/131150.html','true',[],''],
		['PAGE','144750',jdecode('Mainz+Kastel'),jdecode(''),'/10183/144750.html','true',[],''],
		['PAGE','132050',jdecode('MBC+Koblenz'),jdecode(''),'/10183/132050.html','true',[],''],
		['PAGE','99350',jdecode('ModellFreundeMannheim'),jdecode(''),'/10183/99350.html','true',[],''],
		['PAGE','81095',jdecode('Otzberg-Lengfeld'),jdecode(''),'/10183/81095.html','true',[],''],
		['PAGE','52347',jdecode('PMC+S%FCdpfalz'),jdecode(''),'/10183/52347.html','true',[],''],
		['PAGE','72718',jdecode('PMC-Kurpfalz'),jdecode(''),'/10183/72718.html','true',[],''],
		['PAGE','67718',jdecode('PMC-Main-Kinzig'),jdecode(''),'/10183/67718.html','true',[],''],
		['PAGE','80295',jdecode('PMV-Frankfurt'),jdecode(''),'/10183/80295.html','true',[],''],
		['PAGE','65746',jdecode('Queidersbach'),jdecode(''),'/10183/65746.html','true',[],''],
		['PAGE','85150',jdecode('Rennecke+Mannheim'),jdecode(''),'/10183/85150.html','true',[],''],
		['PAGE','76295',jdecode('Rohrbach+les+Bitsch'),jdecode(''),'/10183/76295.html','true',[],''],
		['PAGE','110081',jdecode('Speyer'),jdecode(''),'/10183/110081.html','true',[],''],
		['PAGE','62420',jdecode('Strassburg'),jdecode(''),'/10183/62420.html','true',[],''],
		['PAGE','128350',jdecode('zu+Besuch'),jdecode(''),'/10183/128350.html','true',[],'']
	],''],
	['PAGE','10156',jdecode('Termine'),jdecode(''),'/10156.html','true',[],''],
	['PAGE','103050',jdecode('Modellbaukurs+in+Lambsheim'),jdecode(''),'/103050.html','true',[],''],
	['PAGE','103281',jdecode('Bastelaktionen'),jdecode(''),'/103281.html','true',[],''],
	['PAGE','131850',jdecode('Presseberichte+'),jdecode(''),'/131850.html','true',[],''],
	['PAGE','9303',jdecode('G%E4stebuch'),jdecode(''),'/9303/index.html','true',[ 
		['PAGE','9302',jdecode('Eintr%E4ge'),jdecode(''),'/9303/9302.html','true',[],'']
	],''],
	['PAGE','65918',jdecode('Links'),jdecode(''),'/65918.html','true',[],''],
	['PAGE','166021',jdecode('Impressum'),jdecode(''),'/166021.html','true',[],'']];
var siteelementCount=43;
theSitetree.topTemplateName='Collage';
					                                                                    
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 */					                                                            
