/* [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','40290',jdecode('Das+Potpourri'),jdecode(''),'/40290/home.html','true',[ 
		['PAGE','40408',jdecode('Das+Restaurant'),jdecode(''),'/40290/40408.html','true',[],''],
		['PAGE','40417',jdecode('Festsaal'),jdecode(''),'/40290/40417.html','true',[],''],
		['PAGE','43264',jdecode('Der+Biergarten'),jdecode(''),'/40290/43264.html','true',[],''],
		['PAGE','56701',jdecode('Social+Networks'),jdecode(''),'/40290/56701.html','true',[],'']
	],''],
	['PAGE','52601',jdecode('Aktuelles'),jdecode(''),'/52601.html','true',[],''],
	['PAGE','43351',jdecode('Bildergalerie'),jdecode(''),'/43351/home.html','true',[ 
		['PAGE','43526',jdecode('Ein+Biergarten+entsteht'),jdecode(''),'/43351/43526.html','true',[],''],
		['PAGE','43678',jdecode('Biergartener%C3%B6ffnung'),jdecode(''),'/43351/43678.html','true',[],'']
	],''],
	['PAGE','40337',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/40337.html','true',[],''],
	['PAGE','49201',jdecode('Job'),jdecode(''),'/49201.html','true',[],''],
	['PAGE','40446',jdecode('Anfahrt'),jdecode(''),'/40446.html','true',[],''],
	['PAGE','52006',jdecode('G%C3%A4stebuch'),jdecode(''),'/52006/home.html','true',[ 
		['PAGE','52001',jdecode('Eintr%C3%A4ge'),jdecode(''),'/52006/52001.html','true',[],'']
	],''],
	['PAGE','43796',jdecode('Impressum'),jdecode(''),'/43796.html','true',[],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Magic_Square';
theSitetree.paletteFamily='F28819';
theSitetree.keyvisualId='11503';
theSitetree.keyvisualName='kv_11503.jpg';
theSitetree.fontsetId='32863';
theSitetree.graphicsetId='13945';
theSitetree.contentColor='535353';
theSitetree.contentBGColor='FFEEDC';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Magic_Square',
				paletteFamily: 	'F28819',
				keyvisualId: 	'11503',
				keyvisualName: 	'kv_11503.jpg',
				fontsetId: 		'32863',
				graphicsetId: 	'13945',
				contentColor: 	'535353',
				contentBGColor: 'FFEEDC',
				a_color: 		'F28819',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '40290',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '40446',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40290',
internalId:  '',
customField: '20111121-151715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40408',
internalId:  '',
customField: '20111022-171233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49201',
internalId:  '',
customField: '20111022-171702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40337',
internalId:  '',
customField: '20060829-112045'
};
webappMappings['1002']=webappMappings['1002-52006atoix0i7o5v1']={
webappId:    '1002',
documentId:  '52001',
internalId:  '52006atoix0i7o5v1',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40417',
internalId:  '',
customField: '20100921-213312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43264',
internalId:  '',
customField: '20110527-213434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40446',
internalId:  '',
customField: '20100520-155023'
};
webappMappings['1007']=webappMappings['1007-127be2dd905']={
webappId:    '1007',
documentId:  '43351',
internalId:  '127be2dd905',
customField: 'g.14uv1fp65.4e6vqj5dmb.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43351',
internalId:  '',
customField: '20100402-131313'
};
webappMappings['1007']=webappMappings['1007-128b69b4357']={
webappId:    '1007',
documentId:  '43526',
internalId:  '128b69b4357',
customField: 'g.152r9hmqp.1utoc4tfe5i.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43526',
internalId:  '',
customField: '20100520-193310'
};
webappMappings['1007']=webappMappings['1007-128db063e4c']={
webappId:    '1007',
documentId:  '43678',
internalId:  '128db063e4c',
customField: 'g.153df1i3f.82psqvcs4v.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43678',
internalId:  '',
customField: '20100527-204023'
};
webappMappings['1002']=webappMappings['1002-52006atoix0i7o5v1']={
webappId:    '1002',
documentId:  '52006',
internalId:  '52006atoix0i7o5v1',
customField: 'action=form&icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43796',
internalId:  '',
customField: '20100602-150812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52006',
internalId:  '',
customField: '20110721-171923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52001',
internalId:  '',
customField: '20110721-171923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52601',
internalId:  '',
customField: '20120101-142108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56701',
internalId:  '',
customField: '20120205-123131'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I7O5V1';
var companyName   = 'POTPOURRI+AM+WALL';
var htmlTitle	  = '';
var metaKeywords  = 'Ihr+Name%2C+Praxis%2C+Arzt%2C+Aerztin%2C+Allgemeinmedizin%2C++Schmerztherapie++';
var metaContents  = 'Willkommen+bei+Ihr+Name.+Praxispraesentation.++';
					                                                                    
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 */					                                                            

