/* [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','13678',jdecode('Hallo+Welt%21'),jdecode(''),'/13678/home.html','true',[ 
		['PAGE','32699',jdecode('Biografisches'),jdecode(''),'/13678/32699.html','true',[],''],
		['PAGE','33420',jdecode('Bilder'),jdecode(''),'/13678/33420.html','true',[],''],
		['PAGE','34301',jdecode('Bibliophiles'),jdecode(''),'/13678/34301.html','true',[],''],
		['PAGE','32726',jdecode('Bibliophiles'),jdecode(''),'/13678/32726.html','true',[],''],
		['PAGE','32492',jdecode('Blog'),jdecode(''),'/13678/32492.html','true',[],'']
	],''],
	['PAGE','32844',jdecode('Karten'),jdecode(''),'/32844/home.html','true',[ 
		['PAGE','33429',jdecode('Karten'),jdecode(''),'/32844/33429.html','true',[],''],
		['PAGE','33438',jdecode('Karten'),jdecode(''),'/32844/33438.html','true',[],'']
	],''],
	['PAGE','33447',jdecode('Bilder'),jdecode(''),'/33447/home.html','true',[ 
		['PAGE','33456',jdecode('Bilder'),jdecode(''),'/33447/33456.html','true',[],''],
		['PAGE','33465',jdecode('Bilder'),jdecode(''),'/33447/33465.html','true',[],''],
		['PAGE','33474',jdecode('Bilder'),jdecode(''),'/33447/33474.html','true',[],'']
	],''],
	['PAGE','33381',jdecode('Ursa+Minor'),jdecode(''),'/33381/home.html','true',[ 
		['PAGE','33390',jdecode('Polaris'),jdecode(''),'/33381/33390.html','true',[],''],
		['PAGE','33411',jdecode('Beta'),jdecode(''),'/33381/33411.html','true',[],'']
	],''],
	['PAGE','30164',jdecode('G%C3%A4stebuch'),jdecode(''),'/30164/home.html','true',[ 
		['PAGE','30163',jdecode('Eintr%C3%A4ge'),jdecode(''),'/30164/30163.html','true',[],'']
	],''],
	['PAGE','33295',jdecode('Shop'),jdecode(''),'/33295.html','true',[],''],
	['PAGE','33399',jdecode('Impressum'),jdecode(''),'/33399.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='Billy';
theSitetree.paletteFamily='7179A3';
theSitetree.keyvisualId='7078';
theSitetree.keyvisualName='kv_7078.jpg';
theSitetree.fontsetId='16390';
theSitetree.graphicsetId='12122';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='7179A3';
var theTemplate={
				name: 			'Billy',
				paletteFamily: 	'7179A3',
				keyvisualId: 	'7078',
				keyvisualName: 	'kv_7078.jpg',
				fontsetId: 		'16390',
				graphicsetId: 	'12122',
				contentColor: 	'FFFFFF',
				contentBGColor: '7179A3',
				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: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1002']={
webappId:    '1002',
documentId:  '30164',
internalId:  '30164atoix0inva4t',
customField: 'action=form&icq=false'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '13678',
internalId:  '',
customField: '20070511-184634'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33447',
internalId:  '',
customField: '20070511-150006'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '13678',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '30163',
internalId:  '30164atoix0inva4t',
customField: 'action=list'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33411',
internalId:  '',
customField: '20070510-210715'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32726',
internalId:  '',
customField: '20070511-184321'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33390',
internalId:  '',
customField: '20070510-204025'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33381',
internalId:  '',
customField: '20070510-204025'
};
webappMappings['4001']={
webappId:    '4001',
documentId:  '33295',
internalId:  '33912316',
customField: 'language:de;country:DE;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32699',
internalId:  '',
customField: '20070510-192735'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33420',
internalId:  '',
customField: '20070511-150006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33429',
internalId:  '',
customField: '20070511-150006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30164',
internalId:  '',
customField: '20070510-195851'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '30163',
internalId:  '',
customField: '20061126-190804'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33399',
internalId:  '',
customField: '20070510-204025'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33295',
internalId:  '',
customField: '20070510-201058'
};
webappMappings['7050']={
webappId:    '7050',
documentId:  '32492',
internalId:  '1',
customField: 'language:de;country:DE;'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32492',
internalId:  '',
customField: '20070510-195246'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33438',
internalId:  '',
customField: '20070511-150006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32844',
internalId:  '',
customField: '20070510-193850'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33456',
internalId:  '',
customField: '20070511-150006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33465',
internalId:  '',
customField: '20070511-150006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '33474',
internalId:  '',
customField: '20070511-150006'
};
var canonHostname = 'cfawrk01.aul.t-online.de';
var accountId     = 'ATOIX0INVA4T';
var companyName   = 'I+Ging+%3A+Tl%C3%B6n%2C+Uqbar%2C+Orbis+Tertius+';
var htmlTitle	  = 'www.smack-ev.info';
var metaKeywords  = 'Michael+Hock%3B+Radwanderungen%3B+Fernwege%3B+UMP%3B+Ursa+Minor%3B+Polaris%3B';
var metaContents  = 'Michael+Hock+aus+Ludwigshafen%3B+Nicht+gerade+per+Anhalter+durch+die+Galaxis+aber+mit+dem+Radl+schon+ganz+sch%C3%B6n+weit%3B';
					                                                                    
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 */					                                                            

