/* [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','39994',jdecode('Forside'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40573',jdecode('Menukort'),jdecode(''),'/40573/home.html','true',[ 
		['PAGE','43397',jdecode('Vorspeisen'),jdecode(''),'/40573/43397.html','false',[],''],
		['PAGE','43406',jdecode('Fleischgerichte'),jdecode(''),'/40573/43406.html','false',[],''],
		['PAGE','43415',jdecode('Fischgerichte'),jdecode(''),'/40573/43415.html','false',[],''],
		['PAGE','44155',jdecode('Andere+Hauptgerichte+und+Beilagen'),jdecode(''),'/40573/44155.html','false',[],''],
		['PAGE','43424',jdecode('F%C3%BCr+unsere+Kleinen'),jdecode(''),'/40573/43424.html','false',[],''],
		['PAGE','43433',jdecode('Getr%C3%A4nke'),jdecode(''),'/40573/43433.html','false',[],''],
		['PAGE','43442',jdecode('Dessert'),jdecode(''),'/40573/43442.html','false',[],'']
	],''],
	['PAGE','40635',jdecode('Galleri'),jdecode(''),'/40635/home.html','true',[ 
		['PAGE','45696',jdecode('Raum1'),jdecode(''),'/40635/45696.html','false',[],''],
		['PAGE','45705',jdecode('Raum2'),jdecode(''),'/40635/45705.html','false',[],''],
		['PAGE','45714',jdecode('Raum3'),jdecode(''),'/40635/45714.html','false',[],''],
		['PAGE','45723',jdecode('Raum4'),jdecode(''),'/40635/45723.html','false',[],''],
		['PAGE','45732',jdecode('Raum5'),jdecode(''),'/40635/45732.html','false',[],''],
		['PAGE','45741',jdecode('Raum6'),jdecode(''),'/40635/45741.html','false',[],''],
		['PAGE','45750',jdecode('Raum7'),jdecode(''),'/40635/45750.html','false',[],'']
	],''],
	['PAGE','43370',jdecode('Find+Os'),jdecode(''),'/43370.html','true',[],''],
	['PAGE','40582',jdecode('Hvem+er+vi'),jdecode(''),'/40582.html','true',[],''],
	['PAGE','45886',jdecode('Impressum'),jdecode(''),'/45886.html','false',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='003399';
theSitetree.keyvisualId='1252';
theSitetree.keyvisualName='gedeck.jpg';
theSitetree.fontsetId='191';
theSitetree.graphicsetId='228';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Profile',
				paletteFamily: 	'003399',
				keyvisualId: 	'1252',
				keyvisualName: 	'gedeck.jpg',
				fontsetId: 		'191',
				graphicsetId: 	'228',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'003399',
				b_color: 		'000066',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20070902-120743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43370',
internalId:  '',
customField: '20070808-164823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40573',
internalId:  '',
customField: '20070829-113251'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '43370',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['3001']=webappMappings['3001-']={
webappId:    '3001',
documentId:  '40582',
internalId:  '',
customField: ''
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40635',
internalId:  '',
customField: '20070829-110236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40582',
internalId:  '',
customField: '20070709-170249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43397',
internalId:  '',
customField: '20070903-153552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43415',
internalId:  '',
customField: '20070828-124340'
};
webappMappings['3001']=webappMappings['3001-']={
webappId:    '3001',
documentId:  '43370',
internalId:  '',
customField: ''
};
webappMappings['3001']=webappMappings['3001-']={
webappId:    '3001',
documentId:  '40635',
internalId:  '',
customField: ''
};
webappMappings['3001']=webappMappings['3001-']={
webappId:    '3001',
documentId:  '40573',
internalId:  '',
customField: ''
};
webappMappings['3001']=webappMappings['3001-']={
webappId:    '3001',
documentId:  '39994',
internalId:  '',
customField: ''
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43406',
internalId:  '',
customField: '20070828-124128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44155',
internalId:  '',
customField: '20070828-124435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43424',
internalId:  '',
customField: '20070828-124534'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43433',
internalId:  '',
customField: '20070828-124634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43442',
internalId:  '',
customField: '20070902-115719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45696',
internalId:  '',
customField: '20070829-105206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45705',
internalId:  '',
customField: '20070829-105405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45714',
internalId:  '',
customField: '20070829-105517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45723',
internalId:  '',
customField: '20070829-105623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45732',
internalId:  '',
customField: '20070829-105730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45741',
internalId:  '',
customField: '20070829-105832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45750',
internalId:  '',
customField: '20070829-105942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45886',
internalId:  '',
customField: '20070829-134407'
};
var canonHostname = 'cfawrk04.aul.t-online.de';
var accountId     = 'ATOIX0I7VJEA';
var companyName   = 'Grenzkrog+Aventoft';
var htmlTitle	  = '';
var metaKeywords  = '';
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 */					                                                            

