/* [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=[ 
	['MODULE','1153',jdecode('m1153'),jdecode('Home'),'/1153.html','true',[],''],
	['MODULE','1206',jdecode('m1206'),jdecode('Produkte'),'/1206.html','false',[],''],
	['MODULE','4117',jdecode('m4117'),jdecode('Presse+%28alt%29'),'/4117/index.html','false',[ 
		['PAGE','6141',jdecode('Mitteilungen'),jdecode(''),'/4117/6141.html','false',[],''],
		['PAGE','6164',jdecode('Clippings'),jdecode(''),'/4117/6164.html','false',[],''],
		['PAGE','6118',jdecode('Fotos'),jdecode(''),'/4117/6118.html','false',[],'']
	],''],
	['MODULE','57651',jdecode('m1108145170886'),jdecode('Deutsch'),'/57651/index.html','true',[ 
		['PAGE','57942',jdecode('Firmenprofil'),jdecode(''),'/57651/57942.html','true',[],''],
		['PAGE','57987',jdecode('Produkte'),jdecode(''),'/57651/57987.html','true',[],''],
		['PAGE','58028',jdecode('Support'),jdecode(''),'/57651/58028.html','true',[],''],
		['PAGE','58069',jdecode('Referenzen'),jdecode(''),'/57651/58069.html','true',[],''],
		['PAGE','58110',jdecode('Presse'),jdecode(''),'/57651/58110/index.html','true',[ 
			['PAGE','79676',jdecode('Presse+%28Folgeseite%29'),jdecode(''),'/57651/58110/79676.html','false',[],'']
		],''],
		['PAGE','58151',jdecode('Kontakt'),jdecode(''),'/57651/58151/index.html','true',[ 
			['PAGE','72742',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/57651/58151/72742.html','false',[],'']
		],''],
		['PAGE','73214',jdecode('Aktuelles'),jdecode(''),'/57651/73214/index.html','true',[ 
			['PAGE','73276',jdecode('Aktuelles+%28Folgeseite%29'),jdecode(''),'/57651/73214/73276.html','false',[],'']
		],'']
	],''],
	['MODULE','57718',jdecode('m1108145204024'),jdecode('English'),'/57718/index.html','true',[ 
		['PAGE','58192',jdecode('Introducing+IPmotion'),jdecode(''),'/57718/58192.html','true',[],''],
		['PAGE','58233',jdecode('Products'),jdecode(''),'/57718/58233.html','true',[],''],
		['PAGE','58274',jdecode('Support'),jdecode(''),'/57718/58274.html','true',[],''],
		['PAGE','58315',jdecode('References'),jdecode(''),'/57718/58315.html','true',[],''],
		['PAGE','58356',jdecode('Press'),jdecode(''),'/57718/58356/index.html','true',[ 
			['PAGE','84666',jdecode('Press+%28follow+up+page%29'),jdecode(''),'/57718/58356/84666.html','false',[],'']
		],''],
		['PAGE','58397',jdecode('Contact'),jdecode(''),'/57718/58397/index.html','true',[ 
			['PAGE','83205',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/57718/58397/83205.html','false',[],'']
		],''],
		['PAGE','58663',jdecode('News'),jdecode(''),'/57718/58663/index.html','true',[ 
			['PAGE','83807',jdecode('News+%28follow+up+page%29'),jdecode(''),'/57718/58663/83807.html','false',[],'']
		],'']
	],''],
	['MODULE','57797',jdecode('m1108145568258'),jdecode('Espa%F1ol'),'/57797/index.html','false',[ 
		['PAGE','58827',jdecode('IPmotion+Info'),jdecode(''),'/57797/58827.html','false',[],''],
		['PAGE','58786',jdecode('Productos'),jdecode(''),'/57797/58786.html','false',[],''],
		['PAGE','59270',jdecode('Soporte'),jdecode(''),'/57797/59270.html','false',[],''],
		['PAGE','58929',jdecode('Notas+de+Prensa'),jdecode(''),'/57797/58929.html','false',[],''],
		['PAGE','59475',jdecode('Referencias'),jdecode(''),'/57797/59475.html','false',[],''],
		['PAGE','59311',jdecode('Contacte+con+nosotros'),jdecode(''),'/57797/59311.html','false',[],''],
		['PAGE','59375',jdecode('Noticias+'),jdecode(''),'/57797/59375.html','false',[],'']
	],''],
	['MODULE','57897',jdecode('m1108146056890'),jdecode('Fran%E7ais'),'/57897/index.html','true',[ 
		['PAGE','58745',jdecode('IPmotion+en+bref'),jdecode(''),'/57897/58745.html','true',[],''],
		['PAGE','58499',jdecode('Produits'),jdecode(''),'/57897/58499.html','true',[],''],
		['PAGE','58704',jdecode('Projets+r%E9f%E9rence'),jdecode(''),'/57897/58704.html','true',[],''],
		['PAGE','58540',jdecode('Support'),jdecode(''),'/57897/58540.html','true',[],''],
		['PAGE','58581',jdecode('Presse'),jdecode(''),'/57897/58581/index.html','true',[ 
			['PAGE','88589',jdecode('Presse+%28Folgeseite%29'),jdecode(''),'/57897/58581/88589.html','false',[],'']
		],''],
		['PAGE','59143',jdecode('Contact'),jdecode(''),'/57897/59143/index.html','true',[ 
			['PAGE','87700',jdecode('Contact+%28Folgeseite%29'),jdecode(''),'/57897/59143/87700.html','false',[],'']
		],''],
		['PAGE','59229',jdecode('Actualit%E9s'),jdecode(''),'/57897/59229/index.html','true',[ 
			['PAGE','88332',jdecode('Actualit%E9s+%28Folgeseite%29'),jdecode(''),'/57897/59229/88332.html','false',[],'']
		],'']
	],''],
	['MODULE','90292',jdecode('m1143402329424'),jdecode('Sitemap'),'/90292.html','true',[],''],
	['MODULE','50742',jdecode('m1107950993388'),jdecode('Impressum'),'/50742/index.html','true',[ 
		['PAGE','92479',jdecode('CAR-A-WAN'),jdecode(''),'/50742/92479.html','',[],'']
	],'']];
var siteelementCount=50;
theSitetree.topTemplateName='default';
					                                                                    
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 */					                                                            
