/* [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','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('Torah+Insights'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','62101',jdecode('Hamas%3A++The+Beginning+of+the+End'),jdecode(''),'/452/62101.html','true',[],''],
		['PAGE','82101',jdecode('Mystery+of+the+Karpas'),jdecode(''),'/452/82101.html','true',[],'']
	],''],
	['PAGE','62122',jdecode('Observer'),jdecode(''),'/62122/index.html','true',[ 
		['PAGE','82122',jdecode('No+Mandate+for+Surrender'),jdecode(''),'/62122/82122.html','true',[],''],
		['PAGE','65301',jdecode('Paradise+Lost%3F'),jdecode(''),'/62122/65301.html','true',[],''],
		['PAGE','65322',jdecode('Olmert%26%23x27%3Bs+Arrogance'),jdecode(''),'/62122/65322.html','true',[],''],
		['PAGE','67701',jdecode('Occupation+is+the+Solution+...'),jdecode(''),'/62122/67701.html','true',[],'']
	],''],
	['PAGE','74801',jdecode('Israel+-+US+Relations'),jdecode(''),'/74801.html','true',[],''],
	['PAGE','473',jdecode('Biblical+Landscapes'),jdecode(''),'/473/index.html','true',[ 
		['PAGE','5401',jdecode('Digging+for+David%26%23x27%3Bs+Royal+Digs'),jdecode(''),'/473/5401.html','true',[],''],
		['PAGE','62143',jdecode('Reconstructing+Capernum'),jdecode(''),'/473/62143.html','true',[],'']
	],''],
	['PAGE','62164',jdecode('Perspectives'),jdecode(''),'/62164/index.html','true',[ 
		['PAGE','494',jdecode('Major+Jewish+Rescuers'),jdecode(''),'/62164/494.html','true',[],''],
		['PAGE','62185',jdecode('Zionism%3A+Hobglobin+Jewish+Far+...'),jdecode(''),'/62164/62185.html','true',[],'']
	],''],
	['PAGE','536',jdecode('Science+-+Pure+and+Practical'),jdecode(''),'/536/index.html','true',[ 
		['PAGE','62501',jdecode('Day+of+the+Locust'),jdecode(''),'/536/62501.html','true',[],''],
		['PAGE','62522',jdecode('Salt+Water+Agriculture'),jdecode(''),'/536/62522.html','true',[],'']
	],''],
	['PAGE','62543',jdecode('The+Outpost'),jdecode(''),'/62543/index.html','true',[ 
		['PAGE','62564',jdecode('Who%26%23x27%3Bs+Got+the+Center%3F'),jdecode(''),'/62543/62564.html','true',[],''],
		['PAGE','62585',jdecode('Next+Time+in+Disneyland'),jdecode(''),'/62543/62585.html','true',[],'']
	],''],
	['PAGE','599',jdecode('Vignette'),jdecode(''),'/599/index.html','true',[ 
		['PAGE','62901',jdecode('The+Secret+of+the+Bell'),jdecode(''),'/599/62901.html','true',[],''],
		['PAGE','62922',jdecode('Did+G-d+Create+Evil%3F'),jdecode(''),'/599/62922.html','true',[],'']
	],''],
	['PAGE','66001',jdecode('Voices'),jdecode(''),'/66001.html','true',[],''],
	['PAGE','74822',jdecode('Prayer+Principle'),jdecode(''),'/74822.html','true',[],''],
	['PAGE','73006',jdecode('Guestbook'),jdecode(''),'/73006/index.html','true',[ 
		['PAGE','73001',jdecode('Read+Guestbook'),jdecode(''),'/73006/73001.html','true',[],'']
	],'']];
var siteelementCount=29;
theSitetree.topTemplateName='Finance';
theSitetree.paletteFamily='F3EBF5';
theSitetree.keyvisualId='2731';
theSitetree.keyvisualName='buecher.jpg';
theSitetree.fontsetId='10412';
theSitetree.graphicsetId='10673';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Finance',
				paletteFamily: 	'F3EBF5',
				keyvisualId: 	'2731',
				keyvisualName: 	'buecher.jpg',
				fontsetId: 		'10412',
				graphicsetId: 	'10673',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'F3EBF5',
				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['1501']={
webappId:    '1501',
documentId:  '401',
internalId:  '1501766',
customField: '1501'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '73006',
internalId:  '73006aaplu0in2a7z',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '73001',
internalId:  '73006aaplu0in2a7z',
customField: 'action=list'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0IN2A7Z';
var companyName   = 'ZionNet+Magazine';
					                                                                    
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 */					                                                            
