/* [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','1154',jdecode('Home'),jdecode(''),'/1154.html','true',[],''],
	['PAGE','1322',jdecode('%DCber+uns'),jdecode(''),'/1322.html','true',[],''],
	['PAGE','147090',jdecode('Foto+des+Monats'),jdecode(''),'/147090.html','true',[],''],
	['PAGE','1230',jdecode('Moderne+Panzermodelle'),jdecode(''),'/1230/index.html','true',[ 
		['PAGE','5481',jdecode('Kampfpanzer'),jdecode(''),'/1230/5481.html','true',[],''],
		['PAGE','137783',jdecode('Br%FCckenlegepanzer'),jdecode(''),'/1230/137783.html','true',[],''],
		['PAGE','137814',jdecode('Radfahrzeuge'),jdecode(''),'/1230/137814.html','true',[],''],
		['PAGE','138402',jdecode('Bergepanzer'),jdecode(''),'/1230/138402.html','true',[],'']
	],''],
	['PAGE','137690',jdecode('WKII+Panzermodelle'),jdecode(''),'/137690/index.html','true',[ 
		['PAGE','137752',jdecode('Radfahrzeuge'),jdecode(''),'/137690/137752.html','true',[],''],
		['PAGE','2105',jdecode('Kettenfahrzeuge'),jdecode(''),'/137690/2105.html','true',[],'']
	],''],
	['PAGE','133959',jdecode('Forum'),jdecode(''),'/133959.html','true',[],''],
	['PAGE','153590',jdecode('Berichte+von+Messen'),jdecode(''),'/153590/index.html','true',[ 
		['PAGE','153621',jdecode('Kassel+2006'),jdecode(''),'/153590/153621.html','true',[],''],
		['PAGE','149790',jdecode('Euromodell+Bremen+05'),jdecode(''),'/153590/149790.html','true',[],''],
		['PAGE','147590',jdecode('Modellwelt+Hamburg'),jdecode(''),'/153590/147590.html','true',[],''],
		['PAGE','151990',jdecode('WTD+41+Trier'),jdecode(''),'/153590/151990.html','true',[],''],
		['PAGE','146490',jdecode('Museumsnacht+Koblenz'),jdecode(''),'/153590/146490.html','true',[],''],
		['PAGE','145590',jdecode('Familientag+Rheinmetall'),jdecode(''),'/153590/145590.html','true',[],''],
		['PAGE','143890',jdecode('Schwanewede'),jdecode(''),'/153590/143890.html','true',[],''],
		['PAGE','143290',jdecode('Biwak+Celle'),jdecode(''),'/153590/143290.html','true',[],''],
		['PAGE','142490',jdecode('Torgelow'),jdecode(''),'/153590/142490.html','true',[],''],
		['PAGE','141590',jdecode('Nordseemodellbau'),jdecode(''),'/153590/141590.html','true',[],''],
		['PAGE','134359',jdecode('Neum%FCnster+Modellmesse'),jdecode(''),'/153590/134359.html','true',[],''],
		['PAGE','12210',jdecode('Modellwelt+HH+2004'),jdecode(''),'/153590/12210.html','true',[],'']
	],''],
	['PAGE','91820',jdecode('Kinder+Krebshilfe'),jdecode(''),'/91820.html','true',[],''],
	['PAGE','129259',jdecode('Panzermuseum'),jdecode(''),'/129259/index.html','true',[ 
		['PAGE','144890',jdecode('Aktionstag+03.09.05'),jdecode(''),'/129259/144890.html','true',[],''],
		['PAGE','140390',jdecode('Pfingsten+2005'),jdecode(''),'/129259/140390.html','true',[],'']
	],''],
	['PAGE','128259',jdecode('Termine+RAG'),jdecode(''),'/128259.html','true',[],''],
	['PAGE','68595',jdecode('Videos'),jdecode(''),'/68595.html','true',[],''],
	['PAGE','112645',jdecode('Panzer+in+Not'),jdecode(''),'/112645.html','true',[],''],
	['PAGE','131531',jdecode('Technik'),jdecode(''),'/131531/index.html','true',[ 
		['PAGE','131059',jdecode('Antriebe'),jdecode(''),'/131531/131059.html','true',[],''],
		['PAGE','131747',jdecode('Instandsetzungen'),jdecode(''),'/131531/131747.html','true',[],'']
	],''],
	['PAGE','5695',jdecode('Bauberichte'),jdecode(''),'/5695/index.html','true',[ 
		['PAGE','152190',jdecode('Turm+Tiger+II'),jdecode(''),'/5695/152190.html','true',[],''],
		['PAGE','148690',jdecode('Leopard+IIA4'),jdecode(''),'/5695/148690.html','true',[],''],
		['PAGE','143390',jdecode('M60+Br%FCckenlegep.'),jdecode(''),'/5695/143390.html','true',[],''],
		['PAGE','138990',jdecode('Panzerschnellbr%FCcke+II'),jdecode(''),'/5695/138990.html','true',[],''],
		['PAGE','127652',jdecode('Wiesel+MK20'),jdecode(''),'/5695/127652.html','true',[],''],
		['PAGE','137090',jdecode('Bergeleo+2A2'),jdecode(''),'/5695/137090.html','true',[],''],
		['PAGE','132059',jdecode('M26+Pershing'),jdecode(''),'/5695/132059.html','true',[],''],
		['PAGE','129859',jdecode('Pionierbr%FCcke'),jdecode(''),'/5695/129859.html','true',[],''],
		['PAGE','127683',jdecode('Unimog+U+1300+%2F+2+to'),jdecode(''),'/5695/127683.html','true',[],''],
		['PAGE','127714',jdecode('M977+HEMTT+1%2F8'),jdecode(''),'/5695/127714.html','true',[],'']
	],''],
	['PAGE','71699',jdecode('User+Galerie'),jdecode(''),'/71699.html','true',[],''],
	['PAGE','72352',jdecode('Zu+Verkaufen'),jdecode(''),'/72352.html','true',[],''],
	['PAGE','1276',jdecode('Links'),jdecode(''),'/1276/index.html','true',[ 
		['PAGE','80504',jdecode('H%E4ndler'),jdecode(''),'/1276/80504.html','true',[],'']
	],''],
	['PAGE','4221',jdecode('Kontakt'),jdecode(''),'/4221.html','true',[],''],
	['PAGE','4254',jdecode('Kontakt'),jdecode(''),'/4254.html','false',[],''],
	['PAGE','123045',jdecode('G%E4stebuch'),jdecode(''),'/123045/index.html','true',[ 
		['PAGE','123046',jdecode('Eintr%E4ge'),jdecode(''),'/123045/123046.html','true',[],'']
	],'']];
var siteelementCount=54;
theSitetree.topTemplateName='Logg';
					                                                                    
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 */					                                                            
