/* [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','4579',jdecode('Einleitung++%2F++Introduction'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','14041',jdecode('Moba+2+%28neu%29++%2F++MRR+2+%28new%29'),jdecode(''),'/14041.html','true',[],''],
	['PAGE','52750',jdecode('Moba+1+%28alt%29++%2F++MRR+1+%28old%29'),jdecode(''),'/52750.html','true',[],''],
	['PAGE','68801',jdecode('Car-System+%3A+Module%28s%29'),jdecode(''),'/68801/home.html','true',[ 
		['PAGE','74201',jdecode('Altstadt++%2F++Oldtown'),jdecode(''),'/68801/74201.html','true',[],''],
		['PAGE','74222',jdecode('Kleinstadt++%2F++Smalltown'),jdecode(''),'/68801/74222.html','true',[],''],
		['PAGE','58797',jdecode('Testzentrum++%2F++Test-Center'),jdecode(''),'/68801/58797.html','true',[],''],
		['PAGE','114201',jdecode('Gro%C3%9Fbaustelle+%2F+Construction+Site'),jdecode(''),'/68801/114201.html','true',[],''],
		['PAGE','68822',jdecode('Standard-Module%28s%29'),jdecode(''),'/68801/68822.html','true',[],'']
	],''],
	['PAGE','57584',jdecode('Car-System+%3A+Fahrzeuge++%2F++Vehicles'),jdecode(''),'/57584.html','true',[],''],
	['PAGE','58662',jdecode('Tipps++%2F++Tricks++%2F++Hints++%2F++Links'),jdecode(''),'/58662.html','true',[],''],
	['PAGE','52777',jdecode('Video-Clips'),jdecode(''),'/52777.html','true',[],''],
	['PAGE','61040',jdecode('Kofferanlage++%2F++Layout+in+the+box'),jdecode(''),'/61040.html','true',[],''],
	['PAGE','57563',jdecode('G%C3%A4stebuch++%2F++Guestbook'),jdecode(''),'/57563/home.html','true',[ 
		['PAGE','57562',jdecode('Eintr%C3%A4ge++%2F++Entries'),jdecode(''),'/57563/57562.html','true',[],'']
	],''],
	['PAGE','52804',jdecode('Impressum++%2F++Site-Orga'),jdecode(''),'/52804.html','true',[],''],
	['PAGE','45084',jdecode('N-CAR-S'),jdecode(''),'/45084/home.html','true',[ 
		['PAGE','45847',jdecode('Team++%2F++Members'),jdecode(''),'/45084/45847.html','true',[],''],
		['PAGE','62101',jdecode('Termine++%2F++Events'),jdecode(''),'/45084/62101.html','true',[],''],
		['PAGE','58644',jdecode('Archiv++%2F++Media-Archive'),jdecode(''),'/45084/58644.html','true',[],'']
	],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Quattro';
theSitetree.paletteFamily='0B2F37';
theSitetree.keyvisualId='10940';
theSitetree.keyvisualName='kv_10940.jpg';
theSitetree.fontsetId='31903';
theSitetree.graphicsetId='13715';
theSitetree.contentColor='FEFCF9';
theSitetree.contentBGColor='0B2F37';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Quattro',
				paletteFamily: 	'0B2F37',
				keyvisualId: 	'10940',
				keyvisualName: 	'kv_10940.jpg',
				fontsetId: 		'31903',
				graphicsetId: 	'13715',
				contentColor: 	'FEFCF9',
				contentBGColor: '0B2F37',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-795198']={
webappId:    '1501',
documentId:  '4579',
internalId:  '795198',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-57563atoix0inv4dw']={
webappId:    '1002',
documentId:  '57562',
internalId:  '57563atoix0inv4dw',
customField: 'action=list'
};
webappMappings['1002']=webappMappings['1002-57563atoix0inv4dw']={
webappId:    '1002',
documentId:  '57563',
internalId:  '57563atoix0inv4dw',
customField: 'action=form&icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68801',
internalId:  '',
customField: '20100718-125213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20120122-154610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52777',
internalId:  '',
customField: '20110508-180950'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52750',
internalId:  '',
customField: '20101221-183342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57584',
internalId:  '',
customField: '20111216-192328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45847',
internalId:  '',
customField: '20100108-150900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68822',
internalId:  '',
customField: '20100101-151229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58662',
internalId:  '',
customField: '20101221-184249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58644',
internalId:  '',
customField: '20111120-130544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58797',
internalId:  '',
customField: '20100718-125248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74201',
internalId:  '',
customField: '20111120-133554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57563',
internalId:  '',
customField: '20090725-133039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57562',
internalId:  '',
customField: '20090725-133121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14041',
internalId:  '',
customField: '20111030-155038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45084',
internalId:  '',
customField: '20100904-185518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52804',
internalId:  '',
customField: '20090725-133750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61040',
internalId:  '',
customField: '20090730-160030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62101',
internalId:  '',
customField: '20120108-184247'
};
webappMappings['1007']=webappMappings['1007-1154a987abe']={
webappId:    '1007',
documentId:  '61040',
internalId:  '1154a987abe',
customField: 'g.12l59eelh.df9p606cgn.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114201',
internalId:  '',
customField: '20120122-160848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74222',
internalId:  '',
customField: '20111120-133054'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0INV4DW';
var companyName   = 'Modelleisenbahnbau+in+Spur+N';
var htmlTitle	  = 'Modelleisenbahn+%28Spur+N%29';
var metaKeywords  = 'Modelleisenbahn%2C+Car-System%2C+Spur+N%2C+1%3A160%2C+1zu160%2C+Kirmes%2C++Computer%2C+Stapelberg%2C+Ger%C3%A4usche%2C+Video%2C+Bilder%2C+Tipps%2CTricks%2CN-CAR-S%2C+Module%2C+Modellbau';
var metaContents  = 'Modelleisenbahn+in+Spur+N+mit+Car-System%3B+Anlage+in+modularer+Segmentbauweise%3B+Analoger+Blockbetrieb+mit+Computer-Steuerung%3B+Viele+Details%2C+Bilder%2C+Tipps%2C+Videos+und+Sounds%3B';
					                                                                    
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 */					                                                            

