/* [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','1110',jdecode('HOME+MELGES24.DE'),jdecode(''),'/1110.html','true',[],''],
	['PAGE','237427',jdecode('MELGES24+NEWS'),jdecode(''),'/237427/index.html','true',[ 
		['PAGE','163627',jdecode('M24+Newsletter'),jdecode(''),'/237427/163627.html','true',[],''],
		['PAGE','227627',jdecode('M24+Blog'),jdecode(''),'/237427/227627.html','true',[],''],
		['PAGE','237458',jdecode('M24+Web+2.0'),jdecode(''),'/237427/237458.html','true',[],'']
	],''],
	['PAGE','1232',jdecode('Die+MELGES24'),jdecode(''),'/1232/index.html','true',[ 
		['PAGE','103180',jdecode('Hall+of+Fame'),jdecode(''),'/1232/103180.html','true',[],'']
	],''],
	['PAGE','238759',jdecode('KLASSENVEREINIGUNG'),jdecode(''),'/238759/index.html','true',[ 
		['PAGE','5016',jdecode('Vorstand'),jdecode(''),'/238759/5016.html','true',[],''],
		['PAGE','1416',jdecode('Mitgliedschaft'),jdecode(''),'/238759/1416.html','true',[],''],
		['PAGE','167127',jdecode('Training'),jdecode(''),'/238759/167127.html','true',[],''],
		['PAGE','40276',jdecode('Vermessung'),jdecode(''),'/238759/40276.html','true',[],''],
		['PAGE','42176',jdecode('Regeln'),jdecode(''),'/238759/42176.html','true',[],''],
		['PAGE','238728',jdecode('Dokumente'),jdecode(''),'/238759/238728.html','true',[],''],
		['PAGE','117480',jdecode('FAQs'),jdecode(''),'/238759/117480.html','true',[],'']
	],''],
	['PAGE','228938',jdecode('REGATTA+2010'),jdecode(''),'/228938/index.html','true',[ 
		['PAGE','240527',jdecode('Termine+2010'),jdecode(''),'/228938/240527.html','true',[],''],
		['PAGE','234989',jdecode('Berichte+2010'),jdecode(''),'/228938/234989.html','true',[],''],
		['PAGE','235020',jdecode('Ergebnisse+2010'),jdecode(''),'/228938/235020.html','true',[],''],
		['PAGE','181848',jdecode('D-A-CH+Ranking+2010'),jdecode(''),'/228938/181848.html','true',[],''],
		['PAGE','48876',jdecode('Yardstick+%2F+ORC'),jdecode(''),'/228938/48876.html','true',[],''],
		['PAGE','238380',jdecode('Crewb%F6rse'),jdecode(''),'/228938/238380.html','true',[],'']
	],''],
	['PAGE','1324',jdecode('RACES+%26+EVENTS'),jdecode(''),'/1324/index.html','true',[ 
		['PAGE','234958',jdecode('Weltmeisterschaft+2010'),jdecode(''),'/1324/234958.html','true',[],'']
	],''],
	['PAGE','12900',jdecode('REGATTA+ARCHIV'),jdecode(''),'/12900/index.html','true',[ 
		['PAGE','217038',jdecode('Berichte+2009'),jdecode(''),'/12900/217038.html','true',[],''],
		['PAGE','217069',jdecode('Ergebnisse+2009'),jdecode(''),'/12900/217069.html','true',[],'']
	],''],
	['PAGE','12736',jdecode('MARKT+%26+LINKS'),jdecode(''),'/12736/index.html','true',[ 
		['PAGE','1393',jdecode('Angebote+%2F+Gesuche'),jdecode(''),'/12736/1393.html','true',[],''],
		['PAGE','25495',jdecode('Charter'),jdecode(''),'/12736/25495.html','true',[],''],
		['PAGE','1439',jdecode('Links'),jdecode(''),'/12736/1439.html','true',[],'']
	],''],
	['PAGE','74784',jdecode('GALERIE+%26+VIDEO'),jdecode(''),'/74784/index.html','true',[ 
		['PAGE','161427',jdecode('Video'),jdecode(''),'/74784/161427.html','true',[],'']
	],''],
	['PAGE','26492',jdecode('KONTAKT+%2F+IMPRESSUM'),jdecode(''),'/26492.html','true',[],''],
	['PAGE','2036',jdecode('Kontakt'),jdecode(''),'/2036.html','false',[],'']];
var siteelementCount=35;
theSitetree.topTemplateName='Alpha';
					                                                                    
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 */					                                                            
