/* [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','40292',jdecode('Service'),jdecode(''),'/40292.html','true',[],''],
	['PAGE','41405',jdecode('MDE'),jdecode(''),'/41405.html','true',[],''],
	['PAGE','42398',jdecode('Kontakt'),jdecode(''),'/42398/home.html','true',[ 
		['PAGE','42433',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/42398/42433.html','false',[],''],
		['PAGE','40301',jdecode('Impressum'),jdecode(''),'/42398/40301.html','true',[],'']
	],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='000066';
theSitetree.keyvisualId='1427';
theSitetree.keyvisualName='tastatur.jpg';
theSitetree.fontsetId='233';
theSitetree.graphicsetId='292';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Startup',
				paletteFamily: 	'000066',
				keyvisualId: 	'1427',
				keyvisualName: 	'tastatur.jpg',
				fontsetId: 		'233',
				graphicsetId: 	'292',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000066',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['1001']=webappMappings['1001-atoix0inhc0910a6a03dbc4']={
webappId:    '1001',
documentId:  '42398',
internalId:  'atoix0inhc0910a6a03dbc4',
customField: ''
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42433',
internalId:  '',
customField: '20060405-142538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40301',
internalId:  '',
customField: '20070507-125413'
};
webappMappings['1001']=webappMappings['1001-atoix0inhc0910a6a03dbc4']={
webappId:    '1001',
documentId:  '42433',
internalId:  'atoix0inhc0910a6a03dbc4',
customField: 'followUp'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20070507-123007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40292',
internalId:  '',
customField: '20070507-124907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41405',
internalId:  '',
customField: '20070507-124219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42398',
internalId:  '',
customField: '20070507-124947'
};
var canonHostname = 'cfawrk05.aul.t-online.de';
var accountId     = 'ATOIX0INHC09';
var companyName   = 'BOS+IT-Service+';
var htmlTitle	  = 'Bos+IT-Service';
var metaKeywords  = 'Bos%2C+PC%2C+Service%2C+IT-Service%2C+Krefeld%2C+IT-Beratung%2C+Projektmanagement%2C+Barcode%2C+IT%2C+Netztwerktechnik%2C+Server%2C+MDE%2C+RFID%2C+IT-Sicherheit%2C+Netzwerksicherheit%2C+Fischeln%2C+Projekt%2C+Computer%2C+ERP%2C+Consulting%2C+';
var metaContents  = 'Willkommen+bei+Ihrem+IT-Spezialisten.+Wir+bieten+Ihnen+schnellen+Service+und+kompetente+Beratung.';
					                                                                    
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 */					                                                            
