/* [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','40967',jdecode('Startseite'),jdecode(''),'/40967.html','true',[],''],
	['PAGE','41522',jdecode('News+und+Events'),jdecode(''),'/41522.html','true',[],''],
	['PAGE','41014',jdecode('Motorr%C3%A4der+und+mehr...'),jdecode(''),'/41014.html','true',[],''],
	['PAGE','42201',jdecode('Teile+und+Zubeh%C3%B6r'),jdecode(''),'/42201.html','true',[],''],
	['PAGE','41414',jdecode('Unser+Laden'),jdecode(''),'/41414.html','true',[],''],
	['PAGE','40996',jdecode('Werkstatt+und+Service'),jdecode(''),'/40996.html','true',[],''],
	['PAGE','41023',jdecode('Kontakt'),jdecode(''),'/41023.html','true',[],''],
	['PAGE','41068',jdecode('Anfahrt'),jdecode(''),'/41068.html','true',[],''],
	['PAGE','41050',jdecode('Impressum'),jdecode(''),'/41050.html','true',[],''],
	['PAGE','41165',jdecode('G%C3%A4stebuch'),jdecode(''),'/41165/home.html','true',[ 
		['PAGE','41164',jdecode('Eintr%C3%A4ge'),jdecode(''),'/41165/41164.html','true',[],'']
	],'']];
var siteelementCount=11;
theSitetree.topTemplateName='Commander';
theSitetree.paletteFamily='2B25A2';
theSitetree.keyvisualId='2394';
theSitetree.keyvisualName='stadtroller.jpg';
theSitetree.fontsetId='392';
theSitetree.graphicsetId='439';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E0E0E0';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Commander',
				paletteFamily: 	'2B25A2',
				keyvisualId: 	'2394',
				keyvisualName: 	'stadtroller.jpg',
				fontsetId: 		'392',
				graphicsetId: 	'439',
				contentColor: 	'000000',
				contentBGColor: 'E0E0E0',
				a_color: 		'E0E0E0',
				b_color: 		'5762CA',
				c_color: 		'A1A4D2',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '40967',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40967',
internalId:  '',
customField: '20100403-104728'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '41068',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41068',
internalId:  '',
customField: '20070129-170426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41050',
internalId:  '',
customField: '20090310-134648'
};
webappMappings['1501']=webappMappings['1501-28913220']={
webappId:    '1501',
documentId:  '40967',
internalId:  '28913220',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41023',
internalId:  '',
customField: '20071006-131726'
};
webappMappings['1002']=webappMappings['1002-41165atoix0i7bx1y']={
webappId:    '1002',
documentId:  '41165',
internalId:  '41165atoix0i7bx1y',
customField: 'action=form&icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40996',
internalId:  '',
customField: '20091218-112340'
};
webappMappings['1002']=webappMappings['1002-41165atoix0i7bx1y']={
webappId:    '1002',
documentId:  '41164',
internalId:  '41165atoix0i7bx1y',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41165',
internalId:  '',
customField: '20070129-122913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41014',
internalId:  '',
customField: '20100609-175433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41164',
internalId:  '',
customField: '20070129-122536'
};
webappMappings['1008']=webappMappings['1008-28913845']={
webappId:    '1008',
documentId:  '41023',
internalId:  '28913845',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41414',
internalId:  '',
customField: '20071006-133303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41522',
internalId:  '',
customField: '20100609-175224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42201',
internalId:  '',
customField: '20100609-175518'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0I7BX1Y';
var companyName   = 'www.wolf-bikes-bebra.de';
var htmlTitle	  = 'www.wolf-bikes-bebra.de';
var metaKeywords  = 'Wolf%2C+Kawasaki%2C+Aprilia%2C+Piaggio%2C+Vespa%2C+Gilera%2C+T%C3%9CV%2C+Dekra%2C+Werkstatt%2C+Service%2C+Bekleidung%2C+Fahrzeug%2C+Verkauf%2C+Bebra%2C+36179%2C+3210%2C+7415%2C+Zweiradhaus%2C+Heinebach%2C+Auto%2C+Zweirad%2C+GmbH%2C+Eisenacher%2C+Stra%C3%9Fe%2C+5%2C+Bike%2C+Bikes';
var metaContents  = 'Willkommen+bei+Wolf-Bikes-Bebra%2C+Zweir%C3%A4der+und+Service+aus+Ihrer+Region.';
					                                                                    
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 */					                                                            
