/* [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%2F+Kontakt'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','41314',jdecode('Aktuelles+'),jdecode(''),'/41314.html','true',[],''],
	['PAGE','41768',jdecode('Termine+und+Links'),jdecode(''),'/41768.html','true',[],''],
	['PAGE','41777',jdecode('Spielbetrieb'),jdecode(''),'/41777.html','true',[],''],
	['PAGE','41741',jdecode('Jugendseite'),jdecode(''),'/41741.html','true',[],''],
	['PAGE','69425',jdecode('1.Moselcup+Herren+%6012'),jdecode(''),'/69425.html','true',[],''],
	['PAGE','41732',jdecode('+8.Moselcup+Jugend+%6012'),jdecode(''),'/41732.html','true',[],''],
	['PAGE','70625',jdecode('Bilder+der+Anlage'),jdecode(''),'/70625.html','true',[],''],
	['PAGE','42767',jdecode('Bilder++2009'),jdecode(''),'/42767.html','true',[],''],
	['PAGE','51401',jdecode('Bilder+2010'),jdecode(''),'/51401.html','true',[],''],
	['PAGE','62101',jdecode('Bilder+2011'),jdecode(''),'/62101.html','true',[],''],
	['PAGE','61601',jdecode('Tennis-Videos'),jdecode(''),'/61601.html','true',[],''],
	['PAGE','41872',jdecode('Mitglied+werden'),jdecode(''),'/41872.html','true',[],''],
	['PAGE','41827',jdecode('So+finden+Sie+uns'),jdecode(''),'/41827.html','true',[],''],
	['PAGE','41323',jdecode('+Vorstand%2F+Impressum'),jdecode(''),'/41323.html','true',[],'']];
var siteelementCount=15;
theSitetree.topTemplateName='Architekt';
theSitetree.paletteFamily='FFCC66';
theSitetree.keyvisualId='1729';
theSitetree.keyvisualName='tennisspieler.jpg';
theSitetree.fontsetId='282';
theSitetree.graphicsetId='343';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFCC66';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Architekt',
				paletteFamily: 	'FFCC66',
				keyvisualId: 	'1729',
				keyvisualName: 	'tennisspieler.jpg',
				fontsetId: 		'282',
				graphicsetId: 	'343',
				contentColor: 	'000000',
				contentBGColor: 'FFCC66',
				a_color: 		'FFCC66',
				b_color: 		'CC6600',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
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: '20120107-130005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41314',
internalId:  '',
customField: '20111129-093726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41323',
internalId:  '',
customField: '20111127-141233'
};
webappMappings['1501']=webappMappings['1501-47330706']={
webappId:    '1501',
documentId:  '39994',
internalId:  '47330706',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41741',
internalId:  '',
customField: '20111129-094200'
};
webappMappings['1007']=webappMappings['1007-11fe19e507d']={
webappId:    '1007',
documentId:  '42767',
internalId:  '11fe19e507d',
customField: 'g.13vgpmqma.8vklnt3off.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41777',
internalId:  '',
customField: '20111231-111330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41827',
internalId:  '',
customField: '20120107-132942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41732',
internalId:  '',
customField: '20111130-170757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41768',
internalId:  '',
customField: '20120107-133235'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '41827',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70625',
internalId:  '',
customField: '20111231-112851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41872',
internalId:  '',
customField: '20101118-183224'
};
webappMappings['1008']=webappMappings['1008-54594811']={
webappId:    '1008',
documentId:  '39994',
internalId:  '54594811',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42767',
internalId:  '',
customField: '20100405-140102'
};
webappMappings['1007']=webappMappings['1007-127c50ca72a']={
webappId:    '1007',
documentId:  '51401',
internalId:  '127c50ca72a',
customField: 'g.14v2fulem.gflvfe7vgq.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51401',
internalId:  '',
customField: '20100818-174627'
};
webappMappings['7060']=webappMappings['7060-d44b11911eaa2e57f85cb2a9b1cc2be8']={
webappId:    '7060',
documentId:  '61601',
internalId:  'd44b11911eaa2e57f85cb2a9b1cc2be8',
customField: 'language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61601',
internalId:  '',
customField: '20101023-162422'
};
webappMappings['1007']=webappMappings['1007-12c322286db']={
webappId:    '1007',
documentId:  '62101',
internalId:  '12c322286db',
customField: 'g.15gp1v5qd.sskuckesi.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62101',
internalId:  '',
customField: '20101109-203512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69425',
internalId:  '',
customField: '20120107-133647'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0IR9W32';
var companyName   = 'Tennis-Schweich.de';
var htmlTitle	  = 'Tennis-Schweich';
var metaKeywords  = 'Schweich%2C+Tennis%2C+TuS+Mosella%2C+Tennis+in+Schweich%2C+Tennisabteilung+Schweich%2C+Tennisabt.+Schweich%2C+Tennis+f%C3%BCr+Jung+und+Alt%2C+Jugendtraining+Tennis%2C+';
var metaContents  = 'Homepage+der+Tennisabteilung+des+TuS+Mosella+Schweich.+Informationen+rund+um+den+Tennisclub+in+Schweich.+Tennis+f%C3%BCr+Jung+und+Alt..++';
					                                                                    
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 */					                                                            

