/* [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('welcome'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40555',jdecode('initiator'),jdecode(''),'/40555.html','true',[],''],
	['PAGE','40847',jdecode('engagement'),jdecode(''),'/40847/home.html','true',[ 
		['PAGE','41530',jdecode('workshops'),jdecode(''),'/40847/41530.html','true',[],''],
		['PAGE','40727',jdecode('lessons'),jdecode(''),'/40847/40727.html','true',[],''],
		['PAGE','42898',jdecode('mathemusic'),jdecode(''),'/40847/42898.html','true',[],''],
		['PAGE','40564',jdecode('contact'),jdecode(''),'/40847/40564.html','true',[],'']
	],''],
	['PAGE','40629',jdecode('gallery'),jdecode(''),'/40629.html','true',[],''],
	['PAGE','41065',jdecode('links'),jdecode(''),'/41065.html','true',[],''],
	['PAGE','41692',jdecode('impressum'),jdecode(''),'/41692.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='TOI_Theater_1';
theSitetree.paletteFamily='C43446';
theSitetree.keyvisualId='10752';
theSitetree.keyvisualName='kv_10752.jpg';
theSitetree.fontsetId='31807';
theSitetree.graphicsetId='13604';
theSitetree.contentColor='D44C52';
theSitetree.contentBGColor='000000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Theater_1',
				paletteFamily: 	'C43446',
				keyvisualId: 	'10752',
				keyvisualName: 	'kv_10752.jpg',
				fontsetId: 		'31807',
				graphicsetId: 	'13604',
				contentColor: 	'D44C52',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
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: '20100224-113333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40555',
internalId:  '',
customField: '20100224-130828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40564',
internalId:  '',
customField: '20100301-173631'
};
webappMappings['1007']=webappMappings['1007-1160b0a766c']={
webappId:    '1007',
documentId:  '40629',
internalId:  '1160b0a766c',
customField: 'g.12o5dmhbj.ob46etlabl.1s'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40629',
internalId:  '',
customField: '20091002-103445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40727',
internalId:  '',
customField: '20100302-141216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40847',
internalId:  '',
customField: '20100218-123834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41530',
internalId:  '',
customField: '20100303-203242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41692',
internalId:  '',
customField: '20100303-203312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41065',
internalId:  '',
customField: '20100225-164806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42898',
internalId:  '',
customField: '20100201-220822'
};
var canonHostname = 'cfawrk03.aul.t-online.de';
var accountId     = 'ATOIX0I7PNGG';
var companyName   = 'drumbeat+groove';
var htmlTitle	  = 'mit+djemben%2C+basstrommeln+und+westafrikanischen+rhythmen+zum+drumbeat+groove';
var metaKeywords  = 'djembe%2C+solodjembe%2C++sidedrums%2C+doundoun%2C+kenkeni%2C+sanbar%2C+dundun%2C+percussion%2C+bodypercussion%2C+rhythmus%2C+polyrhythmik%2C+westafrika%2C+malinke%2C+power%2C+drumbeat%2C+groove%2C+flow%2C+feeling%2C+trommelgruppe%2C+kita%2C+kindergarten%2C+schule%2C+gymnasium%2C+unterricht%2C+workshop%2C+musikalische+fr%C3%BCherziehung+gro%C3%9Fraum+braunschweig%2C+salzgitter%2C+peine%2C+gifhorn%2C+wolfsburg%2C+wolfenb%C3%BCttel.';
var metaContents  = 'westafrikanische+rhythmen+der+malinke+auf+djemben+und+basstrommeln+f%C3%BChren+zum+drumbeat+groove.+fred+abelmann+sucht+trommel-begeisterte+im+raum+braunschweig.';
					                                                                    
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 */					                                                            
