/* [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','39994',jdecode('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','41349',jdecode('%C3%9Cber+die+Datenbank'),jdecode(''),'/41349.html','true',[],''],
	['PAGE','41358',jdecode('Statistiken'),jdecode(''),'/41358/home.html','true',[ 
		['PAGE','43192',jdecode('Top+60'),jdecode(''),'/41358/43192.html','true',[],''],
		['PAGE','41367',jdecode('Marathon'),jdecode(''),'/41358/41367.html','true',[],''],
		['PAGE','41376',jdecode('Halbmarathons'),jdecode(''),'/41358/41376.html','true',[],''],
		['PAGE','45803',jdecode('Zehner'),jdecode(''),'/41358/45803.html','true',[],'']
	],''],
	['PAGE','41385',jdecode('Trends'),jdecode(''),'/41385.html','true',[],''],
	['PAGE','41394',jdecode('Ver%C3%B6ffentlichungen'),jdecode(''),'/41394.html','true',[],''],
	['PAGE','41403',jdecode('Kontakt+und+Impressum'),jdecode(''),'/41403.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='TOI_Boutique_02';
theSitetree.paletteFamily='176277';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33422';
theSitetree.graphicsetId='14287';
theSitetree.contentColor='0A3A47';
theSitetree.contentBGColor='41BBDE';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Boutique_02',
				paletteFamily: 	'176277',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33422',
				graphicsetId: 	'14287',
				contentColor: 	'0A3A47',
				contentBGColor: '41BBDE',
				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:  '39994',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20100729-010659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41349',
internalId:  '',
customField: '20100729-010951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41358',
internalId:  '',
customField: '20100729-003844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41367',
internalId:  '',
customField: '20100729-004738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41376',
internalId:  '',
customField: '20100709-005344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41385',
internalId:  '',
customField: '20100729-010524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41394',
internalId:  '',
customField: '20100802-231623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41403',
internalId:  '',
customField: '20100317-212846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43192',
internalId:  '',
customField: '20100802-231009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45803',
internalId:  '',
customField: '20100802-231141'
};
webappMappings['1008']=webappMappings['1008-72190555']={
webappId:    '1008',
documentId:  '41394',
internalId:  '72190555',
customField: 'de:DE::;language:de;country:DE;'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0I7HBJK';
var companyName   = 'Laufmarkt%3A+Daten+werden+zu+Information';
var htmlTitle	  = 'Laufmarkt+-+Analysen+rund+um+den+Stra%C3%9Fenlauf';
var metaKeywords  = 'Laufmarkt+Datenbank+Marathon+Ultramarathon+Halbmarathon+Stra%C3%9Fenlauf+Finisher+Startgeld+Teilnehmerzahlen+Stra%C3%9Fenl%C3%A4ufe+Deutschland';
var metaContents  = 'Laufmarkt+bietet+einen+Service+nicht+nur+f%C3%BCr+Veranstalter.+Aufbauend+auf+eine+umfangreiche+Datenbank+der+Laufveranstaltungen+in+Deutschland++werden+aktuelle+Tendenzen+bei+der+Teilnahme+an+Langlaufveranstaltungen+in+Deutschland+dargestellt%2C+Marktentwicklung+analysiert+und+Ver%C3%B6ffentlichungen+zum+Thema+vorgestellt';
					                                                                    
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 */					                                                            
