/* [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','1112',jdecode('Home'),jdecode(''),'/1112.html','true',[],''],
	['PAGE','2495',jdecode('Wir+%FCber+uns'),jdecode(''),'/2495/index.html','true',[ 
		['PAGE','2518',jdecode('Kontakt'),jdecode(''),'/2495/2518.html','true',[],''],
		['PAGE','11054',jdecode('Anfahrt'),jdecode(''),'/2495/11054.html','true',[],'']
	],''],
	['PAGE','1165',jdecode('Impressum'),jdecode(''),'/1165.html','true',[],''],
	['PAGE','19451',jdecode('rLiner+von+Riepert+'),jdecode(''),'/19451/index.html','true',[ 
		['PAGE','21654',jdecode('rLiner+von+Riepert++%28Folgeseite%29'),jdecode(''),'/19451/21654.html','false',[],''],
		['PAGE','27861',jdecode('rLiner+Produktion'),jdecode(''),'/19451/27861.html','true',[],'']
	],''],
	['PAGE','31373',jdecode('rLiner+mit+Porsche-Garage'),jdecode(''),'/31373.html','true',[],''],
	['PAGE','27829',jdecode('rClassic+Alkoven+von+Riepert'),jdecode(''),'/27829.html','true',[],''],
	['PAGE','44291',jdecode('Gebrauchte+rLiner'),jdecode(''),'/44291/index.html','true',[ 
		['PAGE','48143',jdecode('rLiner+mit+Smart-Garage'),jdecode(''),'/44291/48143.html','true',[],''],
		['PAGE','44229',jdecode('rLiner+mit+Fiat-Garage'),jdecode(''),'/44291/44229.html','true',[],''],
		['PAGE','44260',jdecode('rLiner+mit+Porsche-Garage'),jdecode(''),'/44291/44260.html','true',[],'']
	],''],
	['PAGE','1326',jdecode('Gebrauchtfahrzeuge'),jdecode(''),'/1326/index.html','true',[ 
		['PAGE','15248',jdecode('Gebrauchtfahrzeuge+%28Folgeseite%29'),jdecode(''),'/1326/15248.html','false',[],'']
	],''],
	['PAGE','2588',jdecode('Laika+Ersatzteile'),jdecode(''),'/2588/index.html','true',[ 
		['PAGE','17119',jdecode('Laika+%28Folgeseite%29'),jdecode(''),'/2588/17119.html','false',[],''],
		['PAGE','16773',jdecode('Phoenix+%28Folgeseite%29'),jdecode(''),'/2588/16773.html','false',[],'']
	],''],
	['PAGE','1349',jdecode('Service'),jdecode(''),'/1349/index.html','true',[ 
		['PAGE','46102',jdecode('Komplett%FCberarbeitung'),jdecode(''),'/1349/46102.html','true',[],''],
		['PAGE','45729',jdecode('Innenraumgestaltung'),jdecode(''),'/1349/45729.html','true',[],''],
		['PAGE','46470',jdecode('Unfallinstandsetzung'),jdecode(''),'/1349/46470.html','true',[],''],
		['PAGE','46675',jdecode('Sandwich+Wandreparaturen'),jdecode(''),'/1349/46675.html','true',[],''],
		['PAGE','46706',jdecode('Chassis-Erneuerung'),jdecode(''),'/1349/46706.html','true',[],''],
		['PAGE','2542',jdecode('Alu-Gastankflaschen'),jdecode(''),'/1349/2542.html','true',[],''],
		['PAGE','47741',jdecode('Fliegenrollot%FCr'),jdecode(''),'/1349/47741.html','true',[],''],
		['PAGE','9303',jdecode('Team'),jdecode(''),'/1349/9303.html','true',[],''],
		['PAGE','9330',jdecode('Gr%F6%DFe+%26+Ausstattung'),jdecode(''),'/1349/9330.html','true',[],'']
	],''],
	['PAGE','2726',jdecode('Campingshop'),jdecode(''),'/2726/index.html','true',[ 
		['PAGE','12815',jdecode('Sonderangebote'),jdecode(''),'/2726/12815.html','true',[],'']
	],''],
	['PAGE','1901',jdecode('G%E4stebuch'),jdecode(''),'/1901/index.html','true',[ 
		['PAGE','1902',jdecode('Eintr%E4ge'),jdecode(''),'/1901/1902.html','true',[],'']
	],'']];
var siteelementCount=33;
theSitetree.topTemplateName='Padma';
					                                                                    
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 */					                                                            

