/* [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','44',jdecode('Startseite'),jdecode(''),'/44/home.html','true',[ 
		['PAGE','41229',jdecode('Genealogie+allgemein'),jdecode(''),'/44/41229.html','true',[],''],
		['PAGE','43835',jdecode('Aktuelle+Suche'),jdecode(''),'/44/43835.html','true',[],'']
	],''],
	['PAGE','41238',jdecode('Familien+und+Namen'),jdecode(''),'/41238/home.html','true',[ 
		['PAGE','41193',jdecode('Familienchronik'),jdecode(''),'/41238/41193.html','true',[],''],
		['PAGE','41184',jdecode('Familienname'),jdecode(''),'/41238/41184.html','true',[],''],
		['PAGE','42304',jdecode('Auswanderung'),jdecode(''),'/41238/42304.html','true',[],'']
	],''],
	['PAGE','72404',jdecode('Schlesien'),jdecode(''),'/72404/home.html','true',[ 
		['PAGE','41202',jdecode('Orte+in+Schlesien'),jdecode(''),'/72404/41202.html','true',[],''],
		['PAGE','41211',jdecode('Stadt+Guttentag+'),jdecode(''),'/72404/41211.html','true',[],''],
		['PAGE','72625',jdecode('Landkreis+Lublinitz'),jdecode(''),'/72404/72625.html','true',[],''],
		['PAGE','41256',jdecode('Cosel+und+Ratibor'),jdecode(''),'/72404/41256.html','true',[],''],
		['PAGE','41265',jdecode('Niederschlesien'),jdecode(''),'/72404/41265.html','true',[],'']
	],''],
	['PAGE','42313',jdecode('Hessen'),jdecode(''),'/42313.html','true',[],''],
	['PAGE','42322',jdecode('Pfalz'),jdecode(''),'/42322.html','true',[],''],
	['PAGE','42003',jdecode('Landkarten'),jdecode(''),'/42003.html','true',[],''],
	['PAGE','41060',jdecode('G%C3%A4stebuch'),jdecode(''),'/41060/home.html','true',[ 
		['PAGE','41059',jdecode('Eintr%C3%A4ge'),jdecode(''),'/41060/41059.html','true',[],'']
	],''],
	['PAGE','41108',jdecode('Familie+intern'),jdecode(''),'/41108/home.html','true',[ 
		['PAGE','41047',jdecode('Fotos'),jdecode(''),'/41108/41047.html','true',[],''],
		['PAGE','41247',jdecode('Ahnenlisten'),jdecode(''),'/41108/41247.html','true',[],''],
		['PAGE','43744',jdecode('Familienchronik+Teil+2'),jdecode(''),'/41108/43744.html','true',[],''],
		['PAGE','41078',jdecode('Anfahrt'),jdecode(''),'/41108/41078.html','true',[],'']
	],''],
	['PAGE','41126',jdecode('Impressum'),jdecode(''),'/41126.html','true',[],'']];
var siteelementCount=24;
theSitetree.topTemplateName='Art';
theSitetree.paletteFamily='666666';
theSitetree.keyvisualId='1816';
theSitetree.keyvisualName='zeit.jpg';
theSitetree.fontsetId='284';
theSitetree.graphicsetId='349';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='666666';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Art',
				paletteFamily: 	'666666',
				keyvisualId: 	'1816',
				keyvisualName: 	'zeit.jpg',
				fontsetId: 		'284',
				graphicsetId: 	'349',
				contentColor: 	'FFFFFF',
				contentBGColor: '666666',
				a_color: 		'666666',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']=webappMappings['1007-1059b1fd286']={
webappId:    '1007',
documentId:  '41047',
internalId:  '1059b1fd286',
customField: 'g.10mdh8f3d.h3n9on6sf4.3o'
};
webappMappings['1002']=webappMappings['1002-41060atoix0invwpc']={
webappId:    '1002',
documentId:  '41060',
internalId:  '41060atoix0invwpc',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-41060atoix0invwpc']={
webappId:    '1002',
documentId:  '41059',
internalId:  '41060atoix0invwpc',
customField: 'action=list'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '41078',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72625',
internalId:  '',
customField: '20090913-215533'
};
webappMappings['1501']=webappMappings['1501-1024566']={
webappId:    '1501',
documentId:  '44',
internalId:  '1024566',
customField: '1501'
};
webappMappings['3001']=webappMappings['3001-']={
webappId:    '3001',
documentId:  '41108',
internalId:  '',
customField: ''
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20110706-095003'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42003',
internalId:  '',
customField: '20061222-102431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41229',
internalId:  '',
customField: '20100314-131337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43835',
internalId:  '',
customField: '20110706-095309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72404',
internalId:  '',
customField: '20080211-230549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41238',
internalId:  '',
customField: '20070310-122834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41184',
internalId:  '',
customField: '20080122-005514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41193',
internalId:  '',
customField: '20090420-183330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42304',
internalId:  '',
customField: '20080122-005716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41202',
internalId:  '',
customField: '20110706-095850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41211',
internalId:  '',
customField: '20090330-005556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41256',
internalId:  '',
customField: '20100105-235706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41265',
internalId:  '',
customField: '20110706-100618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42313',
internalId:  '',
customField: '20100314-135313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42322',
internalId:  '',
customField: '20060725-204000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41060',
internalId:  '',
customField: '20080426-122246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41059',
internalId:  '',
customField: '20050809-140545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41108',
internalId:  '',
customField: '20110706-101536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41047',
internalId:  '',
customField: '20060212-001415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41247',
internalId:  '',
customField: '20060725-094315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43744',
internalId:  '',
customField: '20090906-224140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41078',
internalId:  '',
customField: '20051005-143645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41126',
internalId:  '',
customField: '20070612-083139'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0INVWPC';
var companyName   = 'Ahnenforschung';
var htmlTitle	  = 'Ahnenforschung-Kudella';
var metaKeywords  = '%5BB%40b6a34c';
var metaContents  = '%5BB%409afbfa';
					                                                                    
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 */					                                                            

