/* [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','40984',jdecode('Home'),jdecode(''),'/40984.html','true',[],''],
	['PAGE','41004',jdecode('Was+bieten+wir%3F'),jdecode(''),'/41004.html','true',[],''],
	['PAGE','41013',jdecode('Wer+sind+wir%3F'),jdecode(''),'/41013.html','true',[],''],
	['PAGE','41022',jdecode('Was+wollen+wir%3F'),jdecode(''),'/41022.html','true',[],''],
	['PAGE','41031',jdecode('Lehrer+M%C3%BCnchen'),jdecode(''),'/41031.html','true',[],''],
	['PAGE','41378',jdecode('Lehrer+N%C3%BCrnberg'),jdecode(''),'/41378.html','true',[],''],
	['PAGE','41040',jdecode('Unterricht%2C+Preise+M%C3%BCnchen'),jdecode(''),'/41040.html','true',[],''],
	['PAGE','41387',jdecode('Unterricht%2C+Preise+N%C3%BCrnberg'),jdecode(''),'/41387.html','true',[],''],
	['PAGE','41049',jdecode('Kontakt'),jdecode(''),'/41049.html','true',[],''],
	['PAGE','41282',jdecode('Fotogalerie'),jdecode(''),'/41282.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Inspiration';
theSitetree.paletteFamily='CCCC99';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='100';
theSitetree.graphicsetId='120';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='CCCC99';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Inspiration',
				paletteFamily: 	'CCCC99',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'100',
				graphicsetId: 	'120',
				contentColor: 	'000000',
				contentBGColor: 'CCCC99',
				a_color: 		'CCCC99',
				b_color: 		'99667A',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '40984',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40984',
internalId:  '',
customField: '20070429-193636'
};
webappMappings['1007']=webappMappings['1007-112326d51af']={
webappId:    '1007',
documentId:  '41282',
internalId:  '112326d51af',
customField: 'g.128p6qabu.rpsk1683qd.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41004',
internalId:  '',
customField: '20070421-201906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41013',
internalId:  '',
customField: '20070421-203134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41022',
internalId:  '',
customField: '20070429-192533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41040',
internalId:  '',
customField: '20110127-225221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41049',
internalId:  '',
customField: '20110227-154610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41387',
internalId:  '',
customField: '20090328-164838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41031',
internalId:  '',
customField: '20111113-103141'
};
webappMappings['1008']=webappMappings['1008-33170257']={
webappId:    '1008',
documentId:  '41049',
internalId:  '33170257',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41282',
internalId:  '',
customField: '20070427-122916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41378',
internalId:  '',
customField: '20110227-154330'
};
var canonHostname = 'c4awrk02.aul.t-online.de';
var accountId     = 'ATOIX0I72MK3';
var companyName   = 'Piano+Mobil+-+Musikunterricht+zu+Hause';
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 */					                                                            

