/* [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('Startseite'),jdecode(''),'/39994.html','true',[],''],
	['PAGE','40639',jdecode('Anfahrt'),jdecode(''),'/40639.html','true',[],''],
	['PAGE','40916',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/40916.html','true',[],''],
	['PAGE','77501',jdecode('Ralf+Schertes+'),jdecode(''),'/77501.html','true',[],''],
	['PAGE','40925',jdecode('Konzept'),jdecode(''),'/40925.html','true',[],''],
	['PAGE','40934',jdecode('Sch%C3%BCler-Bands+%26+Bandcoaching'),jdecode(''),'/40934.html','true',[],''],
	['PAGE','53701',jdecode('Musikalische+F%C3%B6rderprogramme'),jdecode(''),'/53701/home.html','true',[ 
		['PAGE','89801',jdecode('Maifest+Brukhausen+2011'),jdecode(''),'/53701/89801.html','true',[],'']
	],''],
	['PAGE','93501',jdecode('La+Vita-Nordbahnhof+03.Juli+2011'),jdecode(''),'/93501/home.html','true',[ 
		['PAGE','96601',jdecode('La+Vita'),jdecode(''),'/93501/96601.html','true',[],'']
	],''],
	['PAGE','85601',jdecode('Beitrag+zum+ESC-+D%C3%BCsseldorf+2011'),jdecode(''),'/85601.html','true',[],''],
	['PAGE','63201',jdecode('10+Jahre+Music-Hall-Krefeld'),jdecode(''),'/63201.html','true',[],''],
	['PAGE','40943',jdecode('Pressespiegel'),jdecode(''),'/40943.html','true',[],''],
	['PAGE','65601',jdecode('News'),jdecode(''),'/65601.html','true',[],''],
	['PAGE','40652',jdecode('G%C3%A4stebuch'),jdecode(''),'/40652/home.html','true',[ 
		['PAGE','40651',jdecode('Eintr%C3%A4ge'),jdecode(''),'/40652/40651.html','true',[],'']
	],''],
	['PAGE','40591',jdecode('Impressum'),jdecode(''),'/40591.html','true',[],'']];
var siteelementCount=17;
theSitetree.topTemplateName='TOI_Segel_1';
theSitetree.paletteFamily='7586C1';
theSitetree.keyvisualId='10733';
theSitetree.keyvisualName='kv_10733.jpg';
theSitetree.fontsetId='31819';
theSitetree.graphicsetId='13589';
theSitetree.contentColor='011041';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Segel_1',
				paletteFamily: 	'7586C1',
				keyvisualId: 	'10733',
				keyvisualName: 	'kv_10733.jpg',
				fontsetId: 		'31819',
				graphicsetId: 	'13589',
				contentColor: 	'011041',
				contentBGColor: 'FFFFFF',
				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:     'false'
			  };
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: '20111223-070211'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '40639',
internalId:  'location',
customField: 'language:de;country:DE;isIncluded:false;'
};
webappMappings['1002']=webappMappings['1002-40652atoix0iryzpd']={
webappId:    '1002',
documentId:  '40652',
internalId:  '40652atoix0iryzpd',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-40652atoix0iryzpd']={
webappId:    '1002',
documentId:  '40651',
internalId:  '40652atoix0iryzpd',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40943',
internalId:  '',
customField: '20120122-184703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63201',
internalId:  '',
customField: '20100920-185435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65601',
internalId:  '',
customField: '20120122-180103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40591',
internalId:  '',
customField: '20100815-174509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40916',
internalId:  '',
customField: '20100826-121122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40925',
internalId:  '',
customField: '20100825-172053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40639',
internalId:  '',
customField: '20100815-171434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40652',
internalId:  '',
customField: '20091010-183956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40651',
internalId:  '',
customField: '20091010-183956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53701',
internalId:  '',
customField: '20110529-182538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40934',
internalId:  '',
customField: '20110531-162535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40826',
internalId:  '',
customField: '20091127-224222'
};
webappMappings['1007']=webappMappings['1007-131de6f0824']={
webappId:    '1007',
documentId:  '96601',
internalId:  '131de6f0824',
customField: 'g.167f6jpcb.74ie2hjce5.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77501',
internalId:  '',
customField: '20110530-135659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89801',
internalId:  '',
customField: '20120122-184501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '93501',
internalId:  '',
customField: '20110818-215109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '85601',
internalId:  '',
customField: '20110530-134418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96601',
internalId:  '',
customField: '20110818-221358'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0IRYZPD';
var companyName   = 'music-hall-krefeld';
var htmlTitle	  = 'Musikschule+Ralf+Schertes+Krefeld';
var metaKeywords  = 'Gitarrenunterricht%2C+Bass%2C+Schlagzeug%2C+Band%2C+Musik%2C+Rock%2C+Pop%2C+Blues';
var metaContents  = 'Willkommen+bei+music+hall';
					                                                                    
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 */					                                                            

