/* [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','40972',jdecode('Herzlich+Willkommen+%21'),jdecode(''),'/40972.html','true',[],''],
	['PAGE','41020',jdecode('Budapest+Gypsy+'),jdecode(''),'/41020.html','true',[],''],
	['PAGE','44047',jdecode('Cappella+Istropolitana'),jdecode(''),'/44047.html','true',[],''],
	['PAGE','41119',jdecode('Joshua+Epstein%2C+Violine'),jdecode(''),'/41119.html','true',[],''],
	['PAGE','44398',jdecode('Milan+Sladek+Pantomime'),jdecode(''),'/44398.html','true',[],''],
	['PAGE','44407',jdecode('Le+Nozze+di+Figaro'),jdecode(''),'/44407.html','true',[],''],
	['PAGE','44431',jdecode('Schola+Gregoriana+Pragensis'),jdecode(''),'/44431.html','true',[],''],
	['PAGE','41001',jdecode('Kontakt+%26+Impressum'),jdecode(''),'/41001.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Inspiration';
theSitetree.paletteFamily='819B9B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='100';
theSitetree.graphicsetId='126';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='819B9B';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Inspiration',
				paletteFamily: 	'819B9B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'100',
				graphicsetId: 	'126',
				contentColor: 	'FFFFFF',
				contentBGColor: '819B9B',
				a_color: 		'819B9B',
				b_color: 		'C8C899',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '40972',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40972',
internalId:  '',
customField: '20090906-141546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41001',
internalId:  '',
customField: '20110504-184937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41020',
internalId:  '',
customField: '20110504-185037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44398',
internalId:  '',
customField: '20090906-143058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44047',
internalId:  '',
customField: '20110504-185111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41119',
internalId:  '',
customField: '20110504-185139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44431',
internalId:  '',
customField: '20081118-181535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44407',
internalId:  '',
customField: '20080904-182702'
};
webappMappings['1008']=webappMappings['1008-31519693']={
webappId:    '1008',
documentId:  '41001',
internalId:  '31519693',
customField: 'de:DE:'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0I7IBI1';
var companyName   = 'S+I+M+A+N+E++Musik-+%26+Kulturmanagement';
var htmlTitle	  = 'SIMANE+Musik-+%26+Kulturmanagement';
var metaKeywords  = 'Simane+Musik-+und+Kulturmanagement%2C+Heidelberg%2C+Kontakt%2C+Impressum%2C+Simane%2C+Michaela%2C+Sladek%2C+Pantomime%2C+Joshua+Epstein%2C+Cappella+Istropolitana%2C+Budapest+Gypsy+Symphony+Orchestra%2C+Schola+Gregoriana+Pragensis%2C+Violine%2C+Bewegungstheater%2C+Musikagentur%2C+Eventagentur%2C+100+Violins%2C+Zigeunerorchester%2C+Theaterworkshop';
var metaContents  = 'SIMANE+Musik-+und+Kulturmanagement+ist+eine+Full-Service+Musikagentur.+D+-+69121+Heidelberg%2C+Tel.+06221-408062%2C+www.simane.de';
					                                                                    
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 */					                                                            

