/* [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','41971',jdecode('Home'),jdecode(''),'/41971.html','true',[],''],
	['PAGE','41982',jdecode('Containerdienst'),jdecode(''),'/41982/home.html','true',[ 
		['PAGE','41991',jdecode('Transporte-Baustoffe'),jdecode(''),'/41982/41991.html','true',[],'']
	],''],
	['PAGE','42018',jdecode('Bauunternehmen'),jdecode(''),'/42018/home.html','true',[ 
		['PAGE','42000',jdecode('Erdbewegungen'),jdecode(''),'/42018/42000.html','true',[],''],
		['PAGE','42009',jdecode('Abbrucharbeiten'),jdecode(''),'/42018/42009.html','true',[],''],
		['PAGE','42179',jdecode('Entw%C3%A4sserung'),jdecode(''),'/42018/42179.html','true',[],'']
	],''],
	['PAGE','42027',jdecode('Kontakt'),jdecode(''),'/42027/home.html','true',[ 
		['PAGE','42167',jdecode('Anfahrt'),jdecode(''),'/42027/42167.html','true',[],'']
	],''],
	['PAGE','42054',jdecode('Impressum'),jdecode(''),'/42054.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Linea';
theSitetree.paletteFamily='4CA04C';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='401';
theSitetree.graphicsetId='450';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Linea',
				paletteFamily: 	'4CA04C',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'401',
				graphicsetId: 	'450',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'FFFFFF',
				b_color: 		'4CA04C',
				c_color: 		'4CA04C',
				d_color: 		'007800',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '41971',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41971',
internalId:  '',
customField: '20070723-153451'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41982',
internalId:  '',
customField: '20070508-161419'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41991',
internalId:  '',
customField: '20070304-220609'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42000',
internalId:  '',
customField: '20070304-220703'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42009',
internalId:  '',
customField: '20070304-220737'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42018',
internalId:  '',
customField: '20070304-220632'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42027',
internalId:  '',
customField: '20070723-153401'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42179',
internalId:  '',
customField: '20070304-220800'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42054',
internalId:  '',
customField: '20070723-153348'
};
webappMappings['2001']={
webappId:    '2001',
documentId:  '42167',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42167',
internalId:  '',
customField: '20070225-134157'
};
var canonHostname = 'cfawrk07.aul.t-online.de';
var accountId     = 'ATOIX0I76E34';
var companyName   = 'J.B.+-+Johannes+Biesen+Containerdienst';
var htmlTitle	  = 'Containerdienst+Biesen';
var metaKeywords  = 'Containerdienst+Biesen%2C+Container%2C+JB-Containerdienst%2C+Entsorgung%2C+Abfall%2C+Wesel%2C+Abbr%C3%BCche%2C+Erdbewegungen%2C+Entw%C3%A4sserung%2C+Rigolen%2C+Versickerung%2C+Baustoffe%2C+Bauunternehmen%2C+Bagger%2C+Baumaschinenvermietung%2C+Transporte%2C+Abfallentsorgung%2C+Biesen%2C+Johannes+Biesen%2C+Bauschutt%2C+Schotter';
var metaContents  = 'Container%2C+Entsorgung%2C+Abbr%C3%BCche%2C+Erdbewegungen%2C+Baustoffe+oder+Transporte+Johannes+Biesen+Containerdienst+in+Wesel...alles+aus+einer+Hand.';
					                                                                    
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 */					                                                            
