/* [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.html','true',[],''],
	['PAGE','40992',jdecode('Bilder'),jdecode(''),'/40992/home.html','true',[ 
		['PAGE','41620',jdecode('Impressionen+der+Anlage'),jdecode(''),'/40992/41620.html','true',[],''],
		['PAGE','41703',jdecode('MMM+2011'),jdecode(''),'/40992/41703.html','true',[],'']
	],''],
	['PAGE','41001',jdecode('Bautagebuch'),jdecode(''),'/41001.html','true',[],''],
	['PAGE','41152',jdecode('Vorbildfotos'),jdecode(''),'/41152/home.html','true',[ 
		['PAGE','41559',jdecode('FotosVorbild'),jdecode(''),'/41152/41559.html','true',[],'']
	],''],
	['PAGE','41245',jdecode('Normen'),jdecode(''),'/41245.html','false',[],''],
	['PAGE','41427',jdecode('Kontakt'),jdecode(''),'/41427.html','true',[],''],
	['PAGE','41532',jdecode('G%C3%A4stebuch'),jdecode(''),'/41532/home.html','true',[ 
		['PAGE','41531',jdecode('Eintr%C3%A4ge'),jdecode(''),'/41532/41531.html','true',[],'']
	],''],
	['PAGE','41276',jdecode('Voting'),jdecode(''),'/41276.html','true',[],''],
	['PAGE','41231',jdecode('Impressum'),jdecode(''),'/41231.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Cuy';
theSitetree.paletteFamily='F7FDFD';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='385';
theSitetree.graphicsetId='438';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F7FDFD';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Cuy',
				paletteFamily: 	'F7FDFD',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'385',
				graphicsetId: 	'438',
				contentColor: 	'000000',
				contentBGColor: 'F7FDFD',
				a_color: 		'F7FDFD',
				b_color: 		'E4E5C0',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['1007']=webappMappings['1007-12b256e5876']={
webappId:    '1007',
documentId:  '41559',
internalId:  '12b256e5876',
customField: 'g.15cimqvcu.9v6to6q29a.3o'
};
webappMappings['1005']=webappMappings['1005-12b25404a38.7602a5ea']={
webappId:    '1005',
documentId:  '41276',
internalId:  '12b25404a38.7602a5ea',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['1007']=webappMappings['1007-13216640663']={
webappId:    '1007',
documentId:  '41703',
internalId:  '13216640663',
customField: 'g.168b59mln.6e52a8310ns.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20110830-180723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40992',
internalId:  '',
customField: '20120125-133448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41001',
internalId:  '',
customField: '20120211-171256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41152',
internalId:  '',
customField: '20100918-162130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41245',
internalId:  '',
customField: '20060223-230646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41231',
internalId:  '',
customField: '20060506-162106'
};
webappMappings['1007']=webappMappings['1007-12b259bbb3d']={
webappId:    '1007',
documentId:  '41620',
internalId:  '12b259bbb3d',
customField: 'g.15cinveuo.7nmukg11gbp.3o'
};
webappMappings['1008']=webappMappings['1008-72956477']={
webappId:    '1008',
documentId:  '41427',
internalId:  '72956477',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41427',
internalId:  '',
customField: '20100918-182414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41276',
internalId:  '',
customField: '20100918-190019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41559',
internalId:  '',
customField: '20100918-172010'
};
webappMappings['1002']=webappMappings['1002-41532atoix0inlkiu']={
webappId:    '1002',
documentId:  '41532',
internalId:  '41532atoix0inlkiu',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-41532atoix0inlkiu']={
webappId:    '1002',
documentId:  '41531',
internalId:  '41532atoix0inlkiu',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41532',
internalId:  '',
customField: '20100918-164320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41531',
internalId:  '',
customField: '20100918-164320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41703',
internalId:  '',
customField: '20110829-184214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41620',
internalId:  '',
customField: '20110829-184043'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0INLKIU';
var companyName   = 'hO-Modellbahnclub+Pinneberg';
var htmlTitle	  = 'H0+Modellbahnclub+Pinneberg';
var metaKeywords  = 'AC%2C+M%C3%A4rklin%2C+Module%2C+Eisenbahn%2C+Modellbahn%2C+HO%2C+Verein%2C+Pinneberg%2C+Schleswig-Holstein%2C+Fahrberieb%2C+Modellbahnclub%2C+H0%2C+Fahrplanbetrieb%2C+Point+to+point%2C+Wechselstrom%2C+Modelleisenbahn%2C+Verein%2C+Modelleisenbahneam+Pinneberg%2CBarmstedt%2C+Horst%2C+Halstenbek%2C+Hamburg%2C+H0e%2C+Modulbau%2C+Alterung%2C+';
var metaContents  = 'Modellbahnclub+mit+Modulen+in+H0-AC+Digital+und+H0e+im+Raum+Hamburg+und+Pinneberg.+Eingleisige+Strecke+mit+Point+to+Point+Betrieb+';
					                                                                    
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 */					                                                            

