/* [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'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40555',jdecode('Veranstaltungen'),jdecode(''),'/40555.html','true',[],''],
	['PAGE','40564',jdecode('Specials'),jdecode(''),'/40564.html','true',[],''],
	['PAGE','40573',jdecode('Musikwunsch'),jdecode(''),'/40573.html','true',[],''],
	['PAGE','40719',jdecode('Technik'),jdecode(''),'/40719.html','true',[],''],
	['PAGE','40591',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/40591.html','true',[],''],
	['PAGE','40728',jdecode('Preise'),jdecode(''),'/40728.html','true',[],''],
	['PAGE','40600',jdecode('Kontakt'),jdecode(''),'/40600.html','true',[],''],
	['PAGE','40609',jdecode('Impressum'),jdecode(''),'/40609.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='TOI_Theater_1';
theSitetree.paletteFamily='38418B';
theSitetree.keyvisualId='10751';
theSitetree.keyvisualName='kv_10751.jpg';
theSitetree.fontsetId='31808';
theSitetree.graphicsetId='13606';
theSitetree.contentColor='8785D7';
theSitetree.contentBGColor='000000';
var theTemplate={
				name: 			'TOI_Theater_1',
				paletteFamily: 	'38418B',
				keyvisualId: 	'10751',
				keyvisualName: 	'kv_10751.jpg',
				fontsetId: 		'31808',
				graphicsetId: 	'13606',
				contentColor: 	'8785D7',
				contentBGColor: '000000',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
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: '20071204-113252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40555',
internalId:  '',
customField: '20071127-192315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40573',
internalId:  '',
customField: '20071127-192523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40564',
internalId:  '',
customField: '20071127-192425'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40728',
internalId:  '',
customField: '20071201-160827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40591',
internalId:  '',
customField: '20071204-151219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40600',
internalId:  '',
customField: '20071201-142557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40609',
internalId:  '',
customField: '20071129-195333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40719',
internalId:  '',
customField: '20071128-183149'
};
webappMappings['1008']=webappMappings['1008-42308553']={
webappId:    '1008',
documentId:  '40600',
internalId:  '42308553',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['1501']=webappMappings['1501-42308587']={
webappId:    '1501',
documentId:  '39994',
internalId:  '42308587',
customField: '1501'
};
var canonHostname = 'cfawrk08.aul.t-online.de';
var accountId     = 'ATOIX0IRCC0A';
var companyName   = 'Mobile+Disco+Fuxtanz';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            

