/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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','40967',jdecode('Home'),jdecode(''),'/40967.html','true',[],''],
	['PAGE','40987',jdecode('Kontakt'),jdecode(''),'/40987/home.html','true',[ 
		['PAGE','50150',jdecode('Saarbruecken'),jdecode(''),'/40987/50150.html','true',[],''],
		['PAGE','50141',jdecode('Trier'),jdecode(''),'/40987/50141.html','true',[],''],
		['PAGE','50132',jdecode('Homburg'),jdecode(''),'/40987/50132.html','true',[],''],
		['PAGE','50123',jdecode('Kaiserslautern'),jdecode(''),'/40987/50123.html','true',[],'']
	],''],
	['PAGE','52101',jdecode('Bestellung'),jdecode(''),'/52101.html','true',[],''],
	['PAGE','41017',jdecode('Impressum'),jdecode(''),'/41017.html','true',[],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Firma';
theSitetree.paletteFamily='333D5C';
theSitetree.keyvisualId='9920';
theSitetree.keyvisualName='kv_9920.jpg';
theSitetree.fontsetId='17861';
theSitetree.graphicsetId='12986';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='939DC0';
var theTemplate={
				name: 			'Firma',
				paletteFamily: 	'333D5C',
				keyvisualId: 	'9920',
				keyvisualName: 	'kv_9920.jpg',
				fontsetId: 		'17861',
				graphicsetId: 	'12986',
				contentColor: 	'FFFFFF',
				contentBGColor: '939DC0',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '40967',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '40967',
internalId:  '',
customField: '20070115-121412'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '40987',
internalId:  '',
customField: '20070116-081502'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41017',
internalId:  '',
customField: '20070115-105650'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '52101',
internalId:  '',
customField: '20070115-112836'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50132',
internalId:  '',
customField: '20070117-122105'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50123',
internalId:  '',
customField: '20070117-122141'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50141',
internalId:  '',
customField: '20070117-121956'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50150',
internalId:  '',
customField: '20070117-121922'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '52101',
internalId:  '28692862',
customField: 'de:DE:'
};
var canonHostname = 'cfawrk05.aul.t-online.de';
var accountId     = 'ATOIX0I7ISG6';
var companyName   = 'Bahnhofsbuchhandlung+Bergmann+GmbH';
var htmlTitle	  = 'Bahnhofsbuchhandlung+Bergmann+GmbH';
var metaKeywords  = 'Bahnhofsbuchhandlung+Bergmann+GmbH+Babu+Saarbr%C3%BCcken+Homburg+Trier+Kaiserslautern+Presse+Buch++Zeitschtiften+Zeitungen+Reisef%C3%BChrer+Tageszeitung+Tageszeitungen+Landkarten+Stadtplan+Stadtpl%C3%A4ne+Bahn+Reise+Modernes+Antiquariat';
var metaContents  = 'Bahnhofsbuchhandlung+Bergmann+GmbH+Babu+Saarbr%C3%BCcken+Homburg+Kaiserslautern+Trier';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            
