/* [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','4481',jdecode('Home'),jdecode(''),'/4481.html','true',[],''],
	['PAGE','32028',jdecode('20+Jahre+IMM'),jdecode(''),'/32028.html','true',[],''],
	['PAGE','15408',jdecode('Kontakt'),jdecode(''),'/15408/index.html','true',[ 
		['PAGE','38224',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/15408/38224.html','true',[],''],
		['PAGE','17001',jdecode('Impressum'),jdecode(''),'/15408/17001.html','true',[],''],
		['PAGE','17032',jdecode('Disclaimer'),jdecode(''),'/15408/17032.html','true',[],'']
	],''],
	['PAGE','5003',jdecode('Organisation'),jdecode(''),'/5003.html','true',[],''],
	['PAGE','5030',jdecode('Ziele'),jdecode(''),'/5030.html','true',[],''],
	['PAGE','5057',jdecode('Mitglieder'),jdecode(''),'/5057/index.html','true',[ 
		['PAGE','17339',jdecode('Aufnahmekriterien'),jdecode(''),'/5057/17339.html','true',[],'']
	],''],
	['PAGE','16089',jdecode('F%F6rderkreis'),jdecode(''),'/16089.html','true',[],''],
	['PAGE','5084',jdecode('Historie'),jdecode(''),'/5084.html','true',[],''],
	['PAGE','29501',jdecode('News'),jdecode(''),'/29501/index.html','true',[ 
		['PAGE','28601',jdecode('Archiv+2006'),jdecode(''),'/29501/28601.html','true',[],''],
		['PAGE','5111',jdecode('Archiv+2005'),jdecode(''),'/29501/5111.html','true',[],''],
		['PAGE','18033',jdecode('Archiv+2004'),jdecode(''),'/29501/18033.html','true',[],''],
		['PAGE','18002',jdecode('Archiv+2003'),jdecode(''),'/29501/18002.html','true',[],'']
	],''],
	['PAGE','14633',jdecode('Termine'),jdecode(''),'/14633.html','true',[],''],
	['PAGE','15439',jdecode('IMM-Arbeitskreise'),jdecode(''),'/15439/index.html','true',[ 
		['PAGE','15470',jdecode('AK+Finanzen'),jdecode(''),'/15439/15470.html','true',[],''],
		['PAGE','15501',jdecode('AK+Marketing'),jdecode(''),'/15439/15501.html','true',[],''],
		['PAGE','15532',jdecode('AK+Vertrieb'),jdecode(''),'/15439/15532.html','true',[],''],
		['PAGE','39224',jdecode('AK+IT'),jdecode(''),'/15439/39224.html','true',[],''],
		['PAGE','39137',jdecode('IMM-Praxisworkshop+Marketing'),jdecode(''),'/15439/39137.html','true',[],'']
	],''],
	['PAGE','14664',jdecode('Downloads'),jdecode(''),'/14664.html','true',[],''],
	['PAGE','14695',jdecode('Awards'),jdecode(''),'/14695.html','true',[],'']];
var siteelementCount=26;
theSitetree.topTemplateName='Straight';
					                                                                    
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 */					                                                            

