/* [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('Startseite'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','46406',jdecode('Meine+Modelle'),jdecode(''),'/46406.html','true',[],''],
	['PAGE','139705',jdecode('Fahrerh%C3%A4user+'),jdecode(''),'/139705.html','true',[],''],
	['PAGE','137705',jdecode('Was+zur+Zeit+entsteht'),jdecode(''),'/137705.html','true',[],''],
	['PAGE','137726',jdecode('Modelle+f%C3%BCr+Freunde'),jdecode(''),'/137726/home.html','true',[ 
		['PAGE','158205',jdecode('+In+Planung'),jdecode(''),'/137726/158205.html','true',[],'']
	],''],
	['PAGE','156205',jdecode('Internet+und+Foren'),jdecode(''),'/156205.html','true',[],''],
	['PAGE','86606',jdecode('Tips+und+Tricks'),jdecode(''),'/86606.html','true',[],''],
	['PAGE','137747',jdecode('Links'),jdecode(''),'/137747.html','true',[],''],
	['PAGE','51613',jdecode('G%C3%A4stebuch'),jdecode(''),'/51613/home.html','true',[ 
		['PAGE','51614',jdecode('Eintr%C3%A4ge'),jdecode(''),'/51613/51614.html','true',[],'']
	],''],
	['PAGE','155105',jdecode('Bildergalerie'),jdecode(''),'/155105.html','true',[],''],
	['PAGE','155505',jdecode('Impressum'),jdecode(''),'/155505.html','true',[],'']];
var siteelementCount=13;
theSitetree.topTemplateName='Orbit';
theSitetree.paletteFamily='660000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='173';
theSitetree.graphicsetId='208';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='660000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Orbit',
				paletteFamily: 	'660000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'173',
				graphicsetId: 	'208',
				contentColor: 	'FFFFFF',
				contentBGColor: '660000',
				a_color: 		'660000',
				b_color: 		'CC9999',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-3146487']={
webappId:    '1501',
documentId:  '4579',
internalId:  '3146487',
customField: '1501'
};
webappMappings['1002']=webappMappings['1002-51613atoix0in2yf6']={
webappId:    '1002',
documentId:  '51613',
internalId:  '51613atoix0in2yf6',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-51613atoix0in2yf6']={
webappId:    '1002',
documentId:  '51614',
internalId:  '51613atoix0in2yf6',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20090412-135639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137705',
internalId:  '',
customField: '20090416-000854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46406',
internalId:  '',
customField: '20090416-001042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137747',
internalId:  '',
customField: '20090412-202127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137726',
internalId:  '',
customField: '20100713-234624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139705',
internalId:  '',
customField: '20090627-211314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86606',
internalId:  '',
customField: '20091220-173915'
};
webappMappings['1007']=webappMappings['1007-12095cb3e29']={
webappId:    '1007',
documentId:  '155105',
internalId:  '12095cb3e29',
customField: 'g.142asilh2.5lr5pn60vnr.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51613',
internalId:  '',
customField: '20090411-025120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51614',
internalId:  '',
customField: '20041112-231224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155105',
internalId:  '',
customField: '20090416-001934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155505',
internalId:  '',
customField: '20090416-011113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '156205',
internalId:  '',
customField: '20090413-002746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158205',
internalId:  '',
customField: '20090627-211232'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0IN2YF6';
var companyName   = '+W+I+L+L+K+O+M+M+E+N';
var htmlTitle	  = 'RC-Truckmodellbau';
var metaKeywords  = 'Truckmodelle';
var metaContents  = 'RC-Truckmodelle+im+Selbstbau';
					                                                                    
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 */					                                                            
