/* [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','10186',jdecode('Startseite'),jdecode(''),'/10186.html','true',[],''],
	['PAGE','10412',jdecode('Vor-Ort-Energieberatung'),jdecode(''),'/10412.html','true',[],''],
	['PAGE','10421',jdecode('Energieausweise'),jdecode(''),'/10421.html','true',[],''],
	['PAGE','10430',jdecode('%C3%96kologische+Bauberatung'),jdecode(''),'/10430.html','true',[],''],
	['PAGE','10439',jdecode('KfW+Nachweise'),jdecode(''),'/10439.html','true',[],''],
	['PAGE','10448',jdecode('Thermografie'),jdecode(''),'/10448.html','true',[],''],
	['PAGE','10457',jdecode('Biomassef%C3%B6rderung'),jdecode(''),'/10457.html','true',[],''],
	['PAGE','10466',jdecode('Solarf%C3%B6rderung'),jdecode(''),'/10466.html','true',[],''],
	['PAGE','10475',jdecode('Bauphysik'),jdecode(''),'/10475.html','true',[],''],
	['PAGE','10487',jdecode('G%C3%A4stebuch'),jdecode(''),'/10487/home.html','true',[ 
		['PAGE','10486',jdecode('Eintr%C3%A4ge'),jdecode(''),'/10487/10486.html','true',[],'']
	],''],
	['PAGE','10821',jdecode('So+finden+sie+uns'),jdecode(''),'/10821.html','true',[],'']];
var siteelementCount=12;
theSitetree.topTemplateName='TOI_Presentation_1';
theSitetree.paletteFamily='A59D75';
theSitetree.keyvisualId='10698';
theSitetree.keyvisualName='kv_10698.jpg';
theSitetree.fontsetId='31803';
theSitetree.graphicsetId='13579';
theSitetree.contentColor='292A2D';
theSitetree.contentBGColor='898FA2';
var theTemplate={
				name: 			'TOI_Presentation_1',
				paletteFamily: 	'A59D75',
				keyvisualId: 	'10698',
				keyvisualName: 	'kv_10698.jpg',
				fontsetId: 		'31803',
				graphicsetId: 	'13579',
				contentColor: 	'292A2D',
				contentBGColor: '898FA2',
				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:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10186',
internalId:  '',
customField: '20070919-131250'
};
webappMappings['1002']=webappMappings['1002-10487atoix0inv0og']={
webappId:    '1002',
documentId:  '10487',
internalId:  '10487atoix0inv0og',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-10487atoix0inv0og']={
webappId:    '1002',
documentId:  '10486',
internalId:  '10487atoix0inv0og',
customField: 'action=list'
};
webappMappings['1501']=webappMappings['1501-39817100']={
webappId:    '1501',
documentId:  '10186',
internalId:  '39817100',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '10186',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10821',
internalId:  '',
customField: '20070919-140433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10412',
internalId:  '',
customField: '20070920-090226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10421',
internalId:  '',
customField: '20070919-120146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10430',
internalId:  '',
customField: '20070919-140842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10439',
internalId:  '',
customField: '20070919-120407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10448',
internalId:  '',
customField: '20070919-140707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10457',
internalId:  '',
customField: '20070919-120808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10466',
internalId:  '',
customField: '20070919-120845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10475',
internalId:  '',
customField: '20070919-140937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10487',
internalId:  '',
customField: '20070919-122027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10486',
internalId:  '',
customField: '20070919-122027'
};
var canonHostname = 'cfawrk08.aul.t-online.de';
var accountId     = 'ATOIX0INV0OG';
var companyName   = 'Dietermann+Energieberatung';
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 */					                                                            
