/* [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','4579',jdecode('Startseite'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','13701',jdecode('Leistungen'),jdecode(''),'/13701.html','true',[],''],
	['PAGE','13706',jdecode('Kontakt'),jdecode(''),'/13706/home.html','true',[ 
		['PAGE','14274',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/13706/14274.html','false',[],'']
	],'']];
var siteelementCount=4;
theSitetree.topTemplateName='Filofax';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='521';
theSitetree.keyvisualName='duenen_meer.jpg';
theSitetree.fontsetId='61';
theSitetree.graphicsetId='62';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Filofax',
				paletteFamily: 	'003366',
				keyvisualId: 	'521',
				keyvisualName: 	'duenen_meer.jpg',
				fontsetId: 		'61',
				graphicsetId: 	'62',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'003366',
				b_color: 		'66CCFF',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']=webappMappings['1001-atoix0inxz9ufe51469a04']={
webappId:    '1001',
documentId:  '13706',
internalId:  'atoix0inxz9ufe51469a04',
customField: ''
};
webappMappings['1001']=webappMappings['1001-atoix0inxz9ufe51469a04']={
webappId:    '1001',
documentId:  '14274',
internalId:  'atoix0inxz9ufe51469a04',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20070729-100314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13701',
internalId:  '',
customField: '20050721-111938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13706',
internalId:  '',
customField: '20070729-100508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14274',
internalId:  '',
customField: '20040812-063434'
};
var canonHostname = 'cfawrk03.aul.t-online.de';
var accountId     = 'ATOIX0INXZ9U';
var companyName   = 'Geologische+Dienstleistungen';
var htmlTitle	  = 'Diplom-Geologe+BDG+Matthias+Seip';
var metaKeywords  = 'Abfall%2C+Abwasser%2C+Altlasten%2C+Altlastenerkundung%2C+Altlastensanierung%2C+Altlastenuntersuchung%2C+Audit%2C+Baugrunduntersuchung%2C+Beratung%2C+Boden%2C+Bodenuntersuchung%2C+Diplom-Geologe%2C+Entsorgung%2C+Geb%C3%A4udesanierung%2C+Geologe%2C+Geologie%2C+Grundst%C3%BCcksbewertung%2C+Grundwasser%2C+Grundwasseruntersuchung%2C+Hydrogeologie%2C+Matthias+Seip%2C+Projektmanagement%2C+Pumpversuch%2C+R%C3%BCckbau%2C+Seip%2C+Umwelt-Audit%2C+Umweltberatung%2C+Wassergef%C3%A4hrdende+Stoffe';
var metaContents  = 'Geologische+Dienstleistungen%3A+Altablagerungen%2C+Altstandorte%2C+Grundst%C3%BCcksbewertung%2C+Umweltschutz';
					                                                                    
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 */					                                                            
