/* [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','40978',jdecode('Home'),jdecode(''),'/40978.html','true',[],''],
	['PAGE','40998',jdecode('Verein'),jdecode(''),'/40998/home.html','true',[ 
		['PAGE','41007',jdecode('Geschichte'),jdecode(''),'/40998/41007.html','true',[],''],
		['PAGE','42399',jdecode('Kooperation+Verein%2F+Schule'),jdecode(''),'/40998/42399.html','true',[],'']
	],''],
	['PAGE','48018',jdecode('News'),jdecode(''),'/48018/home.html','true',[ 
		['PAGE','49601',jdecode('RSS-Feed+vom+DSB'),jdecode(''),'/48018/49601.html','true',[],'']
	],''],
	['PAGE','41016',jdecode('Wettk%C3%A4mpfe%2F+Turniere'),jdecode(''),'/41016/home.html','true',[ 
		['PAGE','45513',jdecode('Meisterschaften'),jdecode(''),'/41016/45513.html','true',[],''],
		['PAGE','45247',jdecode('Kreiseinzelmeisterschaft'),jdecode(''),'/41016/45247.html','true',[],''],
		['PAGE','42487',jdecode('Offene+Stadtmeisterschaft'),jdecode(''),'/41016/42487.html','true',[],''],
		['PAGE','45238',jdecode('Blitzturniere'),jdecode(''),'/41016/45238.html','true',[],''],
		['PAGE','42478',jdecode('U11-Turnier'),jdecode(''),'/41016/42478.html','true',[],''],
		['PAGE','45256',jdecode('Familienschach'),jdecode(''),'/41016/45256.html','true',[],'']
	],''],
	['PAGE','41025',jdecode('Termine%2F+Veranstaltungen'),jdecode(''),'/41025/home.html','true',[ 
		['PAGE','45265',jdecode('Veranstaltungen'),jdecode(''),'/41025/45265.html','true',[],'']
	],''],
	['PAGE','48012',jdecode('Multimedia+Show'),jdecode(''),'/48012.html','true',[],''],
	['PAGE','45211',jdecode('G%C3%A4stebuch'),jdecode(''),'/45211/home.html','true',[ 
		['PAGE','45210',jdecode('Eintr%C3%A4ge'),jdecode(''),'/45211/45210.html','true',[],'']
	],''],
	['PAGE','42357',jdecode('Anfahrt'),jdecode(''),'/42357.html','true',[],''],
	['PAGE','41034',jdecode('Impressum'),jdecode(''),'/41034.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='006633';
theSitetree.keyvisualId='1428';
theSitetree.keyvisualName='internet.jpg';
theSitetree.fontsetId='233';
theSitetree.graphicsetId='280';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Startup',
				paletteFamily: 	'006633',
				keyvisualId: 	'1428',
				keyvisualName: 	'internet.jpg',
				fontsetId: 		'233',
				graphicsetId: 	'280',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'006633',
				b_color: 		'333333',
				c_color: 		'000000',
				d_color: 		'FF0000',
				e_color: 		'FF0000',
				f_color: 		'FF0000',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '40978',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40978',
internalId:  '',
customField: '20100629-103931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41016',
internalId:  '',
customField: '20090922-173541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41034',
internalId:  '',
customField: '20071002-171636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40998',
internalId:  '',
customField: '20080904-182717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41007',
internalId:  '',
customField: '20070517-165654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41025',
internalId:  '',
customField: '20100629-100334'
};
webappMappings['7050']=webappMappings['7050-1324']={
webappId:    '7050',
documentId:  '48018',
internalId:  '1324',
customField: 'language:de;country:DE;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '42357',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42357',
internalId:  '',
customField: '20070518-193833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42399',
internalId:  '',
customField: '20080904-183109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42478',
internalId:  '',
customField: '20090522-114413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42487',
internalId:  '',
customField: '20090521-113936'
};
webappMappings['1002']=webappMappings['1002-45211atoix0i7e0x3']={
webappId:    '1002',
documentId:  '45211',
internalId:  '45211atoix0i7e0x3',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-45211atoix0i7e0x3']={
webappId:    '1002',
documentId:  '45210',
internalId:  '45211atoix0i7e0x3',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45211',
internalId:  '',
customField: '20071209-144747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45210',
internalId:  '',
customField: '20071209-144818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45238',
internalId:  '',
customField: '20090702-102702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45247',
internalId:  '',
customField: '20100629-101343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45256',
internalId:  '',
customField: '20090228-110331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45265',
internalId:  '',
customField: '20100629-100429'
};
webappMappings['1008']=webappMappings['1008-34895733']={
webappId:    '1008',
documentId:  '45265',
internalId:  '34895733',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45513',
internalId:  '',
customField: '20090607-110743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49601',
internalId:  '',
customField: '20080907-160306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48012',
internalId:  '',
customField: '20070715-104128'
};
webappMappings['7060']=webappMappings['7060-0021128fd498e1456787f64118b54a22']={
webappId:    '7060',
documentId:  '48012',
internalId:  '0021128fd498e1456787f64118b54a22',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48018',
internalId:  '',
customField: '20080907-160234'
};
webappMappings['7090']=webappMappings['7090-294976']={
webappId:    '7090',
documentId:  '49601',
internalId:  '294976',
customField: 'type:rss-1.0;language:de;country:DE;'
};
var canonHostname = 'c4awrk05.aul.t-online.de';
var accountId     = 'ATOIX0I7E0X3';
var companyName   = 'TSV+Kitzscher+e.V.+-+Abteilung+Schach+++++++';
var htmlTitle	  = 'TSV+Kitzscher+e.V.+-+Abteilung+Schach';
var metaKeywords  = 'Schach%2C+Kitzscher%2C+TSV+Kitzscher%2C+TSV';
var metaContents  = 'Willkommen+bei+den+Schachfreunden+des+TSV+Kitzscher+e.V.%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 */					                                                            
