/* [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','40211',jdecode('Videos%2FBildmaterial'),jdecode(''),'/40211.html','true',[],''],
	['PAGE','40055',jdecode('Technik%2FBau'),jdecode(''),'/40055.html','true',[],''],
	['PAGE','40028',jdecode('Funk-Kamera-System'),jdecode(''),'/40028.html','true',[],''],
	['PAGE','40019',jdecode('SpaceBottle'),jdecode(''),'/40019.html','true',[],'']];
var siteelementCount=5;
theSitetree.topTemplateName='Architekt';
theSitetree.paletteFamily='8CBBD8';
theSitetree.keyvisualId='2055';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='280';
theSitetree.graphicsetId='348';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='8CBBD8';
var theTemplate={
				name: 			'Architekt',
				paletteFamily: 	'8CBBD8',
				keyvisualId: 	'2055',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'280',
				graphicsetId: 	'348',
				contentColor: 	'000000',
				contentBGColor: '8CBBD8',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'8CBBD8',
				b_color: 		'338299',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']=webappMappings['1007-107e2b6e8b5']={
webappId:    '1007',
documentId:  '40211',
internalId:  '107e2b6e8b5',
customField: 'g.10vhalk71.1n2lusa0s06.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20070920-222152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40055',
internalId:  '',
customField: '20070926-151137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40211',
internalId:  '',
customField: '20070215-121323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40028',
internalId:  '',
customField: '20061024-144658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40019',
internalId:  '',
customField: '20071025-151354'
};
var canonHostname = 'cfawrk08.aul.t-online.de';
var accountId     = 'ATOIX0INFX5F';
var companyName   = 'Taileron+EDF-VTOL';
var htmlTitle	  = 'Taileron+EDF+Vtol+RC+Flugmodell';
var metaKeywords  = 'MAV%2C+UAV%2C+Modellflug%2C+Modell%2C+Hover%2C+Hovern%2C+Schweben%2C+Schwebeplattform%2C+Transition%2C+Hubi%2C+Lumserei%2C+Lumu%2C+Lums%2C+Lumo%2C+ArtOfTime%2C+Impeller%2C+Lipo%2C+ACT%2C+ACTEUROPE%2C+Kontronik%2C+Feigao%2C+Bodeneffekt%2C+Bodenstart%2C+Kontronik%2C+Heli%2C+Funk+Kamera%2C+Video%2C+2.4GHz%2C+Senkrechtstarter%2C+VTOL%2C+Vertical+Take+Off+and+Landing%2C+EDF%2C+Electric+Ducted+Fan%2C+Taileron%2C+EDF%2C+VTOL%2C+RC%2C+Flugmodell%2C+Achim+Lumu+Huber%2C+Achim+Huber%2C+Lumu%2C+Flugmodell%2C+Flieger';
var metaContents  = 'Taileron+der+RC+Senkrechtstarter+mit+Impeller-Antrieb+und+Funk-Kamerasystem';
					                                                                    
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 */					                                                            

