/* [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','40992',jdecode('Home'),jdecode(''),'/40992.html','true',[],''],
	['PAGE','41003',jdecode('Person'),jdecode(''),'/41003.html','true',[],''],
	['PAGE','41012',jdecode('Beweggr%C3%BCnde'),jdecode(''),'/41012.html','true',[],''],
	['PAGE','41021',jdecode('Reiseberichte+1'),jdecode(''),'/41021.html','true',[],''],
	['PAGE','42052',jdecode('Reiseberichte+2'),jdecode(''),'/42052.html','true',[],''],
	['PAGE','42500',jdecode('Reiseberichte+3'),jdecode(''),'/42500.html','true',[],''],
	['PAGE','41050',jdecode('G%C3%A4stebuch'),jdecode(''),'/41050/home.html','true',[ 
		['PAGE','41049',jdecode('Eintr%C3%A4ge'),jdecode(''),'/41050/41049.html','true',[],'']
	],''],
	['PAGE','41115',jdecode('Fotos+1'),jdecode(''),'/41115.html','true',[],''],
	['PAGE','42061',jdecode('Fotos+2'),jdecode(''),'/42061.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Sports';
theSitetree.paletteFamily='F2FD94';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10763';
theSitetree.graphicsetId='10481';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'Sports',
				paletteFamily: 	'F2FD94',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10763',
				graphicsetId: 	'10481',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'8B8B89',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '40992',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '40992',
internalId:  '',
customField: '20070808-081249'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41003',
internalId:  '',
customField: '20070718-090835'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41012',
internalId:  '',
customField: '20070126-103742'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '41050',
internalId:  '41050atoix0i7bm2h',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '41049',
internalId:  '41050atoix0i7bm2h',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41115',
internalId:  '',
customField: '20070310-194842'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41050',
internalId:  '',
customField: '20070310-194746'
};
webappMappings['1007']={
webappId:    '1007',
documentId:  '41115',
internalId:  '1104b4a72ce',
customField: 'g.1215kf14u.7k6ttubbd4.1s'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41021',
internalId:  '',
customField: '20070623-191504'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41049',
internalId:  '',
customField: '20070126-093055'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42052',
internalId:  '',
customField: '20070731-090613'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42061',
internalId:  '',
customField: '20070516-095232'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42500',
internalId:  '',
customField: '20070808-081700'
};
var canonHostname = 'cfawrk10.aul.t-online.de';
var accountId     = 'ATOIX0I7BM2H';
var companyName   = 'Illi%C2%B4s+Abenteuer+in+Australien';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            

