/* [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('Herzlich+willkommen%21%21'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40806',jdecode('Pf%C3%A4lzer+Herbst+2011'),jdecode(''),'/40806.html','false',[],''],
	['PAGE','40844',jdecode('2.+Adventsmarkt+im+Weingarten'),jdecode(''),'/40844.html','false',[],''],
	['PAGE','40860',jdecode('Weihnachten+2011'),jdecode(''),'/40860.html','false',[],''],
	['PAGE','40869',jdecode('Silvester+2011'),jdecode(''),'/40869.html','false',[],''],
	['PAGE','40829',jdecode('G%C3%A4nsezeit'),jdecode(''),'/40829.html','false',[],''],
	['PAGE','40941',jdecode('Weinweltreise'),jdecode(''),'/40941/home.html','true',[ 
		['PAGE','41568',jdecode('Februar+2012'),jdecode(''),'/40941/41568.html','true',[],''],
		['PAGE','41499',jdecode('Januar+2012'),jdecode(''),'/40941/41499.html','true',[],''],
		['PAGE','41399',jdecode('Dezember+2011'),jdecode(''),'/40941/41399.html','true',[],''],
		['PAGE','41355',jdecode('November+2011'),jdecode(''),'/40941/41355.html','true',[],''],
		['PAGE','41342',jdecode('Oktober+2011'),jdecode(''),'/40941/41342.html','true',[],''],
		['PAGE','41318',jdecode('September+2011'),jdecode(''),'/40941/41318.html','true',[],''],
		['PAGE','41141',jdecode('August+2011'),jdecode(''),'/40941/41141.html','true',[],''],
		['PAGE','41057',jdecode('Juli+2011'),jdecode(''),'/40941/41057.html','true',[],''],
		['PAGE','41039',jdecode('Juni+2011'),jdecode(''),'/40941/41039.html','true',[],''],
		['PAGE','41026',jdecode('Mai+2011'),jdecode(''),'/40941/41026.html','true',[],''],
		['PAGE','40988',jdecode('April+2011'),jdecode(''),'/40941/40988.html','true',[],''],
		['PAGE','40976',jdecode('M%C3%A4rz+2011'),jdecode(''),'/40941/40976.html','true',[],''],
		['PAGE','40950',jdecode('Februar+2011'),jdecode(''),'/40941/40950.html','true',[],'']
	],''],
	['PAGE','40820',jdecode('Auszug+aus+unserer+Speisekarte'),jdecode(''),'/40820.html','true',[],''],
	['PAGE','40894',jdecode('Adresse+und+%C3%96ffnungszeiten'),jdecode(''),'/40894.html','true',[],''],
	['PAGE','40928',jdecode('Bilder+Weingarten+%26+-stube'),jdecode(''),'/40928.html','true',[],''],
	['PAGE','41002',jdecode('Ausbildungs-%2Foffene+Stellen'),jdecode(''),'/41002.html','true',[],''],
	['PAGE','41159',jdecode('Unsere+Partner'),jdecode(''),'/41159.html','true',[],'']];
var siteelementCount=25;
theSitetree.topTemplateName='Favor';
theSitetree.paletteFamily='8FD381';
theSitetree.keyvisualId='10174';
theSitetree.keyvisualName='kv_10174.jpg';
theSitetree.fontsetId='16469';
theSitetree.graphicsetId='12162';
theSitetree.contentColor='323232';
theSitetree.contentBGColor='E9FCE4';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Favor',
				paletteFamily: 	'8FD381',
				keyvisualId: 	'10174',
				keyvisualName: 	'kv_10174.jpg',
				fontsetId: 		'16469',
				graphicsetId: 	'12162',
				contentColor: 	'323232',
				contentBGColor: 'E9FCE4',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
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: '20120127-092819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40806',
internalId:  '',
customField: '20110917-193709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40820',
internalId:  '',
customField: '20120127-093030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40829',
internalId:  '',
customField: '20111111-090137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40844',
internalId:  '',
customField: '20111118-222207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40869',
internalId:  '',
customField: '20111201-114542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40860',
internalId:  '',
customField: '20111201-114426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40894',
internalId:  '',
customField: '20110803-174827'
};
webappMappings['1007']=webappMappings['1007-12d6c87057b']={
webappId:    '1007',
documentId:  '40928',
internalId:  '12d6c87057b',
customField: 'g.15lm50so3.1mgqsc92uh.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40928',
internalId:  '',
customField: '20110109-215927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40941',
internalId:  '',
customField: '20110207-173838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40950',
internalId:  '',
customField: '20110207-180927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40976',
internalId:  '',
customField: '20110302-072456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40988',
internalId:  '',
customField: '20110403-091657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41002',
internalId:  '',
customField: '20110414-221444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41318',
internalId:  '',
customField: '20110831-214212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41026',
internalId:  '',
customField: '20110430-224008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41039',
internalId:  '',
customField: '20110630-220730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41057',
internalId:  '',
customField: '20110703-195423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41141',
internalId:  '',
customField: '20110801-160248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41159',
internalId:  '',
customField: '20111118-222945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41342',
internalId:  '',
customField: '20111002-134935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41355',
internalId:  '',
customField: '20111102-100148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41399',
internalId:  '',
customField: '20111130-233048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41499',
internalId:  '',
customField: '20120102-160340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41568',
internalId:  '',
customField: '20120202-222252'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0IRX8FK';
var companyName   = 'Weinstube+Zur+Adamslust';
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;                                                                     
	};                                                                               
theSitetree.getByXx = function(lookup, xx, ar) {									 
    if (typeof(ar) == 'undefined')												 
    	ar = this;																	 
    for (var i=0; i < ar.length; i++) {										     
        if (ar[i][xx] == lookup)													 
        	return ar[i];															 
        if (ar[i][POS_CHILDS].length > 0) {										 
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);					 
            if (result != null)													 
                return result;													 
        }																			 
    }																				 
    return null;																	 
};																				 
function gotoPage(lookup) {														 
    var page = theSitetree.getHREF(lookup);										 
    if (!page) {																	 
  		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];							 
            for (var i=0 ; i < testFor.length ; i++) {							 
                    var p = theSitetree.getByXx(lookup, testFor[i]);				 
                    if (p != null) {												 
                            page = p[POS_HREF];									 
                            break;												 
                    }																 
            }																		 
    }																				 
 document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
}
/* EOF */					                                                            

