/* [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','40199',jdecode('Startseite'),jdecode(''),'/40199/home.html','true',[ 
		['PAGE','41551',jdecode('Home+%2F+english'),jdecode(''),'/40199/41551.html','true',[],'']
	],''],
	['PAGE','41310',jdecode('English+translation'),jdecode(''),'/41310.html','true',[],''],
	['PAGE','119201',jdecode('News'),jdecode(''),'/119201.html','true',[],''],
	['PAGE','43601',jdecode('In+eigener+Sache'),jdecode(''),'/43601.html','true',[],''],
	['PAGE','40208',jdecode('Zur+Geschichte'),jdecode(''),'/40208.html','true',[],''],
	['PAGE','40217',jdecode('Recherche'),jdecode(''),'/40217.html','true',[],''],
	['PAGE','40226',jdecode('Figuren'),jdecode(''),'/40226.html','true',[],''],
	['PAGE','40235',jdecode('Dioramenbau'),jdecode(''),'/40235.html','true',[],''],
	['PAGE','41587',jdecode('Making+of+the+Diorama'),jdecode(''),'/41587.html','false',[],''],
	['PAGE','105101',jdecode('H%C3%A4userbau'),jdecode(''),'/105101.html','true',[],''],
	['PAGE','40253',jdecode('Filmprojekt'),jdecode(''),'/40253.html','true',[],''],
	['PAGE','40298',jdecode('Galerie+%2F+Gallery'),jdecode(''),'/40298.html','true',[],''],
	['PAGE','40271',jdecode('Impressum+%2F+Imprint'),jdecode(''),'/40271.html','true',[],''],
	['PAGE','40262',jdecode('Links'),jdecode(''),'/40262.html','true',[],''],
	['PAGE','44401',jdecode('Sch%C3%A4ferei+Auenhain'),jdecode(''),'/44401.html','true',[],''],
	['PAGE','65122',jdecode('Dioramen-Shop'),jdecode(''),'/65122.html','true',[],''],
	['PAGE','89201',jdecode('Intermodellbau+2010'),jdecode(''),'/89201.html','true',[],''],
	['PAGE','129201',jdecode('M%C3%B6ckern+1813'),jdecode(''),'/129201.html','true',[],''],
	['PAGE','131101',jdecode('Akkon+1191'),jdecode(''),'/131101.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Firma';
theSitetree.paletteFamily='E2C4A0';
theSitetree.keyvisualId='9920';
theSitetree.keyvisualName='kv_9920.jpg';
theSitetree.fontsetId='17531';
theSitetree.graphicsetId='12985';
theSitetree.contentColor='6C2E16';
theSitetree.contentBGColor='F0E1CF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Firma',
				paletteFamily: 	'E2C4A0',
				keyvisualId: 	'9920',
				keyvisualName: 	'kv_9920.jpg',
				fontsetId: 		'17531',
				graphicsetId: 	'12985',
				contentColor: 	'6C2E16',
				contentBGColor: 'F0E1CF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '40199',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']=webappMappings['1007-10d69555407']={
webappId:    '1007',
documentId:  '40298',
internalId:  '10d69555407',
customField: 'g.11lkkqk62.bu47orl6ku.3o'
};
webappMappings['1501']=webappMappings['1501-26372155']={
webappId:    '1501',
documentId:  '40199',
internalId:  '26372155',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40199',
internalId:  '',
customField: '20120102-131029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40217',
internalId:  '',
customField: '20110425-124831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40208',
internalId:  '',
customField: '20061130-111438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40226',
internalId:  '',
customField: '20120108-160942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40235',
internalId:  '',
customField: '20120126-180344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40253',
internalId:  '',
customField: '20100526-132357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40298',
internalId:  '',
customField: '20060901-144039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41310',
internalId:  '',
customField: '20100524-201841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40262',
internalId:  '',
customField: '20090609-233416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40271',
internalId:  '',
customField: '20100116-200538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41551',
internalId:  '',
customField: '20100524-185507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65122',
internalId:  '',
customField: '20120114-112918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105101',
internalId:  '',
customField: '20100822-170153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131101',
internalId:  '',
customField: '20120108-180648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41587',
internalId:  '',
customField: '20090219-163602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43601',
internalId:  '',
customField: '20100525-195435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89201',
internalId:  '',
customField: '20101214-160937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44401',
internalId:  '',
customField: '20080721-172238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119201',
internalId:  '',
customField: '20110531-205829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129201',
internalId:  '',
customField: '20120108-174945'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I7O6ZH';
var companyName   = 'Croebern-1813';
var htmlTitle	  = 'Cr%C3%B6bern+1813';
var metaKeywords  = 'Napoleon%2C+Leipzig%2C+V%C3%B6lkerschlacht%2C+1813%2C+Cr%C3%B6bern%2C+Croebern%2C+%C3%96sterreicher%2C+Befreiungskriege%2C+Schlacht%2C+Wachau%2C';
var metaContents  = 'Geschichte+im+Diorama+erz%C3%A4hlt.+Die+V%C3%B6lkerschlacht+bei+Leipzig%2C+hier+die+Schlacht+bei+Wachau+am+16.10.1813.+Aufmarsch+der+%C3%96sterreicher+bei+Cr%C3%B6bern.++';
					                                                                    
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 */					                                                            

