/* [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('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40660',jdecode('Speisekarte'),jdecode(''),'/40660.html','true',[],''],
	['PAGE','40669',jdecode('Getr%C3%A4nkekarte'),jdecode(''),'/40669.html','true',[],''],
	['PAGE','40678',jdecode('Bierkopfturnier'),jdecode(''),'/40678.html','true',[],''],
	['PAGE','40687',jdecode('Fasching'),jdecode(''),'/40687/home.html','true',[ 
		['PAGE','64101',jdecode('Hausfasching+2012'),jdecode(''),'/40687/64101.html','true',[],'']
	],''],
	['PAGE','41201',jdecode('Unsere+Stammtische'),jdecode(''),'/41201/home.html','true',[ 
		['PAGE','41210',jdecode('Bayernstammtisch'),jdecode(''),'/41201/41210.html','true',[],''],
		['PAGE','41219',jdecode('Spritis'),jdecode(''),'/41201/41219.html','true',[],''],
		['PAGE','41247',jdecode('Dartclub+501'),jdecode(''),'/41201/41247.html','true',[],''],
		['PAGE','41228',jdecode('Bad+Rodacher+Borussen'),jdecode(''),'/41201/41228.html','true',[],''],
		['PAGE','41237',jdecode('Dienstagskarter'),jdecode(''),'/41201/41237.html','true',[],'']
	],''],
	['PAGE','50301',jdecode('WM+2010'),jdecode(''),'/50301.html','true',[],''],
	['PAGE','43087',jdecode('40+Jahre+FC+Bad+Rodach'),jdecode(''),'/43087.html','true',[],''],
	['PAGE','40705',jdecode('%C3%96ffnungszeiten'),jdecode(''),'/40705.html','true',[],''],
	['PAGE','40714',jdecode('Kontakt'),jdecode(''),'/40714.html','true',[],''],
	['PAGE','41629',jdecode('Impressum'),jdecode(''),'/41629.html','true',[],''],
	['PAGE','83301',jdecode('Partnerlinks'),jdecode(''),'/83301.html','true',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Party12';
theSitetree.paletteFamily='DE8903';
theSitetree.keyvisualId='8666';
theSitetree.keyvisualName='kv_8666.jpg';
theSitetree.fontsetId='17870';
theSitetree.graphicsetId='12583';
theSitetree.contentColor='FEFFB0';
theSitetree.contentBGColor='B10A0A';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Party12',
				paletteFamily: 	'DE8903',
				keyvisualId: 	'8666',
				keyvisualName: 	'kv_8666.jpg',
				fontsetId: 		'17870',
				graphicsetId: 	'12583',
				contentColor: 	'FEFFB0',
				contentBGColor: 'B10A0A',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
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: '20120129-191803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40669',
internalId:  '',
customField: '20110203-142633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40660',
internalId:  '',
customField: '20100204-164631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40678',
internalId:  '',
customField: '20111021-141037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40705',
internalId:  '',
customField: '20100816-120532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40714',
internalId:  '',
customField: '20100218-175930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40687',
internalId:  '',
customField: '20110228-124326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41201',
internalId:  '',
customField: '20100205-214855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41210',
internalId:  '',
customField: '20100205-161526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41219',
internalId:  '',
customField: '20100205-161719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41247',
internalId:  '',
customField: '20110110-134012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41228',
internalId:  '',
customField: '20100302-143847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41237',
internalId:  '',
customField: '20100210-121327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64101',
internalId:  '',
customField: '20120129-190330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41629',
internalId:  '',
customField: '20100218-180028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83301',
internalId:  '',
customField: '20111208-104419'
};
webappMappings['1501']=webappMappings['1501-67816336']={
webappId:    '1501',
documentId:  '39994',
internalId:  '67816336',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43087',
internalId:  '',
customField: '20100606-195711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50301',
internalId:  '',
customField: '20100708-145701'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0IRBUHY';
var companyName   = 'Keller%C2%B4s+Kneipe';
var htmlTitle	  = 'Keller%C2%B4s+Kneipe';
var metaKeywords  = 'Kellers+Kneipe%2CKneipe%2CWirtshaus%2C+Bad+Rodach%2CGastst%C3%A4tten%2C+Kneipen%2C+Rodach%2CBierkopf%2C+Oldieabend%2CStammtisch';
var metaContents  = 'Willkommen+bei+Kellers+Kneipe++';
					                                                                    
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 */					                                                            

