/* [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','4579',jdecode('Home'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','9701',jdecode('Norbert+Mayer+privat'),jdecode(''),'/9701/home.html','true',[ 
		['PAGE','9950',jdecode('Impressionen'),jdecode(''),'/9701/9950.html','false',[],'']
	],''],
	['PAGE','9728',jdecode('SSF+Singen+e.V.1971'),jdecode(''),'/9728/home.html','false',[ 
		['PAGE','9755',jdecode('Informationen'),jdecode(''),'/9728/9755.html','false',[],''],
		['PAGE','9782',jdecode('Impressionen'),jdecode(''),'/9728/9782.html','false',[],'']
	],''],
	['PAGE','10368',jdecode('G%C3%A4stebuch'),jdecode(''),'/10368/home.html','false',[ 
		['PAGE','10369',jdecode('Eintr%C3%A4ge'),jdecode(''),'/10368/10369.html','false',[],'']
	],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Architekt';
theSitetree.paletteFamily='FFCC66';
theSitetree.keyvisualId='1721';
theSitetree.keyvisualName='schwimmerin.jpg';
theSitetree.fontsetId='281';
theSitetree.graphicsetId='343';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFCC66';
var theTemplate={
				name: 			'Architekt',
				paletteFamily: 	'FFCC66',
				keyvisualId: 	'1721',
				keyvisualName: 	'schwimmerin.jpg',
				fontsetId: 		'281',
				graphicsetId: 	'343',
				contentColor: 	'000000',
				contentBGColor: 'FFCC66',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFCC66',
				b_color: 		'CC6600',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-10368ATOIX0INLOF6']={
webappId:    '1002',
documentId:  '10368',
internalId:  '10368ATOIX0INLOF6',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-10368ATOIX0INLOF6']={
webappId:    '1002',
documentId:  '10369',
internalId:  '10368ATOIX0INLOF6',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20071102-150255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9701',
internalId:  '',
customField: '20031220-142812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9728',
internalId:  '',
customField: '20031005-135946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9950',
internalId:  '',
customField: '20030830-225449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9782',
internalId:  '',
customField: '20031122-230330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9755',
internalId:  '',
customField: '20031122-221941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10368',
internalId:  '',
customField: '20030817-213803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10369',
internalId:  '',
customField: '20030831-102214'
};
var canonHostname = 'cfawrk06.aul.t-online.de';
var accountId     = 'ATOIX0INLOF6';
var companyName   = 'Norbert+Mayer+%2BSSF+Singen%2FIABS';
var htmlTitle	  = 'Norbert+Mayer+Weiterdingen+%2B+SSF+IABS+Tegg';
var metaKeywords  = 'Norbert+Mayer+Hilzingen+Weiterdingen+Schwimmen+SSF+Singen+Sport+Schwimmsport+IABS+Bodensee+Teggingerschule+Tegginger+Schule+Radolfzell';
var metaContents  = 'Private+Homepage+Norbert+Mayer%2C+Hilzingen-Weiterdingen%2C+Schwimm-Sport-Freunde+%28SSF%29+Singen%2C+IABS+Internationale+Arbeitsgemeinschaft+der+Bodensee-Schwimmvereine%2C+Teggingerschule+Radolfzell';
					                                                                    
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 */					                                                            

