/* [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','4595',jdecode('Home'),jdecode(''),'/4595.html','true',[],''],
	['PAGE','4679',jdecode('Angebote'),jdecode(''),'/4679.html','true',[],''],
	['PAGE','4760',jdecode('Umbauten'),jdecode(''),'/4760.html','true',[],''],
	['PAGE','4787',jdecode('Neubauten'),jdecode(''),'/4787/index.html','true',[ 
		['PAGE','6102',jdecode('Kontakt+%2F+Links+%28Folgeseite%29'),jdecode(''),'/4787/6102.html','false',[],'']
	],''],
	['PAGE','4706',jdecode('Tech.+Detail'),jdecode(''),'/4706.html','true',[],''],
	['PAGE','4733',jdecode('Referenzliste'),jdecode(''),'/4733.html','true',[],''],
	['PAGE','81920',jdecode('Adresse%2F+Kontakt'),jdecode(''),'/81920/index.html','true',[ 
		['PAGE','82592',jdecode('Adresse%2F+Kontakt+%28Folgeseite%29'),jdecode(''),'/81920/82592.html','false',[],'']
	],''],
	['PAGE','82507',jdecode('Links'),jdecode(''),'/82507.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Orbit';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='172';
theSitetree.graphicsetId='206';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Orbit',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'172',
				graphicsetId: 	'206',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '81920',
internalId:  'ahp010inen1y1099ba54d8d',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '6102',
internalId:  'ahp010inen1y1096d606541',
customField: 'followUp'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '82592',
internalId:  'ahp010inen1y1099ba54d8d',
customField: 'followUp'
};
var canonHostname = 'webomat';
var accountId     = 'Ahp010INEN1Y';
var companyName   = 'Carli+Bau+AG';
var htmlTitle	  = 'Bau+Unternehmung+in+Volketswil';
var metaKeywords  = 'Umbau%2C+Neubau%2C+Sanierung%2C+Bau%2C+Fassaden%2C+Aussenw%EF%BF%BDrmed%EF%BF%BDmmung%2C+Gips%2C+Bodenbel%EF%BF%BDge%2C+Plattenbel%EF%BF%BDge%2C+Risssanierungen%2C+Verputze';
var metaContents  = 'Dienstleistungsangebote+in+der+Baubranche';
					                                                                    
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 */					                                                            
