/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','515',jdecode('%C3%9Cber+mich'),jdecode(''),'/515.html','true',[],''],
	['PAGE','494',jdecode('Unsere+Fahrzeuge'),jdecode(''),'/494.html','true',[],''],
	['PAGE','452',jdecode('Rund+um+den+Schein'),jdecode(''),'/452.html','true',[],''],
	['PAGE','59001',jdecode('Ausbildung'),jdecode(''),'/59001/index.html','true',[ 
		['PAGE','55201',jdecode('LSM'),jdecode(''),'/59001/55201.html','true',[],''],
		['PAGE','39501',jdecode('Theorie'),jdecode(''),'/59001/39501.html','true',[],''],
		['PAGE','62301',jdecode('Praxis'),jdecode(''),'/59001/62301.html','true',[],''],
		['PAGE','67301',jdecode('Fahrerlaubnisklassen'),jdecode(''),'/59001/67301.html','true',[],''],
		['PAGE','55222',jdecode('F%C3%BChrerschein+mit+17'),jdecode(''),'/59001/55222.html','true',[],''],
		['PAGE','52901',jdecode('Kosten'),jdecode(''),'/59001/52901.html','true',[],'']
	],''],
	['PAGE','557',jdecode('Gutscheine'),jdecode(''),'/557.html','true',[],''],
	['PAGE','27101',jdecode('SGalerie'),jdecode(''),'/27101.html','true',[],''],
	['PAGE','20806',jdecode('Kontakt'),jdecode(''),'/20806/index.html','true',[ 
		['PAGE','20801',jdecode('Kontaktformular'),jdecode(''),'/20806/20801.html','true',[],'']
                ['PAGE','20802',jdecode('Standort/Anfahrt'),jdecode(''),'/20806/20802.html','true',[],'']
	],''],
	['PAGE','36201',jdecode('Links'),jdecode(''),'/36201.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Kreis';
theSitetree.paletteFamily='4D4CD2';
theSitetree.keyvisualId='581';
theSitetree.keyvisualName='fahrschule.jpg';
theSitetree.fontsetId='126';
theSitetree.graphicsetId='140';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Kreis',
				paletteFamily: 	'4D4CD2',
				keyvisualId: 	'581',
				keyvisualName: 	'Fahrschule.jpg',
				fontsetId: 		'126',
				graphicsetId: 	'140',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'4D4CD2',
				b_color: 		'7794F8',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };


var canonHostname = '';
var accountId     = '';
var companyName   = 'Fahrschule Matthias Koksch';
var htmlTitle	  = 'Fahrschule Matthias Koksch ...weil Erfolg Spaß macht !';
var metaKeywords  = 'Fahrschule+Koksch';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            
