/* [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','203',jdecode('HOME'),jdecode(''),'/203.html','true',[],''],
	['PAGE','187887',jdecode('Video+Webcasting'),jdecode(''),'/187887.html','true',[],''],
	['PAGE','189187',jdecode('Wealthpools+Int.'),jdecode(''),'/189187.html','true',[],''],
	['PAGE','181629',jdecode('Services+'),jdecode(''),'/181629/index.html','true',[ 
		['PAGE','183787',jdecode('FREEDOM+FINANCIAL+GROUP+'),jdecode(''),'/181629/183787.html','true',[],''],
		['PAGE','183808',jdecode('Fruta+Vida+International'),jdecode(''),'/181629/183808.html','true',[],''],
		['PAGE','183829',jdecode('GBG+Health+%26+Wellness+Products'),jdecode(''),'/181629/183829.html','true',[],''],
		['PAGE','184187',jdecode('4E+Corporation+%28planet+earth%29'),jdecode(''),'/181629/184187.html','true',[],''],
		['PAGE','184208',jdecode('SHOP+RIGHT+SHOPPING+MALL'),jdecode(''),'/181629/184208.html','true',[],''],
		['PAGE','184229',jdecode('Telebay%2C+LLC'),jdecode(''),'/181629/184229.html','true',[],''],
		['PAGE','184250',jdecode('InteleFone+'),jdecode(''),'/181629/184250.html','true',[],''],
		['PAGE','184687',jdecode('Citizenr%C4%93+REnU+'),jdecode(''),'/181629/184687.html','true',[],''],
		['PAGE','184708',jdecode('Cognigen+Networks'),jdecode(''),'/181629/184708.html','true',[],''],
		['PAGE','184729',jdecode('Lightyear+Alliance+'),jdecode(''),'/181629/184729.html','true',[],''],
		['PAGE','186487',jdecode('Bi-Tron+'),jdecode(''),'/181629/186487.html','true',[],''],
		['PAGE','186508',jdecode('Financial+Freedom+International'),jdecode(''),'/181629/186508.html','true',[],''],
		['PAGE','186529',jdecode('Global+Travel'),jdecode(''),'/181629/186529.html','true',[],''],
		['PAGE','186550',jdecode('My+Benefits+Plus'),jdecode(''),'/181629/186550.html','true',[],''],
		['PAGE','186571',jdecode('IBO++Plus'),jdecode(''),'/181629/186571.html','true',[],''],
		['PAGE','186592',jdecode('Melaleuca'),jdecode(''),'/181629/186592.html','true',[],''],
		['PAGE','186613',jdecode('Forever+Living'),jdecode(''),'/181629/186613.html','true',[],''],
		['PAGE','181608',jdecode('Homebased+Companies%21'),jdecode(''),'/181629/181608.html','true',[],''],
		['PAGE','181587',jdecode('Virtual+Loan+Officer'),jdecode(''),'/181629/181587.html','true',[],''],
		['PAGE','186634',jdecode('Liberty+Healh+Net+Inc'),jdecode(''),'/181629/186634.html','true',[],''],
		['PAGE','189208',jdecode('Wealthpools'),jdecode(''),'/181629/189208.html','true',[],'']
	],''],
	['PAGE','181650',jdecode('Contact+Us+'),jdecode(''),'/181650.html','true',[],''],
	['PAGE','187187',jdecode('Jobs'),jdecode(''),'/187187.html','true',[],'']];
var siteelementCount=27;
theSitetree.topTemplateName='Postcards';
theSitetree.paletteFamily='BFBEBE';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10733';
theSitetree.graphicsetId='11056';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='F9F9F9';
var theTemplate={
				name: 			'Postcards',
				paletteFamily: 	'BFBEBE',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10733',
				graphicsetId: 	'11056',
				contentColor: 	'000000',
				contentBGColor: 'F9F9F9',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'BFBEBE',
				e_color: 		'BFBEBE',
				f_color: 		'BFBEBE',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '203',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '203',
internalId:  '303856',
customField: '1501'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0INXVH4';
var companyName   = 'D.E+Financial+Services';
					                                                                    
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 */					                                                            
