/* [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','40497',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/40497/home.html','true',[ 
		['PAGE','40532',jdecode('Unser+Team'),jdecode(''),'/40497/40532.html','true',[],''],
		['PAGE','40541',jdecode('Unsere+Fahrzeuge'),jdecode(''),'/40497/40541.html','true',[],''],
		['PAGE','40550',jdecode('Partner'),jdecode(''),'/40497/40550.html','true',[],'']
	],''],
	['PAGE','40559',jdecode('Produkte'),jdecode(''),'/40559.html','true',[],''],
	['PAGE','40568',jdecode('Referenzen'),jdecode(''),'/40568.html','true',[],''],
	['PAGE','40577',jdecode('Links'),jdecode(''),'/40577.html','true',[],''],
	['PAGE','40586',jdecode('Kontakt'),jdecode(''),'/40586.html','true',[],''],
	['PAGE','40595',jdecode('Impressum'),jdecode(''),'/40595.html','true',[],''],
	['PAGE','40613',jdecode('G%C3%A4stebuch'),jdecode(''),'/40613/home.html','true',[ 
		['PAGE','40612',jdecode('Eintr%C3%A4ge'),jdecode(''),'/40613/40612.html','true',[],'']
	],''],
	['PAGE','40631',jdecode('Aktuelle+Angebote'),jdecode(''),'/40631.html','true',[],''],
	['PAGE','40674',jdecode('Anfahrt'),jdecode(''),'/40674.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='TOI_3D-Style_1';
theSitetree.paletteFamily='CEBF98';
theSitetree.keyvisualId='10797';
theSitetree.keyvisualName='kv_10797.jpg';
theSitetree.fontsetId='31839';
theSitetree.graphicsetId='13651';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='2A7DE4';
var theTemplate={
				name: 			'TOI_3D-Style_1',
				paletteFamily: 	'CEBF98',
				keyvisualId: 	'10797',
				keyvisualName: 	'kv_10797.jpg',
				fontsetId: 		'31839',
				graphicsetId: 	'13651',
				contentColor: 	'FFFFFF',
				contentBGColor: '2A7DE4',
				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'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20080111-165332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40497',
internalId:  '',
customField: '20070310-085920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40586',
internalId:  '',
customField: '20080131-155424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40532',
internalId:  '',
customField: '20080115-161629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40541',
internalId:  '',
customField: '20080131-094228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40550',
internalId:  '',
customField: '20080115-161709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40559',
internalId:  '',
customField: '20080115-161747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40568',
internalId:  '',
customField: '20080115-161827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40577',
internalId:  '',
customField: '20080208-072534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40595',
internalId:  '',
customField: '20080131-150256'
};
webappMappings['1002']=webappMappings['1002-40613atoix0i7ydse']={
webappId:    '1002',
documentId:  '40613',
internalId:  '40613atoix0i7ydse',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-40613atoix0i7ydse']={
webappId:    '1002',
documentId:  '40612',
internalId:  '40613atoix0i7ydse',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40613',
internalId:  '',
customField: '20080111-135952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40612',
internalId:  '',
customField: '20080111-135952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40631',
internalId:  '',
customField: '20080115-162123'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '40674',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40674',
internalId:  '',
customField: '20080114-133844'
};
webappMappings['1501']=webappMappings['1501-44420236']={
webappId:    '1501',
documentId:  '44',
internalId:  '44420236',
customField: '1501'
};
webappMappings['1008']=webappMappings['1008-45201229']={
webappId:    '1008',
documentId:  '40586',
internalId:  '45201229',
customField: 'de:DE::;language:de;country:DE;'
};
var canonHostname = 'cfawrk08.aul.t-online.de';
var accountId     = 'ATOIX0I7YDSE';
var companyName   = 'Ihr+Fachh%C3%A4ndler+f%C3%BCr+Ausbau+und+Fassade';
var htmlTitle	  = 'BAUMATECH';
var metaKeywords  = 'BAUMATECH%2C+PFT%2C+G4%2C+Giraffe%2C+Knauf%2C++Baubedarf%2C++Baustoffe%2C++Bau%2C++Elementedecken%2C+Fertigbauteile%2C++Innenausbau%2C+Dachausbau%2C+Daemmstoffe%2C++Baumaterial++';
var metaContents  = 'BAUMATECH+Ihr+Fachh%C3%A4ndler+f%C3%BCr+Ausbau+und+Fassade';
					                                                                    
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 */					                                                            

