/* [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','40958',jdecode('Home'),jdecode(''),'/40958.html','true',[],''],
	['PAGE','40996',jdecode('Unsere+Leistungen'),jdecode(''),'/40996.html','true',[],''],
	['PAGE','40969',jdecode('K%C3%A4ltetechnik'),jdecode(''),'/40969.html','true',[],''],
	['PAGE','41005',jdecode('Klimatechnik'),jdecode(''),'/41005.html','true',[],''],
	['PAGE','41023',jdecode('W%C3%A4rmetechnik'),jdecode(''),'/41023.html','true',[],''],
	['PAGE','41014',jdecode('Hygieneinspektion'),jdecode(''),'/41014.html','true',[],''],
	['PAGE','40978',jdecode('Service+und+Wartung'),jdecode(''),'/40978.html','true',[],''],
	['PAGE','40987',jdecode('Referenzen'),jdecode(''),'/40987.html','true',[],''],
	['PAGE','41032',jdecode('Kontakt'),jdecode(''),'/41032.html','true',[],''],
	['PAGE','41331',jdecode('Impressum'),jdecode(''),'/41331.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='003399';
theSitetree.keyvisualId='1340';
theSitetree.keyvisualName='elektriker.jpg';
theSitetree.fontsetId='232';
theSitetree.graphicsetId='273';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Startup',
				paletteFamily: 	'003399',
				keyvisualId: 	'1340',
				keyvisualName: 	'elektriker.jpg',
				fontsetId: 		'232',
				graphicsetId: 	'273',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'003399',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '40958',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40958',
internalId:  '',
customField: '20070118-111321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40969',
internalId:  '',
customField: '20070106-103401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40978',
internalId:  '',
customField: '20070106-103431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40987',
internalId:  '',
customField: '20070106-103504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40996',
internalId:  '',
customField: '20070118-153630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41005',
internalId:  '',
customField: '20070106-103623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41014',
internalId:  '',
customField: '20070118-125233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41023',
internalId:  '',
customField: '20070112-151315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41032',
internalId:  '',
customField: '20070118-133423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41331',
internalId:  '',
customField: '20070930-110309'
};
webappMappings['1008']=webappMappings['1008-27438095']={
webappId:    '1008',
documentId:  '41032',
internalId:  '27438095',
customField: 'de:DE:'
};
var canonHostname = 'cfawrk11.aul.t-online.de';
var accountId     = 'ATOIX0I7UGZL';
var companyName   = '+K%C3%A4lte-Klima-W%C3%A4rmetechnik';
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 */					                                                            

