/* [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','13776',jdecode('Startseite'),jdecode(''),'/13776.html','true',[],''],
	['PAGE','18306',jdecode('Leistungen'),jdecode(''),'/18306/home.html','true',[ 
		['PAGE','100768',jdecode('Hydraulik+'),jdecode(''),'/18306/100768.html','true',[],''],
		['PAGE','26432',jdecode('Kreisprozesse'),jdecode(''),'/18306/26432.html','true',[],'']
	],''],
	['PAGE','27132',jdecode('Aktuelles'),jdecode(''),'/27132.html','true',[],''],
	['PAGE','83168',jdecode('Forum'),jdecode(''),'/83168.html','true',[],''],
	['PAGE','18311',jdecode('Referenzen'),jdecode(''),'/18311.html','true',[],''],
	['PAGE','18321',jdecode('Partner'),jdecode(''),'/18321.html','true',[],''],
	['PAGE','18326',jdecode('Kontakt'),jdecode(''),'/18326/home.html','true',[ 
		['PAGE','80268',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/18326/80268.html','false',[],''],
		['PAGE','48268',jdecode('Impressum'),jdecode(''),'/18326/48268.html','true',[],'']
	],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Struktur02';
theSitetree.paletteFamily='312D39';
theSitetree.keyvisualId='10983';
theSitetree.keyvisualName='kv_10983.jpg';
theSitetree.fontsetId='31922';
theSitetree.graphicsetId='13740';
theSitetree.contentColor='242128';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Struktur02',
				paletteFamily: 	'312D39',
				keyvisualId: 	'10983',
				keyvisualName: 	'kv_10983.jpg',
				fontsetId: 		'31922',
				graphicsetId: 	'13740',
				contentColor: 	'242128',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13776',
internalId:  '',
customField: '20080817-164042'
};
webappMappings['1501']=webappMappings['1501-17679689']={
webappId:    '1501',
documentId:  '13776',
internalId:  '17679689',
customField: '1501'
};
webappMappings['1003']=webappMappings['1003-atoix0in3me310ae4e80b86']={
webappId:    '1003',
documentId:  '83168',
internalId:  'atoix0in3me310ae4e80b86',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18306',
internalId:  '',
customField: '20071225-202819'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '13776',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']=webappMappings['1001-atoix0in3me310a041af2c6']={
webappId:    '1001',
documentId:  '18326',
internalId:  'atoix0in3me310a041af2c6',
customField: ''
};
webappMappings['1001']=webappMappings['1001-atoix0in3me310a041af2c6']={
webappId:    '1001',
documentId:  '80268',
internalId:  'atoix0in3me310a041af2c6',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27132',
internalId:  '',
customField: '20080705-165059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26432',
internalId:  '',
customField: '20071224-175223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83168',
internalId:  '',
customField: '20070317-235914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18311',
internalId:  '',
customField: '20080220-203244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18321',
internalId:  '',
customField: '20071230-160714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18326',
internalId:  '',
customField: '20071229-223349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80268',
internalId:  '',
customField: '20060316-182936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48268',
internalId:  '',
customField: '20071230-161646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100768',
internalId:  '',
customField: '20071224-215157'
};
var canonHostname = 'cfawrk09.aul.t-online.de';
var accountId     = 'ATOIX0IN3ME3';
var companyName   = 'Kommunikation+%26+Geb%C3%A4udemanagement';
var htmlTitle	  = 'Das+Energieportal';
var metaKeywords  = 'Intelligente+Systeme%2C+CO2-Geb%C3%A4udesanierung%2C+Energieberatung%2C++Solar%2C+BHKW%2C+Brennstoffzelle%2C+Rotortechnik%2C+Turbinentechnik%2C+Thermodynamik%2C+Seuerungs-und+Regelungstechnik%2C+Kommunikation%2C+';
var metaContents  = 'Die+konsequente+Umsetzung+der+Energieberatung+von+der+Planung%2C+%C3%BCber+die+Beratung+bis+hin+zur++Ausf%C3%BChrung.';
					                                                                    
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 */					                                                            
