/* [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','51901',jdecode('Vision+Mission+Goals'),jdecode(''),'/51901.html','true',[],''],
	['PAGE','201',jdecode('Overview'),jdecode(''),'/201/index.html','true',[ 
		['PAGE','5202',jdecode('Home+%28follow+up+page%29'),jdecode(''),'/201/5202.html','false',[],'']
	],''],
	['PAGE','5701',jdecode('Training+Package'),jdecode(''),'/5701/index.html','true',[ 
		['PAGE','7516',jdecode('Time+Budget'),jdecode(''),'/5701/7516.html','true',[],''],
		['PAGE','7526',jdecode('%24%24%24+Budget'),jdecode(''),'/5701/7526.html','true',[],''],
		['PAGE','9801',jdecode('E%3AP%3AN+analysis'),jdecode(''),'/5701/9801.html','true',[],''],
		['PAGE','7521',jdecode('Habits+a+la+Carte'),jdecode(''),'/5701/7521.html','true',[],''],
		['PAGE','7531',jdecode('Economic+Evaluation'),jdecode(''),'/5701/7531.html','true',[],''],
		['PAGE','7536',jdecode('Science+of+Getting+Rich'),jdecode(''),'/5701/7536.html','true',[],''],
		['PAGE','9806',jdecode('Net-Eo+Lessons'),jdecode(''),'/5701/9806.html','true',[],''],
		['PAGE','18601',jdecode('ClozeOnline'),jdecode(''),'/5701/18601.html','true',[],'']
	],''],
	['PAGE','5706',jdecode('WEB%26%23x27%3Bs+World'),jdecode(''),'/5706/index.html','true',[ 
		['PAGE','9816',jdecode('WEB%26%23x27%3Bs+Friends'),jdecode(''),'/5706/9816.html','true',[],''],
		['PAGE','9821',jdecode('WEB%26%23x27%3Bs+Treasures'),jdecode(''),'/5706/9821.html','true',[],''],
		['PAGE','7546',jdecode('Archieved+Quotes'),jdecode(''),'/5706/7546.html','true',[],''],
		['PAGE','49401',jdecode('WEB%26%23x27%3Bs+WORLD+Ezine'),jdecode(''),'/5706/49401.html','true',[],'']
	],''],
	['PAGE','51101',jdecode('Art+%26+Sculptures'),jdecode(''),'/51101.html','true',[],''],
	['PAGE','217',jdecode('Contact'),jdecode(''),'/217.html','true',[],'']];
var siteelementCount=19;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='D72B2B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10893';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Alpha',
				paletteFamily: 	'D72B2B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10893',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'D72B2B',
				e_color: 		'D72B2B',
				f_color: 		'D72B2B',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1001']={
webappId:    '1001',
documentId:  '201',
internalId:  'aen010in2t44107c8ff8c02',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '5202',
internalId:  'aen010in2t44107c8ff8c02',
customField: 'followUp'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '201',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '201',
internalId:  '1854779',
customField: '1501'
};
var canonHostname = 'wsc.ehost-services.com';
var accountId     = 'AEN010IN2T44';
var companyName   = 'E%3AP%3AN-based+%22Habits+a+la+carte%22+training';
var htmlTitle	  = 'E%3AP%3AN-based+Habits+a+la+carte+training+.+.+.+using+C-tests.';
var metaKeywords  = 'Joe+Blum%2C+blum+enterprises%2C+i+am%2C+foundry%2C+computer%2C+labs%2C+CALL%2C+C.A.L.L.%2C+computer+assisted+language+learning%2C+English%2C+ESL%2C+esl%2C+EFL%2C+efl%2C+foreign%2C+EPN%2C+epn%2C+E%3AP%3AN+analysis%2C+esperanto%2C+habits+a+la+carte%2C+pure%2C+languages%2C+micah+4%3A3%2C+isaiah+2%3B4%2C+zeph+3%3A9%2C+homeless%2C+shelter%2C+training%2C+free%2C+coaching%2C+language%2C+advisors%2C+habits%2C+confidence%2C+success%2C+og+mandino%2C+career%2C+career+selection%2C+job-training%2C+skills+training%2C+ctest%2C+ctesting%2C+c-tests';
var metaContents  = 'We+bring+professional+survival+training+to+economically+at-risk+individuals+.+.+.+for+22+weeks+%28conditionally%29+free+of+charge%2C+thereafter+on+a+commission-based+tithe+on+their+earnings.+We+call+it+E%3AP%3AN-based+HABITS+A+LA+CARTE+training+.+.+.+using+C-tests%2C+E%3AP%3AN%2C+and+the+learning+of+foundry+tasks.';
					                                                                    
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 */					                                                            

