/* [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('Home'),jdecode(''),'/4579.html','true',[],''],
	['PAGE','14001',jdecode('Motivation'),jdecode(''),'/14001.html','true',[],''],
	['PAGE','13801',jdecode('Cars'),jdecode(''),'/13801/home.html','true',[ 
		['PAGE','13806',jdecode('Mazda+767B'),jdecode(''),'/13801/13806.html','true',[],''],
		['PAGE','26183',jdecode('Mazda+787%2F787B'),jdecode(''),'/13801/26183.html','true',[],''],
		['PAGE','14501',jdecode('Speedsource+RX-8'),jdecode(''),'/13801/14501.html','true',[],''],
		['PAGE','24083',jdecode('RDR+Racing+RX-8'),jdecode(''),'/13801/24083.html','true',[],''],
		['PAGE','15001',jdecode('NASCARS'),jdecode(''),'/13801/15001.html','true',[],''],
		['PAGE','29783',jdecode('NASCAR+Trucks'),jdecode(''),'/13801/29783.html','true',[],''],
		['PAGE','19949',jdecode('Gruppe+5'),jdecode(''),'/13801/19949.html','true',[],''],
		['PAGE','46183',jdecode('Classic+Racecars'),jdecode(''),'/13801/46183.html','true',[],''],
		['PAGE','51683',jdecode('Modern+GT'),jdecode(''),'/13801/51683.html','true',[],'']
	],''],
	['PAGE','29804',jdecode('Decals'),jdecode(''),'/29804.html','true',[],''],
	['PAGE','27183',jdecode('Wie+kams.....'),jdecode(''),'/27183.html','true',[],''],
	['PAGE','19883',jdecode('Racing'),jdecode(''),'/19883/home.html','true',[ 
		['PAGE','17095',jdecode('NASCAR+Friendship'),jdecode(''),'/19883/17095.html','true',[],'']
	],''],
	['PAGE','22783',jdecode('24h+Le+Mans+2005'),jdecode(''),'/22783.html','true',[],''],
	['PAGE','27583',jdecode('NASCAR+Nextel+Cup+Cal.+05'),jdecode(''),'/27583.html','true',[],''],
	['PAGE','15301',jdecode('Info'),jdecode(''),'/15301.html','true',[],''],
	['PAGE','15513',jdecode('Links'),jdecode(''),'/15513.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='TOI_Segel_1';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='10723';
theSitetree.keyvisualName='kv_10723.jpg';
theSitetree.fontsetId='31819';
theSitetree.graphicsetId='13593';
theSitetree.contentColor='242424';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Segel_1',
				paletteFamily: 	'000000',
				keyvisualId: 	'10723',
				keyvisualName: 	'kv_10723.jpg',
				fontsetId: 		'31819',
				graphicsetId: 	'13593',
				contentColor: 	'242424',
				contentBGColor: 'FFFFFF',
				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-19128229']={
webappId:    '1501',
documentId:  '4579',
internalId:  '19128229',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20100414-103040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19883',
internalId:  '',
customField: '20041227-002253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20041130-230158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13801',
internalId:  '',
customField: '20100124-113456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13806',
internalId:  '',
customField: '20090226-230310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26183',
internalId:  '',
customField: '20100124-114033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14501',
internalId:  '',
customField: '20051017-003533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24083',
internalId:  '',
customField: '20060529-221041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20100124-162931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29783',
internalId:  '',
customField: '20070612-231222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19949',
internalId:  '',
customField: '20050815-110936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29804',
internalId:  '',
customField: '20090514-215141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27183',
internalId:  '',
customField: '20051027-093743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17095',
internalId:  '',
customField: '20081104-105703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51683',
internalId:  '',
customField: '20100124-114610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22783',
internalId:  '',
customField: '20050627-220246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27583',
internalId:  '',
customField: '20051026-234329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20100407-172604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15513',
internalId:  '',
customField: '20080926-122504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46183',
internalId:  '',
customField: '20100414-102237'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0INXXZ9';
var companyName   = 'RotaryTechnologyRacing';
var htmlTitle	  = 'Rotera+Slotracing';
var metaKeywords  = 'Slotracing+Mazda+767B+RX-8+RX-7+SRC+P%C3%B6ring+NASCAR+Carrera+Autorennbahn+Plafit+Gruppe+5+scalextric+Rotera+Wankel+Rotary+Kreiskolben+Racing+Rennen+Speedsource+Decals+selbermachen';
var metaContents  = 'Rotera+Slotracing%3A+1%2F24+und+1%2F32+Slotracing.+Mazda%2C+NASCAR%2C+Gruppe+C%2C+Gruppe+5+Slotcars+und+Racing.';
					                                                                    
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 */					                                                            

