/* [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','14723',jdecode('Catching+Up%21'),jdecode(''),'/14723.html','true',[],''],
	['PAGE','17022',jdecode('Tic-Toc+Funnies'),jdecode(''),'/17022.html','true',[],''],
	['PAGE','367701',jdecode('A+Special+Visit'),jdecode(''),'/367701.html','true',[],''],
	['PAGE','359901',jdecode('Halloweeny+Stuff'),jdecode(''),'/359901.html','true',[],''],
	['PAGE','359922',jdecode('Christmas+Fun'),jdecode(''),'/359922.html','true',[],''],
	['PAGE','359943',jdecode('The+In-Betweens'),jdecode(''),'/359943.html','true',[],''],
	['PAGE','25306',jdecode('Guestbook'),jdecode(''),'/25306/index.html','true',[ 
		['PAGE','25301',jdecode('Read+Guestbook'),jdecode(''),'/25306/25301.html','true',[],'']
	],'']];
var siteelementCount=8;
theSitetree.topTemplateName='Comedy';
theSitetree.paletteFamily='85A246';
theSitetree.keyvisualId='2796';
theSitetree.keyvisualName='spirale.jpg';
theSitetree.fontsetId='10601';
theSitetree.graphicsetId='10719';
theSitetree.contentColor='F2F5EA';
theSitetree.contentBGColor='9EBA61';
var theTemplate={
				name: 			'Comedy',
				paletteFamily: 	'85A246',
				keyvisualId: 	'2796',
				keyvisualName: 	'spirale.jpg',
				fontsetId: 		'10601',
				graphicsetId: 	'10719',
				contentColor: 	'F2F5EA',
				contentBGColor: '9EBA61',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'647C2F',
				e_color: 		'647C2F',
				f_color: 		'647C2F',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1002']={
webappId:    '1002',
documentId:  '25306',
internalId:  '25306aaplu0inxfe2',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '25301',
internalId:  '25306aaplu0inxfe2',
customField: 'action=list'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '14723',
internalId:  '1006',
customField: '1006'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0INXFE2';
var companyName   = 'the+Liebhardt%27s';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
					                                                                    
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 */					                                                            
