/* [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','5888',jdecode('Home'),jdecode(''),'/5888.html','true',[],''],
	['PAGE','16810',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/16810.html','true',[],''],
	['PAGE','16841',jdecode('Museumsrundgang'),jdecode(''),'/16841.html','true',[],''],
	['PAGE','12101',jdecode('Sonderausstellungen'),jdecode(''),'/12101.html','true',[],''],
	['PAGE','13008',jdecode('Veranstaltungen'),jdecode(''),'/13008/home.html','true',[ 
		['PAGE','32501',jdecode('F%C3%BChrungen'),jdecode(''),'/13008/32501.html','true',[],''],
		['PAGE','13062',jdecode('Kindergeburtstage'),jdecode(''),'/13008/13062.html','true',[],''],
		['PAGE','13035',jdecode('M%C3%A4rkte'),jdecode(''),'/13008/13035.html','true',[],''],
		['PAGE','35101',jdecode('Spinnkreis'),jdecode(''),'/13008/35101.html','true',[],'']
	],''],
	['PAGE','10528',jdecode('%C3%96ffnungszeiten+%26+Eintritt'),jdecode(''),'/10528.html','true',[],''],
	['PAGE','11373',jdecode('Lageplan'),jdecode(''),'/11373.html','true',[],''],
	['PAGE','35501',jdecode('Wegbeschreibung'),jdecode(''),'/35501.html','true',[],''],
	['PAGE','10690',jdecode('Kontakt'),jdecode(''),'/10690.html','true',[],''],
	['PAGE','33201',jdecode('Impressum'),jdecode(''),'/33201.html','true',[],''],
	['PAGE','15817',jdecode('G%C3%A4stebuch'),jdecode(''),'/15817/home.html','false',[ 
		['PAGE','15818',jdecode('Eintr%C3%A4ge'),jdecode(''),'/15817/15818.html','false',[],'']
	],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='650000';
theSitetree.keyvisualId='1361';
theSitetree.keyvisualName='alte_moebel.jpg';
theSitetree.fontsetId='232';
theSitetree.graphicsetId='296';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Startup',
				paletteFamily: 	'650000',
				keyvisualId: 	'1361',
				keyvisualName: 	'alte_moebel.jpg',
				fontsetId: 		'232',
				graphicsetId: 	'296',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'650000',
				b_color: 		'666666',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '11373',
internalId:  'location',
customField: 'location'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32501',
internalId:  '',
customField: '20100309-153145'
};
webappMappings['1002']=webappMappings['1002-15817ATOIX0INL5JF']={
webappId:    '1002',
documentId:  '15817',
internalId:  '15817ATOIX0INL5JF',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-15817ATOIX0INL5JF']={
webappId:    '1002',
documentId:  '15818',
internalId:  '15817ATOIX0INL5JF',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5888',
internalId:  '',
customField: '20100309-153543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20100310-114041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16810',
internalId:  '',
customField: '20100309-170242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16841',
internalId:  '',
customField: '20100309-145440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13008',
internalId:  '',
customField: '20100309-153040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13035',
internalId:  '',
customField: '20100309-164230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13062',
internalId:  '',
customField: '20100309-103050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10528',
internalId:  '',
customField: '20100309-100511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10690',
internalId:  '',
customField: '20100309-100430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11373',
internalId:  '',
customField: '20100309-155734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15817',
internalId:  '',
customField: '20040504-213134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15818',
internalId:  '',
customField: '20040504-213134'
};
webappMappings['1008']=webappMappings['1008-68942025']={
webappId:    '1008',
documentId:  '10690',
internalId:  '68942025',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33201',
internalId:  '',
customField: '20100309-172311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35101',
internalId:  '',
customField: '20100309-152850'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '35501',
internalId:  'routing',
customField: 'de_DE'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35501',
internalId:  '',
customField: '20100309-155911'
};
var canonHostname = 'cfawrk05.aul.t-online.de';
var accountId     = 'ATOIX0INL5JF';
var companyName   = 'Dreieich-Museum';
var htmlTitle	  = 'Dreieich-Museum';
var metaKeywords  = 'Dreieich-Museum%2C+Burg+Hayn%2C+Dreieich%2C+Dreieichenhain';
var metaContents  = 'Offizielle+Internetseite+des+Dreieich-Museums';
					                                                                    
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 */					                                                            
