/* [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','54301',jdecode('Home'),jdecode(''),'/54301.html','true',[],''],
	['PAGE','87301',jdecode('Termine'),jdecode(''),'/87301.html','true',[],''],
	['PAGE','159201',jdecode('Berichte'),jdecode(''),'/159201.html','true',[],''],
	['PAGE','52701',jdecode('Gratulation'),jdecode(''),'/52701.html','true',[],''],
	['PAGE','45589',jdecode('Training'),jdecode(''),'/45589.html','true',[],''],
	['PAGE','81501',jdecode('Anfahrt'),jdecode(''),'/81501.html','true',[],''],
	['PAGE','39994',jdecode('Vorstand'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','43092',jdecode('Judo'),jdecode(''),'/43092.html','true',[],''],
	['PAGE','43110',jdecode('Ju-Jutsu'),jdecode(''),'/43110.html','true',[],''],
	['PAGE','82201',jdecode('Fotogallerie'),jdecode(''),'/82201.html','true',[],''],
	['PAGE','133701',jdecode('%C3%BCber+Budo'),jdecode(''),'/133701.html','true',[],''],
	['PAGE','49701',jdecode('Sponsoren'),jdecode(''),'/49701.html','true',[],''],
	['PAGE','40609',jdecode('Regeln%2F+Satzung'),jdecode(''),'/40609.html','true',[],''],
	['PAGE','100601',jdecode('Dokumente+Download'),jdecode(''),'/100601.html','true',[],''],
	['PAGE','79801',jdecode('Berichtarchiv'),jdecode(''),'/79801.html','true',[],''],
	['PAGE','85506',jdecode('G%C3%A4stebuch'),jdecode(''),'/85506/home.html','true',[ 
		['PAGE','85501',jdecode('Eintr%C3%A4ge'),jdecode(''),'/85506/85501.html','true',[],'']
	],'']];
var siteelementCount=17;
theSitetree.topTemplateName='Startup';
theSitetree.paletteFamily='990000';
theSitetree.keyvisualId='1387';
theSitetree.keyvisualName='karate.jpg';
theSitetree.fontsetId='232';
theSitetree.graphicsetId='278';
theSitetree.contentColor='A00000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Startup',
				paletteFamily: 	'990000',
				keyvisualId: 	'1387',
				keyvisualName: 	'karate.jpg',
				fontsetId: 		'232',
				graphicsetId: 	'278',
				contentColor: 	'A00000',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '54301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39994',
internalId:  '',
customField: '20111228-211035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43092',
internalId:  '',
customField: '20120119-210441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54301',
internalId:  '',
customField: '20120201-203226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43110',
internalId:  '',
customField: '20120119-210414'
};
webappMappings['1002']=webappMappings['1002-85506atoix0irqvhu']={
webappId:    '1002',
documentId:  '85506',
internalId:  '85506atoix0irqvhu',
customField: 'action=form&icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '79801',
internalId:  '',
customField: '20111229-113918'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '81501',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '82201',
internalId:  '',
customField: '20120122-205111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40609',
internalId:  '',
customField: '20110428-120048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52701',
internalId:  '',
customField: '20120201-202825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81501',
internalId:  '',
customField: '20111010-120103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49701',
internalId:  '',
customField: '20110523-101952'
};
webappMappings['7091']=webappMappings['7091-64155']={
webappId:    '7091',
documentId:  '54301',
internalId:  '64155',
customField: 'align:right;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45589',
internalId:  '',
customField: '20111228-211833'
};
webappMappings['1002']=webappMappings['1002-85506atoix0irqvhu']={
webappId:    '1002',
documentId:  '85501',
internalId:  '85506atoix0irqvhu',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159201',
internalId:  '',
customField: '20120201-203643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85506',
internalId:  '',
customField: '20110421-213817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85501',
internalId:  '',
customField: '20100402-010438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133701',
internalId:  '',
customField: '20111228-211923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87301',
internalId:  '',
customField: '20120119-211615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100601',
internalId:  '',
customField: '20101112-095036'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0IRQVHU';
var companyName   = 'Budosportverein+Adorf';
var htmlTitle	  = 'bsv+Adorf';
var metaKeywords  = 'bsv+adorf%2C+Vorstand%2C+Trainingsbereiche%2C+Termine%2C+Erfolge%2C+Fotogallerie';
var metaContents  = 'Budosportarten-+Judo-+Karate-+Jiu+jitsu-allgem.+Sportgruppe%2C+Wettkampfberichte+und+Vereinsaktivit%C3%A4ten+';
					                                                                    
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 */					                                                            

