/* [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','40581',jdecode('Aktuelles'),jdecode(''),'/40581.html','true',[],''],
	['PAGE','45605',jdecode('Termine'),jdecode(''),'/45605.html','true',[],''],
	['PAGE','44668',jdecode('Jugend+musiziert+'),jdecode(''),'/44668.html','true',[],''],
	['PAGE','40590',jdecode('Unterrichtsf%C3%A4cher'),jdecode(''),'/40590/home.html','true',[ 
		['PAGE','40599',jdecode('Musik'),jdecode(''),'/40590/40599.html','true',[],''],
		['PAGE','40608',jdecode('Tanz'),jdecode(''),'/40590/40608.html','true',[],''],
		['PAGE','40617',jdecode('Kunst'),jdecode(''),'/40590/40617.html','true',[],'']
	],''],
	['PAGE','43628',jdecode('Lehrer'),jdecode(''),'/43628/home.html','true',[ 
		['PAGE','44825',jdecode('Lehrer+in+F%C3%A4chern'),jdecode(''),'/43628/44825.html','true',[],'']
	],''],
	['PAGE','43637',jdecode('Geb%C3%BChren'),jdecode(''),'/43637.html','true',[],''],
	['PAGE','40626',jdecode('Musical%2FShows'),jdecode(''),'/40626/home.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(''),'/43614.html','true',[],''],
	['PAGE','62601',jdecode('Forum+%22Wicked+Game%22+'),jdecode(''),'/62601.html','true',[],''],
	['PAGE','50601',jdecode('%22Wicked+game%22+Intern'),jdecode(''),'/50601.html','true',[],''],
	['PAGE','45458',jdecode('Die+eigene+CD'),jdecode(''),'/45458.html','true',[],''],
	['PAGE','44790',jdecode('Anmeldung+Online'),jdecode(''),'/44790.html','true',[],''],
	['PAGE','43655',jdecode('Kontakt'),jdecode(''),'/43655.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='TOI_Theater_1';
theSitetree.paletteFamily='38418B';
theSitetree.keyvisualId='10753';
theSitetree.keyvisualName='kv_10753.jpg';
theSitetree.fontsetId='31807';
theSitetree.graphicsetId='13606';
theSitetree.contentColor='8E8C8C';
theSitetree.contentBGColor='000000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Theater_1',
				paletteFamily: 	'38418B',
				keyvisualId: 	'10753',
				keyvisualName: 	'kv_10753.jpg',
				fontsetId: 		'31807',
				graphicsetId: 	'13606',
				contentColor: 	'8E8C8C',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				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: '20100328-180241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40626',
internalId:  '',
customField: '20090125-125730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40590',
internalId:  '',
customField: '20100121-104822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40581',
internalId:  '',
customField: '20100303-150643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40608',
internalId:  '',
customField: '20090910-090159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47101',
internalId:  '',
customField: '20090603-202553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40599',
internalId:  '',
customField: '20100121-105044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40617',
internalId:  '',
customField: '20100228-130635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40635',
internalId:  '',
customField: '20090603-192721'
};
webappMappings['3001']=webappMappings['3001-']={
webappId:    '3001',
documentId:  '50601',
internalId:  '',
customField: ''
};
webappMappings['1008']=webappMappings['1008-56680443']={
webappId:    '1008',
documentId:  '43655',
internalId:  '56680443',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43628',
internalId:  '',
customField: '20091130-223203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43637',
internalId:  '',
customField: '20100121-104931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43614',
internalId:  '',
customField: '20100327-120542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45605',
internalId:  '',
customField: '20100228-124940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43655',
internalId:  '',
customField: '20100226-202900'
};
webappMappings['1003']=webappMappings['1003-atoix0ir4ldx11ee3bc6106']={
webappId:    '1003',
documentId:  '43614',
internalId:  'atoix0ir4ldx11ee3bc6106',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44668',
internalId:  '',
customField: '20100328-173325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44790',
internalId:  '',
customField: '20090917-113307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44825',
internalId:  '',
customField: '20090910-093154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50601',
internalId:  '',
customField: '20100312-174657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45458',
internalId:  '',
customField: '20090220-115329'
};
webappMappings['1008']=webappMappings['1008-64141397']={
webappId:    '1008',
documentId:  '44790',
internalId:  '64141397',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62601',
internalId:  '',
customField: '20091116-221637'
};
webappMappings['1003']=webappMappings['1003-atoix0ir4ldx12447c992c0']={
webappId:    '1003',
documentId:  '62601',
internalId:  'atoix0ir4ldx12447c992c0',
customField: 'de:DE::;language:de;country:DE;'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0IR4LDX';
var companyName   = 'Musik-+und+Kunstschule+HVL';
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;                                                                     
	};                                                                               
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 */					                                                            
