/* [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','44',jdecode('Startseite'),jdecode(''),'/44.html','true',[],''],
	['PAGE','41053',jdecode('Bildergalerie'),jdecode(''),'/41053/home.html','true',[ 
		['PAGE','42446',jdecode('Sommerfest+2005'),jdecode(''),'/41053/42446.html','true',[],''],
		['PAGE','52477',jdecode('Weihnachtsturnier+2006'),jdecode(''),'/41053/52477.html','true',[],''],
		['PAGE','71077',jdecode('Weihnachtsturnier+2007'),jdecode(''),'/41053/71077.html','true',[],''],
		['PAGE','43477',jdecode('Weihnachtsturnier+2008'),jdecode(''),'/41053/43477.html','true',[],'']
	],''],
	['PAGE','42082',jdecode('Chronik'),jdecode(''),'/42082.html','true',[],''],
	['PAGE','42172',jdecode('G%C3%A4stebuch'),jdecode(''),'/42172/home.html','true',[ 
		['PAGE','42171',jdecode('Eintr%C3%A4ge'),jdecode(''),'/42172/42171.html','true',[],'']
	],''],
	['PAGE','43254',jdecode('Links'),jdecode(''),'/43254.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='1388';
theSitetree.keyvisualName='bowling.jpg';
theSitetree.fontsetId='232';
theSitetree.graphicsetId='278';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Startup',
				paletteFamily: 	'990000',
				keyvisualId: 	'1388',
				keyvisualName: 	'bowling.jpg',
				fontsetId: 		'232',
				graphicsetId: 	'278',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'990000',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42171',
internalId:  '',
customField: '20050809-123625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43477',
internalId:  '',
customField: '20090115-173527'
};
webappMappings['1002']=webappMappings['1002-42172atoix0in3lbk']={
webappId:    '1002',
documentId:  '42172',
internalId:  '42172atoix0in3lbk',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-42172atoix0in3lbk']={
webappId:    '1002',
documentId:  '42171',
internalId:  '42172atoix0in3lbk',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44',
internalId:  '',
customField: '20110919-031235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41053',
internalId:  '',
customField: '20081123-230510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42172',
internalId:  '',
customField: '20050809-123625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52477',
internalId:  '',
customField: '20061230-215458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42446',
internalId:  '',
customField: '20050831-145625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42082',
internalId:  '',
customField: '20050809-110402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43254',
internalId:  '',
customField: '20051107-150146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '71077',
internalId:  '',
customField: '20080104-165140'
};
var canonHostname = 'c4awrk04.aul.t-online.de';
var accountId     = 'ATOIX0IN3LBK';
var companyName   = 'Sportkegler+Erbach+e.V.';
var htmlTitle	  = 'Sportkegler+Erbach';
var metaKeywords  = 'SK+Erbach%2C+Kegeln%2C+Homburg%2C+Saarland%2C+Sportkegeln%2C+Sportzentrum+Erbach%2C+Bilder%2C+Ergebnisse%2C+Tabellen%2C+Sportkegler%2C+Erbach';
var metaContents  = 'Homepage+der+Sportkegler+Erbach%2C+aktuelle+Spielberichte%2C+Tabellen%2C+Ergebnisse%2C+Bilder';
					                                                                    
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 */					                                                            

