/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(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','39994',jdecode('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','41328',jdecode('Aktuelles'),jdecode(''),'/41328/home.html','true',[ 
		['PAGE','41373',jdecode('Halle+und+Training+'),jdecode(''),'/41328/41373.html','true',[],''],
		['PAGE','41355',jdecode('Jugendarbeit+%26+Teams'),jdecode(''),'/41328/41355.html','true',[],''],
		['PAGE','41364',jdecode('Senioren+%26+Teams'),jdecode(''),'/41328/41364.html','true',[],''],
		['PAGE','41337',jdecode('Geschichte'),jdecode(''),'/41328/41337.html','true',[],''],
		['PAGE','41346',jdecode('Der+Vorstand'),jdecode(''),'/41328/41346.html','true',[],'']
	],''],
	['PAGE','41382',jdecode('Photogalerie'),jdecode(''),'/41382.html','true',[],''],
	['PAGE','41391',jdecode('Ergebnisse'),jdecode(''),'/41391.html','true',[],''],
	['PAGE','41435',jdecode('+Links'),jdecode(''),'/41435.html','true',[],''],
	['PAGE','41476',jdecode('Anfahrt'),jdecode(''),'/41476.html','true',[],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Linea';
theSitetree.paletteFamily='4CA04C';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='400';
theSitetree.graphicsetId='450';
theSitetree.contentColor='007800';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Linea',
				paletteFamily: 	'4CA04C',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'400',
				graphicsetId: 	'450',
				contentColor: 	'007800',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'4CA04C',
				c_color: 		'4CA04C',
				d_color: 		'007800',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20080614-122319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41328',
internalId:  '',
customField: '20080615-115122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41346',
internalId:  '',
customField: '20080614-155627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41337',
internalId:  '',
customField: '20080615-124541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41382',
internalId:  '',
customField: '20080615-140828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41373',
internalId:  '',
customField: '20080614-160130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41355',
internalId:  '',
customField: '20080615-141204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41364',
internalId:  '',
customField: '20080614-162239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41391',
internalId:  '',
customField: '20080615-140147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41435',
internalId:  '',
customField: '20080615-144533'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '41476',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41476',
internalId:  '',
customField: '20080614-162741'
};
webappMappings['1501']=webappMappings['1501-49610970']={
webappId:    '1501',
documentId:  '39994',
internalId:  '49610970',
customField: '1501'
};
var canonHostname = 'cfawrk11.aul.t-online.de';
var accountId     = 'ATOIX0IRM7ZT';
var companyName   = '++++++Tischtennisverein+Elten+1949%2F84+e.V.';
var htmlTitle	  = 'Elten';
var metaKeywords  = 'Tischtennis%2C+Elten%2C+';
var metaContents  = 'Willkommen+auf+der+Homepage+des+TTV+Elten+1949%2F84+e.V.+Ihr+Tischtennisverein+am+Niederrhein+in+Emmerich+%21';
					                                                                    
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 */					                                                            

