/* [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','14101',jdecode('Herzlich+Willkommen'),jdecode(''),'/14101.html','true',[],''],
	['PAGE','16166',jdecode('Kleine+Kaffeekunde'),jdecode(''),'/16166/home.html','true',[ 
		['PAGE','16175',jdecode('Herkunft+%26+Geschichte'),jdecode(''),'/16166/16175.html','true',[],''],
		['PAGE','16184',jdecode('Botanisches'),jdecode(''),'/16166/16184.html','true',[],''],
		['PAGE','16193',jdecode('Anbau'),jdecode(''),'/16166/16193.html','true',[],''],
		['PAGE','16202',jdecode('Zahlen+und+Fakten'),jdecode(''),'/16166/16202.html','true',[],'']
	],''],
	['PAGE','16211',jdecode('Langen+Kaffee'),jdecode(''),'/16211.html','true',[],''],
	['PAGE','16220',jdecode('Das+Kaffeesortiment'),jdecode(''),'/16220.html','true',[],''],
	['PAGE','16256',jdecode('Online+Shop'),jdecode(''),'/16256.html','true',[],''],
	['PAGE','16229',jdecode('Tee+oder+Kaffee+..+'),jdecode(''),'/16229.html','true',[],''],
	['PAGE','16311',jdecode('G%C3%A4stebuch'),jdecode(''),'/16311/home.html','true',[ 
		['PAGE','16310',jdecode('Eintr%C3%A4ge'),jdecode(''),'/16311/16310.html','true',[],'']
	],''],
	['PAGE','16247',jdecode('Impressum'),jdecode(''),'/16247.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Urlaub11';
theSitetree.paletteFamily='EDDAC4';
theSitetree.keyvisualId='9940';
theSitetree.keyvisualName='kv_9940.jpg';
theSitetree.fontsetId='17740';
theSitetree.graphicsetId='13105';
theSitetree.contentColor='442D13';
theSitetree.contentBGColor='FCF2DB';
var theTemplate={
				name: 			'Urlaub11',
				paletteFamily: 	'EDDAC4',
				keyvisualId: 	'9940',
				keyvisualName: 	'kv_9940.jpg',
				fontsetId: 		'17740',
				graphicsetId: 	'13105',
				contentColor: 	'442D13',
				contentBGColor: 'FCF2DB',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['5000']={
webappId:    '5000',
documentId:  '14101',
internalId:  '',
customField: '20070115-122801'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16166',
internalId:  '',
customField: '20070115-121605'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16175',
internalId:  '',
customField: '20070115-121700'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16184',
internalId:  '',
customField: '20070115-122013'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16193',
internalId:  '',
customField: '20070115-121953'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16202',
internalId:  '',
customField: '20070115-121932'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16211',
internalId:  '',
customField: '20070115-122301'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16220',
internalId:  '',
customField: '20070115-122711'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16256',
internalId:  '',
customField: '20070115-123105'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16229',
internalId:  '',
customField: '20070115-123300'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16247',
internalId:  '',
customField: '20070115-123532'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '16311',
internalId:  '16311atoix0inl8c7',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '16310',
internalId:  '16311atoix0inl8c7',
customField: 'action=list'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '14101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16311',
internalId:  '',
customField: '20070115-124013'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '16310',
internalId:  '',
customField: '20070115-124013'
};
var canonHostname = 'cfawrk03.aul.t-online.de';
var accountId     = 'ATOIX0INL8C7';
var companyName   = 'Peter+Chudoba+-+Kaffee+%26+Service';
var htmlTitle	  = '';
var metaKeywords  = '0';
var metaContents  = '';
					                                                                    
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 */					                                                            
