/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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','5888',jdecode('Home'),jdecode(''),'/5888/home.html','true',[ 
		['PAGE','10967',jdecode('Das+Unternehmen'),jdecode(''),'/5888/10967.html','true',[],''],
		['PAGE','11021',jdecode('Unsere+Produkte'),jdecode(''),'/5888/11021.html','true',[],''],
		['PAGE','11708',jdecode('Unsere+Dienstleistungen'),jdecode(''),'/5888/11708.html','true',[],''],
		['PAGE','12417',jdecode('Unsere+Referenzen'),jdecode(''),'/5888/12417.html','true',[],''],
		['PAGE','11048',jdecode('Kontakt'),jdecode(''),'/5888/11048.html','true',[],''],
		['PAGE','10994',jdecode('Impressum'),jdecode(''),'/5888/10994.html','true',[],''],
		['PAGE','11909',jdecode('Anfahrt'),jdecode(''),'/5888/11909.html','true',[],''],
		['PAGE','16128',jdecode('Zertifikate+Download'),jdecode(''),'/5888/16128.html','true',[],'']
	],''],
	['PAGE','13808',jdecode('home+english+version'),jdecode(''),'/13808/home.html','true',[ 
		['PAGE','13839',jdecode('company'),jdecode(''),'/13808/13839.html','true',[],''],
		['PAGE','13866',jdecode('products'),jdecode(''),'/13808/13866.html','true',[],''],
		['PAGE','13893',jdecode('services'),jdecode(''),'/13808/13893.html','true',[],''],
		['PAGE','13920',jdecode('reference+list'),jdecode(''),'/13808/13920.html','true',[],''],
		['PAGE','13947',jdecode('contact'),jdecode(''),'/13808/13947.html','true',[],''],
		['PAGE','13974',jdecode('imprint'),jdecode(''),'/13808/13974.html','true',[],''],
		['PAGE','14001',jdecode('how+to+find+us'),jdecode(''),'/13808/14001.html','true',[],''],
		['PAGE','16137',jdecode('Certifikates+Download'),jdecode(''),'/13808/16137.html','true',[],'']
	],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Business';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='2492';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='418';
theSitetree.graphicsetId='463';
theSitetree.contentColor='020E66';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Business',
				paletteFamily: 	'003366',
				keyvisualId: 	'2492',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'418',
				graphicsetId: 	'463',
				contentColor: 	'020E66',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'003366',
				b_color: 		'FFFFFF',
				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['2001']={
webappId:    '2001',
documentId:  '11909',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '5888',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5888',
internalId:  '',
customField: '20070719-153011'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11021',
internalId:  '',
customField: '20070225-210925'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10967',
internalId:  '',
customField: '20040117-095409'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11708',
internalId:  '',
customField: '20040113-181251'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '12417',
internalId:  '',
customField: '20040117-095942'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11048',
internalId:  '',
customField: '20031215-201932'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10994',
internalId:  '',
customField: '20040117-101256'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '11909',
internalId:  '',
customField: '20031216-143455'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13808',
internalId:  '',
customField: '20040204-115944'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13839',
internalId:  '',
customField: '20040204-120802'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13866',
internalId:  '',
customField: '20041027-092501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13893',
internalId:  '',
customField: '20040204-122203'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13920',
internalId:  '',
customField: '20040204-122608'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13947',
internalId:  '',
customField: '20040204-123625'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13974',
internalId:  '',
customField: '20040204-123552'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20040204-124608'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16128',
internalId:  '',
customField: '20070719-163932'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16137',
internalId:  '',
customField: '20070719-152705'
};
var canonHostname = 'cfawrk08.aul.t-online.de';
var accountId     = 'ATOIX0INVUBP';
var companyName   = 'Koppe-Apparatebau+GmbH';
var htmlTitle	  = '';
var metaKeywords  = '0';
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 */					                                                            
