/* [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','4555',jdecode('Home'),jdecode(''),'/4555.html','true',[],''],
	['PAGE','4612',jdecode('Die+Firma'),jdecode(''),'/4612.html','true',[],''],
	['PAGE','4639',jdecode('Dienstleistungen'),jdecode(''),'/4639/index.html','true',[ 
		['PAGE','4666',jdecode('Treuhand'),jdecode(''),'/4639/4666.html','true',[],''],
		['PAGE','4693',jdecode('Informatik'),jdecode(''),'/4639/4693.html','true',[],'']
	],''],
	['PAGE','4747',jdecode('Aktuelles'),jdecode(''),'/4747.html','true',[],''],
	['PAGE','4720',jdecode('Kontakt'),jdecode(''),'/4720/index.html','true',[ 
		['PAGE','4819',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/4720/4819.html','false',[],'']
	],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Neon';
theSitetree.paletteFamily='CC0000';
theSitetree.keyvisualId='1676';
theSitetree.keyvisualName='handschlag3.jpg';
theSitetree.fontsetId='160';
theSitetree.graphicsetId='188';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Neon',
				paletteFamily: 	'CC0000',
				keyvisualId: 	'1676',
				keyvisualName: 	'handschlag3.jpg',
				fontsetId: 		'160',
				graphicsetId: 	'188',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'6699CC',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4720',
internalId:  'ahopt0in3orj421a71e58d34142b',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '4819',
internalId:  'ahopt0in3orj421a71e58d34142b',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4555',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'webomat';
var accountId     = 'AHOPT0IN3ORJ';
var companyName   = 'B%C3%9CTTIKER+++Treuhand+und+Informatik+GmbH';
var htmlTitle	  = 'BUETTIKER+Treuhand+und+Informatik+GmbH';
var metaKeywords  = 'b%C3%BCttiker%2Cbuettiker%2Ctreuhand%2Cinformatik%2Ctreuhand+und+informatik+gmbh%2Cdienstleistungen%2Cmax+b%C3%BCttiker%2Cbrigitte+b%C3%BCttiker%2Cbuchhaltung%2Crevision%2Cberatung%2Cconsulting%2CM%C3%B6slistrasse';
var metaContents  = 'BUETTIKER+Treuhand+und+Informatik+Gmbh.+Treuhand-+und+Informatik-Dienstleistungen+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 */					                                                            
