/* [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','40599',jdecode('News'),jdecode(''),'/40599.html','true',[],''],
	['PAGE','40608',jdecode('Termine'),jdecode(''),'/40608.html','true',[],''],
	['PAGE','40581',jdecode('Band'),jdecode(''),'/40581/home.html','true',[ 
		['PAGE','40590',jdecode('Bandgeschichte'),jdecode(''),'/40581/40590.html','true',[],'']
	],''],
	['PAGE','40626',jdecode('Fotos'),jdecode(''),'/40626/home.html','true',[ 
		['PAGE','41641',jdecode('ACS+Hessen+Rallye'),jdecode(''),'/40626/41641.html','true',[],'']
	],''],
	['PAGE','41532',jdecode('Setliste'),jdecode(''),'/41532.html','true',[],''],
	['PAGE','41667',jdecode('Videos'),jdecode(''),'/41667.html','true',[],''],
	['PAGE','40644',jdecode('Kontakt'),jdecode(''),'/40644.html','true',[],''],
	['PAGE','40716',jdecode('Presse'),jdecode(''),'/40716.html','true',[],''],
	['PAGE','41514',jdecode('G%C3%A4stebuch'),jdecode(''),'/41514/home.html','true',[ 
		['PAGE','41513',jdecode('Eintr%C3%A4ge'),jdecode(''),'/41514/41513.html','true',[],'']
	],''],
	['PAGE','41613',jdecode('Links'),jdecode(''),'/41613.html','true',[],'']];
var siteelementCount=14;
theSitetree.topTemplateName='TOI_Interieur_02';
theSitetree.paletteFamily='FDFDFD';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33408';
theSitetree.graphicsetId='14274';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='646060';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'TOI_Interieur_02',
				paletteFamily: 	'FDFDFD',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33408',
				graphicsetId: 	'14274',
				contentColor: 	'FFFFFF',
				contentBGColor: '646060',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Palatino Linotype, Book Antiqua, Palatino, 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: '20120130-173114'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40581',
internalId:  '',
customField: '20110519-104055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40626',
internalId:  '',
customField: '20110823-152629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40599',
internalId:  '',
customField: '20120116-103744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40644',
internalId:  '',
customField: '20100614-121815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41641',
internalId:  '',
customField: '20100704-113509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41613',
internalId:  '',
customField: '20100321-181340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40590',
internalId:  '',
customField: '20110519-104741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40608',
internalId:  '',
customField: '20120116-104059'
};
webappMappings['1007']=webappMappings['1007-128691b3a5d']={
webappId:    '1007',
documentId:  '41641',
internalId:  '128691b3a5d',
customField: 'g.151khd11k.67o1uln10p.3o'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40716',
internalId:  '',
customField: '20111125-102736'
};
webappMappings['1002']=webappMappings['1002-41514atoix0ir6418']={
webappId:    '1002',
documentId:  '41514',
internalId:  '41514atoix0ir6418',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-41514atoix0ir6418']={
webappId:    '1002',
documentId:  '41513',
internalId:  '41514atoix0ir6418',
customField: 'action=list'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41532',
internalId:  '',
customField: '20111125-094247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41514',
internalId:  '',
customField: '20100305-175701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41513',
internalId:  '',
customField: '20100305-175701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41667',
internalId:  '',
customField: '20110902-180121'
};
var canonHostname = 'c4awrk01.aul.t-online.de';
var accountId     = 'ATOIX0IR6418';
var companyName   = '4tune';
var htmlTitle	  = '4tune-coverband%2C+4tune%2C+Rockmusik%2C+Coverrock%2C+Band';
var metaKeywords  = '4tune%2C++Coverrock%2C++Rock%2C++4tune-coverband%2C++Coverband%2C++Musik%2C++Band%2C+++Music%2C++Rockmusik%2C+Schlitz%2C++Vogelsberg';
var metaContents  = '4tune+spielt+Coverrock+aus+40+Jahren+Rockgeschichte.+Die+Band+kommt+aus+Schlitz+im+Vogelsbergkreis+und+besteht+aus+4+Mitgliedern%3A+Helmut+Kurz%2C+Gitarre+und+Gesang%2C+Meike+Kurz%2C+Bass+und+Gesang%2C+Ralf+Susemichel%2C+Gitarre+und+Gesang%2C+Marco+Kraft%2C+Schlagzeug.++Das+ist+4tune-coverband.';
					                                                                    
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 */					                                                            

