/* [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','4579',jdecode('Home+%2B+Kontakt'),jdecode(''),'/4579/home.html','true',[ 
		['PAGE','40101',jdecode('Konzerte+-+Aktuelles'),jdecode(''),'/4579/40101.html','true',[],''],
		['PAGE','28301',jdecode('Vita+Jan+Hennig'),jdecode(''),'/4579/28301.html','true',[],''],
		['PAGE','34001',jdecode('Was+ist+ein+Kunstharmonium%3F'),jdecode(''),'/4579/34001.html','true',[],''],
		['PAGE','14001',jdecode('Die+Instrumente'),jdecode(''),'/4579/14001.html','true',[],''],
		['PAGE','26901',jdecode('%22Zubeh%C3%B6r%22+und+Kurioses'),jdecode(''),'/4579/26901.html','true',[],''],
		['PAGE','14006',jdecode('Das+Repertoire'),jdecode(''),'/4579/14006.html','true',[],''],
		['PAGE','26922',jdecode('Noten+f%C3%BCr+%28Kunst-%29Harmonium'),jdecode(''),'/4579/26922.html','true',[],''],
		['PAGE','26943',jdecode('Pressestimmen'),jdecode(''),'/4579/26943.html','true',[],''],
		['PAGE','26964',jdecode('Links'),jdecode(''),'/4579/26964.html','true',[],'']
	],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Business';
theSitetree.paletteFamily='662A00';
theSitetree.keyvisualId='2492';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='418';
theSitetree.graphicsetId='465';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Business',
				paletteFamily: 	'662A00',
				keyvisualId: 	'2492',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'418',
				graphicsetId: 	'465',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'662A00',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20090502-211311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26964',
internalId:  '',
customField: '20090404-210517'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28301',
internalId:  '',
customField: '20080110-205427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34001',
internalId:  '',
customField: '20060304-193910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14001',
internalId:  '',
customField: '20090502-210956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26901',
internalId:  '',
customField: '20060513-190014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14006',
internalId:  '',
customField: '20090204-190504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26922',
internalId:  '',
customField: '20090502-210459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26943',
internalId:  '',
customField: '20060302-194719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40101',
internalId:  '',
customField: '20090502-211238'
};
var canonHostname = 'cfawrk03.aul.t-online.de';
var accountId     = 'ATOIX0INE9LY';
var companyName   = 'Jan+Hennig+-+Kunstharmonium';
var htmlTitle	  = 'www.kunstharmonium.de';
var metaKeywords  = 'Kapellmeister%2C+Partiturspiel%2C+Liedbegleitung%2C+Dirigent%2C+Musiktheater%2C+Pianist%2C+Harmonium%2C+Kunstharmonium%2C+Mustel%2C+Karg-Elert%2C+Jan%2C+Hennig%2C+Oper%2C+Operette%2C+Musical%2C+Ballett%2C+Rossini%2C+Petite+messe%2C+Klavier%2C+Noten%2C+Musikhochschule%2C+Freiburg%2C+Trossingen%2C+Coburg%2C+M%C3%BCnster%2C+Freudenstadt%2C+Konzert%2C+Duo%2C+Celesta%2C+Harmonium+dart%2C+Konzertharmonium%2C+orgue+expressif%2C+orgue+celesta%2C+Register%2C+Musik%2C+Doppelexpression%2C+Percussion%2C+Messe%2C+petite%2C+solennelle%2C+solenelle%2C+Spieler%2C+Harmonist%2C+Kunstharmonist%2C+Hochschule%2C+Musik%2C+Schreker%2C+Kammersinfonie%2C+';
var metaContents  = 'Informationen+%C3%BCber+Jan+Hennig+als+Kapellmeister+und+Spieler+des+sehr+seltenen+Kunstharmoniums.';
					                                                                    
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 */					                                                            
