/* [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','41441',jdecode('M%C3%A4rchengarten'),jdecode(''),'/41441.html','true',[],''],
	['PAGE','39994',jdecode('M%C3%A4rchengarten+%26+Miniaturenpark'),jdecode(''),'/39994/home.html','true',[ 
		['PAGE','40607',jdecode('Preise+%26+%C3%96ffnungszeiten'),jdecode(''),'/39994/40607.html','true',[],''],
		['PAGE','41450',jdecode('Events+des+Jahres'),jdecode(''),'/39994/41450.html','true',[],''],
		['PAGE','40616',jdecode('Gruppen+und+Wandertage'),jdecode(''),'/39994/40616.html','true',[],''],
		['PAGE','42142',jdecode('Die++verschwundenen+T%C3%B6pfe'),jdecode(''),'/39994/42142.html','true',[],''],
		['PAGE','40625',jdecode('Kindergeburtstage'),jdecode(''),'/39994/40625.html','true',[],''],
		['PAGE','41363',jdecode('Bilder+1'),jdecode(''),'/39994/41363.html','true',[],'']
	],''],
	['PAGE','42386',jdecode('Mobile+M%C3%A4rchenschmiede'),jdecode(''),'/42386/home.html','true',[ 
		['PAGE','42626',jdecode('Feen+und+Elfen'),jdecode(''),'/42386/42626.html','true',[],''],
		['PAGE','42768',jdecode('Jahreszeitentisch'),jdecode(''),'/42386/42768.html','true',[],''],
		['PAGE','42780',jdecode('M%C3%A4rchenfiguren'),jdecode(''),'/42386/42780.html','true',[],''],
		['PAGE','42792',jdecode('Sonstiges'),jdecode(''),'/42386/42792.html','true',[],'']
	],''],
	['PAGE','41066',jdecode('Anfahrt+%26+Kontakt'),jdecode(''),'/41066.html','true',[],''],
	['PAGE','40652',jdecode('In+Gnandstein+und+Umgebung'),jdecode(''),'/40652.html','true',[],''],
	['PAGE','40679',jdecode('Puppenstuben+Neu'),jdecode(''),'/40679.html','true',[],''],
	['PAGE','41036',jdecode('G%C3%A4stebuch'),jdecode(''),'/41036/home.html','true',[ 
		['PAGE','41035',jdecode('Eintr%C3%A4ge'),jdecode(''),'/41036/41035.html','true',[],'']
	],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Wellen';
theSitetree.paletteFamily='5B0401';
theSitetree.keyvisualId='10996';
theSitetree.keyvisualName='kv_10996.jpg';
theSitetree.fontsetId='31929';
theSitetree.graphicsetId='13747';
theSitetree.contentColor='FBD19E';
theSitetree.contentBGColor='5B0401';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Wellen',
				paletteFamily: 	'5B0401',
				keyvisualId: 	'10996',
				keyvisualName: 	'kv_10996.jpg',
				fontsetId: 		'31929',
				graphicsetId: 	'13747',
				contentColor: 	'FBD19E',
				contentBGColor: '5B0401',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '41441',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20100921-103325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40607',
internalId:  '',
customField: '20100304-100651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40616',
internalId:  '',
customField: '20100209-235919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42386',
internalId:  '',
customField: '20100216-192536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40652',
internalId:  '',
customField: '20110904-144335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40625',
internalId:  '',
customField: '20100209-235919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40679',
internalId:  '',
customField: '20111004-154954'
};
webappMappings['1002']=webappMappings['1002-41036atoix0irkz1t']={
webappId:    '1002',
documentId:  '41036',
internalId:  '41036atoix0irkz1t',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-41036atoix0irkz1t']={
webappId:    '1002',
documentId:  '41035',
internalId:  '41036atoix0irkz1t',
customField: 'action=list'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '41066',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42626',
internalId:  '',
customField: '20100211-152755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41066',
internalId:  '',
customField: '20110330-123407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41036',
internalId:  '',
customField: '20080314-145244'
};
webappMappings['1007']=webappMappings['1007-118aecf6085']={
webappId:    '1007',
documentId:  '41363',
internalId:  '118aecf6085',
customField: 'g.132ncjaev.alqfn3rs7f.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41035',
internalId:  '',
customField: '20080314-145244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41363',
internalId:  '',
customField: '20090905-150230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41441',
internalId:  '',
customField: '20110904-144656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41450',
internalId:  '',
customField: '20110306-111901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42142',
internalId:  '',
customField: '20090905-135742'
};
webappMappings['1007']=webappMappings['1007-1258ea26ad0']={
webappId:    '1007',
documentId:  '42626',
internalId:  '1258ea26ad0',
customField: 'g.14m78t01v.3lds0vl79c3.1s'
};
webappMappings['1007']=webappMappings['1007-126aec3cc0b']={
webappId:    '1007',
documentId:  '42768',
internalId:  '126aec3cc0b',
customField: 'g.14qnc1po4.99jqbuk14.1s'
};
webappMappings['1007']=webappMappings['1007-126b1c2b8f6']={
webappId:    '1007',
documentId:  '42780',
internalId:  '126b1c2b8f6',
customField: 'g.14qos312h.2u3trl4fent.1s'
};
webappMappings['1007']=webappMappings['1007-126b1c85bfa']={
webappId:    '1007',
documentId:  '42792',
internalId:  '126b1c85bfa',
customField: 'g.14qos7cb3.ms50iq3tfn.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42768',
internalId:  '',
customField: '20100211-152648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42780',
internalId:  '',
customField: '20100211-152555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42792',
internalId:  '',
customField: '20100211-152536'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0IRKZ1T';
var companyName   = 'M%C3%A4rchengarten+im+Kohrener+Land';
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 */					                                                            

