/* [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','13769',jdecode('Home'),jdecode(''),'/13769.html','true',[],''],
	['PAGE','13775',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/13775/home.html','true',[ 
		['PAGE','13780',jdecode('Geschichte'),jdecode(''),'/13775/13780.html','true',[],''],
		['PAGE','13785',jdecode('Der+Vorstand'),jdecode(''),'/13775/13785.html','true',[],''],
		['PAGE','13790',jdecode('Unser+Team'),jdecode(''),'/13775/13790.html','true',[],'']
	],''],
	['PAGE','13810',jdecode('Kontakt'),jdecode(''),'/13810.html','true',[],''],
	['PAGE','13795',jdecode('Aktuelles'),jdecode(''),'/13795.html','true',[],''],
	['PAGE','18701',jdecode('Spielplan+%2F+Berichte'),jdecode(''),'/18701/home.html','true',[ 
		['PAGE','13805',jdecode('Spielberichte'),jdecode(''),'/18701/13805.html','true',[],'']
	],''],
	['PAGE','18706',jdecode('G%C3%A4stebuch'),jdecode(''),'/18706.html','true',[],''],
	['PAGE','21820',jdecode('Bilderarchiv'),jdecode(''),'/21820.html','true',[],''],
	['PAGE','22014',jdecode('Unsere+Partner'),jdecode(''),'/22014.html','true',[],''],
	['PAGE','21214',jdecode('Haftungsauschluss'),jdecode(''),'/21214.html','true',[],''],
	['PAGE','13820',jdecode('Der+TuS+Wadersloh'),jdecode(''),'/13820.html','true',[],''],
	['PAGE','23214',jdecode('Mitgliederbereich'),jdecode(''),'/23214/home.html','true',[ 
		['PAGE','23414',jdecode('Alte+Herren+Intern'),jdecode(''),'/23214/23414.html','true',[],'']
	],''],
	['PAGE','23235',jdecode('Links'),jdecode(''),'/23235.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Match';
theSitetree.paletteFamily='2354B7';
theSitetree.keyvisualId='2704';
theSitetree.keyvisualName='football.jpg';
theSitetree.fontsetId='10404';
theSitetree.graphicsetId='10633';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='C6E2FE';
var theTemplate={
				name: 			'Match',
				paletteFamily: 	'2354B7',
				keyvisualId: 	'2704',
				keyvisualName: 	'football.jpg',
				fontsetId: 		'10404',
				graphicsetId: 	'10633',
				contentColor: 	'000000',
				contentBGColor: 'C6E2FE',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'2354B7',
				e_color: 		'707070',
				f_color: 		'707070',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '13769',
internalId:  '1006',
customField: '1006'
};
webappMappings['3001']={
webappId:    '3001',
documentId:  '23214',
internalId:  '',
customField: ''
};
var canonHostname = 'cfabak01.aul.t-online.de';
var accountId     = 'ATOIX0INE3CQ';
var companyName   = 'Alte-Herren+TuS+Wadersloh';
					                                                                    
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 */					                                                            

