/* [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','10682',jdecode('Home'),jdecode(''),'/10682.html','true',[],''],
	['PAGE','10688',jdecode('eigene+Modellbahn'),jdecode(''),'/10688.html','true',[],''],
	['PAGE','41201',jdecode('Modellbahnclub-Zwickau'),jdecode(''),'/41201/home.html','true',[ 
		['PAGE','44301',jdecode('M%C3%BClsengrundbahn'),jdecode(''),'/41201/44301.html','true',[],''],
		['PAGE','44322',jdecode('Anlage+Pohl'),jdecode(''),'/41201/44322.html','true',[],'']
	],''],
	['PAGE','10698',jdecode('Eisenbahn'),jdecode(''),'/10698.html','true',[],''],
	['PAGE','51401',jdecode('Sonderfahrten'),jdecode(''),'/51401.html','true',[],''],
	['PAGE','10703',jdecode('Zwickau-Pictures+of+home'),jdecode(''),'/10703/home.html','true',[ 
		['PAGE','49401',jdecode('Der+Dom+zu+Zwickau'),jdecode(''),'/10703/49401.html','true',[],'']
	],''],
	['PAGE','10718',jdecode('Th%C3%BCringen'),jdecode(''),'/10718.html','true',[],''],
	['PAGE','10693',jdecode('Astronomie'),jdecode(''),'/10693.html','true',[],''],
	['PAGE','31422',jdecode('Bad+Blankenburg'),jdecode(''),'/31422.html','true',[],''],
	['PAGE','31401',jdecode('Burgen+und+Schl%C3%B6sser'),jdecode(''),'/31401.html','true',[],''],
	['PAGE','10708',jdecode('Impressum'),jdecode(''),'/10708.html','true',[],''],
	['PAGE','10713',jdecode('Interessante+Links'),jdecode(''),'/10713.html','true',[],''],
	['PAGE','11914',jdecode('G%C3%A4stebuch'),jdecode(''),'/11914/home.html','true',[ 
		['PAGE','11915',jdecode('Eintr%C3%A4ge'),jdecode(''),'/11914/11915.html','true',[],'']
	],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Meadow';
theSitetree.paletteFamily='0000AA';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10473';
theSitetree.graphicsetId='10948';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='DAC8B9';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Meadow',
				paletteFamily: 	'0000AA',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10473',
				graphicsetId: 	'10948',
				contentColor: 	'000000',
				contentBGColor: 'DAC8B9',
				a_color: 		'9D7250',
				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['1002']=webappMappings['1002-11914atoix0in3a1o']={
webappId:    '1002',
documentId:  '11914',
internalId:  '11914atoix0in3a1o',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-11914atoix0in3a1o']={
webappId:    '1002',
documentId:  '11915',
internalId:  '11914atoix0in3a1o',
customField: 'action=list'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '10682',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10682',
internalId:  '',
customField: '20080713-170321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10713',
internalId:  '',
customField: '20110129-084255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10703',
internalId:  '',
customField: '20080715-141007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41201',
internalId:  '',
customField: '20070922-102539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10688',
internalId:  '',
customField: '20060409-170830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10693',
internalId:  '',
customField: '20060409-170220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10698',
internalId:  '',
customField: '20110412-204303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10718',
internalId:  '',
customField: '20080118-165337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31422',
internalId:  '',
customField: '20080118-165202'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31401',
internalId:  '',
customField: '20080119-161953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10708',
internalId:  '',
customField: '20110128-201249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11914',
internalId:  '',
customField: '20050713-193447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11915',
internalId:  '',
customField: '20050713-193447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44322',
internalId:  '',
customField: '20070323-202839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44301',
internalId:  '',
customField: '20070323-202839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49401',
internalId:  '',
customField: '20070922-213000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51401',
internalId:  '',
customField: '20080216-113225'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0IN3A1O';
var companyName   = 'Sterne+und+Modellbahn';
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 */					                                                            

