/* [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','4579',jdecode('HOME'),jdecode(''),'/4579/home.html','true',[ 
		['PAGE','18101',jdecode('Gebet+'),jdecode(''),'/4579/18101.html','true',[],''],
		['PAGE','18106',jdecode('Verhei%C3%9Fungen'),jdecode(''),'/4579/18106.html','true',[],'']
	],''],
	['PAGE','34401',jdecode('ENGLISH'),jdecode(''),'/34401/home.html','true',[ 
		['PAGE','32801',jdecode('Prayer+and+Promises'),jdecode(''),'/34401/32801.html','true',[],'']
	],''],
	['PAGE','34406',jdecode('FRANCAIS'),jdecode(''),'/34406/home.html','true',[ 
		['PAGE','32811',jdecode('Pri%C3%A8re'),jdecode(''),'/34406/32811.html','true',[],''],
		['PAGE','32816',jdecode('Promesses'),jdecode(''),'/34406/32816.html','true',[],'']
	],''],
	['PAGE','42801',jdecode('ITALIANO'),jdecode(''),'/42801.html','true',[],''],
	['PAGE','76401',jdecode('CZECH'),jdecode(''),'/76401.html','true',[],'']];
var siteelementCount=10;
theSitetree.topTemplateName='Orbit';
theSitetree.paletteFamily='003366';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='175';
theSitetree.graphicsetId='203';
theSitetree.contentColor='83B6E9';
theSitetree.contentBGColor='003366';
var theTemplate={
				name: 			'Orbit',
				paletteFamily: 	'003366',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'175',
				graphicsetId: 	'203',
				contentColor: 	'83B6E9',
				contentBGColor: '003366',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'003366',
				b_color: 		'336699',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4579',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4579',
internalId:  '7445318',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4579',
internalId:  '',
customField: '20070410-085138'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '76401',
internalId:  '',
customField: '20070410-085354'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18101',
internalId:  '',
customField: '20050322-112940'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '18106',
internalId:  '',
customField: '20050322-120627'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34401',
internalId:  '',
customField: '20051205-174653'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32801',
internalId:  '',
customField: '20061108-204436'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '34406',
internalId:  '',
customField: '20051205-175110'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32811',
internalId:  '',
customField: '20050322-112304'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32816',
internalId:  '',
customField: '20050322-120852'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '42801',
internalId:  '',
customField: '20051205-175338'
};
var canonHostname = 'cfabak01.aul.t-online.de';
var accountId     = 'ATOIX0INE0AJ';
var companyName   = 'O+Herzen+der+Liebe';
var htmlTitle	  = 'O+Herzen+der+Liebe';
var metaKeywords  = 'Herzen+der+Liebe+Jesu+und+Mariens%2C+Prayer+of+the+Two+Hearts+of+Love+of+Jesus+and+Mary%2C+Pri%C3%A8re+des+Deux+Coeurs+dAmour%2C+Preghiera+dei+Due+Cuori+dAmore';
var metaContents  = 'Gebet+und+Verhei%C3%9Fungen+der+Zwei+Herzen+der+Liebe+Jesu+und+Mariens+%2F+ENGLISH%3A+Prayer+and+Devotion+of+the+Two+Hearts+of+Love+%2F+FRANCAIS%3A+Pri%C3%A8re+et+Devotion+des+Deux+Coeurs+d%C2%B4Amour+%2F+ITALIANO%3A+Preghiera+dei+Due+Cuori+dAmore';
					                                                                    
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 */					                                                            
