/* [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','1312',jdecode('Modellfanatiker+World'),jdecode(''),'/1312.html','true',[],''],
	['PAGE','14524',jdecode('Wir+%FCber+uns'),jdecode(''),'/14524/index.html','true',[ 
		['PAGE','16103',jdecode('ehemalige+Fahrzeuge...'),jdecode(''),'/14524/16103.html','true',[],'']
	],''],
	['PAGE','14551',jdecode('Fam.+Sch%FCtz+1%3A1'),jdecode(''),'/14551/index.html','true',[ 
		['PAGE','16211',jdecode('Ford+Cougar+16V+'),jdecode(''),'/14551/16211.html','true',[],''],
		['PAGE','16130',jdecode('Ford+Capri+%22Super+GT%22'),jdecode(''),'/14551/16130.html','true',[],''],
		['PAGE','16184',jdecode('Ford+Capri+%26%23x27%3B82+Umbau'),jdecode(''),'/14551/16184.html','true',[],'']
	],''],
	['PAGE','14686',jdecode('Leichenwagen+Treffen'),jdecode(''),'/14686.html','true',[],''],
	['PAGE','14713',jdecode('Schwarzfahrer+Treffen'),jdecode(''),'/14713.html','true',[],''],
	['PAGE','59496',jdecode('1.+int.+Best.+Treffen+2006'),jdecode(''),'/59496.html','true',[],''],
	['PAGE','87071',jdecode('2.+int.+Best.+Treffen+2008'),jdecode(''),'/87071.html','true',[],''],
	['PAGE','14740',jdecode('Youngtimer+Treffen+Herten'),jdecode(''),'/14740.html','true',[],''],
	['PAGE','14767',jdecode('Ford+Sammlung+Modelle+...'),jdecode(''),'/14767/index.html','true',[ 
		['PAGE','91304',jdecode('Ford+Motorsport+%2FRacing'),jdecode(''),'/14767/91304.html','true',[],''],
		['PAGE','14794',jdecode('1%2F43+Modelle'),jdecode(''),'/14767/14794.html','true',[],''],
		['PAGE','118925',jdecode('Spezial+Sondermodelle'),jdecode(''),'/14767/118925.html','true',[],''],
		['PAGE','92346',jdecode('Ford+B%FCcher'),jdecode(''),'/14767/92346.html','true',[],''],
		['PAGE','14821',jdecode('MG+B+GT+'),jdecode(''),'/14767/14821.html','true',[],'']
	],''],
	['PAGE','15502',jdecode('G%E4stebuch'),jdecode(''),'/15502/index.html','true',[ 
		['PAGE','15503',jdecode('Eintr%E4ge'),jdecode(''),'/15502/15503.html','true',[],'']
	],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Kreis';
					                                                                    
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 */					                                                            

