/* [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','44',jdecode('Startseite'),jdecode(''),'/44.html','true',[],''],
	['PAGE','41265',jdecode('Reisen'),jdecode(''),'/41265/home.html','true',[ 
		['PAGE','41742',jdecode('Bike+Tours'),jdecode(''),'/41265/41742.html','true',[],''],
		['PAGE','41751',jdecode('America+Latina'),jdecode(''),'/41265/41751.html','true',[],'']
	],''],
	['PAGE','43129',jdecode('Multimedia'),jdecode(''),'/43129.html','true',[],''],
	['PAGE','43056',jdecode('Texte'),jdecode(''),'/43056.html','true',[],''],
	['PAGE','41972',jdecode('news'),jdecode(''),'/41972/home.html','true',[ 
		['PAGE','41886',jdecode('Reisen'),jdecode(''),'/41972/41886.html','true',[],''],
		['PAGE','41960',jdecode('Politik'),jdecode(''),'/41972/41960.html','true',[],'']
	],''],
	['PAGE','43033',jdecode('Impressum'),jdecode(''),'/43033.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Elegance';
theSitetree.paletteFamily='EBEFF8';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10625';
theSitetree.graphicsetId='10624';
theSitetree.contentColor='545554';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Elegance',
				paletteFamily: 	'EBEFF8',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10625',
				graphicsetId: 	'10624',
				contentColor: 	'545554',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['1011']=webappMappings['1011-ddp-reisen']={
webappId:    '1011',
documentId:  '41886',
internalId:  'ddp-reisen',
customField: 'language:de;country:DE;'
};
webappMappings['1011']=webappMappings['1011-ddp-politik']={
webappId:    '1011',
documentId:  '41960',
internalId:  'ddp-politik',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20080121-150248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41265',
internalId:  '',
customField: '20071103-160634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41751',
internalId:  '',
customField: '20061128-223348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41742',
internalId:  '',
customField: '20070608-122217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41972',
internalId:  '',
customField: '20061108-123016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41886',
internalId:  '',
customField: '20061108-123510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41960',
internalId:  '',
customField: '20061108-123629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43033',
internalId:  '',
customField: '20070610-164643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43129',
internalId:  '',
customField: '20080123-114212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43056',
internalId:  '',
customField: '20070612-130331'
};
webappMappings['7060']=webappMappings['7060-9a45eb0605b497c1e9b870e3d7682631']={
webappId:    '7060',
documentId:  '43129',
internalId:  '9a45eb0605b497c1e9b870e3d7682631',
customField: 'language:de;country:DE;'
};
var canonHostname = 'cfawrk04.aul.t-online.de';
var accountId     = 'ATOIX0I7CGTH';
var companyName   = 'masch+%2F+farang';
var htmlTitle	  = 'masch-farang';
var metaKeywords  = 'Fahradtouren+der+Vergangenheit%2C+Reiseberichte+aus+S%C3%BCdamerika%2C+Europa%2C+Peru%2C+Nordafrika';
var metaContents  = 'Reiseberichte%3ATunesien+und++Italien+mit+dem+Fahrrad%2C+Tango%2C+Peru%2C+Argentinien%2C+Curanderos%2C++W%C3%BCste%2C+Alpen%2C+Man%C3%BA';
					                                                                    
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 */					                                                            
