/* [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','42437',jdecode('Das+sind+wir'),jdecode(''),'/42437/home.html','true',[ 
		['PAGE','43141',jdecode('Der+Marktvogt'),jdecode(''),'/42437/43141.html','true',[],''],
		['PAGE','43100',jdecode('Die+B%C3%BCrger'),jdecode(''),'/42437/43100.html','true',[],'']
	],''],
	['PAGE','43109',jdecode('Was+wir+anbieten'),jdecode(''),'/43109/home.html','true',[ 
		['PAGE','43118',jdecode('Feuershow'),jdecode(''),'/43109/43118.html','true',[],''],
		['PAGE','43127',jdecode('Buchbares'),jdecode(''),'/43109/43127.html','true',[],'']
	],''],
	['PAGE','40596',jdecode('Termine'),jdecode(''),'/40596.html','true',[],''],
	['PAGE','43440',jdecode('Meistertrunk+Festspiele'),jdecode(''),'/43440.html','true',[],''],
	['PAGE','40614',jdecode('Brieftaube'),jdecode(''),'/40614.html','true',[],''],
	['PAGE','41980',jdecode('Zum+Herold'),jdecode(''),'/41980/home.html','true',[ 
		['PAGE','41979',jdecode('Eintr%C3%A4ge'),jdecode(''),'/41980/41979.html','true',[],'']
	],''],
	['PAGE','42008',jdecode('Links'),jdecode(''),'/42008.html','true',[],''],
	['PAGE','43546',jdecode('Presse'),jdecode(''),'/43546.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='Ornaments';
theSitetree.paletteFamily='409198';
theSitetree.keyvisualId='3905';
theSitetree.keyvisualName='kv_3905.jpg';
theSitetree.fontsetId='10506';
theSitetree.graphicsetId='11079';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Ornaments',
				paletteFamily: 	'409198',
				keyvisualId: 	'3905',
				keyvisualName: 	'kv_3905.jpg',
				fontsetId: 		'10506',
				graphicsetId: 	'11079',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'887248',
				e_color: 		'887248',
				f_color: 		'887248',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, 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: '20100430-222524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43440',
internalId:  '',
customField: '20100506-123649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43546',
internalId:  '',
customField: '20100606-194330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43127',
internalId:  '',
customField: '20100122-091731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40596',
internalId:  '',
customField: '20100726-120714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43109',
internalId:  '',
customField: '20100508-221903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40614',
internalId:  '',
customField: '20090923-224555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43141',
internalId:  '',
customField: '20100506-113310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42437',
internalId:  '',
customField: '20100508-221833'
};
webappMappings['1501']=webappMappings['1501-53387715']={
webappId:    '1501',
documentId:  '39994',
internalId:  '53387715',
customField: '1501'
};
webappMappings['3001']=webappMappings['3001-']={
webappId:    '3001',
documentId:  '40614',
internalId:  '',
customField: ''
};
webappMappings['3001']=webappMappings['3001-']={
webappId:    '3001',
documentId:  '40596',
internalId:  '',
customField: ''
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43100',
internalId:  '',
customField: '20100726-120609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43118',
internalId:  '',
customField: '20100122-091555'
};
webappMappings['3001']=webappMappings['3001-']={
webappId:    '3001',
documentId:  '39994',
internalId:  '',
customField: ''
};
webappMappings['1002']=webappMappings['1002-41980atoix0ir4dz2']={
webappId:    '1002',
documentId:  '41980',
internalId:  '41980atoix0ir4dz2',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-41980atoix0ir4dz2']={
webappId:    '1002',
documentId:  '41979',
internalId:  '41980atoix0ir4dz2',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41980',
internalId:  '',
customField: '20081205-220632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41979',
internalId:  '',
customField: '20081204-223250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42008',
internalId:  '',
customField: '20100508-222239'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0IR4DZ2';
var companyName   = 'othenburger+Aufgebot+1470';
var htmlTitle	  = 'Die+Gruppe+f%C3%BCr+erlebbare+Geschichte';
var metaKeywords  = 'Rothenburg%2C+Aufgebot%2C+1470%2C+Lagerleben%2C+Showkampf%2C+Freikampf%2C+Historisch%2C+Schlachten%2C+Handwerker%2C+Fechtschule%2C+Darstellung%2C+Stadtwache%2C+Stadtgarde%2C+Elite%2C+Landsknecht';
var metaContents  = 'Rothenburger+Aufgebot+1470+-+Lagerleben%2C+Freik%C3%A4mpfe%2C+Showschlachten%2C+Stadtverteidigung.+Erleben+Sie+das+Leben+im+Sp%C3%A4tmittelalter+hautnah.';
					                                                                    
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 */					                                                            
