/* [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','40958',jdecode('Home'),jdecode(''),'/40958.html','true',[],''],
	['PAGE','41609',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/41609.html','true',[],''],
	['PAGE','42145',jdecode('Fotos+und+Videos'),jdecode(''),'/42145.html','true',[],''],
	['PAGE','41068',jdecode('Links'),jdecode(''),'/41068.html','true',[],''],
	['PAGE','41501',jdecode('Votings'),jdecode(''),'/41501.html','true',[],''],
	['PAGE','41099',jdecode('G%C3%A4stebuch'),jdecode(''),'/41099/home.html','true',[ 
		['PAGE','41098',jdecode('Eintr%C3%A4ge'),jdecode(''),'/41099/41098.html','true',[],'']
	],''],
	['PAGE','40996',jdecode('Kontakt'),jdecode(''),'/40996.html','true',[],''],
	['PAGE','41423',jdecode('Impressum'),jdecode(''),'/41423.html','true',[],'']];
var siteelementCount=9;
theSitetree.topTemplateName='Metal';
theSitetree.paletteFamily='64896D';
theSitetree.keyvisualId='729';
theSitetree.keyvisualName='mischpult.jpg';
theSitetree.fontsetId='142';
theSitetree.graphicsetId='157';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Metal',
				paletteFamily: 	'64896D',
				keyvisualId: 	'729',
				keyvisualName: 	'mischpult.jpg',
				fontsetId: 		'142',
				graphicsetId: 	'157',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'64896D',
				b_color: 		'A7E4B6',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '44',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-41099atoix0i7o3di']={
webappId:    '1002',
documentId:  '41099',
internalId:  '41099atoix0i7o3di',
customField: 'action=form&icq=false'
};
webappMappings['1002']=webappMappings['1002-41099atoix0i7o3di']={
webappId:    '1002',
documentId:  '41098',
internalId:  '41099atoix0i7o3di',
customField: 'action=list'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '40958',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-21428068']={
webappId:    '1501',
documentId:  '40958',
internalId:  '21428068',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40958',
internalId:  '',
customField: '20110603-094813'
};
webappMappings['1008']=webappMappings['1008-21428503']={
webappId:    '1008',
documentId:  '40996',
internalId:  '21428503',
customField: 'de:DE:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41609',
internalId:  '',
customField: '20090129-152045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42145',
internalId:  '',
customField: '20090117-211013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41068',
internalId:  '',
customField: '20090118-143343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41501',
internalId:  '',
customField: '20070923-194417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41099',
internalId:  '',
customField: '20090118-143720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41098',
internalId:  '',
customField: '20060906-064011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40996',
internalId:  '',
customField: '20090118-143917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41423',
internalId:  '',
customField: '20090118-144222'
};
webappMappings['1005']=webappMappings['1005-1237b3a3699.54774241']={
webappId:    '1005',
documentId:  '41501',
internalId:  '1237b3a3699.54774241',
customField: 'de:DE::;language:de;country:DE;'
};
webappMappings['7060']=webappMappings['7060-02c7ca4a4a02f4365b63559df25a6234']={
webappId:    '7060',
documentId:  '42145',
internalId:  '02c7ca4a4a02f4365b63559df25a6234',
customField: 'language:de;country:DE;'
};
var canonHostname = 'c4awrk03.aul.t-online.de';
var accountId     = 'ATOIX0I7O3DI';
var companyName   = 'www.pandaapotheke.com';
var htmlTitle	  = 'Panda+Apotheke';
var metaKeywords  = 'Panda+Apotheke%2C+Jochen+Meyknecht%2C+Rockmusik%2C+Coesfeld%2C+Coverband%2C+Rock+%C2%B4n%C2%B4+Roll%2C+Hubertus+Ruthmann%2C+Gunnar+Schicht%2C+Peter+Burlage%2C+Andre+Krynewiki%2C+Carsten+E%C3%9Fling';
var metaContents  = 'Panda+Apotheke%2C+die+Band%2C+die+der+Welt+die+Rockmusik+zur%C3%BCckbringt.';
					                                                                    
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 */					                                                            

