/* [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','115141',jdecode('Startseite'),jdecode(''),'/115141.html','true',[],''],
	['PAGE','92941',jdecode('Teilnehmer+2012'),jdecode(''),'/92941.html','false',[],''],
	['PAGE','40315',jdecode('Anmeldung++2012'),jdecode(''),'/40315.html','false',[],''],
	['PAGE','40342',jdecode('Ablauf++2012'),jdecode(''),'/40342.html','false',[],''],
	['PAGE','116462',jdecode('Anfahrt'),jdecode(''),'/116462.html','false',[],''],
	['PAGE','85841',jdecode('Impressionen+zur+Strecke'),jdecode(''),'/85841.html','false',[],''],
	['PAGE','94841',jdecode('Unterst%C3%BCtzung'),jdecode(''),'/94841.html','true',[],''],
	['PAGE','48517',jdecode('Engagement'),jdecode(''),'/48517.html','true',[],''],
	['PAGE','79946',jdecode('G%C3%A4stebuch'),jdecode(''),'/79946/home.html','true',[ 
		['PAGE','79941',jdecode('Eintr%C3%A4ge'),jdecode(''),'/79946/79941.html','true',[],'']
	],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Fussball08';
theSitetree.paletteFamily='7295CF';
theSitetree.keyvisualId='10489';
theSitetree.keyvisualName='kv_10489.jpg';
theSitetree.fontsetId='26621';
theSitetree.graphicsetId='13433';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='7295CF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Fussball08',
				paletteFamily: 	'7295CF',
				keyvisualId: 	'10489',
				keyvisualName: 	'kv_10489.jpg',
				fontsetId: 		'26621',
				graphicsetId: 	'13433',
				contentColor: 	'000000',
				contentBGColor: '7295CF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '115141',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92941',
internalId:  '',
customField: '20110110-154158'
};
webappMappings['1008']=webappMappings['1008-43358860']={
webappId:    '1008',
documentId:  '40315',
internalId:  '43358860',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '94841',
internalId:  '',
customField: '20111102-102319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79946',
internalId:  '',
customField: '20111031-221430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79941',
internalId:  '',
customField: '20090106-222524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40342',
internalId:  '',
customField: '20110110-140036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40315',
internalId:  '',
customField: '20110105-180506'
};
webappMappings['1007']=webappMappings['1007-11eba98a055']={
webappId:    '1007',
documentId:  '85841',
internalId:  '11eba98a055',
customField: 'g.13qt8u9cd.rpemghjkao.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48517',
internalId:  '',
customField: '20111102-084008'
};
webappMappings['1002']=webappMappings['1002-79946atoix0inlnd5']={
webappId:    '1002',
documentId:  '79946',
internalId:  '79946atoix0inlnd5',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-79946atoix0inlnd5']={
webappId:    '1002',
documentId:  '79941',
internalId:  '79946atoix0inlnd5',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85841',
internalId:  '',
customField: '20090109-143157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115141',
internalId:  '',
customField: '20111102-095001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116462',
internalId:  '',
customField: '20110223-103556'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0INLND5';
var companyName   = 'Dreik%C3%B6nigslauf+Hausen';
var htmlTitle	  = 'Dreik%C3%B6nigslauf+Hausen';
var metaKeywords  = 'Laufen%2C+Nordic+Walking%2C+Wandern%2C+Sternstunden';
var metaContents  = 'Wir+tun+was%21';
					                                                                    
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 */					                                                            

