/* [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('Home'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40617',jdecode('Unterricht+Kunst'),jdecode(''),'/40617/home.html','true',[ 
		['PAGE','114701',jdecode('Kurse'),jdecode(''),'/40617/114701.html','true',[],''],
		['PAGE','117301',jdecode('Preise'),jdecode(''),'/40617/117301.html','true',[],''],
		['PAGE','115001',jdecode('Bildergalerie'),jdecode(''),'/40617/115001.html','true',[],'']
	],''],
	['PAGE','111101',jdecode('Unterricht+Musik'),jdecode(''),'/111101/home.html','true',[ 
		['PAGE','112001',jdecode('Preise'),jdecode(''),'/111101/112001.html','true',[],'']
	],''],
	['PAGE','113201',jdecode('Anmeldung%2FAnfragen'),jdecode(''),'/113201.html','true',[],''],
	['PAGE','40581',jdecode('Veranstaltungsarchiv'),jdecode(''),'/40581.html','true',[],''],
	['PAGE','45605',jdecode('Termine'),jdecode(''),'/45605.html','true',[],''],
	['PAGE','40626',jdecode('Musical%2FShows'),jdecode(''),'/40626/home.html','true',[ 
		['PAGE','92801',jdecode('Dreamworks+04%2F05'),jdecode(''),'/40626/92801.html','true',[],''],
		['PAGE','92822',jdecode('Musical+Moments+06%2F07'),jdecode(''),'/40626/92822.html','true',[],''],
		['PAGE','40635',jdecode('Forever+Young+08'),jdecode(''),'/40626/40635.html','true',[],''],
		['PAGE','47101',jdecode('Forever+Young+09'),jdecode(''),'/40626/47101.html','true',[],''],
		['PAGE','43614',jdecode('Grusical+%22Wicked+Game%22+'),jdecode(''),'/40626/43614.html','true',[],'']
	],''],
	['PAGE','44790',jdecode('Kontakt+%2F+Standorte'),jdecode(''),'/44790.html','true',[],''],
	['PAGE','101006',jdecode('G%C3%A4stebuch'),jdecode(''),'/101006/home.html','true',[ 
		['PAGE','101001',jdecode('Eintr%C3%A4ge'),jdecode(''),'/101006/101001.html','true',[],'']
	],'']];
var siteelementCount=19;
theSitetree.topTemplateName='TOI_Dinner_1';
theSitetree.paletteFamily='EF8000';
theSitetree.keyvisualId='10577';
theSitetree.keyvisualName='kv_10577.jpg';
theSitetree.fontsetId='31739';
theSitetree.graphicsetId='13502';
theSitetree.contentColor='3D3D3D';
theSitetree.contentBGColor='EF8000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Dinner_1',
				paletteFamily: 	'EF8000',
				keyvisualId: 	'10577',
				keyvisualName: 	'kv_10577.jpg',
				fontsetId: 		'31739',
				graphicsetId: 	'13502',
				contentColor: 	'3D3D3D',
				contentBGColor: 'EF8000',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, 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: '20120206-081029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40626',
internalId:  '',
customField: '20110331-161056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40581',
internalId:  '',
customField: '20120121-154426'
};
webappMappings['1002']=webappMappings['1002-101006atoix0ir4ldx']={
webappId:    '1002',
documentId:  '101006',
internalId:  '101006atoix0ir4ldx',
customField: 'action=form&icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47101',
internalId:  '',
customField: '20110331-161409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111101',
internalId:  '',
customField: '20120129-211533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40617',
internalId:  '',
customField: '20111003-231702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40635',
internalId:  '',
customField: '20090603-192721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113201',
internalId:  '',
customField: '20110823-220244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101006',
internalId:  '',
customField: '20110328-214527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92822',
internalId:  '',
customField: '20110414-180502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43614',
internalId:  '',
customField: '20110329-003201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45605',
internalId:  '',
customField: '20120121-143820'
};
webappMappings['1002']=webappMappings['1002-101006atoix0ir4ldx']={
webappId:    '1002',
documentId:  '101001',
internalId:  '101006atoix0ir4ldx',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117301',
internalId:  '',
customField: '20120209-215525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44790',
internalId:  '',
customField: '20120209-223837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92801',
internalId:  '',
customField: '20110414-171647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112001',
internalId:  '',
customField: '20120209-215331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101001',
internalId:  '',
customField: '20110328-214335'
};
webappMappings['1008']=webappMappings['1008-56680443']={
webappId:    '1008',
documentId:  '44790',
internalId:  '56680443',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['1008']=webappMappings['1008-64141397']={
webappId:    '1008',
documentId:  '113201',
internalId:  '64141397',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114701',
internalId:  '',
customField: '20120209-221438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115001',
internalId:  '',
customField: '20120209-223223'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0IR4LDX';
var companyName   = 'TonArt+e.V.';
var htmlTitle	  = 'TonArt+e.V.';
var metaKeywords  = 'TonArt+e.V.+Kunst%2C+Musik%2C+Kustkurse%2C+Malerei%2C+Ausstellungen%2C+Unterricht+Violine%2C+Geige%2C+Jazz-Geige%2C+Jazz-Violine%2C+Stiles%2C+Improvisation+Unterricht+Malerei%2C+Zeichnen%2C+Grafik%2C+Druck%2C+Ausstellungen%2C+Musikunterricht%2C+StringTales%2C+Musiktheater%2C+Projekte%2C+Ensembles%2C+Violine%2C+Geige%2C+Gitarre%2C+Fl%C3%B6te%2C+Dudelsack%2C+Rathenow%2C+Premnitz%2C+Milow%2C+Hohennauen%2C+Rhinow%2C+Annelie+Knobloch%2C+Gabriele+Knobloch%2C+Musical%2C+Wicked+Game%2C+';
var metaContents  = 'TonArt+e.V.+Kunst+und+Musik+in+Kunstkursen+und+Unterricht+in+Malerei%2C+Zeichnen%2C+Grafik%2C+Druck%2C+Ausstellungen%2C+Musikunterricht%2C+Musiktheater%2C+Projekte%2C+Ensembles';
					                                                                    
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 */					                                                            

